/******/ (function (modules) {
    /******/ // install a JSONP callback for chunk loading
    /******/ function webpackJsonpCallback(data) {
        /******/ var chunkIds = data[0];
        /******/ var moreModules = data[1];
        /******/
        /******/ // add "moreModules" to the modules object,
        /******/ // then flag all "chunkIds" as loaded and fire callback
        /******/ var moduleId, chunkId, i = 0, resolves = [];
        /******/ for (; i < chunkIds.length; i++) {
            /******/ chunkId = chunkIds[i];
            /******/ if (installedChunks[chunkId]) {
                /******/ resolves.push(installedChunks[chunkId][0]);
                /******/ }
            /******/ installedChunks[chunkId] = 0;
            /******/ }
        /******/ for (moduleId in moreModules) {
            /******/ if (Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
                /******/ modules[moduleId] = moreModules[moduleId];
                /******/ }
            /******/ }
        /******/ if (parentJsonpFunction)
            parentJsonpFunction(data);
        /******/ while (resolves.length) {
            /******/ resolves.shift()();
            /******/ }
        /******/
        /******/ 
    }
    ;
    /******/
    /******/
    /******/ // The module cache
    /******/ var installedModules = {};
    /******/
    /******/ // object to store loaded and loading chunks
    /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
    /******/ // Promise = chunk loading, 0 = chunk loaded
    /******/ var installedChunks = {
        /******/ 1: 0
        /******/ 
    };
    /******/
    /******/
    /******/
    /******/ // script path function
    /******/ function jsonpScriptSrc(chunkId) {
        /******/ return __webpack_require__.p + "" + ({ "2": "xlsx", "3": "vendors~xlsx", "5": "vendors~canvg", "6": "vendors~pdfmake" }[chunkId] || chunkId) + ".build.js";
        /******/ 
    }
    /******/
    /******/ // The require function
    /******/ function __webpack_require__(moduleId) {
        /******/
        /******/ // Check if module is in cache
        /******/ if (installedModules[moduleId]) {
            /******/ return installedModules[moduleId].exports;
            /******/ }
        /******/ // Create a new module (and put it into the cache)
        /******/ var module = installedModules[moduleId] = {
            /******/ i: moduleId,
            /******/ l: false,
            /******/ exports: {}
            /******/ 
        };
        /******/
        /******/ // Execute the module function
        /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
        /******/
        /******/ // Flag the module as loaded
        /******/ module.l = true;
        /******/
        /******/ // Return the exports of the module
        /******/ return module.exports;
        /******/ 
    }
    /******/
    /******/ // This file contains only the entry chunk.
    /******/ // The chunk loading function for additional chunks
    /******/ __webpack_require__.e = function requireEnsure(chunkId) {
        /******/ var promises = [];
        /******/
        /******/
        /******/ // JSONP chunk loading for javascript
        /******/
        /******/ var installedChunkData = installedChunks[chunkId];
        /******/ if (installedChunkData !== 0) { // 0 means "already installed".
            /******/
            /******/ // a Promise means "currently loading".
            /******/ if (installedChunkData) {
                /******/ promises.push(installedChunkData[2]);
                /******/ }
            else {
                /******/ // setup Promise in chunk cache
                /******/ var promise = new Promise(function (resolve, reject) {
                    /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
                    /******/ 
                });
                /******/ promises.push(installedChunkData[2] = promise);
                /******/
                /******/ // start chunk loading
                /******/ var head = document.getElementsByTagName('head')[0];
                /******/ var script = document.createElement('script');
                /******/
                /******/ script.charset = 'utf-8';
                /******/ script.timeout = 120;
                /******/
                /******/ if (__webpack_require__.nc) {
                    /******/ script.setAttribute("nonce", __webpack_require__.nc);
                    /******/ }
                /******/ script.src = jsonpScriptSrc(chunkId);
                /******/ var timeout = setTimeout(function () {
                    /******/ onScriptComplete({ type: 'timeout', target: script });
                    /******/ 
                }, 120000);
                /******/ script.onerror = script.onload = onScriptComplete;
                /******/ function onScriptComplete(event) {
                    /******/ // avoid mem leaks in IE.
                    /******/ script.onerror = script.onload = null;
                    /******/ clearTimeout(timeout);
                    /******/ var chunk = installedChunks[chunkId];
                    /******/ if (chunk !== 0) {
                        /******/ if (chunk) {
                            /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
                            /******/ var realSrc = event && event.target && event.target.src;
                            /******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')');
                            /******/ error.type = errorType;
                            /******/ error.request = realSrc;
                            /******/ chunk[1](error);
                            /******/ }
                        /******/ installedChunks[chunkId] = undefined;
                        /******/ }
                    /******/ 
                }
                ;
                /******/ head.appendChild(script);
                /******/ }
            /******/ }
        /******/ return Promise.all(promises);
        /******/ 
    };
    /******/
    /******/ // expose the modules object (__webpack_modules__)
    /******/ __webpack_require__.m = modules;
    /******/
    /******/ // expose the module cache
    /******/ __webpack_require__.c = installedModules;
    /******/
    /******/ // define getter function for harmony exports
    /******/ __webpack_require__.d = function (exports, name, getter) {
        /******/ if (!__webpack_require__.o(exports, name)) {
            /******/ Object.defineProperty(exports, name, {
                /******/ configurable: false,
                /******/ enumerable: true,
                /******/ get: getter
                /******/ 
            });
            /******/ }
        /******/ 
    };
    /******/
    /******/ // define __esModule on exports
    /******/ __webpack_require__.r = function (exports) {
        /******/ Object.defineProperty(exports, '__esModule', { value: true });
        /******/ 
    };
    /******/
    /******/ // 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 = "/js/";
    /******/
    /******/ // on error function for async loading
    /******/ __webpack_require__.oe = function (err) { console.error(err); throw err; };
    /******/
    /******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
    /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
    /******/ jsonpArray.push = webpackJsonpCallback;
    /******/ jsonpArray = jsonpArray.slice();
    /******/ for (var i = 0; i < jsonpArray.length; i++)
        webpackJsonpCallback(jsonpArray[i]);
    /******/ var parentJsonpFunction = oldJsonpFunction;
    /******/
    /******/
    /******/ // Load entry module and return exports
    /******/ return __webpack_require__(__webpack_require__.s = 6);
    /******/ 
})([
    /* 0 */ ,
    /* 1 */ ,
    /* 2 */ ,
    /* 3 */
    /***/ (function (module, exports) {
        /*
            MIT License http://www.opensource.org/licenses/mit-license.php
            Author Tobias Koppers @sokra
        */
        // css base code, injected by the css-loader
        module.exports = function (useSourceMap) {
            var list = [];
            // return the list of modules as css string
            list.toString = function toString() {
                return this.map(function (item) {
                    var content = cssWithMappingToString(item, useSourceMap);
                    if (item[2]) {
                        return "@media " + item[2] + "{" + content + "}";
                    }
                    else {
                        return content;
                    }
                }).join("");
            };
            // import a list of modules into the list
            list.i = function (modules, mediaQuery) {
                if (typeof modules === "string")
                    modules = [[null, modules, ""]];
                var alreadyImportedModules = {};
                for (var i = 0; i < this.length; i++) {
                    var id = this[i][0];
                    if (typeof id === "number")
                        alreadyImportedModules[id] = true;
                }
                for (i = 0; i < modules.length; i++) {
                    var item = modules[i];
                    // skip already imported module
                    // this implementation is not 100% perfect for weird media query combinations
                    //  when a module is imported multiple times with different media queries.
                    //  I hope this will never occur (Hey this way we have smaller bundles)
                    if (typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
                        if (mediaQuery && !item[2]) {
                            item[2] = mediaQuery;
                        }
                        else if (mediaQuery) {
                            item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
                        }
                        list.push(item);
                    }
                }
            };
            return list;
        };
        function cssWithMappingToString(item, useSourceMap) {
            var content = item[1] || '';
            var cssMapping = item[3];
            if (!cssMapping) {
                return content;
            }
            if (useSourceMap && typeof btoa === 'function') {
                var sourceMapping = toComment(cssMapping);
                var sourceURLs = cssMapping.sources.map(function (source) {
                    return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
                });
                return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
            }
            return [content].join('\n');
        }
        // Adapted from convert-source-map (MIT)
        function toComment(sourceMap) {
            // eslint-disable-next-line no-undef
            var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
            var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
            return '/*# ' + data + ' */';
        }
        /***/ 
    }),
    /* 4 */
    /***/ (function (module, exports, __webpack_require__) {
        /*
            MIT License http://www.opensource.org/licenses/mit-license.php
            Author Tobias Koppers @sokra
        */
        var stylesInDom = {};
        var memoize = function (fn) {
            var memo;
            return function () {
                if (typeof memo === "undefined")
                    memo = fn.apply(this, arguments);
                return memo;
            };
        };
        var isOldIE = memoize(function () {
            // Test for IE <= 9 as proposed by Browserhacks
            // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
            // Tests for existence of standard globals is to allow style-loader
            // to operate correctly into non-standard environments
            // @see https://github.com/webpack-contrib/style-loader/issues/177
            return window && document && document.all && !window.atob;
        });
        var getTarget = function (target) {
            return document.querySelector(target);
        };
        var getElement = (function (fn) {
            var memo = {};
            return function (target) {
                // If passing function in options, then use it for resolve "head" element.
                // Useful for Shadow Root style i.e
                // {
                //   insertInto: function () { return document.querySelector("#foo").shadowRoot }
                // }
                if (typeof target === 'function') {
                    return target();
                }
                if (typeof memo[target] === "undefined") {
                    var styleTarget = getTarget.call(this, target);
                    // Special case to return head of iframe instead of iframe itself
                    if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
                        try {
                            // This will throw an exception if access to iframe is blocked
                            // due to cross-origin restrictions
                            styleTarget = styleTarget.contentDocument.head;
                        }
                        catch (e) {
                            styleTarget = null;
                        }
                    }
                    memo[target] = styleTarget;
                }
                return memo[target];
            };
        })();
        var singleton = null;
        var singletonCounter = 0;
        var stylesInsertedAtTop = [];
        var fixUrls = __webpack_require__(5);
        module.exports = function (list, options) {
            if (typeof DEBUG !== "undefined" && DEBUG) {
                if (typeof document !== "object")
                    throw new Error("The style-loader cannot be used in a non-browser environment");
            }
            options = options || {};
            options.attrs = typeof options.attrs === "object" ? options.attrs : {};
            // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
            // tags it will allow on a page
            if (!options.singleton && typeof options.singleton !== "boolean")
                options.singleton = isOldIE();
            // By default, add <style> tags to the <head> element
            if (!options.insertInto)
                options.insertInto = "head";
            // By default, add <style> tags to the bottom of the target
            if (!options.insertAt)
                options.insertAt = "bottom";
            var styles = listToStyles(list, options);
            addStylesToDom(styles, options);
            return function update(newList) {
                var mayRemove = [];
                for (var i = 0; i < styles.length; i++) {
                    var item = styles[i];
                    var domStyle = stylesInDom[item.id];
                    domStyle.refs--;
                    mayRemove.push(domStyle);
                }
                if (newList) {
                    var newStyles = listToStyles(newList, options);
                    addStylesToDom(newStyles, options);
                }
                for (var i = 0; i < mayRemove.length; i++) {
                    var domStyle = mayRemove[i];
                    if (domStyle.refs === 0) {
                        for (var j = 0; j < domStyle.parts.length; j++)
                            domStyle.parts[j]();
                        delete stylesInDom[domStyle.id];
                    }
                }
            };
        };
        function addStylesToDom(styles, options) {
            for (var i = 0; i < styles.length; i++) {
                var item = styles[i];
                var domStyle = stylesInDom[item.id];
                if (domStyle) {
                    domStyle.refs++;
                    for (var j = 0; j < domStyle.parts.length; j++) {
                        domStyle.parts[j](item.parts[j]);
                    }
                    for (; j < item.parts.length; j++) {
                        domStyle.parts.push(addStyle(item.parts[j], options));
                    }
                }
                else {
                    var parts = [];
                    for (var j = 0; j < item.parts.length; j++) {
                        parts.push(addStyle(item.parts[j], options));
                    }
                    stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts };
                }
            }
        }
        function listToStyles(list, options) {
            var styles = [];
            var newStyles = {};
            for (var i = 0; i < list.length; i++) {
                var item = list[i];
                var id = options.base ? item[0] + options.base : item[0];
                var css = item[1];
                var media = item[2];
                var sourceMap = item[3];
                var part = { css: css, media: media, sourceMap: sourceMap };
                if (!newStyles[id])
                    styles.push(newStyles[id] = { id: id, parts: [part] });
                else
                    newStyles[id].parts.push(part);
            }
            return styles;
        }
        function insertStyleElement(options, style) {
            var target = getElement(options.insertInto);
            if (!target) {
                throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
            }
            var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
            if (options.insertAt === "top") {
                if (!lastStyleElementInsertedAtTop) {
                    target.insertBefore(style, target.firstChild);
                }
                else if (lastStyleElementInsertedAtTop.nextSibling) {
                    target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
                }
                else {
                    target.appendChild(style);
                }
                stylesInsertedAtTop.push(style);
            }
            else if (options.insertAt === "bottom") {
                target.appendChild(style);
            }
            else if (typeof options.insertAt === "object" && options.insertAt.before) {
                var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
                target.insertBefore(style, nextSibling);
            }
            else {
                throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
            }
        }
        function removeStyleElement(style) {
            if (style.parentNode === null)
                return false;
            style.parentNode.removeChild(style);
            var idx = stylesInsertedAtTop.indexOf(style);
            if (idx >= 0) {
                stylesInsertedAtTop.splice(idx, 1);
            }
        }
        function createStyleElement(options) {
            var style = document.createElement("style");
            if (options.attrs.type === undefined) {
                options.attrs.type = "text/css";
            }
            addAttrs(style, options.attrs);
            insertStyleElement(options, style);
            return style;
        }
        function createLinkElement(options) {
            var link = document.createElement("link");
            if (options.attrs.type === undefined) {
                options.attrs.type = "text/css";
            }
            options.attrs.rel = "stylesheet";
            addAttrs(link, options.attrs);
            insertStyleElement(options, link);
            return link;
        }
        function addAttrs(el, attrs) {
            Object.keys(attrs).forEach(function (key) {
                el.setAttribute(key, attrs[key]);
            });
        }
        function addStyle(obj, options) {
            var style, update, remove, result;
            // If a transform function was defined, run it on the css
            if (options.transform && obj.css) {
                result = options.transform(obj.css);
                if (result) {
                    // If transform returns a value, use that instead of the original css.
                    // This allows running runtime transformations on the css.
                    obj.css = result;
                }
                else {
                    // If the transform function returns a falsy value, don't add this css.
                    // This allows conditional loading of css
                    return function () {
                        // noop
                    };
                }
            }
            if (options.singleton) {
                var styleIndex = singletonCounter++;
                style = singleton || (singleton = createStyleElement(options));
                update = applyToSingletonTag.bind(null, style, styleIndex, false);
                remove = applyToSingletonTag.bind(null, style, styleIndex, true);
            }
            else if (obj.sourceMap &&
                typeof URL === "function" &&
                typeof URL.createObjectURL === "function" &&
                typeof URL.revokeObjectURL === "function" &&
                typeof Blob === "function" &&
                typeof btoa === "function") {
                style = createLinkElement(options);
                update = updateLink.bind(null, style, options);
                remove = function () {
                    removeStyleElement(style);
                    if (style.href)
                        URL.revokeObjectURL(style.href);
                };
            }
            else {
                style = createStyleElement(options);
                update = applyToTag.bind(null, style);
                remove = function () {
                    removeStyleElement(style);
                };
            }
            update(obj);
            return function updateStyle(newObj) {
                if (newObj) {
                    if (newObj.css === obj.css &&
                        newObj.media === obj.media &&
                        newObj.sourceMap === obj.sourceMap) {
                        return;
                    }
                    update(obj = newObj);
                }
                else {
                    remove();
                }
            };
        }
        var replaceText = (function () {
            var textStore = [];
            return function (index, replacement) {
                textStore[index] = replacement;
                return textStore.filter(Boolean).join('\n');
            };
        })();
        function applyToSingletonTag(style, index, remove, obj) {
            var css = remove ? "" : obj.css;
            if (style.styleSheet) {
                style.styleSheet.cssText = replaceText(index, css);
            }
            else {
                var cssNode = document.createTextNode(css);
                var childNodes = style.childNodes;
                if (childNodes[index])
                    style.removeChild(childNodes[index]);
                if (childNodes.length) {
                    style.insertBefore(cssNode, childNodes[index]);
                }
                else {
                    style.appendChild(cssNode);
                }
            }
        }
        function applyToTag(style, obj) {
            var css = obj.css;
            var media = obj.media;
            if (media) {
                style.setAttribute("media", media);
            }
            if (style.styleSheet) {
                style.styleSheet.cssText = css;
            }
            else {
                while (style.firstChild) {
                    style.removeChild(style.firstChild);
                }
                style.appendChild(document.createTextNode(css));
            }
        }
        function updateLink(link, options, obj) {
            var css = obj.css;
            var sourceMap = obj.sourceMap;
            /*
                If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
                and there is no publicPath defined then lets turn convertToAbsoluteUrls
                on by default.  Otherwise default to the convertToAbsoluteUrls option
                directly
            */
            var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
            if (options.convertToAbsoluteUrls || autoFixUrls) {
                css = fixUrls(css);
            }
            if (sourceMap) {
                // http://stackoverflow.com/a/26603875
                css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
            }
            var blob = new Blob([css], { type: "text/css" });
            var oldSrc = link.href;
            link.href = URL.createObjectURL(blob);
            if (oldSrc)
                URL.revokeObjectURL(oldSrc);
        }
        /***/ 
    }),
    /* 5 */
    /***/ (function (module, exports) {
        /**
         * When source maps are enabled, `style-loader` uses a link element with a data-uri to
         * embed the css on the page. This breaks all relative urls because now they are relative to a
         * bundle instead of the current page.
         *
         * One solution is to only use full urls, but that may be impossible.
         *
         * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
         *
         * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
         *
         */
        module.exports = function (css) {
            // get current location
            var location = typeof window !== "undefined" && window.location;
            if (!location) {
                throw new Error("fixUrls requires window.location");
            }
            // blank or null?
            if (!css || typeof css !== "string") {
                return css;
            }
            var baseUrl = location.protocol + "//" + location.host;
            var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
            // convert each url(...)
            /*
            This regular expression is just a way to recursively match brackets within
            a string.
        
             /url\s*\(  = Match on the word "url" with any whitespace after it and then a parens
               (  = Start a capturing group
                 (?:  = Start a non-capturing group
                     [^)(]  = Match anything that isn't a parentheses
                     |  = OR
                     \(  = Match a start parentheses
                         (?:  = Start another non-capturing groups
                             [^)(]+  = Match anything that isn't a parentheses
                             |  = OR
                             \(  = Match a start parentheses
                                 [^)(]*  = Match anything that isn't a parentheses
                             \)  = Match a end parentheses
                         )  = End Group
                      *\) = Match anything and then a close parens
                  )  = Close non-capturing group
                  *  = Match anything
               )  = Close capturing group
             \)  = Match a close parens
        
             /gi  = Get all matches, not the first.  Be case insensitive.
             */
            var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (fullMatch, origUrl) {
                // strip quotes (if they exist)
                var unquotedOrigUrl = origUrl
                    .trim()
                    .replace(/^"(.*)"$/, function (o, $1) { return $1; })
                    .replace(/^'(.*)'$/, function (o, $1) { return $1; });
                // already a full url? no change
                if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
                    return fullMatch;
                }
                // convert the url to a full url
                var newUrl;
                if (unquotedOrigUrl.indexOf("//") === 0) {
                    //TODO: should we add protocol?
                    newUrl = unquotedOrigUrl;
                }
                else if (unquotedOrigUrl.indexOf("/") === 0) {
                    // path should be relative to the base url
                    newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
                }
                else {
                    // path should be relative to current directory
                    newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
                }
                // send back the fixed url(...)
                return "url(" + JSON.stringify(newUrl) + ")";
            });
            // send back the fixed css
            return fixedCss;
        };
        /***/ 
    }),
    /* 6 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _App_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
        /* harmony import */ var _App_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_App_css__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _components_Navigate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
        react_dom__WEBPACK_IMPORTED_MODULE_0__["render"](react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_Navigate__WEBPACK_IMPORTED_MODULE_3__["default"], null), document.getElementById('root'));
        /***/ 
    }),
    /* 7 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        function checkDCE() {
            /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
            if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
                typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {
                return;
            }
            if (true) {
                // This branch is unreachable because this function is only called
                // in production, but the condition is true only in development.
                // Therefore if the branch is still here, dead code elimination wasn't
                // properly applied.
                // Don't change the message. React DevTools relies on it. Also make sure
                // this message doesn't occur elsewhere in this function, or it will cause
                // a false positive.
                throw new Error('^_^');
            }
            try {
                // Verify that the code above has been dead code eliminated (DCE'd).
                __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
            }
            catch (err) {
                // DevTools shouldn't crash React, no matter what.
                // We should still report in case we break this code.
                console.error(err);
            }
        }
        if (false) { }
        else {
            module.exports = __webpack_require__(8);
        }
        /***/ 
    }),
    /* 8 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /** @license React v16.5.2
         * react-dom.development.js
         *
         * Copyright (c) Facebook, Inc. and its affiliates.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        if (true) {
            (function () {
                'use strict';
                var React = __webpack_require__(9);
                var _assign = __webpack_require__(11);
                var checkPropTypes = __webpack_require__(12);
                var schedule = __webpack_require__(14);
                var tracing = __webpack_require__(16);
                /**
                 * Use invariant() to assert state which your program assumes to be true.
                 *
                 * Provide sprintf-style format (only %s is supported) and arguments
                 * to provide information about what broke and what you were
                 * expecting.
                 *
                 * The invariant message will be stripped in production, but the invariant
                 * will remain to ensure logic does not differ in production.
                 */
                var validateFormat = function () { };
                {
                    validateFormat = function (format) {
                        if (format === undefined) {
                            throw new Error('invariant requires an error message argument');
                        }
                    };
                }
                function invariant(condition, format, a, b, c, d, e, f) {
                    validateFormat(format);
                    if (!condition) {
                        var error = void 0;
                        if (format === undefined) {
                            error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
                        }
                        else {
                            var args = [a, b, c, d, e, f];
                            var argIndex = 0;
                            error = new Error(format.replace(/%s/g, function () {
                                return args[argIndex++];
                            }));
                            error.name = 'Invariant Violation';
                        }
                        error.framesToPop = 1; // we don't care about invariant's own frame
                        throw error;
                    }
                }
                // Relying on the `invariant()` implementation lets us
                // preserve the format and params in the www builds.
                !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
                var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
                    var funcArgs = Array.prototype.slice.call(arguments, 3);
                    try {
                        func.apply(context, funcArgs);
                    }
                    catch (error) {
                        this.onError(error);
                    }
                };
                {
                    // In DEV mode, we swap out invokeGuardedCallback for a special version
                    // that plays more nicely with the browser's DevTools. The idea is to preserve
                    // "Pause on exceptions" behavior. Because React wraps all user-provided
                    // functions in invokeGuardedCallback, and the production version of
                    // invokeGuardedCallback uses a try-catch, all user exceptions are treated
                    // like caught exceptions, and the DevTools won't pause unless the developer
                    // takes the extra step of enabling pause on caught exceptions. This is
                    // untintuitive, though, because even though React has caught the error, from
                    // the developer's perspective, the error is uncaught.
                    //
                    // To preserve the expected "Pause on exceptions" behavior, we don't use a
                    // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
                    // DOM node, and call the user-provided callback from inside an event handler
                    // for that fake event. If the callback throws, the error is "captured" using
                    // a global event handler. But because the error happens in a different
                    // event loop context, it does not interrupt the normal program flow.
                    // Effectively, this gives us try-catch behavior without actually using
                    // try-catch. Neat!
                    // Check that the browser supports the APIs we need to implement our special
                    // DEV version of invokeGuardedCallback
                    if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
                        var fakeNode = document.createElement('react');
                        var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
                            // If document doesn't exist we know for sure we will crash in this method
                            // when we call document.createEvent(). However this can cause confusing
                            // errors: https://github.com/facebookincubator/create-react-app/issues/3482
                            // So we preemptively throw with a better message instead.
                            !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;
                            var evt = document.createEvent('Event');
                            // Keeps track of whether the user-provided callback threw an error. We
                            // set this to true at the beginning, then set it to false right after
                            // calling the function. If the function errors, `didError` will never be
                            // set to false. This strategy works even if the browser is flaky and
                            // fails to call our global error handler, because it doesn't rely on
                            // the error event at all.
                            var didError = true;
                            // Keeps track of the value of window.event so that we can reset it
                            // during the callback to let user code access window.event in the
                            // browsers that support it.
                            var windowEvent = window.event;
                            // Create an event handler for our fake event. We will synchronously
                            // dispatch our fake event using `dispatchEvent`. Inside the handler, we
                            // call the user-provided callback.
                            var funcArgs = Array.prototype.slice.call(arguments, 3);
                            function callCallback() {
                                // We immediately remove the callback from event listeners so that
                                // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
                                // nested call would trigger the fake event handlers of any call higher
                                // in the stack.
                                fakeNode.removeEventListener(evtType, callCallback, false);
                                // We check for window.hasOwnProperty('event') to prevent the
                                // window.event assignment in both IE <= 10 as they throw an error
                                // "Member not found" in strict mode, and in Firefox which does not
                                // support window.event.
                                if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
                                    window.event = windowEvent;
                                }
                                func.apply(context, funcArgs);
                                didError = false;
                            }
                            // Create a global error event handler. We use this to capture the value
                            // that was thrown. It's possible that this error handler will fire more
                            // than once; for example, if non-React code also calls `dispatchEvent`
                            // and a handler for that event throws. We should be resilient to most of
                            // those cases. Even if our error event handler fires more than once, the
                            // last error event is always used. If the callback actually does error,
                            // we know that the last error event is the correct one, because it's not
                            // possible for anything else to have happened in between our callback
                            // erroring and the code that follows the `dispatchEvent` call below. If
                            // the callback doesn't error, but the error event was fired, we know to
                            // ignore it because `didError` will be false, as described above.
                            var error = void 0;
                            // Use this to track whether the error event is ever called.
                            var didSetError = false;
                            var isCrossOriginError = false;
                            function handleWindowError(event) {
                                error = event.error;
                                didSetError = true;
                                if (error === null && event.colno === 0 && event.lineno === 0) {
                                    isCrossOriginError = true;
                                }
                                if (event.defaultPrevented) {
                                    // Some other error handler has prevented default.
                                    // Browsers silence the error report if this happens.
                                    // We'll remember this to later decide whether to log it or not.
                                    if (error != null && typeof error === 'object') {
                                        try {
                                            error._suppressLogging = true;
                                        }
                                        catch (inner) {
                                            // Ignore.
                                        }
                                    }
                                }
                            }
                            // Create a fake event type.
                            var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
                            // Attach our event handlers
                            window.addEventListener('error', handleWindowError);
                            fakeNode.addEventListener(evtType, callCallback, false);
                            // Synchronously dispatch our fake event. If the user-provided function
                            // errors, it will trigger our global error handler.
                            evt.initEvent(evtType, false, false);
                            fakeNode.dispatchEvent(evt);
                            if (didError) {
                                if (!didSetError) {
                                    // The callback errored, but the error event never fired.
                                    error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
                                }
                                else if (isCrossOriginError) {
                                    error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
                                }
                                this.onError(error);
                            }
                            // Remove our event listeners
                            window.removeEventListener('error', handleWindowError);
                        };
                        invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
                    }
                }
                var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
                // Used by Fiber to simulate a try-catch.
                var hasError = false;
                var caughtError = null;
                // Used by event system to capture/rethrow the first error.
                var hasRethrowError = false;
                var rethrowError = null;
                var reporter = {
                    onError: function (error) {
                        hasError = true;
                        caughtError = error;
                    }
                };
                /**
                 * Call a function while guarding against errors that happens within it.
                 * Returns an error if it throws, otherwise null.
                 *
                 * In production, this is implemented using a try-catch. The reason we don't
                 * use a try-catch directly is so that we can swap out a different
                 * implementation in DEV mode.
                 *
                 * @param {String} name of the guard to use for logging or debugging
                 * @param {Function} func The function to invoke
                 * @param {*} context The context to use when calling the function
                 * @param {...*} args Arguments for function
                 */
                function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
                    hasError = false;
                    caughtError = null;
                    invokeGuardedCallbackImpl$1.apply(reporter, arguments);
                }
                /**
                 * Same as invokeGuardedCallback, but instead of returning an error, it stores
                 * it in a global so it can be rethrown by `rethrowCaughtError` later.
                 * TODO: See if caughtError and rethrowError can be unified.
                 *
                 * @param {String} name of the guard to use for logging or debugging
                 * @param {Function} func The function to invoke
                 * @param {*} context The context to use when calling the function
                 * @param {...*} args Arguments for function
                 */
                function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
                    invokeGuardedCallback.apply(this, arguments);
                    if (hasError) {
                        var error = clearCaughtError();
                        if (!hasRethrowError) {
                            hasRethrowError = true;
                            rethrowError = error;
                        }
                    }
                }
                /**
                 * During execution of guarded functions we will capture the first error which
                 * we will rethrow to be handled by the top level error handler.
                 */
                function rethrowCaughtError() {
                    if (hasRethrowError) {
                        var error = rethrowError;
                        hasRethrowError = false;
                        rethrowError = null;
                        throw error;
                    }
                }
                function hasCaughtError() {
                    return hasError;
                }
                function clearCaughtError() {
                    if (hasError) {
                        var error = caughtError;
                        hasError = false;
                        caughtError = null;
                        return error;
                    }
                    else {
                        invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
                    }
                }
                /**
                 * Injectable ordering of event plugins.
                 */
                var eventPluginOrder = null;
                /**
                 * Injectable mapping from names to event plugin modules.
                 */
                var namesToPlugins = {};
                /**
                 * Recomputes the plugin list using the injected plugins and plugin ordering.
                 *
                 * @private
                 */
                function recomputePluginOrdering() {
                    if (!eventPluginOrder) {
                        // Wait until an `eventPluginOrder` is injected.
                        return;
                    }
                    for (var pluginName in namesToPlugins) {
                        var pluginModule = namesToPlugins[pluginName];
                        var pluginIndex = eventPluginOrder.indexOf(pluginName);
                        !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
                        if (plugins[pluginIndex]) {
                            continue;
                        }
                        !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
                        plugins[pluginIndex] = pluginModule;
                        var publishedEvents = pluginModule.eventTypes;
                        for (var eventName in publishedEvents) {
                            !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
                        }
                    }
                }
                /**
                 * Publishes an event so that it can be dispatched by the supplied plugin.
                 *
                 * @param {object} dispatchConfig Dispatch configuration for the event.
                 * @param {object} PluginModule Plugin publishing the event.
                 * @return {boolean} True if the event was successfully published.
                 * @private
                 */
                function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
                    !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
                    eventNameDispatchConfigs[eventName] = dispatchConfig;
                    var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
                    if (phasedRegistrationNames) {
                        for (var phaseName in phasedRegistrationNames) {
                            if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
                                var phasedRegistrationName = phasedRegistrationNames[phaseName];
                                publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
                            }
                        }
                        return true;
                    }
                    else if (dispatchConfig.registrationName) {
                        publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
                        return true;
                    }
                    return false;
                }
                /**
                 * Publishes a registration name that is used to identify dispatched events.
                 *
                 * @param {string} registrationName Registration name to add.
                 * @param {object} PluginModule Plugin publishing the event.
                 * @private
                 */
                function publishRegistrationName(registrationName, pluginModule, eventName) {
                    !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
                    registrationNameModules[registrationName] = pluginModule;
                    registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
                    {
                        var lowerCasedName = registrationName.toLowerCase();
                        possibleRegistrationNames[lowerCasedName] = registrationName;
                        if (registrationName === 'onDoubleClick') {
                            possibleRegistrationNames.ondblclick = registrationName;
                        }
                    }
                }
                /**
                 * Registers plugins so that they can extract and dispatch events.
                 *
                 * @see {EventPluginHub}
                 */
                /**
                 * Ordered list of injected plugins.
                 */
                var plugins = [];
                /**
                 * Mapping from event name to dispatch config
                 */
                var eventNameDispatchConfigs = {};
                /**
                 * Mapping from registration name to plugin module
                 */
                var registrationNameModules = {};
                /**
                 * Mapping from registration name to event name
                 */
                var registrationNameDependencies = {};
                /**
                 * Mapping from lowercase registration names to the properly cased version,
                 * used to warn in the case of missing event handlers. Available
                 * only in true.
                 * @type {Object}
                 */
                var possibleRegistrationNames = {};
                // Trust the developer to only use possibleRegistrationNames in true
                /**
                 * Injects an ordering of plugins (by plugin name). This allows the ordering
                 * to be decoupled from injection of the actual plugins so that ordering is
                 * always deterministic regardless of packaging, on-the-fly injection, etc.
                 *
                 * @param {array} InjectedEventPluginOrder
                 * @internal
                 * @see {EventPluginHub.injection.injectEventPluginOrder}
                 */
                function injectEventPluginOrder(injectedEventPluginOrder) {
                    !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
                    // Clone the ordering so it cannot be dynamically mutated.
                    eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
                    recomputePluginOrdering();
                }
                /**
                 * Injects plugins to be used by `EventPluginHub`. The plugin names must be
                 * in the ordering injected by `injectEventPluginOrder`.
                 *
                 * Plugins can be injected as part of page initialization or on-the-fly.
                 *
                 * @param {object} injectedNamesToPlugins Map from names to plugin modules.
                 * @internal
                 * @see {EventPluginHub.injection.injectEventPluginsByName}
                 */
                function injectEventPluginsByName(injectedNamesToPlugins) {
                    var isOrderingDirty = false;
                    for (var pluginName in injectedNamesToPlugins) {
                        if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
                            continue;
                        }
                        var pluginModule = injectedNamesToPlugins[pluginName];
                        if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
                            !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
                            namesToPlugins[pluginName] = pluginModule;
                            isOrderingDirty = true;
                        }
                    }
                    if (isOrderingDirty) {
                        recomputePluginOrdering();
                    }
                }
                /**
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var warningWithoutStack = function () { };
                {
                    warningWithoutStack = function (condition, format) {
                        for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
                            args[_key - 2] = arguments[_key];
                        }
                        if (format === undefined) {
                            throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
                        }
                        if (args.length > 8) {
                            // Check before the condition to catch violations early.
                            throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
                        }
                        if (condition) {
                            return;
                        }
                        if (typeof console !== 'undefined') {
                            var _args$map = args.map(function (item) {
                                return '' + item;
                            }), a = _args$map[0], b = _args$map[1], c = _args$map[2], d = _args$map[3], e = _args$map[4], f = _args$map[5], g = _args$map[6], h = _args$map[7];
                            var message = 'Warning: ' + format;
                            // We intentionally don't use spread (or .apply) because it breaks IE9:
                            // https://github.com/facebook/react/issues/13610
                            switch (args.length) {
                                case 0:
                                    console.error(message);
                                    break;
                                case 1:
                                    console.error(message, a);
                                    break;
                                case 2:
                                    console.error(message, a, b);
                                    break;
                                case 3:
                                    console.error(message, a, b, c);
                                    break;
                                case 4:
                                    console.error(message, a, b, c, d);
                                    break;
                                case 5:
                                    console.error(message, a, b, c, d, e);
                                    break;
                                case 6:
                                    console.error(message, a, b, c, d, e, f);
                                    break;
                                case 7:
                                    console.error(message, a, b, c, d, e, f, g);
                                    break;
                                case 8:
                                    console.error(message, a, b, c, d, e, f, g, h);
                                    break;
                                default:
                                    throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
                            }
                        }
                        try {
                            // --- Welcome to debugging React ---
                            // This error was thrown as a convenience so that you can use this stack
                            // to find the callsite that caused this warning to fire.
                            var argIndex = 0;
                            var _message = 'Warning: ' + format.replace(/%s/g, function () {
                                return args[argIndex++];
                            });
                            throw new Error(_message);
                        }
                        catch (x) { }
                    };
                }
                var warningWithoutStack$1 = warningWithoutStack;
                var getFiberCurrentPropsFromNode = null;
                var getInstanceFromNode = null;
                var getNodeFromInstance = null;
                function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
                    getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
                    getInstanceFromNode = getInstanceFromNodeImpl;
                    getNodeFromInstance = getNodeFromInstanceImpl;
                    {
                        !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
                    }
                }
                var validateEventDispatches = void 0;
                {
                    validateEventDispatches = function (event) {
                        var dispatchListeners = event._dispatchListeners;
                        var dispatchInstances = event._dispatchInstances;
                        var listenersIsArr = Array.isArray(dispatchListeners);
                        var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
                        var instancesIsArr = Array.isArray(dispatchInstances);
                        var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
                        !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
                    };
                }
                /**
                 * Dispatch the event to the listener.
                 * @param {SyntheticEvent} event SyntheticEvent to handle
                 * @param {boolean} simulated If the event is simulated (changes exn behavior)
                 * @param {function} listener Application-level callback
                 * @param {*} inst Internal component instance
                 */
                function executeDispatch(event, simulated, listener, inst) {
                    var type = event.type || 'unknown-event';
                    event.currentTarget = getNodeFromInstance(inst);
                    invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
                    event.currentTarget = null;
                }
                /**
                 * Standard/simple iteration through an event's collected dispatches.
                 */
                function executeDispatchesInOrder(event, simulated) {
                    var dispatchListeners = event._dispatchListeners;
                    var dispatchInstances = event._dispatchInstances;
                    {
                        validateEventDispatches(event);
                    }
                    if (Array.isArray(dispatchListeners)) {
                        for (var i = 0; i < dispatchListeners.length; i++) {
                            if (event.isPropagationStopped()) {
                                break;
                            }
                            // Listeners and Instances are two parallel arrays that are always in sync.
                            executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);
                        }
                    }
                    else if (dispatchListeners) {
                        executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
                    }
                    event._dispatchListeners = null;
                    event._dispatchInstances = null;
                }
                /**
                 * @see executeDispatchesInOrderStopAtTrueImpl
                 */
                /**
                 * Execution of a "direct" dispatch - there must be at most one dispatch
                 * accumulated on the event or it is considered an error. It doesn't really make
                 * sense for an event with multiple dispatches (bubbled) to keep track of the
                 * return values at each dispatch execution, but it does tend to make sense when
                 * dealing with "direct" dispatches.
                 *
                 * @return {*} The return value of executing the single dispatch.
                 */
                /**
                 * @param {SyntheticEvent} event
                 * @return {boolean} True iff number of dispatches accumulated is greater than 0.
                 */
                /**
                 * Accumulates items that must not be null or undefined into the first one. This
                 * is used to conserve memory by avoiding array allocations, and thus sacrifices
                 * API cleanness. Since `current` can be null before being passed in and not
                 * null after this function, make sure to assign it back to `current`:
                 *
                 * `a = accumulateInto(a, b);`
                 *
                 * This API should be sparingly used. Try `accumulate` for something cleaner.
                 *
                 * @return {*|array<*>} An accumulation of items.
                 */
                function accumulateInto(current, next) {
                    !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
                    if (current == null) {
                        return next;
                    }
                    // Both are not empty. Warning: Never call x.concat(y) when you are not
                    // certain that x is an Array (x could be a string with concat method).
                    if (Array.isArray(current)) {
                        if (Array.isArray(next)) {
                            current.push.apply(current, next);
                            return current;
                        }
                        current.push(next);
                        return current;
                    }
                    if (Array.isArray(next)) {
                        // A bit too dangerous to mutate `next`.
                        return [current].concat(next);
                    }
                    return [current, next];
                }
                /**
                 * @param {array} arr an "accumulation" of items which is either an Array or
                 * a single item. Useful when paired with the `accumulate` module. This is a
                 * simple utility that allows us to reason about a collection of items, but
                 * handling the case when there is exactly one item (and we do not need to
                 * allocate an array).
                 * @param {function} cb Callback invoked with each element or a collection.
                 * @param {?} [scope] Scope used as `this` in a callback.
                 */
                function forEachAccumulated(arr, cb, scope) {
                    if (Array.isArray(arr)) {
                        arr.forEach(cb, scope);
                    }
                    else if (arr) {
                        cb.call(scope, arr);
                    }
                }
                /**
                 * Internal queue of events that have accumulated their dispatches and are
                 * waiting to have their dispatches executed.
                 */
                var eventQueue = null;
                /**
                 * Dispatches an event and releases it back into the pool, unless persistent.
                 *
                 * @param {?object} event Synthetic event to be dispatched.
                 * @param {boolean} simulated If the event is simulated (changes exn behavior)
                 * @private
                 */
                var executeDispatchesAndRelease = function (event, simulated) {
                    if (event) {
                        executeDispatchesInOrder(event, simulated);
                        if (!event.isPersistent()) {
                            event.constructor.release(event);
                        }
                    }
                };
                var executeDispatchesAndReleaseSimulated = function (e) {
                    return executeDispatchesAndRelease(e, true);
                };
                var executeDispatchesAndReleaseTopLevel = function (e) {
                    return executeDispatchesAndRelease(e, false);
                };
                function isInteractive(tag) {
                    return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
                }
                function shouldPreventMouseEvent(name, type, props) {
                    switch (name) {
                        case 'onClick':
                        case 'onClickCapture':
                        case 'onDoubleClick':
                        case 'onDoubleClickCapture':
                        case 'onMouseDown':
                        case 'onMouseDownCapture':
                        case 'onMouseMove':
                        case 'onMouseMoveCapture':
                        case 'onMouseUp':
                        case 'onMouseUpCapture':
                            return !!(props.disabled && isInteractive(type));
                        default:
                            return false;
                    }
                }
                /**
                 * This is a unified interface for event plugins to be installed and configured.
                 *
                 * Event plugins can implement the following properties:
                 *
                 *   `extractEvents` {function(string, DOMEventTarget, string, object): *}
                 *     Required. When a top-level event is fired, this method is expected to
                 *     extract synthetic events that will in turn be queued and dispatched.
                 *
                 *   `eventTypes` {object}
                 *     Optional, plugins that fire events must publish a mapping of registration
                 *     names that are used to register listeners. Values of this mapping must
                 *     be objects that contain `registrationName` or `phasedRegistrationNames`.
                 *
                 *   `executeDispatch` {function(object, function, string)}
                 *     Optional, allows plugins to override how an event gets dispatched. By
                 *     default, the listener is simply invoked.
                 *
                 * Each plugin that is injected into `EventsPluginHub` is immediately operable.
                 *
                 * @public
                 */
                /**
                 * Methods for injecting dependencies.
                 */
                var injection = {
                    /**
                     * @param {array} InjectedEventPluginOrder
                     * @public
                     */
                    injectEventPluginOrder: injectEventPluginOrder,
                    /**
                     * @param {object} injectedNamesToPlugins Map from names to plugin modules.
                     */
                    injectEventPluginsByName: injectEventPluginsByName
                };
                /**
                 * @param {object} inst The instance, which is the source of events.
                 * @param {string} registrationName Name of listener (e.g. `onClick`).
                 * @return {?function} The stored callback.
                 */
                function getListener(inst, registrationName) {
                    var listener = void 0;
                    // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
                    // live here; needs to be moved to a better place soon
                    var stateNode = inst.stateNode;
                    if (!stateNode) {
                        // Work in progress (ex: onload events in incremental mode).
                        return null;
                    }
                    var props = getFiberCurrentPropsFromNode(stateNode);
                    if (!props) {
                        // Work in progress.
                        return null;
                    }
                    listener = props[registrationName];
                    if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
                        return null;
                    }
                    !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
                    return listener;
                }
                /**
                 * Allows registered plugins an opportunity to extract events from top-level
                 * native browser events.
                 *
                 * @return {*} An accumulation of synthetic events.
                 * @internal
                 */
                function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                    var events = null;
                    for (var i = 0; i < plugins.length; i++) {
                        // Not every plugin in the ordering may be loaded at runtime.
                        var possiblePlugin = plugins[i];
                        if (possiblePlugin) {
                            var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
                            if (extractedEvents) {
                                events = accumulateInto(events, extractedEvents);
                            }
                        }
                    }
                    return events;
                }
                function runEventsInBatch(events, simulated) {
                    if (events !== null) {
                        eventQueue = accumulateInto(eventQueue, events);
                    }
                    // Set `eventQueue` to null before processing it so that we can tell if more
                    // events get enqueued while processing.
                    var processingEventQueue = eventQueue;
                    eventQueue = null;
                    if (!processingEventQueue) {
                        return;
                    }
                    if (simulated) {
                        forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);
                    }
                    else {
                        forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
                    }
                    !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
                    // This would be a good time to rethrow if any of the event handlers threw.
                    rethrowCaughtError();
                }
                function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                    var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
                    runEventsInBatch(events, false);
                }
                var FunctionalComponent = 0;
                var FunctionalComponentLazy = 1;
                var ClassComponent = 2;
                var ClassComponentLazy = 3;
                var IndeterminateComponent = 4; // Before we know whether it is functional or class
                var HostRoot = 5; // Root of a host tree. Could be nested inside another node.
                var HostPortal = 6; // A subtree. Could be an entry point to a different renderer.
                var HostComponent = 7;
                var HostText = 8;
                var Fragment = 9;
                var Mode = 10;
                var ContextConsumer = 11;
                var ContextProvider = 12;
                var ForwardRef = 13;
                var ForwardRefLazy = 14;
                var Profiler = 15;
                var PlaceholderComponent = 16;
                var randomKey = Math.random().toString(36).slice(2);
                var internalInstanceKey = '__reactInternalInstance$' + randomKey;
                var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
                function precacheFiberNode(hostInst, node) {
                    node[internalInstanceKey] = hostInst;
                }
                /**
                 * Given a DOM node, return the closest ReactDOMComponent or
                 * ReactDOMTextComponent instance ancestor.
                 */
                function getClosestInstanceFromNode(node) {
                    if (node[internalInstanceKey]) {
                        return node[internalInstanceKey];
                    }
                    while (!node[internalInstanceKey]) {
                        if (node.parentNode) {
                            node = node.parentNode;
                        }
                        else {
                            // Top of the tree. This node must not be part of a React tree (or is
                            // unmounted, potentially).
                            return null;
                        }
                    }
                    var inst = node[internalInstanceKey];
                    if (inst.tag === HostComponent || inst.tag === HostText) {
                        // In Fiber, this will always be the deepest root.
                        return inst;
                    }
                    return null;
                }
                /**
                 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
                 * instance, or null if the node was not rendered by this React.
                 */
                function getInstanceFromNode$1(node) {
                    var inst = node[internalInstanceKey];
                    if (inst) {
                        if (inst.tag === HostComponent || inst.tag === HostText) {
                            return inst;
                        }
                        else {
                            return null;
                        }
                    }
                    return null;
                }
                /**
                 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
                 * DOM node.
                 */
                function getNodeFromInstance$1(inst) {
                    if (inst.tag === HostComponent || inst.tag === HostText) {
                        // In Fiber this, is just the state node right now. We assume it will be
                        // a host component or host text.
                        return inst.stateNode;
                    }
                    // Without this first invariant, passing a non-DOM-component triggers the next
                    // invariant for a missing parent, which is super confusing.
                    invariant(false, 'getNodeFromInstance: Invalid argument.');
                }
                function getFiberCurrentPropsFromNode$1(node) {
                    return node[internalEventHandlersKey] || null;
                }
                function updateFiberProps(node, props) {
                    node[internalEventHandlersKey] = props;
                }
                function getParent(inst) {
                    do {
                        inst = inst.return;
                        // TODO: If this is a HostRoot we might want to bail out.
                        // That is depending on if we want nested subtrees (layers) to bubble
                        // events to their parent. We could also go through parentNode on the
                        // host node but that wouldn't work for React Native and doesn't let us
                        // do the portal feature.
                    } while (inst && inst.tag !== HostComponent);
                    if (inst) {
                        return inst;
                    }
                    return null;
                }
                /**
                 * Return the lowest common ancestor of A and B, or null if they are in
                 * different trees.
                 */
                function getLowestCommonAncestor(instA, instB) {
                    var depthA = 0;
                    for (var tempA = instA; tempA; tempA = getParent(tempA)) {
                        depthA++;
                    }
                    var depthB = 0;
                    for (var tempB = instB; tempB; tempB = getParent(tempB)) {
                        depthB++;
                    }
                    // If A is deeper, crawl up.
                    while (depthA - depthB > 0) {
                        instA = getParent(instA);
                        depthA--;
                    }
                    // If B is deeper, crawl up.
                    while (depthB - depthA > 0) {
                        instB = getParent(instB);
                        depthB--;
                    }
                    // Walk in lockstep until we find a match.
                    var depth = depthA;
                    while (depth--) {
                        if (instA === instB || instA === instB.alternate) {
                            return instA;
                        }
                        instA = getParent(instA);
                        instB = getParent(instB);
                    }
                    return null;
                }
                /**
                 * Return if A is an ancestor of B.
                 */
                /**
                 * Return the parent instance of the passed-in instance.
                 */
                /**
                 * Simulates the traversal of a two-phase, capture/bubble event dispatch.
                 */
                function traverseTwoPhase(inst, fn, arg) {
                    var path = [];
                    while (inst) {
                        path.push(inst);
                        inst = getParent(inst);
                    }
                    var i = void 0;
                    for (i = path.length; i-- > 0;) {
                        fn(path[i], 'captured', arg);
                    }
                    for (i = 0; i < path.length; i++) {
                        fn(path[i], 'bubbled', arg);
                    }
                }
                /**
                 * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
                 * should would receive a `mouseEnter` or `mouseLeave` event.
                 *
                 * Does not invoke the callback on the nearest common ancestor because nothing
                 * "entered" or "left" that element.
                 */
                function traverseEnterLeave(from, to, fn, argFrom, argTo) {
                    var common = from && to ? getLowestCommonAncestor(from, to) : null;
                    var pathFrom = [];
                    while (true) {
                        if (!from) {
                            break;
                        }
                        if (from === common) {
                            break;
                        }
                        var alternate = from.alternate;
                        if (alternate !== null && alternate === common) {
                            break;
                        }
                        pathFrom.push(from);
                        from = getParent(from);
                    }
                    var pathTo = [];
                    while (true) {
                        if (!to) {
                            break;
                        }
                        if (to === common) {
                            break;
                        }
                        var _alternate = to.alternate;
                        if (_alternate !== null && _alternate === common) {
                            break;
                        }
                        pathTo.push(to);
                        to = getParent(to);
                    }
                    for (var i = 0; i < pathFrom.length; i++) {
                        fn(pathFrom[i], 'bubbled', argFrom);
                    }
                    for (var _i = pathTo.length; _i-- > 0;) {
                        fn(pathTo[_i], 'captured', argTo);
                    }
                }
                /**
                 * Some event types have a notion of different registration names for different
                 * "phases" of propagation. This finds listeners by a given phase.
                 */
                function listenerAtPhase(inst, event, propagationPhase) {
                    var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
                    return getListener(inst, registrationName);
                }
                /**
                 * A small set of propagation patterns, each of which will accept a small amount
                 * of information, and generate a set of "dispatch ready event objects" - which
                 * are sets of events that have already been annotated with a set of dispatched
                 * listener functions/ids. The API is designed this way to discourage these
                 * propagation strategies from actually executing the dispatches, since we
                 * always want to collect the entire set of dispatches before executing even a
                 * single one.
                 */
                /**
                 * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
                 * here, allows us to not have to bind or create functions for each event.
                 * Mutating the event's members allows us to not have to create a wrapping
                 * "dispatch" object that pairs the event with the listener.
                 */
                function accumulateDirectionalDispatches(inst, phase, event) {
                    {
                        !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
                    }
                    var listener = listenerAtPhase(inst, event, phase);
                    if (listener) {
                        event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
                        event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
                    }
                }
                /**
                 * Collect dispatches (must be entirely collected before dispatching - see unit
                 * tests). Lazily allocate the array to conserve memory.  We must loop through
                 * each event and perform the traversal for each one. We cannot perform a
                 * single traversal for the entire collection of events because each event may
                 * have a different target.
                 */
                function accumulateTwoPhaseDispatchesSingle(event) {
                    if (event && event.dispatchConfig.phasedRegistrationNames) {
                        traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
                    }
                }
                /**
                 * Accumulates without regard to direction, does not look for phased
                 * registration names. Same as `accumulateDirectDispatchesSingle` but without
                 * requiring that the `dispatchMarker` be the same as the dispatched ID.
                 */
                function accumulateDispatches(inst, ignoredDirection, event) {
                    if (inst && event && event.dispatchConfig.registrationName) {
                        var registrationName = event.dispatchConfig.registrationName;
                        var listener = getListener(inst, registrationName);
                        if (listener) {
                            event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
                            event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
                        }
                    }
                }
                /**
                 * Accumulates dispatches on an `SyntheticEvent`, but only for the
                 * `dispatchMarker`.
                 * @param {SyntheticEvent} event
                 */
                function accumulateDirectDispatchesSingle(event) {
                    if (event && event.dispatchConfig.registrationName) {
                        accumulateDispatches(event._targetInst, null, event);
                    }
                }
                function accumulateTwoPhaseDispatches(events) {
                    forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
                }
                function accumulateEnterLeaveDispatches(leave, enter, from, to) {
                    traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
                }
                function accumulateDirectDispatches(events) {
                    forEachAccumulated(events, accumulateDirectDispatchesSingle);
                }
                var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
                // Do not uses the below two methods directly!
                // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
                // (It is the only module that is allowed to access these methods.)
                function unsafeCastStringToDOMTopLevelType(topLevelType) {
                    return topLevelType;
                }
                function unsafeCastDOMTopLevelTypeToString(topLevelType) {
                    return topLevelType;
                }
                /**
                 * Generate a mapping of standard vendor prefixes using the defined style property and event name.
                 *
                 * @param {string} styleProp
                 * @param {string} eventName
                 * @returns {object}
                 */
                function makePrefixMap(styleProp, eventName) {
                    var prefixes = {};
                    prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
                    prefixes['Webkit' + styleProp] = 'webkit' + eventName;
                    prefixes['Moz' + styleProp] = 'moz' + eventName;
                    return prefixes;
                }
                /**
                 * A list of event names to a configurable list of vendor prefixes.
                 */
                var vendorPrefixes = {
                    animationend: makePrefixMap('Animation', 'AnimationEnd'),
                    animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
                    animationstart: makePrefixMap('Animation', 'AnimationStart'),
                    transitionend: makePrefixMap('Transition', 'TransitionEnd')
                };
                /**
                 * Event names that have already been detected and prefixed (if applicable).
                 */
                var prefixedEventNames = {};
                /**
                 * Element to check for prefixes on.
                 */
                var style = {};
                /**
                 * Bootstrap if a DOM exists.
                 */
                if (canUseDOM) {
                    style = document.createElement('div').style;
                    // On some platforms, in particular some releases of Android 4.x,
                    // the un-prefixed "animation" and "transition" properties are defined on the
                    // style object but the events that fire will still be prefixed, so we need
                    // to check if the un-prefixed events are usable, and if not remove them from the map.
                    if (!('AnimationEvent' in window)) {
                        delete vendorPrefixes.animationend.animation;
                        delete vendorPrefixes.animationiteration.animation;
                        delete vendorPrefixes.animationstart.animation;
                    }
                    // Same as above
                    if (!('TransitionEvent' in window)) {
                        delete vendorPrefixes.transitionend.transition;
                    }
                }
                /**
                 * Attempts to determine the correct vendor prefixed event name.
                 *
                 * @param {string} eventName
                 * @returns {string}
                 */
                function getVendorPrefixedEventName(eventName) {
                    if (prefixedEventNames[eventName]) {
                        return prefixedEventNames[eventName];
                    }
                    else if (!vendorPrefixes[eventName]) {
                        return eventName;
                    }
                    var prefixMap = vendorPrefixes[eventName];
                    for (var styleProp in prefixMap) {
                        if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
                            return prefixedEventNames[eventName] = prefixMap[styleProp];
                        }
                    }
                    return eventName;
                }
                /**
                 * To identify top level events in ReactDOM, we use constants defined by this
                 * module. This is the only module that uses the unsafe* methods to express
                 * that the constants actually correspond to the browser event names. This lets
                 * us save some bundle size by avoiding a top level type -> event name map.
                 * The rest of ReactDOM code should import top level types from this file.
                 */
                var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
                var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
                var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
                var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
                var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
                var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
                var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
                var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
                var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
                var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
                var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
                var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
                var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
                var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
                var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
                var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
                var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
                var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
                var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
                var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
                var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
                var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
                var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
                var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
                var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
                var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
                var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
                var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
                var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
                var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
                var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
                var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
                var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
                var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
                var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
                var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
                var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
                var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
                var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
                var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
                var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
                var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
                var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
                var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
                var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
                var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
                var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
                var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
                var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
                var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
                var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
                var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
                var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
                var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
                var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
                var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
                var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
                var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
                var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
                var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
                var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
                var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
                var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
                var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
                var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
                var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
                var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
                var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
                var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
                var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
                var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
                var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
                var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
                var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
                var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
                var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
                var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
                var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
                var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
                var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
                // List of events that need to be individually attached to media elements.
                // Note that events in this list will *not* be listened to at the top level
                // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
                var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
                function getRawEventName(topLevelType) {
                    return unsafeCastDOMTopLevelTypeToString(topLevelType);
                }
                /**
                 * These variables store information about text content of a target node,
                 * allowing comparison of content before and after a given event.
                 *
                 * Identify the node where selection currently begins, then observe
                 * both its text content and its current position in the DOM. Since the
                 * browser may natively replace the target node during composition, we can
                 * use its position to find its replacement.
                 *
                 *
                 */
                var root = null;
                var startText = null;
                var fallbackText = null;
                function initialize(nativeEventTarget) {
                    root = nativeEventTarget;
                    startText = getText();
                    return true;
                }
                function reset() {
                    root = null;
                    startText = null;
                    fallbackText = null;
                }
                function getData() {
                    if (fallbackText) {
                        return fallbackText;
                    }
                    var start = void 0;
                    var startValue = startText;
                    var startLength = startValue.length;
                    var end = void 0;
                    var endValue = getText();
                    var endLength = endValue.length;
                    for (start = 0; start < startLength; start++) {
                        if (startValue[start] !== endValue[start]) {
                            break;
                        }
                    }
                    var minEnd = startLength - start;
                    for (end = 1; end <= minEnd; end++) {
                        if (startValue[startLength - end] !== endValue[endLength - end]) {
                            break;
                        }
                    }
                    var sliceTail = end > 1 ? 1 - end : undefined;
                    fallbackText = endValue.slice(start, sliceTail);
                    return fallbackText;
                }
                function getText() {
                    if ('value' in root) {
                        return root.value;
                    }
                    return root.textContent;
                }
                /* eslint valid-typeof: 0 */
                var EVENT_POOL_SIZE = 10;
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var EventInterface = {
                    type: null,
                    target: null,
                    // currentTarget is set when dispatching; no use in copying it here
                    currentTarget: function () {
                        return null;
                    },
                    eventPhase: null,
                    bubbles: null,
                    cancelable: null,
                    timeStamp: function (event) {
                        return event.timeStamp || Date.now();
                    },
                    defaultPrevented: null,
                    isTrusted: null
                };
                function functionThatReturnsTrue() {
                    return true;
                }
                function functionThatReturnsFalse() {
                    return false;
                }
                /**
                 * Synthetic events are dispatched by event plugins, typically in response to a
                 * top-level event delegation handler.
                 *
                 * These systems should generally use pooling to reduce the frequency of garbage
                 * collection. The system should check `isPersistent` to determine whether the
                 * event should be released into the pool after being dispatched. Users that
                 * need a persisted event should invoke `persist`.
                 *
                 * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
                 * normalizing browser quirks. Subclasses do not necessarily have to implement a
                 * DOM interface; custom application-specific events can also subclass this.
                 *
                 * @param {object} dispatchConfig Configuration used to dispatch this event.
                 * @param {*} targetInst Marker identifying the event target.
                 * @param {object} nativeEvent Native browser event.
                 * @param {DOMEventTarget} nativeEventTarget Target node.
                 */
                function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
                    {
                        // these have a getter/setter for warnings
                        delete this.nativeEvent;
                        delete this.preventDefault;
                        delete this.stopPropagation;
                        delete this.isDefaultPrevented;
                        delete this.isPropagationStopped;
                    }
                    this.dispatchConfig = dispatchConfig;
                    this._targetInst = targetInst;
                    this.nativeEvent = nativeEvent;
                    var Interface = this.constructor.Interface;
                    for (var propName in Interface) {
                        if (!Interface.hasOwnProperty(propName)) {
                            continue;
                        }
                        {
                            delete this[propName]; // this has a getter/setter for warnings
                        }
                        var normalize = Interface[propName];
                        if (normalize) {
                            this[propName] = normalize(nativeEvent);
                        }
                        else {
                            if (propName === 'target') {
                                this.target = nativeEventTarget;
                            }
                            else {
                                this[propName] = nativeEvent[propName];
                            }
                        }
                    }
                    var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
                    if (defaultPrevented) {
                        this.isDefaultPrevented = functionThatReturnsTrue;
                    }
                    else {
                        this.isDefaultPrevented = functionThatReturnsFalse;
                    }
                    this.isPropagationStopped = functionThatReturnsFalse;
                    return this;
                }
                _assign(SyntheticEvent.prototype, {
                    preventDefault: function () {
                        this.defaultPrevented = true;
                        var event = this.nativeEvent;
                        if (!event) {
                            return;
                        }
                        if (event.preventDefault) {
                            event.preventDefault();
                        }
                        else if (typeof event.returnValue !== 'unknown') {
                            event.returnValue = false;
                        }
                        this.isDefaultPrevented = functionThatReturnsTrue;
                    },
                    stopPropagation: function () {
                        var event = this.nativeEvent;
                        if (!event) {
                            return;
                        }
                        if (event.stopPropagation) {
                            event.stopPropagation();
                        }
                        else if (typeof event.cancelBubble !== 'unknown') {
                            // The ChangeEventPlugin registers a "propertychange" event for
                            // IE. This event does not support bubbling or cancelling, and
                            // any references to cancelBubble throw "Member not found".  A
                            // typeof check of "unknown" circumvents this issue (and is also
                            // IE specific).
                            event.cancelBubble = true;
                        }
                        this.isPropagationStopped = functionThatReturnsTrue;
                    },
                    /**
                     * We release all dispatched `SyntheticEvent`s after each event loop, adding
                     * them back into the pool. This allows a way to hold onto a reference that
                     * won't be added back into the pool.
                     */
                    persist: function () {
                        this.isPersistent = functionThatReturnsTrue;
                    },
                    /**
                     * Checks if this event should be released back into the pool.
                     *
                     * @return {boolean} True if this should not be released, false otherwise.
                     */
                    isPersistent: functionThatReturnsFalse,
                    /**
                     * `PooledClass` looks for `destructor` on each instance it releases.
                     */
                    destructor: function () {
                        var Interface = this.constructor.Interface;
                        for (var propName in Interface) {
                            {
                                Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
                            }
                        }
                        this.dispatchConfig = null;
                        this._targetInst = null;
                        this.nativeEvent = null;
                        this.isDefaultPrevented = functionThatReturnsFalse;
                        this.isPropagationStopped = functionThatReturnsFalse;
                        this._dispatchListeners = null;
                        this._dispatchInstances = null;
                        {
                            Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
                            Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
                            Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
                            Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () { }));
                            Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () { }));
                        }
                    }
                });
                SyntheticEvent.Interface = EventInterface;
                /**
                 * Helper to reduce boilerplate when creating subclasses.
                 */
                SyntheticEvent.extend = function (Interface) {
                    var Super = this;
                    var E = function () { };
                    E.prototype = Super.prototype;
                    var prototype = new E();
                    function Class() {
                        return Super.apply(this, arguments);
                    }
                    _assign(prototype, Class.prototype);
                    Class.prototype = prototype;
                    Class.prototype.constructor = Class;
                    Class.Interface = _assign({}, Super.Interface, Interface);
                    Class.extend = Super.extend;
                    addEventPoolingTo(Class);
                    return Class;
                };
                addEventPoolingTo(SyntheticEvent);
                /**
                 * Helper to nullify syntheticEvent instance properties when destructing
                 *
                 * @param {String} propName
                 * @param {?object} getVal
                 * @return {object} defineProperty object
                 */
                function getPooledWarningPropertyDefinition(propName, getVal) {
                    var isFunction = typeof getVal === 'function';
                    return {
                        configurable: true,
                        set: set,
                        get: get
                    };
                    function set(val) {
                        var action = isFunction ? 'setting the method' : 'setting the property';
                        warn(action, 'This is effectively a no-op');
                        return val;
                    }
                    function get() {
                        var action = isFunction ? 'accessing the method' : 'accessing the property';
                        var result = isFunction ? 'This is a no-op function' : 'This is set to null';
                        warn(action, result);
                        return getVal;
                    }
                    function warn(action, result) {
                        var warningCondition = false;
                        !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
                    }
                }
                function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
                    var EventConstructor = this;
                    if (EventConstructor.eventPool.length) {
                        var instance = EventConstructor.eventPool.pop();
                        EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
                        return instance;
                    }
                    return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
                }
                function releasePooledEvent(event) {
                    var EventConstructor = this;
                    !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
                    event.destructor();
                    if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
                        EventConstructor.eventPool.push(event);
                    }
                }
                function addEventPoolingTo(EventConstructor) {
                    EventConstructor.eventPool = [];
                    EventConstructor.getPooled = getPooledEvent;
                    EventConstructor.release = releasePooledEvent;
                }
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
                 */
                var SyntheticCompositionEvent = SyntheticEvent.extend({
                    data: null
                });
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
                 *      /#events-inputevents
                 */
                var SyntheticInputEvent = SyntheticEvent.extend({
                    data: null
                });
                var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
                var START_KEYCODE = 229;
                var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
                var documentMode = null;
                if (canUseDOM && 'documentMode' in document) {
                    documentMode = document.documentMode;
                }
                // Webkit offers a very useful `textInput` event that can be used to
                // directly represent `beforeInput`. The IE `textinput` event is not as
                // useful, so we don't use it.
                var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
                // In IE9+, we have access to composition events, but the data supplied
                // by the native compositionend event may be incorrect. Japanese ideographic
                // spaces, for instance (\u3000) are not recorded correctly.
                var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
                var SPACEBAR_CODE = 32;
                var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
                // Events and their corresponding property names.
                var eventTypes = {
                    beforeInput: {
                        phasedRegistrationNames: {
                            bubbled: 'onBeforeInput',
                            captured: 'onBeforeInputCapture'
                        },
                        dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
                    },
                    compositionEnd: {
                        phasedRegistrationNames: {
                            bubbled: 'onCompositionEnd',
                            captured: 'onCompositionEndCapture'
                        },
                        dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
                    },
                    compositionStart: {
                        phasedRegistrationNames: {
                            bubbled: 'onCompositionStart',
                            captured: 'onCompositionStartCapture'
                        },
                        dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
                    },
                    compositionUpdate: {
                        phasedRegistrationNames: {
                            bubbled: 'onCompositionUpdate',
                            captured: 'onCompositionUpdateCapture'
                        },
                        dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
                    }
                };
                // Track whether we've ever handled a keypress on the space key.
                var hasSpaceKeypress = false;
                /**
                 * Return whether a native keypress event is assumed to be a command.
                 * This is required because Firefox fires `keypress` events for key commands
                 * (cut, copy, select-all, etc.) even though no character is inserted.
                 */
                function isKeypressCommand(nativeEvent) {
                    return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
                        // ctrlKey && altKey is equivalent to AltGr, and is not a command.
                        !(nativeEvent.ctrlKey && nativeEvent.altKey);
                }
                /**
                 * Translate native top level events into event types.
                 *
                 * @param {string} topLevelType
                 * @return {object}
                 */
                function getCompositionEventType(topLevelType) {
                    switch (topLevelType) {
                        case TOP_COMPOSITION_START:
                            return eventTypes.compositionStart;
                        case TOP_COMPOSITION_END:
                            return eventTypes.compositionEnd;
                        case TOP_COMPOSITION_UPDATE:
                            return eventTypes.compositionUpdate;
                    }
                }
                /**
                 * Does our fallback best-guess model think this event signifies that
                 * composition has begun?
                 *
                 * @param {string} topLevelType
                 * @param {object} nativeEvent
                 * @return {boolean}
                 */
                function isFallbackCompositionStart(topLevelType, nativeEvent) {
                    return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
                }
                /**
                 * Does our fallback mode think that this event is the end of composition?
                 *
                 * @param {string} topLevelType
                 * @param {object} nativeEvent
                 * @return {boolean}
                 */
                function isFallbackCompositionEnd(topLevelType, nativeEvent) {
                    switch (topLevelType) {
                        case TOP_KEY_UP:
                            // Command keys insert or clear IME input.
                            return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
                        case TOP_KEY_DOWN:
                            // Expect IME keyCode on each keydown. If we get any other
                            // code we must have exited earlier.
                            return nativeEvent.keyCode !== START_KEYCODE;
                        case TOP_KEY_PRESS:
                        case TOP_MOUSE_DOWN:
                        case TOP_BLUR:
                            // Events are not possible without cancelling IME.
                            return true;
                        default:
                            return false;
                    }
                }
                /**
                 * Google Input Tools provides composition data via a CustomEvent,
                 * with the `data` property populated in the `detail` object. If this
                 * is available on the event object, use it. If not, this is a plain
                 * composition event and we have nothing special to extract.
                 *
                 * @param {object} nativeEvent
                 * @return {?string}
                 */
                function getDataFromCustomEvent(nativeEvent) {
                    var detail = nativeEvent.detail;
                    if (typeof detail === 'object' && 'data' in detail) {
                        return detail.data;
                    }
                    return null;
                }
                /**
                 * Check if a composition event was triggered by Korean IME.
                 * Our fallback mode does not work well with IE's Korean IME,
                 * so just use native composition events when Korean IME is used.
                 * Although CompositionEvent.locale property is deprecated,
                 * it is available in IE, where our fallback mode is enabled.
                 *
                 * @param {object} nativeEvent
                 * @return {boolean}
                 */
                function isUsingKoreanIME(nativeEvent) {
                    return nativeEvent.locale === 'ko';
                }
                // Track the current IME composition status, if any.
                var isComposing = false;
                /**
                 * @return {?object} A SyntheticCompositionEvent.
                 */
                function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                    var eventType = void 0;
                    var fallbackData = void 0;
                    if (canUseCompositionEvent) {
                        eventType = getCompositionEventType(topLevelType);
                    }
                    else if (!isComposing) {
                        if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
                            eventType = eventTypes.compositionStart;
                        }
                    }
                    else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
                        eventType = eventTypes.compositionEnd;
                    }
                    if (!eventType) {
                        return null;
                    }
                    if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
                        // The current composition is stored statically and must not be
                        // overwritten while composition continues.
                        if (!isComposing && eventType === eventTypes.compositionStart) {
                            isComposing = initialize(nativeEventTarget);
                        }
                        else if (eventType === eventTypes.compositionEnd) {
                            if (isComposing) {
                                fallbackData = getData();
                            }
                        }
                    }
                    var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
                    if (fallbackData) {
                        // Inject data generated from fallback path into the synthetic event.
                        // This matches the property of native CompositionEventInterface.
                        event.data = fallbackData;
                    }
                    else {
                        var customData = getDataFromCustomEvent(nativeEvent);
                        if (customData !== null) {
                            event.data = customData;
                        }
                    }
                    accumulateTwoPhaseDispatches(event);
                    return event;
                }
                /**
                 * @param {TopLevelType} topLevelType Number from `TopLevelType`.
                 * @param {object} nativeEvent Native browser event.
                 * @return {?string} The string corresponding to this `beforeInput` event.
                 */
                function getNativeBeforeInputChars(topLevelType, nativeEvent) {
                    switch (topLevelType) {
                        case TOP_COMPOSITION_END:
                            return getDataFromCustomEvent(nativeEvent);
                        case TOP_KEY_PRESS:
                            /**
                             * If native `textInput` events are available, our goal is to make
                             * use of them. However, there is a special case: the spacebar key.
                             * In Webkit, preventing default on a spacebar `textInput` event
                             * cancels character insertion, but it *also* causes the browser
                             * to fall back to its default spacebar behavior of scrolling the
                             * page.
                             *
                             * Tracking at:
                             * https://code.google.com/p/chromium/issues/detail?id=355103
                             *
                             * To avoid this issue, use the keypress event as if no `textInput`
                             * event is available.
                             */
                            var which = nativeEvent.which;
                            if (which !== SPACEBAR_CODE) {
                                return null;
                            }
                            hasSpaceKeypress = true;
                            return SPACEBAR_CHAR;
                        case TOP_TEXT_INPUT:
                            // Record the characters to be added to the DOM.
                            var chars = nativeEvent.data;
                            // If it's a spacebar character, assume that we have already handled
                            // it at the keypress level and bail immediately. Android Chrome
                            // doesn't give us keycodes, so we need to ignore it.
                            if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
                                return null;
                            }
                            return chars;
                        default:
                            // For other native event types, do nothing.
                            return null;
                    }
                }
                /**
                 * For browsers that do not provide the `textInput` event, extract the
                 * appropriate string to use for SyntheticInputEvent.
                 *
                 * @param {number} topLevelType Number from `TopLevelEventTypes`.
                 * @param {object} nativeEvent Native browser event.
                 * @return {?string} The fallback string for this `beforeInput` event.
                 */
                function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
                    // If we are currently composing (IME) and using a fallback to do so,
                    // try to extract the composed characters from the fallback object.
                    // If composition event is available, we extract a string only at
                    // compositionevent, otherwise extract it at fallback events.
                    if (isComposing) {
                        if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
                            var chars = getData();
                            reset();
                            isComposing = false;
                            return chars;
                        }
                        return null;
                    }
                    switch (topLevelType) {
                        case TOP_PASTE:
                            // If a paste event occurs after a keypress, throw out the input
                            // chars. Paste events should not lead to BeforeInput events.
                            return null;
                        case TOP_KEY_PRESS:
                            /**
                             * As of v27, Firefox may fire keypress events even when no character
                             * will be inserted. A few possibilities:
                             *
                             * - `which` is `0`. Arrow keys, Esc key, etc.
                             *
                             * - `which` is the pressed key code, but no char is available.
                             *   Ex: 'AltGr + d` in Polish. There is no modified character for
                             *   this key combination and no character is inserted into the
                             *   document, but FF fires the keypress for char code `100` anyway.
                             *   No `input` event will occur.
                             *
                             * - `which` is the pressed key code, but a command combination is
                             *   being used. Ex: `Cmd+C`. No character is inserted, and no
                             *   `input` event will occur.
                             */
                            if (!isKeypressCommand(nativeEvent)) {
                                // IE fires the `keypress` event when a user types an emoji via
                                // Touch keyboard of Windows.  In such a case, the `char` property
                                // holds an emoji character like `\uD83D\uDE0A`.  Because its length
                                // is 2, the property `which` does not represent an emoji correctly.
                                // In such a case, we directly return the `char` property instead of
                                // using `which`.
                                if (nativeEvent.char && nativeEvent.char.length > 1) {
                                    return nativeEvent.char;
                                }
                                else if (nativeEvent.which) {
                                    return String.fromCharCode(nativeEvent.which);
                                }
                            }
                            return null;
                        case TOP_COMPOSITION_END:
                            return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
                        default:
                            return null;
                    }
                }
                /**
                 * Extract a SyntheticInputEvent for `beforeInput`, based on either native
                 * `textInput` or fallback behavior.
                 *
                 * @return {?object} A SyntheticInputEvent.
                 */
                function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                    var chars = void 0;
                    if (canUseTextInputEvent) {
                        chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
                    }
                    else {
                        chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
                    }
                    // If no characters are being inserted, no BeforeInput event should
                    // be fired.
                    if (!chars) {
                        return null;
                    }
                    var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
                    event.data = chars;
                    accumulateTwoPhaseDispatches(event);
                    return event;
                }
                /**
                 * Create an `onBeforeInput` event to match
                 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
                 *
                 * This event plugin is based on the native `textInput` event
                 * available in Chrome, Safari, Opera, and IE. This event fires after
                 * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
                 *
                 * `beforeInput` is spec'd but not implemented in any browsers, and
                 * the `input` event does not provide any useful information about what has
                 * actually been added, contrary to the spec. Thus, `textInput` is the best
                 * available event to identify the characters that have actually been inserted
                 * into the target node.
                 *
                 * This plugin is also responsible for emitting `composition` events, thus
                 * allowing us to share composition fallback code for both `beforeInput` and
                 * `composition` event types.
                 */
                var BeforeInputEventPlugin = {
                    eventTypes: eventTypes,
                    extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                        var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
                        var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
                        if (composition === null) {
                            return beforeInput;
                        }
                        if (beforeInput === null) {
                            return composition;
                        }
                        return [composition, beforeInput];
                    }
                };
                // Use to restore controlled state after a change event has fired.
                var restoreImpl = null;
                var restoreTarget = null;
                var restoreQueue = null;
                function restoreStateOfTarget(target) {
                    // We perform this translation at the end of the event loop so that we
                    // always receive the correct fiber here
                    var internalInstance = getInstanceFromNode(target);
                    if (!internalInstance) {
                        // Unmounted
                        return;
                    }
                    !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
                    restoreImpl(internalInstance.stateNode, internalInstance.type, props);
                }
                function setRestoreImplementation(impl) {
                    restoreImpl = impl;
                }
                function enqueueStateRestore(target) {
                    if (restoreTarget) {
                        if (restoreQueue) {
                            restoreQueue.push(target);
                        }
                        else {
                            restoreQueue = [target];
                        }
                    }
                    else {
                        restoreTarget = target;
                    }
                }
                function needsStateRestore() {
                    return restoreTarget !== null || restoreQueue !== null;
                }
                function restoreStateIfNeeded() {
                    if (!restoreTarget) {
                        return;
                    }
                    var target = restoreTarget;
                    var queuedTargets = restoreQueue;
                    restoreTarget = null;
                    restoreQueue = null;
                    restoreStateOfTarget(target);
                    if (queuedTargets) {
                        for (var i = 0; i < queuedTargets.length; i++) {
                            restoreStateOfTarget(queuedTargets[i]);
                        }
                    }
                }
                // Used as a way to call batchedUpdates when we don't have a reference to
                // the renderer. Such as when we're dispatching events or if third party
                // libraries need to call batchedUpdates. Eventually, this API will go away when
                // everything is batched by default. We'll then have a similar API to opt-out of
                // scheduled work and instead do synchronous work.
                // Defaults
                var _batchedUpdatesImpl = function (fn, bookkeeping) {
                    return fn(bookkeeping);
                };
                var _interactiveUpdatesImpl = function (fn, a, b) {
                    return fn(a, b);
                };
                var _flushInteractiveUpdatesImpl = function () { };
                var isBatching = false;
                function batchedUpdates(fn, bookkeeping) {
                    if (isBatching) {
                        // If we are currently inside another batch, we need to wait until it
                        // fully completes before restoring state.
                        return fn(bookkeeping);
                    }
                    isBatching = true;
                    try {
                        return _batchedUpdatesImpl(fn, bookkeeping);
                    }
                    finally {
                        // Here we wait until all updates have propagated, which is important
                        // when using controlled components within layers:
                        // https://github.com/facebook/react/issues/1698
                        // Then we restore state of any controlled component.
                        isBatching = false;
                        var controlledComponentsHavePendingUpdates = needsStateRestore();
                        if (controlledComponentsHavePendingUpdates) {
                            // If a controlled event was fired, we may need to restore the state of
                            // the DOM node back to the controlled value. This is necessary when React
                            // bails out of the update without touching the DOM.
                            _flushInteractiveUpdatesImpl();
                            restoreStateIfNeeded();
                        }
                    }
                }
                function interactiveUpdates(fn, a, b) {
                    return _interactiveUpdatesImpl(fn, a, b);
                }
                function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
                    _batchedUpdatesImpl = batchedUpdatesImpl;
                    _interactiveUpdatesImpl = interactiveUpdatesImpl;
                    _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
                }
                /**
                 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
                 */
                var supportedInputTypes = {
                    color: true,
                    date: true,
                    datetime: true,
                    'datetime-local': true,
                    email: true,
                    month: true,
                    number: true,
                    password: true,
                    range: true,
                    search: true,
                    tel: true,
                    text: true,
                    time: true,
                    url: true,
                    week: true
                };
                function isTextInputElement(elem) {
                    var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
                    if (nodeName === 'input') {
                        return !!supportedInputTypes[elem.type];
                    }
                    if (nodeName === 'textarea') {
                        return true;
                    }
                    return false;
                }
                /**
                 * HTML nodeType values that represent the type of the node
                 */
                var ELEMENT_NODE = 1;
                var TEXT_NODE = 3;
                var COMMENT_NODE = 8;
                var DOCUMENT_NODE = 9;
                var DOCUMENT_FRAGMENT_NODE = 11;
                /**
                 * Gets the target node from a native browser event by accounting for
                 * inconsistencies in browser DOM APIs.
                 *
                 * @param {object} nativeEvent Native browser event.
                 * @return {DOMEventTarget} Target node.
                 */
                function getEventTarget(nativeEvent) {
                    // Fallback to nativeEvent.srcElement for IE9
                    // https://github.com/facebook/react/issues/12506
                    var target = nativeEvent.target || nativeEvent.srcElement || window;
                    // Normalize SVG <use> element events #4963
                    if (target.correspondingUseElement) {
                        target = target.correspondingUseElement;
                    }
                    // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
                    // @see http://www.quirksmode.org/js/events_properties.html
                    return target.nodeType === TEXT_NODE ? target.parentNode : target;
                }
                /**
                 * Checks if an event is supported in the current execution environment.
                 *
                 * NOTE: This will not work correctly for non-generic events such as `change`,
                 * `reset`, `load`, `error`, and `select`.
                 *
                 * Borrows from Modernizr.
                 *
                 * @param {string} eventNameSuffix Event name, e.g. "click".
                 * @return {boolean} True if the event is supported.
                 * @internal
                 * @license Modernizr 3.0.0pre (Custom Build) | MIT
                 */
                function isEventSupported(eventNameSuffix) {
                    if (!canUseDOM) {
                        return false;
                    }
                    var eventName = 'on' + eventNameSuffix;
                    var isSupported = eventName in document;
                    if (!isSupported) {
                        var element = document.createElement('div');
                        element.setAttribute(eventName, 'return;');
                        isSupported = typeof element[eventName] === 'function';
                    }
                    return isSupported;
                }
                function isCheckable(elem) {
                    var type = elem.type;
                    var nodeName = elem.nodeName;
                    return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
                }
                function getTracker(node) {
                    return node._valueTracker;
                }
                function detachTracker(node) {
                    node._valueTracker = null;
                }
                function getValueFromNode(node) {
                    var value = '';
                    if (!node) {
                        return value;
                    }
                    if (isCheckable(node)) {
                        value = node.checked ? 'true' : 'false';
                    }
                    else {
                        value = node.value;
                    }
                    return value;
                }
                function trackValueOnNode(node) {
                    var valueField = isCheckable(node) ? 'checked' : 'value';
                    var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
                    var currentValue = '' + node[valueField];
                    // if someone has already defined a value or Safari, then bail
                    // and don't track value will cause over reporting of changes,
                    // but it's better then a hard failure
                    // (needed for certain tests that spyOn input values and Safari)
                    if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
                        return;
                    }
                    var get = descriptor.get, set = descriptor.set;
                    Object.defineProperty(node, valueField, {
                        configurable: true,
                        get: function () {
                            return get.call(this);
                        },
                        set: function (value) {
                            currentValue = '' + value;
                            set.call(this, value);
                        }
                    });
                    // We could've passed this the first time
                    // but it triggers a bug in IE11 and Edge 14/15.
                    // Calling defineProperty() again should be equivalent.
                    // https://github.com/facebook/react/issues/11768
                    Object.defineProperty(node, valueField, {
                        enumerable: descriptor.enumerable
                    });
                    var tracker = {
                        getValue: function () {
                            return currentValue;
                        },
                        setValue: function (value) {
                            currentValue = '' + value;
                        },
                        stopTracking: function () {
                            detachTracker(node);
                            delete node[valueField];
                        }
                    };
                    return tracker;
                }
                function track(node) {
                    if (getTracker(node)) {
                        return;
                    }
                    // TODO: Once it's just Fiber we can move this to node._wrapperState
                    node._valueTracker = trackValueOnNode(node);
                }
                function updateValueIfChanged(node) {
                    if (!node) {
                        return false;
                    }
                    var tracker = getTracker(node);
                    // if there is no tracker at this point it's unlikely
                    // that trying again will succeed
                    if (!tracker) {
                        return true;
                    }
                    var lastValue = tracker.getValue();
                    var nextValue = getValueFromNode(node);
                    if (nextValue !== lastValue) {
                        tracker.setValue(nextValue);
                        return true;
                    }
                    return false;
                }
                var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
                var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
                var describeComponentFrame = function (name, source, ownerName) {
                    var sourceInfo = '';
                    if (source) {
                        var path = source.fileName;
                        var fileName = path.replace(BEFORE_SLASH_RE, '');
                        {
                            // In DEV, include code for a common special case:
                            // prefer "folder/index.js" instead of just "index.js".
                            if (/^index\./.test(fileName)) {
                                var match = path.match(BEFORE_SLASH_RE);
                                if (match) {
                                    var pathBeforeSlash = match[1];
                                    if (pathBeforeSlash) {
                                        var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
                                        fileName = folderName + '/' + fileName;
                                    }
                                }
                            }
                        }
                        sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
                    }
                    else if (ownerName) {
                        sourceInfo = ' (created by ' + ownerName + ')';
                    }
                    return '\n    in ' + (name || 'Unknown') + sourceInfo;
                };
                // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
                // nor polyfill, then a plain number is used for performance.
                var hasSymbol = typeof Symbol === 'function' && Symbol.for;
                var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
                var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
                var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
                var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
                var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
                var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
                var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
                var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
                var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
                var REACT_PLACEHOLDER_TYPE = hasSymbol ? Symbol.for('react.placeholder') : 0xead1;
                var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
                var FAUX_ITERATOR_SYMBOL = '@@iterator';
                function getIteratorFn(maybeIterable) {
                    if (maybeIterable === null || typeof maybeIterable !== 'object') {
                        return null;
                    }
                    var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
                    if (typeof maybeIterator === 'function') {
                        return maybeIterator;
                    }
                    return null;
                }
                var Pending = 0;
                var Resolved = 1;
                var Rejected = 2;
                function getResultFromResolvedThenable(thenable) {
                    return thenable._reactResult;
                }
                function refineResolvedThenable(thenable) {
                    return thenable._reactStatus === Resolved ? thenable._reactResult : null;
                }
                function getComponentName(type) {
                    if (type == null) {
                        // Host root, text node or just invalid type.
                        return null;
                    }
                    {
                        if (typeof type.tag === 'number') {
                            warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
                        }
                    }
                    if (typeof type === 'function') {
                        return type.displayName || type.name || null;
                    }
                    if (typeof type === 'string') {
                        return type;
                    }
                    switch (type) {
                        case REACT_ASYNC_MODE_TYPE:
                            return 'AsyncMode';
                        case REACT_FRAGMENT_TYPE:
                            return 'Fragment';
                        case REACT_PORTAL_TYPE:
                            return 'Portal';
                        case REACT_PROFILER_TYPE:
                            return 'Profiler';
                        case REACT_STRICT_MODE_TYPE:
                            return 'StrictMode';
                        case REACT_PLACEHOLDER_TYPE:
                            return 'Placeholder';
                    }
                    if (typeof type === 'object') {
                        switch (type.$$typeof) {
                            case REACT_CONTEXT_TYPE:
                                return 'Context.Consumer';
                            case REACT_PROVIDER_TYPE:
                                return 'Context.Provider';
                            case REACT_FORWARD_REF_TYPE:
                                var renderFn = type.render;
                                var functionName = renderFn.displayName || renderFn.name || '';
                                return type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
                        }
                        if (typeof type.then === 'function') {
                            var thenable = type;
                            var resolvedThenable = refineResolvedThenable(thenable);
                            if (resolvedThenable) {
                                return getComponentName(resolvedThenable);
                            }
                        }
                    }
                    return null;
                }
                var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
                function describeFiber(fiber) {
                    switch (fiber.tag) {
                        case IndeterminateComponent:
                        case FunctionalComponent:
                        case FunctionalComponentLazy:
                        case ClassComponent:
                        case ClassComponentLazy:
                        case HostComponent:
                        case Mode:
                            var owner = fiber._debugOwner;
                            var source = fiber._debugSource;
                            var name = getComponentName(fiber.type);
                            var ownerName = null;
                            if (owner) {
                                ownerName = getComponentName(owner.type);
                            }
                            return describeComponentFrame(name, source, ownerName);
                        default:
                            return '';
                    }
                }
                function getStackByFiberInDevAndProd(workInProgress) {
                    var info = '';
                    var node = workInProgress;
                    do {
                        info += describeFiber(node);
                        node = node.return;
                    } while (node);
                    return info;
                }
                var current = null;
                var phase = null;
                function getCurrentFiberOwnerNameInDevOrNull() {
                    {
                        if (current === null) {
                            return null;
                        }
                        var owner = current._debugOwner;
                        if (owner !== null && typeof owner !== 'undefined') {
                            return getComponentName(owner.type);
                        }
                    }
                    return null;
                }
                function getCurrentFiberStackInDev() {
                    {
                        if (current === null) {
                            return '';
                        }
                        // Safe because if current fiber exists, we are reconciling,
                        // and it is guaranteed to be the work-in-progress version.
                        return getStackByFiberInDevAndProd(current);
                    }
                    return '';
                }
                function resetCurrentFiber() {
                    {
                        ReactDebugCurrentFrame.getCurrentStack = null;
                        current = null;
                        phase = null;
                    }
                }
                function setCurrentFiber(fiber) {
                    {
                        ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
                        current = fiber;
                        phase = null;
                    }
                }
                function setCurrentPhase(lifeCyclePhase) {
                    {
                        phase = lifeCyclePhase;
                    }
                }
                /**
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var warning = warningWithoutStack$1;
                {
                    warning = function (condition, format) {
                        if (condition) {
                            return;
                        }
                        var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
                        var stack = ReactDebugCurrentFrame.getStackAddendum();
                        // eslint-disable-next-line react-internal/warning-and-invariant-args
                        for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
                            args[_key - 2] = arguments[_key];
                        }
                        warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
                    };
                }
                var warning$1 = warning;
                // A reserved attribute.
                // It is handled by React separately and shouldn't be written to the DOM.
                var RESERVED = 0;
                // A simple string attribute.
                // Attributes that aren't in the whitelist are presumed to have this type.
                var STRING = 1;
                // A string attribute that accepts booleans in React. In HTML, these are called
                // "enumerated" attributes with "true" and "false" as possible values.
                // When true, it should be set to a "true" string.
                // When false, it should be set to a "false" string.
                var BOOLEANISH_STRING = 2;
                // A real boolean attribute.
                // When true, it should be present (set either to an empty string or its name).
                // When false, it should be omitted.
                var BOOLEAN = 3;
                // An attribute that can be used as a flag as well as with a value.
                // When true, it should be present (set either to an empty string or its name).
                // When false, it should be omitted.
                // For any other value, should be present with that value.
                var OVERLOADED_BOOLEAN = 4;
                // An attribute that must be numeric or parse as a numeric.
                // When falsy, it should be removed.
                var NUMERIC = 5;
                // An attribute that must be positive numeric or parse as a positive numeric.
                // When falsy, it should be removed.
                var POSITIVE_NUMERIC = 6;
                /* eslint-disable max-len */
                var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
                /* eslint-enable max-len */
                var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
                var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
                var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
                var hasOwnProperty = Object.prototype.hasOwnProperty;
                var illegalAttributeNameCache = {};
                var validatedAttributeNameCache = {};
                function isAttributeNameSafe(attributeName) {
                    if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
                        return true;
                    }
                    if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
                        return false;
                    }
                    if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
                        validatedAttributeNameCache[attributeName] = true;
                        return true;
                    }
                    illegalAttributeNameCache[attributeName] = true;
                    {
                        warning$1(false, 'Invalid attribute name: `%s`', attributeName);
                    }
                    return false;
                }
                function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
                    if (propertyInfo !== null) {
                        return propertyInfo.type === RESERVED;
                    }
                    if (isCustomComponentTag) {
                        return false;
                    }
                    if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
                        return true;
                    }
                    return false;
                }
                function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
                    if (propertyInfo !== null && propertyInfo.type === RESERVED) {
                        return false;
                    }
                    switch (typeof value) {
                        case 'function':
                        // $FlowIssue symbol is perfectly valid here
                        case 'symbol':
                            // eslint-disable-line
                            return true;
                        case 'boolean':
                            {
                                if (isCustomComponentTag) {
                                    return false;
                                }
                                if (propertyInfo !== null) {
                                    return !propertyInfo.acceptsBooleans;
                                }
                                else {
                                    var prefix = name.toLowerCase().slice(0, 5);
                                    return prefix !== 'data-' && prefix !== 'aria-';
                                }
                            }
                        default:
                            return false;
                    }
                }
                function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
                    if (value === null || typeof value === 'undefined') {
                        return true;
                    }
                    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
                        return true;
                    }
                    if (isCustomComponentTag) {
                        return false;
                    }
                    if (propertyInfo !== null) {
                        switch (propertyInfo.type) {
                            case BOOLEAN:
                                return !value;
                            case OVERLOADED_BOOLEAN:
                                return value === false;
                            case NUMERIC:
                                return isNaN(value);
                            case POSITIVE_NUMERIC:
                                return isNaN(value) || value < 1;
                        }
                    }
                    return false;
                }
                function getPropertyInfo(name) {
                    return properties.hasOwnProperty(name) ? properties[name] : null;
                }
                function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
                    this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
                    this.attributeName = attributeName;
                    this.attributeNamespace = attributeNamespace;
                    this.mustUseProperty = mustUseProperty;
                    this.propertyName = name;
                    this.type = type;
                }
                // When adding attributes to this list, be sure to also add them to
                // the `possibleStandardNames` module to ensure casing and incorrect
                // name warnings.
                var properties = {};
                // These props are reserved by React. They shouldn't be written to the DOM.
                ['children', 'dangerouslySetInnerHTML',
                    // TODO: This prevents the assignment of defaultValue to regular
                    // elements (not just inputs). Now that ReactDOMInput assigns to the
                    // defaultValue property -- do we need this?
                    'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
                    name, // attributeName
                    null);
                } // attributeNamespace
                );
                // A few React string attributes have a different name.
                // This is a mapping from React prop names to the attribute names.
                [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
                    var name = _ref[0], attributeName = _ref[1];
                    properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
                    attributeName, // attributeName
                    null);
                } // attributeNamespace
                );
                // These are "enumerated" HTML attributes that accept "true" and "false".
                // In React, we let users pass `true` and `false` even though technically
                // these aren't boolean attributes (they are coerced to strings).
                ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
                    name.toLowerCase(), // attributeName
                    null);
                } // attributeNamespace
                );
                // These are "enumerated" SVG attributes that accept "true" and "false".
                // In React, we let users pass `true` and `false` even though technically
                // these aren't boolean attributes (they are coerced to strings).
                // Since these are SVG attributes, their attribute names are case-sensitive.
                ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
                    name, // attributeName
                    null);
                } // attributeNamespace
                );
                // These are HTML boolean attributes.
                ['allowFullScreen', 'async',
                    // Note: there is a special case that prevents it from being written to the DOM
                    // on the client side because the browsers are inconsistent. Instead we call focus().
                    'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
                    // Microdata
                    'itemScope'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
                    name.toLowerCase(), // attributeName
                    null);
                } // attributeNamespace
                );
                // These are the few React props that we set as DOM properties
                // rather than attributes. These are all booleans.
                ['checked',
                    // Note: `option.selected` is not updated if `select.multiple` is
                    // disabled with `removeAttribute`. We have special logic for handling this.
                    'multiple', 'muted', 'selected'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
                    name, // attributeName
                    null);
                } // attributeNamespace
                );
                // These are HTML attributes that are "overloaded booleans": they behave like
                // booleans, but can also accept a string value.
                ['capture', 'download'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
                    name, // attributeName
                    null);
                } // attributeNamespace
                );
                // These are HTML attributes that must be positive numbers.
                ['cols', 'rows', 'size', 'span'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
                    name, // attributeName
                    null);
                } // attributeNamespace
                );
                // These are HTML attributes that must be numbers.
                ['rowSpan', 'start'].forEach(function (name) {
                    properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
                    name.toLowerCase(), // attributeName
                    null);
                } // attributeNamespace
                );
                var CAMELIZE = /[\-\:]([a-z])/g;
                var capitalize = function (token) {
                    return token[1].toUpperCase();
                };
                // This is a list of all SVG attributes that need special casing, namespacing,
                // or boolean value assignment. Regular attributes that just accept strings
                // and have the same names are omitted, just like in the HTML whitelist.
                // Some of these attributes can be hard to find. This list was created by
                // scrapping the MDN documentation.
                ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
                    var name = attributeName.replace(CAMELIZE, capitalize);
                    properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
                    attributeName, null);
                } // attributeNamespace
                );
                // String SVG attributes with the xlink namespace.
                ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
                    var name = attributeName.replace(CAMELIZE, capitalize);
                    properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
                    attributeName, 'http://www.w3.org/1999/xlink');
                });
                // String SVG attributes with the xml namespace.
                ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
                    var name = attributeName.replace(CAMELIZE, capitalize);
                    properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
                    attributeName, 'http://www.w3.org/XML/1998/namespace');
                });
                // Special case: this attribute exists both in HTML and SVG.
                // Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
                // its React `tabIndex` name, like we do for attributes that exist only in HTML.
                properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
                'tabindex', // attributeName
                null);
                /**
                 * Get the value for a property on a node. Only used in DEV for SSR validation.
                 * The "expected" argument is used as a hint of what the expected value is.
                 * Some properties have multiple equivalent values.
                 */
                function getValueForProperty(node, name, expected, propertyInfo) {
                    {
                        if (propertyInfo.mustUseProperty) {
                            var propertyName = propertyInfo.propertyName;
                            return node[propertyName];
                        }
                        else {
                            var attributeName = propertyInfo.attributeName;
                            var stringValue = null;
                            if (propertyInfo.type === OVERLOADED_BOOLEAN) {
                                if (node.hasAttribute(attributeName)) {
                                    var value = node.getAttribute(attributeName);
                                    if (value === '') {
                                        return true;
                                    }
                                    if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
                                        return value;
                                    }
                                    if (value === '' + expected) {
                                        return expected;
                                    }
                                    return value;
                                }
                            }
                            else if (node.hasAttribute(attributeName)) {
                                if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
                                    // We had an attribute but shouldn't have had one, so read it
                                    // for the error message.
                                    return node.getAttribute(attributeName);
                                }
                                if (propertyInfo.type === BOOLEAN) {
                                    // If this was a boolean, it doesn't matter what the value is
                                    // the fact that we have it is the same as the expected.
                                    return expected;
                                }
                                // Even if this property uses a namespace we use getAttribute
                                // because we assume its namespaced name is the same as our config.
                                // To use getAttributeNS we need the local name which we don't have
                                // in our config atm.
                                stringValue = node.getAttribute(attributeName);
                            }
                            if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
                                return stringValue === null ? expected : stringValue;
                            }
                            else if (stringValue === '' + expected) {
                                return expected;
                            }
                            else {
                                return stringValue;
                            }
                        }
                    }
                }
                /**
                 * Get the value for a attribute on a node. Only used in DEV for SSR validation.
                 * The third argument is used as a hint of what the expected value is. Some
                 * attributes have multiple equivalent values.
                 */
                function getValueForAttribute(node, name, expected) {
                    {
                        if (!isAttributeNameSafe(name)) {
                            return;
                        }
                        if (!node.hasAttribute(name)) {
                            return expected === undefined ? undefined : null;
                        }
                        var value = node.getAttribute(name);
                        if (value === '' + expected) {
                            return expected;
                        }
                        return value;
                    }
                }
                /**
                 * Sets the value for a property on a node.
                 *
                 * @param {DOMElement} node
                 * @param {string} name
                 * @param {*} value
                 */
                function setValueForProperty(node, name, value, isCustomComponentTag) {
                    var propertyInfo = getPropertyInfo(name);
                    if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
                        return;
                    }
                    if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
                        value = null;
                    }
                    // If the prop isn't in the special list, treat it as a simple attribute.
                    if (isCustomComponentTag || propertyInfo === null) {
                        if (isAttributeNameSafe(name)) {
                            var _attributeName = name;
                            if (value === null) {
                                node.removeAttribute(_attributeName);
                            }
                            else {
                                node.setAttribute(_attributeName, '' + value);
                            }
                        }
                        return;
                    }
                    var mustUseProperty = propertyInfo.mustUseProperty;
                    if (mustUseProperty) {
                        var propertyName = propertyInfo.propertyName;
                        if (value === null) {
                            var type = propertyInfo.type;
                            node[propertyName] = type === BOOLEAN ? false : '';
                        }
                        else {
                            // Contrary to `setAttribute`, object properties are properly
                            // `toString`ed by IE8/9.
                            node[propertyName] = value;
                        }
                        return;
                    }
                    // The rest are treated as attributes with special cases.
                    var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace;
                    if (value === null) {
                        node.removeAttribute(attributeName);
                    }
                    else {
                        var _type = propertyInfo.type;
                        var attributeValue = void 0;
                        if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
                            attributeValue = '';
                        }
                        else {
                            // `setAttribute` with objects becomes only `[object]` in IE8/9,
                            // ('' + value) makes it output the correct toString()-value.
                            attributeValue = '' + value;
                        }
                        if (attributeNamespace) {
                            node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
                        }
                        else {
                            node.setAttribute(attributeName, attributeValue);
                        }
                    }
                }
                // Flow does not allow string concatenation of most non-string types. To work
                // around this limitation, we use an opaque type that can only be obtained by
                // passing the value through getToStringValue first.
                function toString(value) {
                    return '' + value;
                }
                function getToStringValue(value) {
                    switch (typeof value) {
                        case 'boolean':
                        case 'number':
                        case 'object':
                        case 'string':
                        case 'undefined':
                            return value;
                        default:
                            // function, symbol are assigned as empty strings
                            return '';
                    }
                }
                var ReactDebugCurrentFrame$1 = null;
                var ReactControlledValuePropTypes = {
                    checkPropTypes: null
                };
                {
                    ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
                    var hasReadOnlyValue = {
                        button: true,
                        checkbox: true,
                        image: true,
                        hidden: true,
                        radio: true,
                        reset: true,
                        submit: true
                    };
                    var propTypes = {
                        value: function (props, propName, componentName) {
                            if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
                                return null;
                            }
                            return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
                        },
                        checked: function (props, propName, componentName) {
                            if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
                                return null;
                            }
                            return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
                        }
                    };
                    /**
                     * Provide a linked `value` attribute for controlled forms. You should not use
                     * this outside of the ReactDOM controlled form components.
                     */
                    ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
                        checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
                    };
                }
                // Exports ReactDOM.createRoot
                var enableUserTimingAPI = true;
                // Experimental error-boundary API that can recover from errors within a single
                // render phase
                var enableGetDerivedStateFromCatch = false;
                // Suspense
                var enableSuspense = false;
                // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
                var debugRenderPhaseSideEffects = false;
                // In some cases, StrictMode should also double-render lifecycles.
                // This can be confusing for tests though,
                // And it can be bad for performance in production.
                // This feature flag can be used to control the behavior:
                var debugRenderPhaseSideEffectsForStrictMode = true;
                // To preserve the "Pause on caught exceptions" behavior of the debugger, we
                // replay the begin phase of a failed component inside invokeGuardedCallback.
                var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
                // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
                var warnAboutDeprecatedLifecycles = false;
                // Warn about legacy context API
                var warnAboutLegacyContextAPI = false;
                // Gather advanced timing metrics for Profiler subtrees.
                var enableProfilerTimer = true;
                // Trace which interactions trigger each commit.
                var enableSchedulerTracing = true;
                // Only used in www builds.
                // Only used in www builds.
                // React Fire: prevent the value and checked attributes from syncing
                // with their related DOM properties
                var disableInputAttributeSyncing = false;
                // TODO: direct imports like some-package/src/* are bad. Fix me.
                var didWarnValueDefaultValue = false;
                var didWarnCheckedDefaultChecked = false;
                var didWarnControlledToUncontrolled = false;
                var didWarnUncontrolledToControlled = false;
                function isControlled(props) {
                    var usesChecked = props.type === 'checkbox' || props.type === 'radio';
                    return usesChecked ? props.checked != null : props.value != null;
                }
                /**
                 * Implements an <input> host component that allows setting these optional
                 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
                 *
                 * If `checked` or `value` are not supplied (or null/undefined), user actions
                 * that affect the checked state or value will trigger updates to the element.
                 *
                 * If they are supplied (and not null/undefined), the rendered element will not
                 * trigger updates to the element. Instead, the props must change in order for
                 * the rendered element to be updated.
                 *
                 * The rendered element will be initialized as unchecked (or `defaultChecked`)
                 * with an empty value (or `defaultValue`).
                 *
                 * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
                 */
                function getHostProps(element, props) {
                    var node = element;
                    var checked = props.checked;
                    var hostProps = _assign({}, props, {
                        defaultChecked: undefined,
                        defaultValue: undefined,
                        value: undefined,
                        checked: checked != null ? checked : node._wrapperState.initialChecked
                    });
                    return hostProps;
                }
                function initWrapperState(element, props) {
                    {
                        ReactControlledValuePropTypes.checkPropTypes('input', props);
                        if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
                            warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
                            didWarnCheckedDefaultChecked = true;
                        }
                        if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
                            warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
                            didWarnValueDefaultValue = true;
                        }
                    }
                    var node = element;
                    var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
                    node._wrapperState = {
                        initialChecked: props.checked != null ? props.checked : props.defaultChecked,
                        initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
                        controlled: isControlled(props)
                    };
                }
                function updateChecked(element, props) {
                    var node = element;
                    var checked = props.checked;
                    if (checked != null) {
                        setValueForProperty(node, 'checked', checked, false);
                    }
                }
                function updateWrapper(element, props) {
                    var node = element;
                    {
                        var _controlled = isControlled(props);
                        if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
                            warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
                            didWarnUncontrolledToControlled = true;
                        }
                        if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
                            warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
                            didWarnControlledToUncontrolled = true;
                        }
                    }
                    updateChecked(element, props);
                    var value = getToStringValue(props.value);
                    var type = props.type;
                    if (value != null) {
                        if (type === 'number') {
                            if (value === 0 && node.value === '' ||
                                // We explicitly want to coerce to number here if possible.
                                // eslint-disable-next-line
                                node.value != value) {
                                node.value = toString(value);
                            }
                        }
                        else if (node.value !== toString(value)) {
                            node.value = toString(value);
                        }
                    }
                    else if (type === 'submit' || type === 'reset') {
                        // Submit/reset inputs need the attribute removed completely to avoid
                        // blank-text buttons.
                        node.removeAttribute('value');
                        return;
                    }
                    if (disableInputAttributeSyncing) {
                        // When not syncing the value attribute, React only assigns a new value
                        // whenever the defaultValue React prop has changed. When not present,
                        // React does nothing
                        if (props.hasOwnProperty('defaultValue')) {
                            setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
                        }
                    }
                    else {
                        // When syncing the value attribute, the value comes from a cascade of
                        // properties:
                        //  1. The value React property
                        //  2. The defaultValue React property
                        //  3. Otherwise there should be no change
                        if (props.hasOwnProperty('value')) {
                            setDefaultValue(node, props.type, value);
                        }
                        else if (props.hasOwnProperty('defaultValue')) {
                            setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
                        }
                    }
                    if (disableInputAttributeSyncing) {
                        // When not syncing the checked attribute, the attribute is directly
                        // controllable from the defaultValue React property. It needs to be
                        // updated as new props come in.
                        if (props.defaultChecked == null) {
                            node.removeAttribute('checked');
                        }
                        else {
                            node.defaultChecked = !!props.defaultChecked;
                        }
                    }
                    else {
                        // When syncing the checked attribute, it only changes when it needs
                        // to be removed, such as transitioning from a checkbox into a text input
                        if (props.checked == null && props.defaultChecked != null) {
                            node.defaultChecked = !!props.defaultChecked;
                        }
                    }
                }
                function postMountWrapper(element, props, isHydrating) {
                    var node = element;
                    // Do not assign value if it is already set. This prevents user text input
                    // from being lost during SSR hydration.
                    if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
                        var type = props.type;
                        var isButton = type === 'submit' || type === 'reset';
                        // Avoid setting value attribute on submit/reset inputs as it overrides the
                        // default value provided by the browser. See: #12872
                        if (isButton && (props.value === undefined || props.value === null)) {
                            return;
                        }
                        var _initialValue = toString(node._wrapperState.initialValue);
                        // Do not assign value if it is already set. This prevents user text input
                        // from being lost during SSR hydration.
                        if (!isHydrating) {
                            if (disableInputAttributeSyncing) {
                                var value = getToStringValue(props.value);
                                // When not syncing the value attribute, the value property points
                                // directly to the React prop. Only assign it if it exists.
                                if (value != null) {
                                    // Always assign on buttons so that it is possible to assign an
                                    // empty string to clear button text.
                                    //
                                    // Otherwise, do not re-assign the value property if is empty. This
                                    // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
                                    // prematurely marking required inputs as invalid. Equality is compared
                                    // to the current value in case the browser provided value is not an
                                    // empty string.
                                    if (isButton || value !== node.value) {
                                        node.value = toString(value);
                                    }
                                }
                            }
                            else {
                                // When syncing the value attribute, the value property should use
                                // the the wrapperState._initialValue property. This uses:
                                //
                                //   1. The value React property when present
                                //   2. The defaultValue React property when present
                                //   3. An empty string
                                if (_initialValue !== node.value) {
                                    node.value = _initialValue;
                                }
                            }
                        }
                        if (disableInputAttributeSyncing) {
                            // When not syncing the value attribute, assign the value attribute
                            // directly from the defaultValue React property (when present)
                            var defaultValue = getToStringValue(props.defaultValue);
                            if (defaultValue != null) {
                                node.defaultValue = toString(defaultValue);
                            }
                        }
                        else {
                            // Otherwise, the value attribute is synchronized to the property,
                            // so we assign defaultValue to the same thing as the value property
                            // assignment step above.
                            node.defaultValue = _initialValue;
                        }
                    }
                    // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
                    // this is needed to work around a chrome bug where setting defaultChecked
                    // will sometimes influence the value of checked (even after detachment).
                    // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
                    // We need to temporarily unset name to avoid disrupting radio button groups.
                    var name = node.name;
                    if (name !== '') {
                        node.name = '';
                    }
                    if (disableInputAttributeSyncing) {
                        // When not syncing the checked attribute, the checked property
                        // never gets assigned. It must be manually set. We don't want
                        // to do this when hydrating so that existing user input isn't
                        // modified
                        if (!isHydrating) {
                            updateChecked(element, props);
                        }
                        // Only assign the checked attribute if it is defined. This saves
                        // a DOM write when controlling the checked attribute isn't needed
                        // (text inputs, submit/reset)
                        if (props.hasOwnProperty('defaultChecked')) {
                            node.defaultChecked = !node.defaultChecked;
                            node.defaultChecked = !!props.defaultChecked;
                        }
                    }
                    else {
                        // When syncing the checked attribute, both the the checked property and
                        // attribute are assigned at the same time using defaultChecked. This uses:
                        //
                        //   1. The checked React property when present
                        //   2. The defaultChecked React property when present
                        //   3. Otherwise, false
                        node.defaultChecked = !node.defaultChecked;
                        node.defaultChecked = !!node._wrapperState.initialChecked;
                    }
                    if (name !== '') {
                        node.name = name;
                    }
                }
                function restoreControlledState(element, props) {
                    var node = element;
                    updateWrapper(node, props);
                    updateNamedCousins(node, props);
                }
                function updateNamedCousins(rootNode, props) {
                    var name = props.name;
                    if (props.type === 'radio' && name != null) {
                        var queryRoot = rootNode;
                        while (queryRoot.parentNode) {
                            queryRoot = queryRoot.parentNode;
                        }
                        // If `rootNode.form` was non-null, then we could try `form.elements`,
                        // but that sometimes behaves strangely in IE8. We could also try using
                        // `form.getElementsByName`, but that will only return direct children
                        // and won't include inputs that use the HTML5 `form=` attribute. Since
                        // the input might not even be in a form. It might not even be in the
                        // document. Let's just use the local `querySelectorAll` to ensure we don't
                        // miss anything.
                        var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
                        for (var i = 0; i < group.length; i++) {
                            var otherNode = group[i];
                            if (otherNode === rootNode || otherNode.form !== rootNode.form) {
                                continue;
                            }
                            // This will throw if radio buttons rendered by different copies of React
                            // and the same name are rendered into the same form (same as #1939).
                            // That's probably okay; we don't support it just as we don't support
                            // mixing React radio buttons with non-React ones.
                            var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
                            !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;
                            // We need update the tracked value on the named cousin since the value
                            // was changed but the input saw no event or value set
                            updateValueIfChanged(otherNode);
                            // If this is a controlled radio button group, forcing the input that
                            // was previously checked to update will cause it to be come re-checked
                            // as appropriate.
                            updateWrapper(otherNode, otherProps);
                        }
                    }
                }
                // In Chrome, assigning defaultValue to certain input types triggers input validation.
                // For number inputs, the display value loses trailing decimal points. For email inputs,
                // Chrome raises "The specified value <x> is not a valid email address".
                //
                // Here we check to see if the defaultValue has actually changed, avoiding these problems
                // when the user is inputting text
                //
                // https://github.com/facebook/react/issues/7253
                function setDefaultValue(node, type, value) {
                    if (
                    // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
                    type !== 'number' || node.ownerDocument.activeElement !== node) {
                        if (value == null) {
                            node.defaultValue = toString(node._wrapperState.initialValue);
                        }
                        else if (node.defaultValue !== toString(value)) {
                            node.defaultValue = toString(value);
                        }
                    }
                }
                var eventTypes$1 = {
                    change: {
                        phasedRegistrationNames: {
                            bubbled: 'onChange',
                            captured: 'onChangeCapture'
                        },
                        dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
                    }
                };
                function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
                    var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
                    event.type = 'change';
                    // Flag this event loop as needing state restore.
                    enqueueStateRestore(target);
                    accumulateTwoPhaseDispatches(event);
                    return event;
                }
                /**
                 * For IE shims
                 */
                var activeElement = null;
                var activeElementInst = null;
                /**
                 * SECTION: handle `change` event
                 */
                function shouldUseChangeEvent(elem) {
                    var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
                    return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
                }
                function manualDispatchChangeEvent(nativeEvent) {
                    var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
                    // If change and propertychange bubbled, we'd just bind to it like all the
                    // other events and have it go through ReactBrowserEventEmitter. Since it
                    // doesn't, we manually listen for the events and so we have to enqueue and
                    // process the abstract event manually.
                    //
                    // Batching is necessary here in order to ensure that all event handlers run
                    // before the next rerender (including event handlers attached to ancestor
                    // elements instead of directly on the input). Without this, controlled
                    // components don't work properly in conjunction with event bubbling because
                    // the component is rerendered and the value reverted before all the event
                    // handlers can run. See https://github.com/facebook/react/issues/708.
                    batchedUpdates(runEventInBatch, event);
                }
                function runEventInBatch(event) {
                    runEventsInBatch(event, false);
                }
                function getInstIfValueChanged(targetInst) {
                    var targetNode = getNodeFromInstance$1(targetInst);
                    if (updateValueIfChanged(targetNode)) {
                        return targetInst;
                    }
                }
                function getTargetInstForChangeEvent(topLevelType, targetInst) {
                    if (topLevelType === TOP_CHANGE) {
                        return targetInst;
                    }
                }
                /**
                 * SECTION: handle `input` event
                 */
                var isInputEventSupported = false;
                if (canUseDOM) {
                    // IE9 claims to support the input event but fails to trigger it when
                    // deleting text, so we ignore its input events.
                    isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
                }
                /**
                 * (For IE <=9) Starts tracking propertychange events on the passed-in element
                 * and override the value property so that we can distinguish user events from
                 * value changes in JS.
                 */
                function startWatchingForValueChange(target, targetInst) {
                    activeElement = target;
                    activeElementInst = targetInst;
                    activeElement.attachEvent('onpropertychange', handlePropertyChange);
                }
                /**
                 * (For IE <=9) Removes the event listeners from the currently-tracked element,
                 * if any exists.
                 */
                function stopWatchingForValueChange() {
                    if (!activeElement) {
                        return;
                    }
                    activeElement.detachEvent('onpropertychange', handlePropertyChange);
                    activeElement = null;
                    activeElementInst = null;
                }
                /**
                 * (For IE <=9) Handles a propertychange event, sending a `change` event if
                 * the value of the active element has changed.
                 */
                function handlePropertyChange(nativeEvent) {
                    if (nativeEvent.propertyName !== 'value') {
                        return;
                    }
                    if (getInstIfValueChanged(activeElementInst)) {
                        manualDispatchChangeEvent(nativeEvent);
                    }
                }
                function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
                    if (topLevelType === TOP_FOCUS) {
                        // In IE9, propertychange fires for most input events but is buggy and
                        // doesn't fire when text is deleted, but conveniently, selectionchange
                        // appears to fire in all of the remaining cases so we catch those and
                        // forward the event if the value has changed
                        // In either case, we don't want to call the event handler if the value
                        // is changed from JS so we redefine a setter for `.value` that updates
                        // our activeElementValue variable, allowing us to ignore those changes
                        //
                        // stopWatching() should be a noop here but we call it just in case we
                        // missed a blur event somehow.
                        stopWatchingForValueChange();
                        startWatchingForValueChange(target, targetInst);
                    }
                    else if (topLevelType === TOP_BLUR) {
                        stopWatchingForValueChange();
                    }
                }
                // For IE8 and IE9.
                function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
                    if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
                        // On the selectionchange event, the target is just document which isn't
                        // helpful for us so just check activeElement instead.
                        //
                        // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
                        // propertychange on the first input event after setting `value` from a
                        // script and fires only keydown, keypress, keyup. Catching keyup usually
                        // gets it and catching keydown lets us fire an event for the first
                        // keystroke if user does a key repeat (it'll be a little delayed: right
                        // before the second keystroke). Other input methods (e.g., paste) seem to
                        // fire selectionchange normally.
                        return getInstIfValueChanged(activeElementInst);
                    }
                }
                /**
                 * SECTION: handle `click` event
                 */
                function shouldUseClickEvent(elem) {
                    // Use the `click` event to detect changes to checkbox and radio inputs.
                    // This approach works across all browsers, whereas `change` does not fire
                    // until `blur` in IE8.
                    var nodeName = elem.nodeName;
                    return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
                }
                function getTargetInstForClickEvent(topLevelType, targetInst) {
                    if (topLevelType === TOP_CLICK) {
                        return getInstIfValueChanged(targetInst);
                    }
                }
                function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
                    if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
                        return getInstIfValueChanged(targetInst);
                    }
                }
                function handleControlledInputBlur(node) {
                    var state = node._wrapperState;
                    if (!state || !state.controlled || node.type !== 'number') {
                        return;
                    }
                    if (!disableInputAttributeSyncing) {
                        // If controlled, assign the value attribute to the current value on blur
                        setDefaultValue(node, 'number', node.value);
                    }
                }
                /**
                 * This plugin creates an `onChange` event that normalizes change events
                 * across form elements. This event fires at a time when it's possible to
                 * change the element's value without seeing a flicker.
                 *
                 * Supported elements are:
                 * - input (see `isTextInputElement`)
                 * - textarea
                 * - select
                 */
                var ChangeEventPlugin = {
                    eventTypes: eventTypes$1,
                    _isInputEventSupported: isInputEventSupported,
                    extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                        var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
                        var getTargetInstFunc = void 0, handleEventFunc = void 0;
                        if (shouldUseChangeEvent(targetNode)) {
                            getTargetInstFunc = getTargetInstForChangeEvent;
                        }
                        else if (isTextInputElement(targetNode)) {
                            if (isInputEventSupported) {
                                getTargetInstFunc = getTargetInstForInputOrChangeEvent;
                            }
                            else {
                                getTargetInstFunc = getTargetInstForInputEventPolyfill;
                                handleEventFunc = handleEventsForInputEventPolyfill;
                            }
                        }
                        else if (shouldUseClickEvent(targetNode)) {
                            getTargetInstFunc = getTargetInstForClickEvent;
                        }
                        if (getTargetInstFunc) {
                            var inst = getTargetInstFunc(topLevelType, targetInst);
                            if (inst) {
                                var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
                                return event;
                            }
                        }
                        if (handleEventFunc) {
                            handleEventFunc(topLevelType, targetNode, targetInst);
                        }
                        // When blurring, set the value attribute for number inputs
                        if (topLevelType === TOP_BLUR) {
                            handleControlledInputBlur(targetNode);
                        }
                    }
                };
                /**
                 * Module that is injectable into `EventPluginHub`, that specifies a
                 * deterministic ordering of `EventPlugin`s. A convenient way to reason about
                 * plugins, without having to package every one of them. This is better than
                 * having plugins be ordered in the same order that they are injected because
                 * that ordering would be influenced by the packaging order.
                 * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
                 * preventing default on events is convenient in `SimpleEventPlugin` handlers.
                 */
                var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
                var SyntheticUIEvent = SyntheticEvent.extend({
                    view: null,
                    detail: null
                });
                /**
                 * Translation from modifier key to the associated property in the event.
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
                 */
                var modifierKeyToProp = {
                    Alt: 'altKey',
                    Control: 'ctrlKey',
                    Meta: 'metaKey',
                    Shift: 'shiftKey'
                };
                // IE8 does not implement getModifierState so we simply map it to the only
                // modifier keys exposed by the event itself, does not support Lock-keys.
                // Currently, all major browsers except Chrome seems to support Lock-keys.
                function modifierStateGetter(keyArg) {
                    var syntheticEvent = this;
                    var nativeEvent = syntheticEvent.nativeEvent;
                    if (nativeEvent.getModifierState) {
                        return nativeEvent.getModifierState(keyArg);
                    }
                    var keyProp = modifierKeyToProp[keyArg];
                    return keyProp ? !!nativeEvent[keyProp] : false;
                }
                function getEventModifierState(nativeEvent) {
                    return modifierStateGetter;
                }
                var previousScreenX = 0;
                var previousScreenY = 0;
                // Use flags to signal movementX/Y has already been set
                var isMovementXSet = false;
                var isMovementYSet = false;
                /**
                 * @interface MouseEvent
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var SyntheticMouseEvent = SyntheticUIEvent.extend({
                    screenX: null,
                    screenY: null,
                    clientX: null,
                    clientY: null,
                    pageX: null,
                    pageY: null,
                    ctrlKey: null,
                    shiftKey: null,
                    altKey: null,
                    metaKey: null,
                    getModifierState: getEventModifierState,
                    button: null,
                    buttons: null,
                    relatedTarget: function (event) {
                        return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
                    },
                    movementX: function (event) {
                        if ('movementX' in event) {
                            return event.movementX;
                        }
                        var screenX = previousScreenX;
                        previousScreenX = event.screenX;
                        if (!isMovementXSet) {
                            isMovementXSet = true;
                            return 0;
                        }
                        return event.type === 'mousemove' ? event.screenX - screenX : 0;
                    },
                    movementY: function (event) {
                        if ('movementY' in event) {
                            return event.movementY;
                        }
                        var screenY = previousScreenY;
                        previousScreenY = event.screenY;
                        if (!isMovementYSet) {
                            isMovementYSet = true;
                            return 0;
                        }
                        return event.type === 'mousemove' ? event.screenY - screenY : 0;
                    }
                });
                /**
                 * @interface PointerEvent
                 * @see http://www.w3.org/TR/pointerevents/
                 */
                var SyntheticPointerEvent = SyntheticMouseEvent.extend({
                    pointerId: null,
                    width: null,
                    height: null,
                    pressure: null,
                    tangentialPressure: null,
                    tiltX: null,
                    tiltY: null,
                    twist: null,
                    pointerType: null,
                    isPrimary: null
                });
                var eventTypes$2 = {
                    mouseEnter: {
                        registrationName: 'onMouseEnter',
                        dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
                    },
                    mouseLeave: {
                        registrationName: 'onMouseLeave',
                        dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
                    },
                    pointerEnter: {
                        registrationName: 'onPointerEnter',
                        dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
                    },
                    pointerLeave: {
                        registrationName: 'onPointerLeave',
                        dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
                    }
                };
                var EnterLeaveEventPlugin = {
                    eventTypes: eventTypes$2,
                    /**
                     * For almost every interaction we care about, there will be both a top-level
                     * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
                     * we do not extract duplicate events. However, moving the mouse into the
                     * browser from outside will not fire a `mouseout` event. In this case, we use
                     * the `mouseover` top-level event.
                     */
                    extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                        var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
                        var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
                        if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
                            return null;
                        }
                        if (!isOutEvent && !isOverEvent) {
                            // Must not be a mouse or pointer in or out - ignoring.
                            return null;
                        }
                        var win = void 0;
                        if (nativeEventTarget.window === nativeEventTarget) {
                            // `nativeEventTarget` is probably a window object.
                            win = nativeEventTarget;
                        }
                        else {
                            // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
                            var doc = nativeEventTarget.ownerDocument;
                            if (doc) {
                                win = doc.defaultView || doc.parentWindow;
                            }
                            else {
                                win = window;
                            }
                        }
                        var from = void 0;
                        var to = void 0;
                        if (isOutEvent) {
                            from = targetInst;
                            var related = nativeEvent.relatedTarget || nativeEvent.toElement;
                            to = related ? getClosestInstanceFromNode(related) : null;
                        }
                        else {
                            // Moving to a node from outside the window.
                            from = null;
                            to = targetInst;
                        }
                        if (from === to) {
                            // Nothing pertains to our managed components.
                            return null;
                        }
                        var eventInterface = void 0, leaveEventType = void 0, enterEventType = void 0, eventTypePrefix = void 0;
                        if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
                            eventInterface = SyntheticMouseEvent;
                            leaveEventType = eventTypes$2.mouseLeave;
                            enterEventType = eventTypes$2.mouseEnter;
                            eventTypePrefix = 'mouse';
                        }
                        else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
                            eventInterface = SyntheticPointerEvent;
                            leaveEventType = eventTypes$2.pointerLeave;
                            enterEventType = eventTypes$2.pointerEnter;
                            eventTypePrefix = 'pointer';
                        }
                        var fromNode = from == null ? win : getNodeFromInstance$1(from);
                        var toNode = to == null ? win : getNodeFromInstance$1(to);
                        var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
                        leave.type = eventTypePrefix + 'leave';
                        leave.target = fromNode;
                        leave.relatedTarget = toNode;
                        var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
                        enter.type = eventTypePrefix + 'enter';
                        enter.target = toNode;
                        enter.relatedTarget = fromNode;
                        accumulateEnterLeaveDispatches(leave, enter, from, to);
                        return [leave, enter];
                    }
                };
                /*eslint-disable no-self-compare */
                var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
                /**
                 * inlined Object.is polyfill to avoid requiring consumers ship their own
                 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
                 */
                function is(x, y) {
                    // SameValue algorithm
                    if (x === y) {
                        // Steps 1-5, 7-10
                        // Steps 6.b-6.e: +0 != -0
                        // Added the nonzero y check to make Flow happy, but it is redundant
                        return x !== 0 || y !== 0 || 1 / x === 1 / y;
                    }
                    else {
                        // Step 6.a: NaN == NaN
                        return x !== x && y !== y;
                    }
                }
                /**
                 * Performs equality by iterating through keys on an object and returning false
                 * when any key has values which are not strictly equal between the arguments.
                 * Returns true when the values of all keys are strictly equal.
                 */
                function shallowEqual(objA, objB) {
                    if (is(objA, objB)) {
                        return true;
                    }
                    if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
                        return false;
                    }
                    var keysA = Object.keys(objA);
                    var keysB = Object.keys(objB);
                    if (keysA.length !== keysB.length) {
                        return false;
                    }
                    // Test for A's keys different from B.
                    for (var i = 0; i < keysA.length; i++) {
                        if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
                            return false;
                        }
                    }
                    return true;
                }
                /**
                 * `ReactInstanceMap` maintains a mapping from a public facing stateful
                 * instance (key) and the internal representation (value). This allows public
                 * methods to accept the user facing instance as an argument and map them back
                 * to internal methods.
                 *
                 * Note that this module is currently shared and assumed to be stateless.
                 * If this becomes an actual Map, that will break.
                 */
                /**
                 * This API should be called `delete` but we'd have to make sure to always
                 * transform these to strings for IE support. When this transform is fully
                 * supported we can rename it.
                 */
                function get(key) {
                    return key._reactInternalFiber;
                }
                function has(key) {
                    return key._reactInternalFiber !== undefined;
                }
                function set(key, value) {
                    key._reactInternalFiber = value;
                }
                // Don't change these two values. They're used by React Dev Tools.
                var NoEffect = /*              */ 0;
                var PerformedWork = /*         */ 1;
                // You can change the rest (and add more).
                var Placement = /*             */ 2;
                var Update = /*                */ 4;
                var PlacementAndUpdate = /*    */ 6;
                var Deletion = /*              */ 8;
                var ContentReset = /*          */ 16;
                var Callback = /*              */ 32;
                var DidCapture = /*            */ 64;
                var Ref = /*                   */ 128;
                var Snapshot = /*              */ 256;
                // Update & Callback & Ref & Snapshot
                var LifecycleEffectMask = /*   */ 420;
                // Union of all host effects
                var HostEffectMask = /*        */ 511;
                var Incomplete = /*            */ 512;
                var ShouldCapture = /*         */ 1024;
                var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
                var MOUNTING = 1;
                var MOUNTED = 2;
                var UNMOUNTED = 3;
                function isFiberMountedImpl(fiber) {
                    var node = fiber;
                    if (!fiber.alternate) {
                        // If there is no alternate, this might be a new tree that isn't inserted
                        // yet. If it is, then it will have a pending insertion effect on it.
                        if ((node.effectTag & Placement) !== NoEffect) {
                            return MOUNTING;
                        }
                        while (node.return) {
                            node = node.return;
                            if ((node.effectTag & Placement) !== NoEffect) {
                                return MOUNTING;
                            }
                        }
                    }
                    else {
                        while (node.return) {
                            node = node.return;
                        }
                    }
                    if (node.tag === HostRoot) {
                        // TODO: Check if this was a nested HostRoot when used with
                        // renderContainerIntoSubtree.
                        return MOUNTED;
                    }
                    // If we didn't hit the root, that means that we're in an disconnected tree
                    // that has been unmounted.
                    return UNMOUNTED;
                }
                function isFiberMounted(fiber) {
                    return isFiberMountedImpl(fiber) === MOUNTED;
                }
                function isMounted(component) {
                    {
                        var owner = ReactCurrentOwner$1.current;
                        if (owner !== null && (owner.tag === ClassComponent || owner.tag === ClassComponentLazy)) {
                            var ownerFiber = owner;
                            var instance = ownerFiber.stateNode;
                            !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
                            instance._warnedAboutRefsInRender = true;
                        }
                    }
                    var fiber = get(component);
                    if (!fiber) {
                        return false;
                    }
                    return isFiberMountedImpl(fiber) === MOUNTED;
                }
                function assertIsMounted(fiber) {
                    !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
                }
                function findCurrentFiberUsingSlowPath(fiber) {
                    var alternate = fiber.alternate;
                    if (!alternate) {
                        // If there is no alternate, then we only need to check if it is mounted.
                        var state = isFiberMountedImpl(fiber);
                        !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
                        if (state === MOUNTING) {
                            return null;
                        }
                        return fiber;
                    }
                    // If we have two possible branches, we'll walk backwards up to the root
                    // to see what path the root points to. On the way we may hit one of the
                    // special cases and we'll deal with them.
                    var a = fiber;
                    var b = alternate;
                    while (true) {
                        var parentA = a.return;
                        var parentB = parentA ? parentA.alternate : null;
                        if (!parentA || !parentB) {
                            // We're at the root.
                            break;
                        }
                        // If both copies of the parent fiber point to the same child, we can
                        // assume that the child is current. This happens when we bailout on low
                        // priority: the bailed out fiber's child reuses the current child.
                        if (parentA.child === parentB.child) {
                            var child = parentA.child;
                            while (child) {
                                if (child === a) {
                                    // We've determined that A is the current branch.
                                    assertIsMounted(parentA);
                                    return fiber;
                                }
                                if (child === b) {
                                    // We've determined that B is the current branch.
                                    assertIsMounted(parentA);
                                    return alternate;
                                }
                                child = child.sibling;
                            }
                            // We should never have an alternate for any mounting node. So the only
                            // way this could possibly happen is if this was unmounted, if at all.
                            invariant(false, 'Unable to find node on an unmounted component.');
                        }
                        if (a.return !== b.return) {
                            // The return pointer of A and the return pointer of B point to different
                            // fibers. We assume that return pointers never criss-cross, so A must
                            // belong to the child set of A.return, and B must belong to the child
                            // set of B.return.
                            a = parentA;
                            b = parentB;
                        }
                        else {
                            // The return pointers point to the same fiber. We'll have to use the
                            // default, slow path: scan the child sets of each parent alternate to see
                            // which child belongs to which set.
                            //
                            // Search parent A's child set
                            var didFindChild = false;
                            var _child = parentA.child;
                            while (_child) {
                                if (_child === a) {
                                    didFindChild = true;
                                    a = parentA;
                                    b = parentB;
                                    break;
                                }
                                if (_child === b) {
                                    didFindChild = true;
                                    b = parentA;
                                    a = parentB;
                                    break;
                                }
                                _child = _child.sibling;
                            }
                            if (!didFindChild) {
                                // Search parent B's child set
                                _child = parentB.child;
                                while (_child) {
                                    if (_child === a) {
                                        didFindChild = true;
                                        a = parentB;
                                        b = parentA;
                                        break;
                                    }
                                    if (_child === b) {
                                        didFindChild = true;
                                        b = parentB;
                                        a = parentA;
                                        break;
                                    }
                                    _child = _child.sibling;
                                }
                                !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
                            }
                        }
                        !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    }
                    // If the root is not a host container, we're in a disconnected tree. I.e.
                    // unmounted.
                    !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
                    if (a.stateNode.current === a) {
                        // We've determined that A is the current branch.
                        return fiber;
                    }
                    // Otherwise B has to be current branch.
                    return alternate;
                }
                function findCurrentHostFiber(parent) {
                    var currentParent = findCurrentFiberUsingSlowPath(parent);
                    if (!currentParent) {
                        return null;
                    }
                    // Next we'll drill down this component to find the first HostComponent/Text.
                    var node = currentParent;
                    while (true) {
                        if (node.tag === HostComponent || node.tag === HostText) {
                            return node;
                        }
                        else if (node.child) {
                            node.child.return = node;
                            node = node.child;
                            continue;
                        }
                        if (node === currentParent) {
                            return null;
                        }
                        while (!node.sibling) {
                            if (!node.return || node.return === currentParent) {
                                return null;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                    // Flow needs the return null here, but ESLint complains about it.
                    // eslint-disable-next-line no-unreachable
                    return null;
                }
                function findCurrentHostFiberWithNoPortals(parent) {
                    var currentParent = findCurrentFiberUsingSlowPath(parent);
                    if (!currentParent) {
                        return null;
                    }
                    // Next we'll drill down this component to find the first HostComponent/Text.
                    var node = currentParent;
                    while (true) {
                        if (node.tag === HostComponent || node.tag === HostText) {
                            return node;
                        }
                        else if (node.child && node.tag !== HostPortal) {
                            node.child.return = node;
                            node = node.child;
                            continue;
                        }
                        if (node === currentParent) {
                            return null;
                        }
                        while (!node.sibling) {
                            if (!node.return || node.return === currentParent) {
                                return null;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                    // Flow needs the return null here, but ESLint complains about it.
                    // eslint-disable-next-line no-unreachable
                    return null;
                }
                function addEventBubbleListener(element, eventType, listener) {
                    element.addEventListener(eventType, listener, false);
                }
                function addEventCaptureListener(element, eventType, listener) {
                    element.addEventListener(eventType, listener, true);
                }
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
                 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
                 */
                var SyntheticAnimationEvent = SyntheticEvent.extend({
                    animationName: null,
                    elapsedTime: null,
                    pseudoElement: null
                });
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/clipboard-apis/
                 */
                var SyntheticClipboardEvent = SyntheticEvent.extend({
                    clipboardData: function (event) {
                        return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
                    }
                });
                /**
                 * @interface FocusEvent
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var SyntheticFocusEvent = SyntheticUIEvent.extend({
                    relatedTarget: null
                });
                /**
                 * `charCode` represents the actual "character code" and is safe to use with
                 * `String.fromCharCode`. As such, only keys that correspond to printable
                 * characters produce a valid `charCode`, the only exception to this is Enter.
                 * The Tab-key is considered non-printable and does not have a `charCode`,
                 * presumably because it does not produce a tab-character in browsers.
                 *
                 * @param {object} nativeEvent Native browser event.
                 * @return {number} Normalized `charCode` property.
                 */
                function getEventCharCode(nativeEvent) {
                    var charCode = void 0;
                    var keyCode = nativeEvent.keyCode;
                    if ('charCode' in nativeEvent) {
                        charCode = nativeEvent.charCode;
                        // FF does not set `charCode` for the Enter-key, check against `keyCode`.
                        if (charCode === 0 && keyCode === 13) {
                            charCode = 13;
                        }
                    }
                    else {
                        // IE8 does not implement `charCode`, but `keyCode` has the correct value.
                        charCode = keyCode;
                    }
                    // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
                    // report Enter as charCode 10 when ctrl is pressed.
                    if (charCode === 10) {
                        charCode = 13;
                    }
                    // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
                    // Must not discard the (non-)printable Enter-key.
                    if (charCode >= 32 || charCode === 13) {
                        return charCode;
                    }
                    return 0;
                }
                /**
                 * Normalization of deprecated HTML5 `key` values
                 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
                 */
                var normalizeKey = {
                    Esc: 'Escape',
                    Spacebar: ' ',
                    Left: 'ArrowLeft',
                    Up: 'ArrowUp',
                    Right: 'ArrowRight',
                    Down: 'ArrowDown',
                    Del: 'Delete',
                    Win: 'OS',
                    Menu: 'ContextMenu',
                    Apps: 'ContextMenu',
                    Scroll: 'ScrollLock',
                    MozPrintableKey: 'Unidentified'
                };
                /**
                 * Translation from legacy `keyCode` to HTML5 `key`
                 * Only special keys supported, all others depend on keyboard layout or browser
                 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
                 */
                var translateToKey = {
                    '8': 'Backspace',
                    '9': 'Tab',
                    '12': 'Clear',
                    '13': 'Enter',
                    '16': 'Shift',
                    '17': 'Control',
                    '18': 'Alt',
                    '19': 'Pause',
                    '20': 'CapsLock',
                    '27': 'Escape',
                    '32': ' ',
                    '33': 'PageUp',
                    '34': 'PageDown',
                    '35': 'End',
                    '36': 'Home',
                    '37': 'ArrowLeft',
                    '38': 'ArrowUp',
                    '39': 'ArrowRight',
                    '40': 'ArrowDown',
                    '45': 'Insert',
                    '46': 'Delete',
                    '112': 'F1',
                    '113': 'F2',
                    '114': 'F3',
                    '115': 'F4',
                    '116': 'F5',
                    '117': 'F6',
                    '118': 'F7',
                    '119': 'F8',
                    '120': 'F9',
                    '121': 'F10',
                    '122': 'F11',
                    '123': 'F12',
                    '144': 'NumLock',
                    '145': 'ScrollLock',
                    '224': 'Meta'
                };
                /**
                 * @param {object} nativeEvent Native browser event.
                 * @return {string} Normalized `key` property.
                 */
                function getEventKey(nativeEvent) {
                    if (nativeEvent.key) {
                        // Normalize inconsistent values reported by browsers due to
                        // implementations of a working draft specification.
                        // FireFox implements `key` but returns `MozPrintableKey` for all
                        // printable characters (normalized to `Unidentified`), ignore it.
                        var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
                        if (key !== 'Unidentified') {
                            return key;
                        }
                    }
                    // Browser does not implement `key`, polyfill as much of it as we can.
                    if (nativeEvent.type === 'keypress') {
                        var charCode = getEventCharCode(nativeEvent);
                        // The enter-key is technically both printable and non-printable and can
                        // thus be captured by `keypress`, no other non-printable key should.
                        return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
                    }
                    if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
                        // While user keyboard layout determines the actual meaning of each
                        // `keyCode` value, almost all function keys have a universal value.
                        return translateToKey[nativeEvent.keyCode] || 'Unidentified';
                    }
                    return '';
                }
                /**
                 * @interface KeyboardEvent
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
                    key: getEventKey,
                    location: null,
                    ctrlKey: null,
                    shiftKey: null,
                    altKey: null,
                    metaKey: null,
                    repeat: null,
                    locale: null,
                    getModifierState: getEventModifierState,
                    // Legacy Interface
                    charCode: function (event) {
                        // `charCode` is the result of a KeyPress event and represents the value of
                        // the actual printable character.
                        // KeyPress is deprecated, but its replacement is not yet final and not
                        // implemented in any major browser. Only KeyPress has charCode.
                        if (event.type === 'keypress') {
                            return getEventCharCode(event);
                        }
                        return 0;
                    },
                    keyCode: function (event) {
                        // `keyCode` is the result of a KeyDown/Up event and represents the value of
                        // physical keyboard key.
                        // The actual meaning of the value depends on the users' keyboard layout
                        // which cannot be detected. Assuming that it is a US keyboard layout
                        // provides a surprisingly accurate mapping for US and European users.
                        // Due to this, it is left to the user to implement at this time.
                        if (event.type === 'keydown' || event.type === 'keyup') {
                            return event.keyCode;
                        }
                        return 0;
                    },
                    which: function (event) {
                        // `which` is an alias for either `keyCode` or `charCode` depending on the
                        // type of the event.
                        if (event.type === 'keypress') {
                            return getEventCharCode(event);
                        }
                        if (event.type === 'keydown' || event.type === 'keyup') {
                            return event.keyCode;
                        }
                        return 0;
                    }
                });
                /**
                 * @interface DragEvent
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var SyntheticDragEvent = SyntheticMouseEvent.extend({
                    dataTransfer: null
                });
                /**
                 * @interface TouchEvent
                 * @see http://www.w3.org/TR/touch-events/
                 */
                var SyntheticTouchEvent = SyntheticUIEvent.extend({
                    touches: null,
                    targetTouches: null,
                    changedTouches: null,
                    altKey: null,
                    metaKey: null,
                    ctrlKey: null,
                    shiftKey: null,
                    getModifierState: getEventModifierState
                });
                /**
                 * @interface Event
                 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
                 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
                 */
                var SyntheticTransitionEvent = SyntheticEvent.extend({
                    propertyName: null,
                    elapsedTime: null,
                    pseudoElement: null
                });
                /**
                 * @interface WheelEvent
                 * @see http://www.w3.org/TR/DOM-Level-3-Events/
                 */
                var SyntheticWheelEvent = SyntheticMouseEvent.extend({
                    deltaX: function (event) {
                        return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
                            'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
                    },
                    deltaY: function (event) {
                        return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
                            'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
                                'wheelDelta' in event ? -event.wheelDelta : 0;
                    },
                    deltaZ: null,
                    // Browsers without "deltaMode" is reporting in raw wheel delta where one
                    // notch on the scroll is always +/- 120, roughly equivalent to pixels.
                    // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
                    // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
                    deltaMode: null
                });
                /**
                 * Turns
                 * ['abort', ...]
                 * into
                 * eventTypes = {
                 *   'abort': {
                 *     phasedRegistrationNames: {
                 *       bubbled: 'onAbort',
                 *       captured: 'onAbortCapture',
                 *     },
                 *     dependencies: [TOP_ABORT],
                 *   },
                 *   ...
                 * };
                 * topLevelEventsToDispatchConfig = new Map([
                 *   [TOP_ABORT, { sameConfig }],
                 * ]);
                 */
                var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];
                var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];
                var eventTypes$4 = {};
                var topLevelEventsToDispatchConfig = {};
                function addEventTypeNameToConfig(_ref, isInteractive) {
                    var topEvent = _ref[0], event = _ref[1];
                    var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
                    var onEvent = 'on' + capitalizedEvent;
                    var type = {
                        phasedRegistrationNames: {
                            bubbled: onEvent,
                            captured: onEvent + 'Capture'
                        },
                        dependencies: [topEvent],
                        isInteractive: isInteractive
                    };
                    eventTypes$4[event] = type;
                    topLevelEventsToDispatchConfig[topEvent] = type;
                }
                interactiveEventTypeNames.forEach(function (eventTuple) {
                    addEventTypeNameToConfig(eventTuple, true);
                });
                nonInteractiveEventTypeNames.forEach(function (eventTuple) {
                    addEventTypeNameToConfig(eventTuple, false);
                });
                // Only used in DEV for exhaustiveness validation.
                var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];
                var SimpleEventPlugin = {
                    eventTypes: eventTypes$4,
                    isInteractiveTopLevelEventType: function (topLevelType) {
                        var config = topLevelEventsToDispatchConfig[topLevelType];
                        return config !== undefined && config.isInteractive === true;
                    },
                    extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                        var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
                        if (!dispatchConfig) {
                            return null;
                        }
                        var EventConstructor = void 0;
                        switch (topLevelType) {
                            case TOP_KEY_PRESS:
                                // Firefox creates a keypress event for function keys too. This removes
                                // the unwanted keypress events. Enter is however both printable and
                                // non-printable. One would expect Tab to be as well (but it isn't).
                                if (getEventCharCode(nativeEvent) === 0) {
                                    return null;
                                }
                            /* falls through */
                            case TOP_KEY_DOWN:
                            case TOP_KEY_UP:
                                EventConstructor = SyntheticKeyboardEvent;
                                break;
                            case TOP_BLUR:
                            case TOP_FOCUS:
                                EventConstructor = SyntheticFocusEvent;
                                break;
                            case TOP_CLICK:
                                // Firefox creates a click event on right mouse clicks. This removes the
                                // unwanted click events.
                                if (nativeEvent.button === 2) {
                                    return null;
                                }
                            /* falls through */
                            case TOP_AUX_CLICK:
                            case TOP_DOUBLE_CLICK:
                            case TOP_MOUSE_DOWN:
                            case TOP_MOUSE_MOVE:
                            case TOP_MOUSE_UP:
                            // TODO: Disabled elements should not respond to mouse events
                            /* falls through */
                            case TOP_MOUSE_OUT:
                            case TOP_MOUSE_OVER:
                            case TOP_CONTEXT_MENU:
                                EventConstructor = SyntheticMouseEvent;
                                break;
                            case TOP_DRAG:
                            case TOP_DRAG_END:
                            case TOP_DRAG_ENTER:
                            case TOP_DRAG_EXIT:
                            case TOP_DRAG_LEAVE:
                            case TOP_DRAG_OVER:
                            case TOP_DRAG_START:
                            case TOP_DROP:
                                EventConstructor = SyntheticDragEvent;
                                break;
                            case TOP_TOUCH_CANCEL:
                            case TOP_TOUCH_END:
                            case TOP_TOUCH_MOVE:
                            case TOP_TOUCH_START:
                                EventConstructor = SyntheticTouchEvent;
                                break;
                            case TOP_ANIMATION_END:
                            case TOP_ANIMATION_ITERATION:
                            case TOP_ANIMATION_START:
                                EventConstructor = SyntheticAnimationEvent;
                                break;
                            case TOP_TRANSITION_END:
                                EventConstructor = SyntheticTransitionEvent;
                                break;
                            case TOP_SCROLL:
                                EventConstructor = SyntheticUIEvent;
                                break;
                            case TOP_WHEEL:
                                EventConstructor = SyntheticWheelEvent;
                                break;
                            case TOP_COPY:
                            case TOP_CUT:
                            case TOP_PASTE:
                                EventConstructor = SyntheticClipboardEvent;
                                break;
                            case TOP_GOT_POINTER_CAPTURE:
                            case TOP_LOST_POINTER_CAPTURE:
                            case TOP_POINTER_CANCEL:
                            case TOP_POINTER_DOWN:
                            case TOP_POINTER_MOVE:
                            case TOP_POINTER_OUT:
                            case TOP_POINTER_OVER:
                            case TOP_POINTER_UP:
                                EventConstructor = SyntheticPointerEvent;
                                break;
                            default:
                                {
                                    if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
                                        warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
                                    }
                                }
                                // HTML Events
                                // @see http://www.w3.org/TR/html5/index.html#events-0
                                EventConstructor = SyntheticEvent;
                                break;
                        }
                        var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
                        accumulateTwoPhaseDispatches(event);
                        return event;
                    }
                };
                var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;
                var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
                var callbackBookkeepingPool = [];
                /**
                 * Find the deepest React component completely containing the root of the
                 * passed-in instance (for use when entire React trees are nested within each
                 * other). If React trees are not nested, returns null.
                 */
                function findRootContainerNode(inst) {
                    // TODO: It may be a good idea to cache this to prevent unnecessary DOM
                    // traversal, but caching is difficult to do correctly without using a
                    // mutation observer to listen for all DOM changes.
                    while (inst.return) {
                        inst = inst.return;
                    }
                    if (inst.tag !== HostRoot) {
                        // This can happen if we're in a detached tree.
                        return null;
                    }
                    return inst.stateNode.containerInfo;
                }
                // Used to store ancestor hierarchy in top level callback
                function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
                    if (callbackBookkeepingPool.length) {
                        var instance = callbackBookkeepingPool.pop();
                        instance.topLevelType = topLevelType;
                        instance.nativeEvent = nativeEvent;
                        instance.targetInst = targetInst;
                        return instance;
                    }
                    return {
                        topLevelType: topLevelType,
                        nativeEvent: nativeEvent,
                        targetInst: targetInst,
                        ancestors: []
                    };
                }
                function releaseTopLevelCallbackBookKeeping(instance) {
                    instance.topLevelType = null;
                    instance.nativeEvent = null;
                    instance.targetInst = null;
                    instance.ancestors.length = 0;
                    if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
                        callbackBookkeepingPool.push(instance);
                    }
                }
                function handleTopLevel(bookKeeping) {
                    var targetInst = bookKeeping.targetInst;
                    // Loop through the hierarchy, in case there's any nested components.
                    // It's important that we build the array of ancestors before calling any
                    // event handlers, because event handlers can modify the DOM, leading to
                    // inconsistencies with ReactMount's node cache. See #1105.
                    var ancestor = targetInst;
                    do {
                        if (!ancestor) {
                            bookKeeping.ancestors.push(ancestor);
                            break;
                        }
                        var root = findRootContainerNode(ancestor);
                        if (!root) {
                            break;
                        }
                        bookKeeping.ancestors.push(ancestor);
                        ancestor = getClosestInstanceFromNode(root);
                    } while (ancestor);
                    for (var i = 0; i < bookKeeping.ancestors.length; i++) {
                        targetInst = bookKeeping.ancestors[i];
                        runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
                    }
                }
                // TODO: can we stop exporting these?
                var _enabled = true;
                function setEnabled(enabled) {
                    _enabled = !!enabled;
                }
                function isEnabled() {
                    return _enabled;
                }
                /**
                 * Traps top-level events by using event bubbling.
                 *
                 * @param {number} topLevelType Number from `TopLevelEventTypes`.
                 * @param {object} element Element on which to attach listener.
                 * @return {?object} An object with a remove function which will forcefully
                 *                  remove the listener.
                 * @internal
                 */
                function trapBubbledEvent(topLevelType, element) {
                    if (!element) {
                        return null;
                    }
                    var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
                    addEventBubbleListener(element, getRawEventName(topLevelType), 
                    // Check if interactive and wrap in interactiveUpdates
                    dispatch.bind(null, topLevelType));
                }
                /**
                 * Traps a top-level event by using event capturing.
                 *
                 * @param {number} topLevelType Number from `TopLevelEventTypes`.
                 * @param {object} element Element on which to attach listener.
                 * @return {?object} An object with a remove function which will forcefully
                 *                  remove the listener.
                 * @internal
                 */
                function trapCapturedEvent(topLevelType, element) {
                    if (!element) {
                        return null;
                    }
                    var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
                    addEventCaptureListener(element, getRawEventName(topLevelType), 
                    // Check if interactive and wrap in interactiveUpdates
                    dispatch.bind(null, topLevelType));
                }
                function dispatchInteractiveEvent(topLevelType, nativeEvent) {
                    interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
                }
                function dispatchEvent(topLevelType, nativeEvent) {
                    if (!_enabled) {
                        return;
                    }
                    var nativeEventTarget = getEventTarget(nativeEvent);
                    var targetInst = getClosestInstanceFromNode(nativeEventTarget);
                    if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
                        // If we get an event (ex: img onload) before committing that
                        // component's mount, ignore it for now (that is, treat it as if it was an
                        // event on a non-React tree). We might also consider queueing events and
                        // dispatching them after the mount.
                        targetInst = null;
                    }
                    var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
                    try {
                        // Event queue being processed in the same cycle allows
                        // `preventDefault`.
                        batchedUpdates(handleTopLevel, bookKeeping);
                    }
                    finally {
                        releaseTopLevelCallbackBookKeeping(bookKeeping);
                    }
                }
                /**
                 * Summary of `ReactBrowserEventEmitter` event handling:
                 *
                 *  - Top-level delegation is used to trap most native browser events. This
                 *    may only occur in the main thread and is the responsibility of
                 *    ReactDOMEventListener, which is injected and can therefore support
                 *    pluggable event sources. This is the only work that occurs in the main
                 *    thread.
                 *
                 *  - We normalize and de-duplicate events to account for browser quirks. This
                 *    may be done in the worker thread.
                 *
                 *  - Forward these native events (with the associated top-level type used to
                 *    trap it) to `EventPluginHub`, which in turn will ask plugins if they want
                 *    to extract any synthetic events.
                 *
                 *  - The `EventPluginHub` will then process each event by annotating them with
                 *    "dispatches", a sequence of listeners and IDs that care about that event.
                 *
                 *  - The `EventPluginHub` then dispatches the events.
                 *
                 * Overview of React and the event system:
                 *
                 * +------------+    .
                 * |    DOM     |    .
                 * +------------+    .
                 *       |           .
                 *       v           .
                 * +------------+    .
                 * | ReactEvent |    .
                 * |  Listener  |    .
                 * +------------+    .                         +-----------+
                 *       |           .               +--------+|SimpleEvent|
                 *       |           .               |         |Plugin     |
                 * +-----|------+    .               v         +-----------+
                 * |     |      |    .    +--------------+                    +------------+
                 * |     +-----------.--->|EventPluginHub|                    |    Event   |
                 * |            |    .    |              |     +-----------+  | Propagators|
                 * | ReactEvent |    .    |              |     |TapEvent   |  |------------|
                 * |  Emitter   |    .    |              |<---+|Plugin     |  |other plugin|
                 * |            |    .    |              |     +-----------+  |  utilities |
                 * |     +-----------.--->|              |                    +------------+
                 * |     |      |    .    +--------------+
                 * +-----|------+    .                ^        +-----------+
                 *       |           .                |        |Enter/Leave|
                 *       +           .                +-------+|Plugin     |
                 * +-------------+   .                         +-----------+
                 * | application |   .
                 * |-------------|   .
                 * |             |   .
                 * |             |   .
                 * +-------------+   .
                 *                   .
                 *    React Core     .  General Purpose Event Plugin System
                 */
                var alreadyListeningTo = {};
                var reactTopListenersCounter = 0;
                /**
                 * To ensure no conflicts with other potential React instances on the page
                 */
                var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
                function getListeningForDocument(mountAt) {
                    // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
                    // directly.
                    if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
                        mountAt[topListenersIDKey] = reactTopListenersCounter++;
                        alreadyListeningTo[mountAt[topListenersIDKey]] = {};
                    }
                    return alreadyListeningTo[mountAt[topListenersIDKey]];
                }
                /**
                 * We listen for bubbled touch events on the document object.
                 *
                 * Firefox v8.01 (and possibly others) exhibited strange behavior when
                 * mounting `onmousemove` events at some node that was not the document
                 * element. The symptoms were that if your mouse is not moving over something
                 * contained within that mount point (for example on the background) the
                 * top-level listeners for `onmousemove` won't be called. However, if you
                 * register the `mousemove` on the document object, then it will of course
                 * catch all `mousemove`s. This along with iOS quirks, justifies restricting
                 * top-level listeners to the document object only, at least for these
                 * movement types of events and possibly all events.
                 *
                 * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
                 *
                 * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
                 * they bubble to document.
                 *
                 * @param {string} registrationName Name of listener (e.g. `onClick`).
                 * @param {object} mountAt Container where to mount the listener
                 */
                function listenTo(registrationName, mountAt) {
                    var isListening = getListeningForDocument(mountAt);
                    var dependencies = registrationNameDependencies[registrationName];
                    for (var i = 0; i < dependencies.length; i++) {
                        var dependency = dependencies[i];
                        if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
                            switch (dependency) {
                                case TOP_SCROLL:
                                    trapCapturedEvent(TOP_SCROLL, mountAt);
                                    break;
                                case TOP_FOCUS:
                                case TOP_BLUR:
                                    trapCapturedEvent(TOP_FOCUS, mountAt);
                                    trapCapturedEvent(TOP_BLUR, mountAt);
                                    // We set the flag for a single dependency later in this function,
                                    // but this ensures we mark both as attached rather than just one.
                                    isListening[TOP_BLUR] = true;
                                    isListening[TOP_FOCUS] = true;
                                    break;
                                case TOP_CANCEL:
                                case TOP_CLOSE:
                                    if (isEventSupported(getRawEventName(dependency))) {
                                        trapCapturedEvent(dependency, mountAt);
                                    }
                                    break;
                                case TOP_INVALID:
                                case TOP_SUBMIT:
                                case TOP_RESET:
                                    // We listen to them on the target DOM elements.
                                    // Some of them bubble so we don't want them to fire twice.
                                    break;
                                default:
                                    // By default, listen on the top level to all non-media events.
                                    // Media events don't bubble so adding the listener wouldn't do anything.
                                    var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
                                    if (!isMediaEvent) {
                                        trapBubbledEvent(dependency, mountAt);
                                    }
                                    break;
                            }
                            isListening[dependency] = true;
                        }
                    }
                }
                function isListeningToAllDependencies(registrationName, mountAt) {
                    var isListening = getListeningForDocument(mountAt);
                    var dependencies = registrationNameDependencies[registrationName];
                    for (var i = 0; i < dependencies.length; i++) {
                        var dependency = dependencies[i];
                        if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
                            return false;
                        }
                    }
                    return true;
                }
                function getActiveElement(doc) {
                    doc = doc || (typeof document !== 'undefined' ? document : undefined);
                    if (typeof doc === 'undefined') {
                        return null;
                    }
                    try {
                        return doc.activeElement || doc.body;
                    }
                    catch (e) {
                        return doc.body;
                    }
                }
                /**
                 * Given any node return the first leaf node without children.
                 *
                 * @param {DOMElement|DOMTextNode} node
                 * @return {DOMElement|DOMTextNode}
                 */
                function getLeafNode(node) {
                    while (node && node.firstChild) {
                        node = node.firstChild;
                    }
                    return node;
                }
                /**
                 * Get the next sibling within a container. This will walk up the
                 * DOM if a node's siblings have been exhausted.
                 *
                 * @param {DOMElement|DOMTextNode} node
                 * @return {?DOMElement|DOMTextNode}
                 */
                function getSiblingNode(node) {
                    while (node) {
                        if (node.nextSibling) {
                            return node.nextSibling;
                        }
                        node = node.parentNode;
                    }
                }
                /**
                 * Get object describing the nodes which contain characters at offset.
                 *
                 * @param {DOMElement|DOMTextNode} root
                 * @param {number} offset
                 * @return {?object}
                 */
                function getNodeForCharacterOffset(root, offset) {
                    var node = getLeafNode(root);
                    var nodeStart = 0;
                    var nodeEnd = 0;
                    while (node) {
                        if (node.nodeType === TEXT_NODE) {
                            nodeEnd = nodeStart + node.textContent.length;
                            if (nodeStart <= offset && nodeEnd >= offset) {
                                return {
                                    node: node,
                                    offset: offset - nodeStart
                                };
                            }
                            nodeStart = nodeEnd;
                        }
                        node = getLeafNode(getSiblingNode(node));
                    }
                }
                /**
                 * @param {DOMElement} outerNode
                 * @return {?object}
                 */
                function getOffsets(outerNode) {
                    var ownerDocument = outerNode.ownerDocument;
                    var win = ownerDocument && ownerDocument.defaultView || window;
                    var selection = win.getSelection && win.getSelection();
                    if (!selection || selection.rangeCount === 0) {
                        return null;
                    }
                    var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset;
                    // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
                    // up/down buttons on an <input type="number">. Anonymous divs do not seem to
                    // expose properties, triggering a "Permission denied error" if any of its
                    // properties are accessed. The only seemingly possible way to avoid erroring
                    // is to access a property that typically works for non-anonymous divs and
                    // catch any error that may otherwise arise. See
                    // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
                    try {
                        /* eslint-disable no-unused-expressions */
                        anchorNode.nodeType;
                        focusNode.nodeType;
                        /* eslint-enable no-unused-expressions */
                    }
                    catch (e) {
                        return null;
                    }
                    return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
                }
                /**
                 * Returns {start, end} where `start` is the character/codepoint index of
                 * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
                 * `end` is the index of (focusNode, focusOffset).
                 *
                 * Returns null if you pass in garbage input but we should probably just crash.
                 *
                 * Exported only for testing.
                 */
                function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
                    var length = 0;
                    var start = -1;
                    var end = -1;
                    var indexWithinAnchor = 0;
                    var indexWithinFocus = 0;
                    var node = outerNode;
                    var parentNode = null;
                    outer: while (true) {
                        var next = null;
                        while (true) {
                            if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
                                start = length + anchorOffset;
                            }
                            if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
                                end = length + focusOffset;
                            }
                            if (node.nodeType === TEXT_NODE) {
                                length += node.nodeValue.length;
                            }
                            if ((next = node.firstChild) === null) {
                                break;
                            }
                            // Moving from `node` to its first child `next`.
                            parentNode = node;
                            node = next;
                        }
                        while (true) {
                            if (node === outerNode) {
                                // If `outerNode` has children, this is always the second time visiting
                                // it. If it has no children, this is still the first loop, and the only
                                // valid selection is anchorNode and focusNode both equal to this node
                                // and both offsets 0, in which case we will have handled above.
                                break outer;
                            }
                            if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
                                start = length;
                            }
                            if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
                                end = length;
                            }
                            if ((next = node.nextSibling) !== null) {
                                break;
                            }
                            node = parentNode;
                            parentNode = node.parentNode;
                        }
                        // Moving from `node` to its next sibling `next`.
                        node = next;
                    }
                    if (start === -1 || end === -1) {
                        // This should never happen. (Would happen if the anchor/focus nodes aren't
                        // actually inside the passed-in node.)
                        return null;
                    }
                    return {
                        start: start,
                        end: end
                    };
                }
                /**
                 * In modern non-IE browsers, we can support both forward and backward
                 * selections.
                 *
                 * Note: IE10+ supports the Selection object, but it does not support
                 * the `extend` method, which means that even in modern IE, it's not possible
                 * to programmatically create a backward selection. Thus, for all IE
                 * versions, we use the old IE API to create our selections.
                 *
                 * @param {DOMElement|DOMTextNode} node
                 * @param {object} offsets
                 */
                function setOffsets(node, offsets) {
                    var doc = node.ownerDocument || document;
                    var win = doc && doc.defaultView || window;
                    var selection = win.getSelection();
                    var length = node.textContent.length;
                    var start = Math.min(offsets.start, length);
                    var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
                    // IE 11 uses modern selection, but doesn't support the extend method.
                    // Flip backward selections, so we can set with a single range.
                    if (!selection.extend && start > end) {
                        var temp = end;
                        end = start;
                        start = temp;
                    }
                    var startMarker = getNodeForCharacterOffset(node, start);
                    var endMarker = getNodeForCharacterOffset(node, end);
                    if (startMarker && endMarker) {
                        if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
                            return;
                        }
                        var range = doc.createRange();
                        range.setStart(startMarker.node, startMarker.offset);
                        selection.removeAllRanges();
                        if (start > end) {
                            selection.addRange(range);
                            selection.extend(endMarker.node, endMarker.offset);
                        }
                        else {
                            range.setEnd(endMarker.node, endMarker.offset);
                            selection.addRange(range);
                        }
                    }
                }
                function isTextNode(node) {
                    return node && node.nodeType === TEXT_NODE;
                }
                function containsNode(outerNode, innerNode) {
                    if (!outerNode || !innerNode) {
                        return false;
                    }
                    else if (outerNode === innerNode) {
                        return true;
                    }
                    else if (isTextNode(outerNode)) {
                        return false;
                    }
                    else if (isTextNode(innerNode)) {
                        return containsNode(outerNode, innerNode.parentNode);
                    }
                    else if ('contains' in outerNode) {
                        return outerNode.contains(innerNode);
                    }
                    else if (outerNode.compareDocumentPosition) {
                        return !!(outerNode.compareDocumentPosition(innerNode) & 16);
                    }
                    else {
                        return false;
                    }
                }
                function isInDocument(node) {
                    return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
                }
                function getActiveElementDeep() {
                    var win = window;
                    var element = getActiveElement();
                    while (element instanceof win.HTMLIFrameElement) {
                        // Accessing the contentDocument of a HTMLIframeElement can cause the browser
                        // to throw, e.g. if it has a cross-origin src attribute
                        try {
                            win = element.contentDocument.defaultView;
                        }
                        catch (e) {
                            return element;
                        }
                        element = getActiveElement(win.document);
                    }
                    return element;
                }
                /**
                 * @ReactInputSelection: React input selection module. Based on Selection.js,
                 * but modified to be suitable for react and has a couple of bug fixes (doesn't
                 * assume buttons have range selections allowed).
                 * Input selection module for React.
                 */
                /**
                 * @hasSelectionCapabilities: we get the element types that support selection
                 * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
                 * and `selectionEnd` rows.
                 */
                function hasSelectionCapabilities(elem) {
                    var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
                    return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
                }
                function getSelectionInformation() {
                    var focusedElem = getActiveElementDeep();
                    return {
                        focusedElem: focusedElem,
                        selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
                    };
                }
                /**
                 * @restoreSelection: If any selection information was potentially lost,
                 * restore it. This is useful when performing operations that could remove dom
                 * nodes and place them back in, resulting in focus being lost.
                 */
                function restoreSelection(priorSelectionInformation) {
                    var curFocusedElem = getActiveElementDeep();
                    var priorFocusedElem = priorSelectionInformation.focusedElem;
                    var priorSelectionRange = priorSelectionInformation.selectionRange;
                    if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
                        if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
                            setSelection(priorFocusedElem, priorSelectionRange);
                        }
                        // Focusing a node can change the scroll position, which is undesirable
                        var ancestors = [];
                        var ancestor = priorFocusedElem;
                        while (ancestor = ancestor.parentNode) {
                            if (ancestor.nodeType === ELEMENT_NODE) {
                                ancestors.push({
                                    element: ancestor,
                                    left: ancestor.scrollLeft,
                                    top: ancestor.scrollTop
                                });
                            }
                        }
                        if (typeof priorFocusedElem.focus === 'function') {
                            priorFocusedElem.focus();
                        }
                        for (var i = 0; i < ancestors.length; i++) {
                            var info = ancestors[i];
                            info.element.scrollLeft = info.left;
                            info.element.scrollTop = info.top;
                        }
                    }
                }
                /**
                 * @getSelection: Gets the selection bounds of a focused textarea, input or
                 * contentEditable node.
                 * -@input: Look up selection bounds of this input
                 * -@return {start: selectionStart, end: selectionEnd}
                 */
                function getSelection$1(input) {
                    var selection = void 0;
                    if ('selectionStart' in input) {
                        // Modern browser with input or textarea.
                        selection = {
                            start: input.selectionStart,
                            end: input.selectionEnd
                        };
                    }
                    else {
                        // Content editable or old IE textarea.
                        selection = getOffsets(input);
                    }
                    return selection || { start: 0, end: 0 };
                }
                /**
                 * @setSelection: Sets the selection bounds of a textarea or input and focuses
                 * the input.
                 * -@input     Set selection bounds of this input or textarea
                 * -@offsets   Object of same form that is returned from get*
                 */
                function setSelection(input, offsets) {
                    var start = offsets.start, end = offsets.end;
                    if (end === undefined) {
                        end = start;
                    }
                    if ('selectionStart' in input) {
                        input.selectionStart = start;
                        input.selectionEnd = Math.min(end, input.value.length);
                    }
                    else {
                        setOffsets(input, offsets);
                    }
                }
                var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
                var eventTypes$3 = {
                    select: {
                        phasedRegistrationNames: {
                            bubbled: 'onSelect',
                            captured: 'onSelectCapture'
                        },
                        dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
                    }
                };
                var activeElement$1 = null;
                var activeElementInst$1 = null;
                var lastSelection = null;
                var mouseDown = false;
                /**
                 * Get an object which is a unique representation of the current selection.
                 *
                 * The return value will not be consistent across nodes or browsers, but
                 * two identical selections on the same node will return identical objects.
                 *
                 * @param {DOMElement} node
                 * @return {object}
                 */
                function getSelection(node) {
                    if ('selectionStart' in node && hasSelectionCapabilities(node)) {
                        return {
                            start: node.selectionStart,
                            end: node.selectionEnd
                        };
                    }
                    else {
                        var win = node.ownerDocument && node.ownerDocument.defaultView || window;
                        var selection = win.getSelection();
                        return {
                            anchorNode: selection.anchorNode,
                            anchorOffset: selection.anchorOffset,
                            focusNode: selection.focusNode,
                            focusOffset: selection.focusOffset
                        };
                    }
                }
                /**
                 * Get document associated with the event target.
                 *
                 * @param {object} nativeEventTarget
                 * @return {Document}
                 */
                function getEventTargetDocument(eventTarget) {
                    return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
                }
                /**
                 * Poll selection to see whether it's changed.
                 *
                 * @param {object} nativeEvent
                 * @param {object} nativeEventTarget
                 * @return {?SyntheticEvent}
                 */
                function constructSelectEvent(nativeEvent, nativeEventTarget) {
                    // Ensure we have the right element, and that the user is not dragging a
                    // selection (this matches native `select` event behavior). In HTML5, select
                    // fires only on input and textarea thus if there's no focused element we
                    // won't dispatch.
                    var doc = getEventTargetDocument(nativeEventTarget);
                    if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
                        return null;
                    }
                    // Only fire when selection has actually changed.
                    var currentSelection = getSelection(activeElement$1);
                    if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
                        lastSelection = currentSelection;
                        var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
                        syntheticEvent.type = 'select';
                        syntheticEvent.target = activeElement$1;
                        accumulateTwoPhaseDispatches(syntheticEvent);
                        return syntheticEvent;
                    }
                    return null;
                }
                /**
                 * This plugin creates an `onSelect` event that normalizes select events
                 * across form elements.
                 *
                 * Supported elements are:
                 * - input (see `isTextInputElement`)
                 * - textarea
                 * - contentEditable
                 *
                 * This differs from native browser implementations in the following ways:
                 * - Fires on contentEditable fields as well as inputs.
                 * - Fires for collapsed selection.
                 * - Fires after user input.
                 */
                var SelectEventPlugin = {
                    eventTypes: eventTypes$3,
                    extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
                        var doc = getEventTargetDocument(nativeEventTarget);
                        // Track whether all listeners exists for this plugin. If none exist, we do
                        // not extract events. See #3639.
                        if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
                            return null;
                        }
                        var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
                        switch (topLevelType) {
                            // Track the input node that has focus.
                            case TOP_FOCUS:
                                if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
                                    activeElement$1 = targetNode;
                                    activeElementInst$1 = targetInst;
                                    lastSelection = null;
                                }
                                break;
                            case TOP_BLUR:
                                activeElement$1 = null;
                                activeElementInst$1 = null;
                                lastSelection = null;
                                break;
                            // Don't fire the event while the user is dragging. This matches the
                            // semantics of the native select event.
                            case TOP_MOUSE_DOWN:
                                mouseDown = true;
                                break;
                            case TOP_CONTEXT_MENU:
                            case TOP_MOUSE_UP:
                            case TOP_DRAG_END:
                                mouseDown = false;
                                return constructSelectEvent(nativeEvent, nativeEventTarget);
                            // Chrome and IE fire non-standard event when selection is changed (and
                            // sometimes when it hasn't). IE's event fires out of order with respect
                            // to key and input events on deletion, so we discard it.
                            //
                            // Firefox doesn't support selectionchange, so check selection status
                            // after each key entry. The selection changes after keydown and before
                            // keyup, but we check on keydown as well in the case of holding down a
                            // key, when multiple keydown events are fired but only one keyup is.
                            // This is also our approach for IE handling, for the reason above.
                            case TOP_SELECTION_CHANGE:
                                if (skipSelectionChangeEvent) {
                                    break;
                                }
                            // falls through
                            case TOP_KEY_DOWN:
                            case TOP_KEY_UP:
                                return constructSelectEvent(nativeEvent, nativeEventTarget);
                        }
                        return null;
                    }
                };
                /**
                 * Inject modules for resolving DOM hierarchy and plugin ordering.
                 */
                injection.injectEventPluginOrder(DOMEventPluginOrder);
                setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
                /**
                 * Some important event plugins included by default (without having to require
                 * them).
                 */
                injection.injectEventPluginsByName({
                    SimpleEventPlugin: SimpleEventPlugin,
                    EnterLeaveEventPlugin: EnterLeaveEventPlugin,
                    ChangeEventPlugin: ChangeEventPlugin,
                    SelectEventPlugin: SelectEventPlugin,
                    BeforeInputEventPlugin: BeforeInputEventPlugin
                });
                var didWarnSelectedSetOnOption = false;
                var didWarnInvalidChild = false;
                function flattenChildren(children) {
                    var content = '';
                    // Flatten children. We'll warn if they are invalid
                    // during validateProps() which runs for hydration too.
                    // Note that this would throw on non-element objects.
                    // Elements are stringified (which is normally irrelevant
                    // but matters for <fbt>).
                    React.Children.forEach(children, function (child) {
                        if (child == null) {
                            return;
                        }
                        content += child;
                        // Note: we don't warn about invalid children here.
                        // Instead, this is done separately below so that
                        // it happens during the hydration codepath too.
                    });
                    return content;
                }
                /**
                 * Implements an <option> host component that warns when `selected` is set.
                 */
                function validateProps(element, props) {
                    {
                        // This mirrors the codepath above, but runs for hydration too.
                        // Warn about invalid children here so that client and hydration are consistent.
                        // TODO: this seems like it could cause a DEV-only throw for hydration
                        // if children contains a non-element object. We should try to avoid that.
                        if (typeof props.children === 'object' && props.children !== null) {
                            React.Children.forEach(props.children, function (child) {
                                if (child == null) {
                                    return;
                                }
                                if (typeof child === 'string' || typeof child === 'number') {
                                    return;
                                }
                                if (typeof child.type !== 'string') {
                                    return;
                                }
                                if (!didWarnInvalidChild) {
                                    didWarnInvalidChild = true;
                                    warning$1(false, 'Only strings and numbers are supported as <option> children.');
                                }
                            });
                        }
                        // TODO: Remove support for `selected` in <option>.
                        if (props.selected != null && !didWarnSelectedSetOnOption) {
                            warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
                            didWarnSelectedSetOnOption = true;
                        }
                    }
                }
                function postMountWrapper$1(element, props) {
                    // value="" should make a value attribute (#6219)
                    if (props.value != null) {
                        element.setAttribute('value', toString(getToStringValue(props.value)));
                    }
                }
                function getHostProps$1(element, props) {
                    var hostProps = _assign({ children: undefined }, props);
                    var content = flattenChildren(props.children);
                    if (content) {
                        hostProps.children = content;
                    }
                    return hostProps;
                }
                // TODO: direct imports like some-package/src/* are bad. Fix me.
                var didWarnValueDefaultValue$1 = void 0;
                {
                    didWarnValueDefaultValue$1 = false;
                }
                function getDeclarationErrorAddendum() {
                    var ownerName = getCurrentFiberOwnerNameInDevOrNull();
                    if (ownerName) {
                        return '\n\nCheck the render method of `' + ownerName + '`.';
                    }
                    return '';
                }
                var valuePropNames = ['value', 'defaultValue'];
                /**
                 * Validation function for `value` and `defaultValue`.
                 */
                function checkSelectPropTypes(props) {
                    ReactControlledValuePropTypes.checkPropTypes('select', props);
                    for (var i = 0; i < valuePropNames.length; i++) {
                        var propName = valuePropNames[i];
                        if (props[propName] == null) {
                            continue;
                        }
                        var isArray = Array.isArray(props[propName]);
                        if (props.multiple && !isArray) {
                            warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
                        }
                        else if (!props.multiple && isArray) {
                            warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
                        }
                    }
                }
                function updateOptions(node, multiple, propValue, setDefaultSelected) {
                    var options = node.options;
                    if (multiple) {
                        var selectedValues = propValue;
                        var selectedValue = {};
                        for (var i = 0; i < selectedValues.length; i++) {
                            // Prefix to avoid chaos with special keys.
                            selectedValue['$' + selectedValues[i]] = true;
                        }
                        for (var _i = 0; _i < options.length; _i++) {
                            var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
                            if (options[_i].selected !== selected) {
                                options[_i].selected = selected;
                            }
                            if (selected && setDefaultSelected) {
                                options[_i].defaultSelected = true;
                            }
                        }
                    }
                    else {
                        // Do not set `select.value` as exact behavior isn't consistent across all
                        // browsers for all cases.
                        var _selectedValue = toString(getToStringValue(propValue));
                        var defaultSelected = null;
                        for (var _i2 = 0; _i2 < options.length; _i2++) {
                            if (options[_i2].value === _selectedValue) {
                                options[_i2].selected = true;
                                if (setDefaultSelected) {
                                    options[_i2].defaultSelected = true;
                                }
                                return;
                            }
                            if (defaultSelected === null && !options[_i2].disabled) {
                                defaultSelected = options[_i2];
                            }
                        }
                        if (defaultSelected !== null) {
                            defaultSelected.selected = true;
                        }
                    }
                }
                /**
                 * Implements a <select> host component that allows optionally setting the
                 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
                 * stringable. If `multiple` is true, the prop must be an array of stringables.
                 *
                 * If `value` is not supplied (or null/undefined), user actions that change the
                 * selected option will trigger updates to the rendered options.
                 *
                 * If it is supplied (and not null/undefined), the rendered options will not
                 * update in response to user actions. Instead, the `value` prop must change in
                 * order for the rendered options to update.
                 *
                 * If `defaultValue` is provided, any options with the supplied values will be
                 * selected.
                 */
                function getHostProps$2(element, props) {
                    return _assign({}, props, {
                        value: undefined
                    });
                }
                function initWrapperState$1(element, props) {
                    var node = element;
                    {
                        checkSelectPropTypes(props);
                    }
                    node._wrapperState = {
                        wasMultiple: !!props.multiple
                    };
                    {
                        if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
                            warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
                            didWarnValueDefaultValue$1 = true;
                        }
                    }
                }
                function postMountWrapper$2(element, props) {
                    var node = element;
                    node.multiple = !!props.multiple;
                    var value = props.value;
                    if (value != null) {
                        updateOptions(node, !!props.multiple, value, false);
                    }
                    else if (props.defaultValue != null) {
                        updateOptions(node, !!props.multiple, props.defaultValue, true);
                    }
                }
                function postUpdateWrapper(element, props) {
                    var node = element;
                    var wasMultiple = node._wrapperState.wasMultiple;
                    node._wrapperState.wasMultiple = !!props.multiple;
                    var value = props.value;
                    if (value != null) {
                        updateOptions(node, !!props.multiple, value, false);
                    }
                    else if (wasMultiple !== !!props.multiple) {
                        // For simplicity, reapply `defaultValue` if `multiple` is toggled.
                        if (props.defaultValue != null) {
                            updateOptions(node, !!props.multiple, props.defaultValue, true);
                        }
                        else {
                            // Revert the select back to its default unselected state.
                            updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
                        }
                    }
                }
                function restoreControlledState$2(element, props) {
                    var node = element;
                    var value = props.value;
                    if (value != null) {
                        updateOptions(node, !!props.multiple, value, false);
                    }
                }
                var didWarnValDefaultVal = false;
                /**
                 * Implements a <textarea> host component that allows setting `value`, and
                 * `defaultValue`. This differs from the traditional DOM API because value is
                 * usually set as PCDATA children.
                 *
                 * If `value` is not supplied (or null/undefined), user actions that affect the
                 * value will trigger updates to the element.
                 *
                 * If `value` is supplied (and not null/undefined), the rendered element will
                 * not trigger updates to the element. Instead, the `value` prop must change in
                 * order for the rendered element to be updated.
                 *
                 * The rendered element will be initialized with an empty value, the prop
                 * `defaultValue` if specified, or the children content (deprecated).
                 */
                function getHostProps$3(element, props) {
                    var node = element;
                    !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;
                    // Always set children to the same thing. In IE9, the selection range will
                    // get reset if `textContent` is mutated.  We could add a check in setTextContent
                    // to only set the value if/when the value differs from the node value (which would
                    // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
                    // solution. The value can be a boolean or object so that's why it's forced
                    // to be a string.
                    var hostProps = _assign({}, props, {
                        value: undefined,
                        defaultValue: undefined,
                        children: toString(node._wrapperState.initialValue)
                    });
                    return hostProps;
                }
                function initWrapperState$2(element, props) {
                    var node = element;
                    {
                        ReactControlledValuePropTypes.checkPropTypes('textarea', props);
                        if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
                            warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
                            didWarnValDefaultVal = true;
                        }
                    }
                    var initialValue = props.value;
                    // Only bother fetching default value if we're going to use it
                    if (initialValue == null) {
                        var defaultValue = props.defaultValue;
                        // TODO (yungsters): Remove support for children content in <textarea>.
                        var children = props.children;
                        if (children != null) {
                            {
                                warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
                            }
                            !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
                            if (Array.isArray(children)) {
                                !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
                                children = children[0];
                            }
                            defaultValue = children;
                        }
                        if (defaultValue == null) {
                            defaultValue = '';
                        }
                        initialValue = defaultValue;
                    }
                    node._wrapperState = {
                        initialValue: getToStringValue(initialValue)
                    };
                }
                function updateWrapper$1(element, props) {
                    var node = element;
                    var value = getToStringValue(props.value);
                    var defaultValue = getToStringValue(props.defaultValue);
                    if (value != null) {
                        // Cast `value` to a string to ensure the value is set correctly. While
                        // browsers typically do this as necessary, jsdom doesn't.
                        var newValue = toString(value);
                        // To avoid side effects (such as losing text selection), only set value if changed
                        if (newValue !== node.value) {
                            node.value = newValue;
                        }
                        if (props.defaultValue == null && node.defaultValue !== newValue) {
                            node.defaultValue = newValue;
                        }
                    }
                    if (defaultValue != null) {
                        node.defaultValue = toString(defaultValue);
                    }
                }
                function postMountWrapper$3(element, props) {
                    var node = element;
                    // This is in postMount because we need access to the DOM node, which is not
                    // available until after the component has mounted.
                    var textContent = node.textContent;
                    // Only set node.value if textContent is equal to the expected
                    // initial value. In IE10/IE11 there is a bug where the placeholder attribute
                    // will populate textContent as well.
                    // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
                    if (textContent === node._wrapperState.initialValue) {
                        node.value = textContent;
                    }
                }
                function restoreControlledState$3(element, props) {
                    // DOM component is still mounted; update
                    updateWrapper$1(element, props);
                }
                var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
                var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
                var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
                var Namespaces = {
                    html: HTML_NAMESPACE$1,
                    mathml: MATH_NAMESPACE,
                    svg: SVG_NAMESPACE
                };
                // Assumes there is no parent namespace.
                function getIntrinsicNamespace(type) {
                    switch (type) {
                        case 'svg':
                            return SVG_NAMESPACE;
                        case 'math':
                            return MATH_NAMESPACE;
                        default:
                            return HTML_NAMESPACE$1;
                    }
                }
                function getChildNamespace(parentNamespace, type) {
                    if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
                        // No (or default) parent namespace: potential entry point.
                        return getIntrinsicNamespace(type);
                    }
                    if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
                        // We're leaving SVG.
                        return HTML_NAMESPACE$1;
                    }
                    // By default, pass namespace below.
                    return parentNamespace;
                }
                /* globals MSApp */
                /**
                 * Create a function which has 'unsafe' privileges (required by windows8 apps)
                 */
                var createMicrosoftUnsafeLocalFunction = function (func) {
                    if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
                        return function (arg0, arg1, arg2, arg3) {
                            MSApp.execUnsafeLocalFunction(function () {
                                return func(arg0, arg1, arg2, arg3);
                            });
                        };
                    }
                    else {
                        return func;
                    }
                };
                // SVG temp container for IE lacking innerHTML
                var reusableSVGContainer = void 0;
                /**
                 * Set the innerHTML property of a node
                 *
                 * @param {DOMElement} node
                 * @param {string} html
                 * @internal
                 */
                var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
                    // IE does not have innerHTML for SVG nodes, so instead we inject the
                    // new markup in a temp node and then move the child nodes across into
                    // the target node
                    if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
                        reusableSVGContainer = reusableSVGContainer || document.createElement('div');
                        reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
                        var svgNode = reusableSVGContainer.firstChild;
                        while (node.firstChild) {
                            node.removeChild(node.firstChild);
                        }
                        while (svgNode.firstChild) {
                            node.appendChild(svgNode.firstChild);
                        }
                    }
                    else {
                        node.innerHTML = html;
                    }
                });
                /**
                 * Set the textContent property of a node. For text updates, it's faster
                 * to set the `nodeValue` of the Text node directly instead of using
                 * `.textContent` which will remove the existing node and create a new one.
                 *
                 * @param {DOMElement} node
                 * @param {string} text
                 * @internal
                 */
                var setTextContent = function (node, text) {
                    if (text) {
                        var firstChild = node.firstChild;
                        if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
                            firstChild.nodeValue = text;
                            return;
                        }
                    }
                    node.textContent = text;
                };
                /**
                 * CSS properties which accept numbers but are not in units of "px".
                 */
                var isUnitlessNumber = {
                    animationIterationCount: true,
                    borderImageOutset: true,
                    borderImageSlice: true,
                    borderImageWidth: true,
                    boxFlex: true,
                    boxFlexGroup: true,
                    boxOrdinalGroup: true,
                    columnCount: true,
                    columns: true,
                    flex: true,
                    flexGrow: true,
                    flexPositive: true,
                    flexShrink: true,
                    flexNegative: true,
                    flexOrder: true,
                    gridArea: true,
                    gridRow: true,
                    gridRowEnd: true,
                    gridRowSpan: true,
                    gridRowStart: true,
                    gridColumn: true,
                    gridColumnEnd: true,
                    gridColumnSpan: true,
                    gridColumnStart: true,
                    fontWeight: true,
                    lineClamp: true,
                    lineHeight: true,
                    opacity: true,
                    order: true,
                    orphans: true,
                    tabSize: true,
                    widows: true,
                    zIndex: true,
                    zoom: true,
                    // SVG-related properties
                    fillOpacity: true,
                    floodOpacity: true,
                    stopOpacity: true,
                    strokeDasharray: true,
                    strokeDashoffset: true,
                    strokeMiterlimit: true,
                    strokeOpacity: true,
                    strokeWidth: true
                };
                /**
                 * @param {string} prefix vendor-specific prefix, eg: Webkit
                 * @param {string} key style name, eg: transitionDuration
                 * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
                 * WebkitTransitionDuration
                 */
                function prefixKey(prefix, key) {
                    return prefix + key.charAt(0).toUpperCase() + key.substring(1);
                }
                /**
                 * Support style names that may come passed in prefixed by adding permutations
                 * of vendor prefixes.
                 */
                var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
                // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
                // infinite loop, because it iterates over the newly added props too.
                Object.keys(isUnitlessNumber).forEach(function (prop) {
                    prefixes.forEach(function (prefix) {
                        isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
                    });
                });
                /**
                 * Convert a value into the proper css writable value. The style name `name`
                 * should be logical (no hyphens), as specified
                 * in `CSSProperty.isUnitlessNumber`.
                 *
                 * @param {string} name CSS property name such as `topMargin`.
                 * @param {*} value CSS property value such as `10px`.
                 * @return {string} Normalized style value with dimensions applied.
                 */
                function dangerousStyleValue(name, value, isCustomProperty) {
                    // Note that we've removed escapeTextForBrowser() calls here since the
                    // whole string will be escaped when the attribute is injected into
                    // the markup. If you provide unsafe user data here they can inject
                    // arbitrary CSS which may be problematic (I couldn't repro this):
                    // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
                    // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
                    // This is not an XSS hole but instead a potential CSS injection issue
                    // which has lead to a greater discussion about how we're going to
                    // trust URLs moving forward. See #2115901
                    var isEmpty = value == null || typeof value === 'boolean' || value === '';
                    if (isEmpty) {
                        return '';
                    }
                    if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
                        return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
                    }
                    return ('' + value).trim();
                }
                var uppercasePattern = /([A-Z])/g;
                var msPattern = /^ms-/;
                /**
                 * Hyphenates a camelcased CSS property name, for example:
                 *
                 *   > hyphenateStyleName('backgroundColor')
                 *   < "background-color"
                 *   > hyphenateStyleName('MozTransition')
                 *   < "-moz-transition"
                 *   > hyphenateStyleName('msTransition')
                 *   < "-ms-transition"
                 *
                 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
                 * is converted to `-ms-`.
                 */
                function hyphenateStyleName(name) {
                    return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
                }
                var warnValidStyle = function () { };
                {
                    // 'msTransform' is correct, but the other prefixes should be capitalized
                    var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
                    var msPattern$1 = /^-ms-/;
                    var hyphenPattern = /-(.)/g;
                    // style values shouldn't contain a semicolon
                    var badStyleValueWithSemicolonPattern = /;\s*$/;
                    var warnedStyleNames = {};
                    var warnedStyleValues = {};
                    var warnedForNaNValue = false;
                    var warnedForInfinityValue = false;
                    var camelize = function (string) {
                        return string.replace(hyphenPattern, function (_, character) {
                            return character.toUpperCase();
                        });
                    };
                    var warnHyphenatedStyleName = function (name) {
                        if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
                            return;
                        }
                        warnedStyleNames[name] = true;
                        warning$1(false, 'Unsupported style property %s. Did you mean %s?', name, 
                        // As Andi Smith suggests
                        // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
                        // is converted to lowercase `ms`.
                        camelize(name.replace(msPattern$1, 'ms-')));
                    };
                    var warnBadVendoredStyleName = function (name) {
                        if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
                            return;
                        }
                        warnedStyleNames[name] = true;
                        warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
                    };
                    var warnStyleValueWithSemicolon = function (name, value) {
                        if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
                            return;
                        }
                        warnedStyleValues[value] = true;
                        warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
                    };
                    var warnStyleValueIsNaN = function (name, value) {
                        if (warnedForNaNValue) {
                            return;
                        }
                        warnedForNaNValue = true;
                        warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
                    };
                    var warnStyleValueIsInfinity = function (name, value) {
                        if (warnedForInfinityValue) {
                            return;
                        }
                        warnedForInfinityValue = true;
                        warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
                    };
                    warnValidStyle = function (name, value) {
                        if (name.indexOf('-') > -1) {
                            warnHyphenatedStyleName(name);
                        }
                        else if (badVendoredStyleNamePattern.test(name)) {
                            warnBadVendoredStyleName(name);
                        }
                        else if (badStyleValueWithSemicolonPattern.test(value)) {
                            warnStyleValueWithSemicolon(name, value);
                        }
                        if (typeof value === 'number') {
                            if (isNaN(value)) {
                                warnStyleValueIsNaN(name, value);
                            }
                            else if (!isFinite(value)) {
                                warnStyleValueIsInfinity(name, value);
                            }
                        }
                    };
                }
                var warnValidStyle$1 = warnValidStyle;
                /**
                 * Operations for dealing with CSS properties.
                 */
                /**
                 * This creates a string that is expected to be equivalent to the style
                 * attribute generated by server-side rendering. It by-passes warnings and
                 * security checks so it's not safe to use this value for anything other than
                 * comparison. It is only used in DEV for SSR validation.
                 */
                function createDangerousStringForStyles(styles) {
                    {
                        var serialized = '';
                        var delimiter = '';
                        for (var styleName in styles) {
                            if (!styles.hasOwnProperty(styleName)) {
                                continue;
                            }
                            var styleValue = styles[styleName];
                            if (styleValue != null) {
                                var isCustomProperty = styleName.indexOf('--') === 0;
                                serialized += delimiter + hyphenateStyleName(styleName) + ':';
                                serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
                                delimiter = ';';
                            }
                        }
                        return serialized || null;
                    }
                }
                /**
                 * Sets the value for multiple styles on a node.  If a value is specified as
                 * '' (empty string), the corresponding style property will be unset.
                 *
                 * @param {DOMElement} node
                 * @param {object} styles
                 */
                function setValueForStyles(node, styles) {
                    var style = node.style;
                    for (var styleName in styles) {
                        if (!styles.hasOwnProperty(styleName)) {
                            continue;
                        }
                        var isCustomProperty = styleName.indexOf('--') === 0;
                        {
                            if (!isCustomProperty) {
                                warnValidStyle$1(styleName, styles[styleName]);
                            }
                        }
                        var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
                        if (styleName === 'float') {
                            styleName = 'cssFloat';
                        }
                        if (isCustomProperty) {
                            style.setProperty(styleName, styleValue);
                        }
                        else {
                            style[styleName] = styleValue;
                        }
                    }
                }
                // For HTML, certain tags should omit their close tag. We keep a whitelist for
                // those special-case tags.
                var omittedCloseTags = {
                    area: true,
                    base: true,
                    br: true,
                    col: true,
                    embed: true,
                    hr: true,
                    img: true,
                    input: true,
                    keygen: true,
                    link: true,
                    meta: true,
                    param: true,
                    source: true,
                    track: true,
                    wbr: true
                    // NOTE: menuitem's close tag should be omitted, but that causes problems.
                };
                // For HTML, certain tags cannot have children. This has the same purpose as
                // `omittedCloseTags` except that `menuitem` should still have its closing tag.
                var voidElementTags = _assign({
                    menuitem: true
                }, omittedCloseTags);
                // TODO: We can remove this if we add invariantWithStack()
                // or add stack by default to invariants where possible.
                var HTML$1 = '__html';
                var ReactDebugCurrentFrame$2 = null;
                {
                    ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
                }
                function assertValidProps(tag, props) {
                    if (!props) {
                        return;
                    }
                    // Note the use of `==` which checks for null or undefined.
                    if (voidElementTags[tag]) {
                        !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
                    }
                    if (props.dangerouslySetInnerHTML != null) {
                        !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
                        !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
                    }
                    {
                        !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
                    }
                    !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
                }
                function isCustomComponent(tagName, props) {
                    if (tagName.indexOf('-') === -1) {
                        return typeof props.is === 'string';
                    }
                    switch (tagName) {
                        // These are reserved SVG and MathML elements.
                        // We don't mind this whitelist too much because we expect it to never grow.
                        // The alternative is to track the namespace in a few places which is convoluted.
                        // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
                        case 'annotation-xml':
                        case 'color-profile':
                        case 'font-face':
                        case 'font-face-src':
                        case 'font-face-uri':
                        case 'font-face-format':
                        case 'font-face-name':
                        case 'missing-glyph':
                            return false;
                        default:
                            return true;
                    }
                }
                // When adding attributes to the HTML or SVG whitelist, be sure to
                // also add them to this module to ensure casing and incorrect name
                // warnings.
                var possibleStandardNames = {
                    // HTML
                    accept: 'accept',
                    acceptcharset: 'acceptCharset',
                    'accept-charset': 'acceptCharset',
                    accesskey: 'accessKey',
                    action: 'action',
                    allowfullscreen: 'allowFullScreen',
                    alt: 'alt',
                    as: 'as',
                    async: 'async',
                    autocapitalize: 'autoCapitalize',
                    autocomplete: 'autoComplete',
                    autocorrect: 'autoCorrect',
                    autofocus: 'autoFocus',
                    autoplay: 'autoPlay',
                    autosave: 'autoSave',
                    capture: 'capture',
                    cellpadding: 'cellPadding',
                    cellspacing: 'cellSpacing',
                    challenge: 'challenge',
                    charset: 'charSet',
                    checked: 'checked',
                    children: 'children',
                    cite: 'cite',
                    class: 'className',
                    classid: 'classID',
                    classname: 'className',
                    cols: 'cols',
                    colspan: 'colSpan',
                    content: 'content',
                    contenteditable: 'contentEditable',
                    contextmenu: 'contextMenu',
                    controls: 'controls',
                    controlslist: 'controlsList',
                    coords: 'coords',
                    crossorigin: 'crossOrigin',
                    dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
                    data: 'data',
                    datetime: 'dateTime',
                    default: 'default',
                    defaultchecked: 'defaultChecked',
                    defaultvalue: 'defaultValue',
                    defer: 'defer',
                    dir: 'dir',
                    disabled: 'disabled',
                    download: 'download',
                    draggable: 'draggable',
                    enctype: 'encType',
                    for: 'htmlFor',
                    form: 'form',
                    formmethod: 'formMethod',
                    formaction: 'formAction',
                    formenctype: 'formEncType',
                    formnovalidate: 'formNoValidate',
                    formtarget: 'formTarget',
                    frameborder: 'frameBorder',
                    headers: 'headers',
                    height: 'height',
                    hidden: 'hidden',
                    high: 'high',
                    href: 'href',
                    hreflang: 'hrefLang',
                    htmlfor: 'htmlFor',
                    httpequiv: 'httpEquiv',
                    'http-equiv': 'httpEquiv',
                    icon: 'icon',
                    id: 'id',
                    innerhtml: 'innerHTML',
                    inputmode: 'inputMode',
                    integrity: 'integrity',
                    is: 'is',
                    itemid: 'itemID',
                    itemprop: 'itemProp',
                    itemref: 'itemRef',
                    itemscope: 'itemScope',
                    itemtype: 'itemType',
                    keyparams: 'keyParams',
                    keytype: 'keyType',
                    kind: 'kind',
                    label: 'label',
                    lang: 'lang',
                    list: 'list',
                    loop: 'loop',
                    low: 'low',
                    manifest: 'manifest',
                    marginwidth: 'marginWidth',
                    marginheight: 'marginHeight',
                    max: 'max',
                    maxlength: 'maxLength',
                    media: 'media',
                    mediagroup: 'mediaGroup',
                    method: 'method',
                    min: 'min',
                    minlength: 'minLength',
                    multiple: 'multiple',
                    muted: 'muted',
                    name: 'name',
                    nomodule: 'noModule',
                    nonce: 'nonce',
                    novalidate: 'noValidate',
                    open: 'open',
                    optimum: 'optimum',
                    pattern: 'pattern',
                    placeholder: 'placeholder',
                    playsinline: 'playsInline',
                    poster: 'poster',
                    preload: 'preload',
                    profile: 'profile',
                    radiogroup: 'radioGroup',
                    readonly: 'readOnly',
                    referrerpolicy: 'referrerPolicy',
                    rel: 'rel',
                    required: 'required',
                    reversed: 'reversed',
                    role: 'role',
                    rows: 'rows',
                    rowspan: 'rowSpan',
                    sandbox: 'sandbox',
                    scope: 'scope',
                    scoped: 'scoped',
                    scrolling: 'scrolling',
                    seamless: 'seamless',
                    selected: 'selected',
                    shape: 'shape',
                    size: 'size',
                    sizes: 'sizes',
                    span: 'span',
                    spellcheck: 'spellCheck',
                    src: 'src',
                    srcdoc: 'srcDoc',
                    srclang: 'srcLang',
                    srcset: 'srcSet',
                    start: 'start',
                    step: 'step',
                    style: 'style',
                    summary: 'summary',
                    tabindex: 'tabIndex',
                    target: 'target',
                    title: 'title',
                    type: 'type',
                    usemap: 'useMap',
                    value: 'value',
                    width: 'width',
                    wmode: 'wmode',
                    wrap: 'wrap',
                    // SVG
                    about: 'about',
                    accentheight: 'accentHeight',
                    'accent-height': 'accentHeight',
                    accumulate: 'accumulate',
                    additive: 'additive',
                    alignmentbaseline: 'alignmentBaseline',
                    'alignment-baseline': 'alignmentBaseline',
                    allowreorder: 'allowReorder',
                    alphabetic: 'alphabetic',
                    amplitude: 'amplitude',
                    arabicform: 'arabicForm',
                    'arabic-form': 'arabicForm',
                    ascent: 'ascent',
                    attributename: 'attributeName',
                    attributetype: 'attributeType',
                    autoreverse: 'autoReverse',
                    azimuth: 'azimuth',
                    basefrequency: 'baseFrequency',
                    baselineshift: 'baselineShift',
                    'baseline-shift': 'baselineShift',
                    baseprofile: 'baseProfile',
                    bbox: 'bbox',
                    begin: 'begin',
                    bias: 'bias',
                    by: 'by',
                    calcmode: 'calcMode',
                    capheight: 'capHeight',
                    'cap-height': 'capHeight',
                    clip: 'clip',
                    clippath: 'clipPath',
                    'clip-path': 'clipPath',
                    clippathunits: 'clipPathUnits',
                    cliprule: 'clipRule',
                    'clip-rule': 'clipRule',
                    color: 'color',
                    colorinterpolation: 'colorInterpolation',
                    'color-interpolation': 'colorInterpolation',
                    colorinterpolationfilters: 'colorInterpolationFilters',
                    'color-interpolation-filters': 'colorInterpolationFilters',
                    colorprofile: 'colorProfile',
                    'color-profile': 'colorProfile',
                    colorrendering: 'colorRendering',
                    'color-rendering': 'colorRendering',
                    contentscripttype: 'contentScriptType',
                    contentstyletype: 'contentStyleType',
                    cursor: 'cursor',
                    cx: 'cx',
                    cy: 'cy',
                    d: 'd',
                    datatype: 'datatype',
                    decelerate: 'decelerate',
                    descent: 'descent',
                    diffuseconstant: 'diffuseConstant',
                    direction: 'direction',
                    display: 'display',
                    divisor: 'divisor',
                    dominantbaseline: 'dominantBaseline',
                    'dominant-baseline': 'dominantBaseline',
                    dur: 'dur',
                    dx: 'dx',
                    dy: 'dy',
                    edgemode: 'edgeMode',
                    elevation: 'elevation',
                    enablebackground: 'enableBackground',
                    'enable-background': 'enableBackground',
                    end: 'end',
                    exponent: 'exponent',
                    externalresourcesrequired: 'externalResourcesRequired',
                    fill: 'fill',
                    fillopacity: 'fillOpacity',
                    'fill-opacity': 'fillOpacity',
                    fillrule: 'fillRule',
                    'fill-rule': 'fillRule',
                    filter: 'filter',
                    filterres: 'filterRes',
                    filterunits: 'filterUnits',
                    floodopacity: 'floodOpacity',
                    'flood-opacity': 'floodOpacity',
                    floodcolor: 'floodColor',
                    'flood-color': 'floodColor',
                    focusable: 'focusable',
                    fontfamily: 'fontFamily',
                    'font-family': 'fontFamily',
                    fontsize: 'fontSize',
                    'font-size': 'fontSize',
                    fontsizeadjust: 'fontSizeAdjust',
                    'font-size-adjust': 'fontSizeAdjust',
                    fontstretch: 'fontStretch',
                    'font-stretch': 'fontStretch',
                    fontstyle: 'fontStyle',
                    'font-style': 'fontStyle',
                    fontvariant: 'fontVariant',
                    'font-variant': 'fontVariant',
                    fontweight: 'fontWeight',
                    'font-weight': 'fontWeight',
                    format: 'format',
                    from: 'from',
                    fx: 'fx',
                    fy: 'fy',
                    g1: 'g1',
                    g2: 'g2',
                    glyphname: 'glyphName',
                    'glyph-name': 'glyphName',
                    glyphorientationhorizontal: 'glyphOrientationHorizontal',
                    'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
                    glyphorientationvertical: 'glyphOrientationVertical',
                    'glyph-orientation-vertical': 'glyphOrientationVertical',
                    glyphref: 'glyphRef',
                    gradienttransform: 'gradientTransform',
                    gradientunits: 'gradientUnits',
                    hanging: 'hanging',
                    horizadvx: 'horizAdvX',
                    'horiz-adv-x': 'horizAdvX',
                    horizoriginx: 'horizOriginX',
                    'horiz-origin-x': 'horizOriginX',
                    ideographic: 'ideographic',
                    imagerendering: 'imageRendering',
                    'image-rendering': 'imageRendering',
                    in2: 'in2',
                    in: 'in',
                    inlist: 'inlist',
                    intercept: 'intercept',
                    k1: 'k1',
                    k2: 'k2',
                    k3: 'k3',
                    k4: 'k4',
                    k: 'k',
                    kernelmatrix: 'kernelMatrix',
                    kernelunitlength: 'kernelUnitLength',
                    kerning: 'kerning',
                    keypoints: 'keyPoints',
                    keysplines: 'keySplines',
                    keytimes: 'keyTimes',
                    lengthadjust: 'lengthAdjust',
                    letterspacing: 'letterSpacing',
                    'letter-spacing': 'letterSpacing',
                    lightingcolor: 'lightingColor',
                    'lighting-color': 'lightingColor',
                    limitingconeangle: 'limitingConeAngle',
                    local: 'local',
                    markerend: 'markerEnd',
                    'marker-end': 'markerEnd',
                    markerheight: 'markerHeight',
                    markermid: 'markerMid',
                    'marker-mid': 'markerMid',
                    markerstart: 'markerStart',
                    'marker-start': 'markerStart',
                    markerunits: 'markerUnits',
                    markerwidth: 'markerWidth',
                    mask: 'mask',
                    maskcontentunits: 'maskContentUnits',
                    maskunits: 'maskUnits',
                    mathematical: 'mathematical',
                    mode: 'mode',
                    numoctaves: 'numOctaves',
                    offset: 'offset',
                    opacity: 'opacity',
                    operator: 'operator',
                    order: 'order',
                    orient: 'orient',
                    orientation: 'orientation',
                    origin: 'origin',
                    overflow: 'overflow',
                    overlineposition: 'overlinePosition',
                    'overline-position': 'overlinePosition',
                    overlinethickness: 'overlineThickness',
                    'overline-thickness': 'overlineThickness',
                    paintorder: 'paintOrder',
                    'paint-order': 'paintOrder',
                    panose1: 'panose1',
                    'panose-1': 'panose1',
                    pathlength: 'pathLength',
                    patterncontentunits: 'patternContentUnits',
                    patterntransform: 'patternTransform',
                    patternunits: 'patternUnits',
                    pointerevents: 'pointerEvents',
                    'pointer-events': 'pointerEvents',
                    points: 'points',
                    pointsatx: 'pointsAtX',
                    pointsaty: 'pointsAtY',
                    pointsatz: 'pointsAtZ',
                    prefix: 'prefix',
                    preservealpha: 'preserveAlpha',
                    preserveaspectratio: 'preserveAspectRatio',
                    primitiveunits: 'primitiveUnits',
                    property: 'property',
                    r: 'r',
                    radius: 'radius',
                    refx: 'refX',
                    refy: 'refY',
                    renderingintent: 'renderingIntent',
                    'rendering-intent': 'renderingIntent',
                    repeatcount: 'repeatCount',
                    repeatdur: 'repeatDur',
                    requiredextensions: 'requiredExtensions',
                    requiredfeatures: 'requiredFeatures',
                    resource: 'resource',
                    restart: 'restart',
                    result: 'result',
                    results: 'results',
                    rotate: 'rotate',
                    rx: 'rx',
                    ry: 'ry',
                    scale: 'scale',
                    security: 'security',
                    seed: 'seed',
                    shaperendering: 'shapeRendering',
                    'shape-rendering': 'shapeRendering',
                    slope: 'slope',
                    spacing: 'spacing',
                    specularconstant: 'specularConstant',
                    specularexponent: 'specularExponent',
                    speed: 'speed',
                    spreadmethod: 'spreadMethod',
                    startoffset: 'startOffset',
                    stddeviation: 'stdDeviation',
                    stemh: 'stemh',
                    stemv: 'stemv',
                    stitchtiles: 'stitchTiles',
                    stopcolor: 'stopColor',
                    'stop-color': 'stopColor',
                    stopopacity: 'stopOpacity',
                    'stop-opacity': 'stopOpacity',
                    strikethroughposition: 'strikethroughPosition',
                    'strikethrough-position': 'strikethroughPosition',
                    strikethroughthickness: 'strikethroughThickness',
                    'strikethrough-thickness': 'strikethroughThickness',
                    string: 'string',
                    stroke: 'stroke',
                    strokedasharray: 'strokeDasharray',
                    'stroke-dasharray': 'strokeDasharray',
                    strokedashoffset: 'strokeDashoffset',
                    'stroke-dashoffset': 'strokeDashoffset',
                    strokelinecap: 'strokeLinecap',
                    'stroke-linecap': 'strokeLinecap',
                    strokelinejoin: 'strokeLinejoin',
                    'stroke-linejoin': 'strokeLinejoin',
                    strokemiterlimit: 'strokeMiterlimit',
                    'stroke-miterlimit': 'strokeMiterlimit',
                    strokewidth: 'strokeWidth',
                    'stroke-width': 'strokeWidth',
                    strokeopacity: 'strokeOpacity',
                    'stroke-opacity': 'strokeOpacity',
                    suppresscontenteditablewarning: 'suppressContentEditableWarning',
                    suppresshydrationwarning: 'suppressHydrationWarning',
                    surfacescale: 'surfaceScale',
                    systemlanguage: 'systemLanguage',
                    tablevalues: 'tableValues',
                    targetx: 'targetX',
                    targety: 'targetY',
                    textanchor: 'textAnchor',
                    'text-anchor': 'textAnchor',
                    textdecoration: 'textDecoration',
                    'text-decoration': 'textDecoration',
                    textlength: 'textLength',
                    textrendering: 'textRendering',
                    'text-rendering': 'textRendering',
                    to: 'to',
                    transform: 'transform',
                    typeof: 'typeof',
                    u1: 'u1',
                    u2: 'u2',
                    underlineposition: 'underlinePosition',
                    'underline-position': 'underlinePosition',
                    underlinethickness: 'underlineThickness',
                    'underline-thickness': 'underlineThickness',
                    unicode: 'unicode',
                    unicodebidi: 'unicodeBidi',
                    'unicode-bidi': 'unicodeBidi',
                    unicoderange: 'unicodeRange',
                    'unicode-range': 'unicodeRange',
                    unitsperem: 'unitsPerEm',
                    'units-per-em': 'unitsPerEm',
                    unselectable: 'unselectable',
                    valphabetic: 'vAlphabetic',
                    'v-alphabetic': 'vAlphabetic',
                    values: 'values',
                    vectoreffect: 'vectorEffect',
                    'vector-effect': 'vectorEffect',
                    version: 'version',
                    vertadvy: 'vertAdvY',
                    'vert-adv-y': 'vertAdvY',
                    vertoriginx: 'vertOriginX',
                    'vert-origin-x': 'vertOriginX',
                    vertoriginy: 'vertOriginY',
                    'vert-origin-y': 'vertOriginY',
                    vhanging: 'vHanging',
                    'v-hanging': 'vHanging',
                    videographic: 'vIdeographic',
                    'v-ideographic': 'vIdeographic',
                    viewbox: 'viewBox',
                    viewtarget: 'viewTarget',
                    visibility: 'visibility',
                    vmathematical: 'vMathematical',
                    'v-mathematical': 'vMathematical',
                    vocab: 'vocab',
                    widths: 'widths',
                    wordspacing: 'wordSpacing',
                    'word-spacing': 'wordSpacing',
                    writingmode: 'writingMode',
                    'writing-mode': 'writingMode',
                    x1: 'x1',
                    x2: 'x2',
                    x: 'x',
                    xchannelselector: 'xChannelSelector',
                    xheight: 'xHeight',
                    'x-height': 'xHeight',
                    xlinkactuate: 'xlinkActuate',
                    'xlink:actuate': 'xlinkActuate',
                    xlinkarcrole: 'xlinkArcrole',
                    'xlink:arcrole': 'xlinkArcrole',
                    xlinkhref: 'xlinkHref',
                    'xlink:href': 'xlinkHref',
                    xlinkrole: 'xlinkRole',
                    'xlink:role': 'xlinkRole',
                    xlinkshow: 'xlinkShow',
                    'xlink:show': 'xlinkShow',
                    xlinktitle: 'xlinkTitle',
                    'xlink:title': 'xlinkTitle',
                    xlinktype: 'xlinkType',
                    'xlink:type': 'xlinkType',
                    xmlbase: 'xmlBase',
                    'xml:base': 'xmlBase',
                    xmllang: 'xmlLang',
                    'xml:lang': 'xmlLang',
                    xmlns: 'xmlns',
                    'xml:space': 'xmlSpace',
                    xmlnsxlink: 'xmlnsXlink',
                    'xmlns:xlink': 'xmlnsXlink',
                    xmlspace: 'xmlSpace',
                    y1: 'y1',
                    y2: 'y2',
                    y: 'y',
                    ychannelselector: 'yChannelSelector',
                    z: 'z',
                    zoomandpan: 'zoomAndPan'
                };
                var ariaProperties = {
                    'aria-current': 0,
                    'aria-details': 0,
                    'aria-disabled': 0,
                    'aria-hidden': 0,
                    'aria-invalid': 0,
                    'aria-keyshortcuts': 0,
                    'aria-label': 0,
                    'aria-roledescription': 0,
                    // Widget Attributes
                    'aria-autocomplete': 0,
                    'aria-checked': 0,
                    'aria-expanded': 0,
                    'aria-haspopup': 0,
                    'aria-level': 0,
                    'aria-modal': 0,
                    'aria-multiline': 0,
                    'aria-multiselectable': 0,
                    'aria-orientation': 0,
                    'aria-placeholder': 0,
                    'aria-pressed': 0,
                    'aria-readonly': 0,
                    'aria-required': 0,
                    'aria-selected': 0,
                    'aria-sort': 0,
                    'aria-valuemax': 0,
                    'aria-valuemin': 0,
                    'aria-valuenow': 0,
                    'aria-valuetext': 0,
                    // Live Region Attributes
                    'aria-atomic': 0,
                    'aria-busy': 0,
                    'aria-live': 0,
                    'aria-relevant': 0,
                    // Drag-and-Drop Attributes
                    'aria-dropeffect': 0,
                    'aria-grabbed': 0,
                    // Relationship Attributes
                    'aria-activedescendant': 0,
                    'aria-colcount': 0,
                    'aria-colindex': 0,
                    'aria-colspan': 0,
                    'aria-controls': 0,
                    'aria-describedby': 0,
                    'aria-errormessage': 0,
                    'aria-flowto': 0,
                    'aria-labelledby': 0,
                    'aria-owns': 0,
                    'aria-posinset': 0,
                    'aria-rowcount': 0,
                    'aria-rowindex': 0,
                    'aria-rowspan': 0,
                    'aria-setsize': 0
                };
                var warnedProperties = {};
                var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
                var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
                var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
                function validateProperty(tagName, name) {
                    if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
                        return true;
                    }
                    if (rARIACamel.test(name)) {
                        var ariaName = 'aria-' + name.slice(4).toLowerCase();
                        var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
                        // If this is an aria-* attribute, but is not listed in the known DOM
                        // DOM properties, then it is an invalid aria-* attribute.
                        if (correctName == null) {
                            warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
                            warnedProperties[name] = true;
                            return true;
                        }
                        // aria-* attributes should be lowercase; suggest the lowercase version.
                        if (name !== correctName) {
                            warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
                            warnedProperties[name] = true;
                            return true;
                        }
                    }
                    if (rARIA.test(name)) {
                        var lowerCasedName = name.toLowerCase();
                        var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
                        // If this is an aria-* attribute, but is not listed in the known DOM
                        // DOM properties, then it is an invalid aria-* attribute.
                        if (standardName == null) {
                            warnedProperties[name] = true;
                            return false;
                        }
                        // aria-* attributes should be lowercase; suggest the lowercase version.
                        if (name !== standardName) {
                            warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
                            warnedProperties[name] = true;
                            return true;
                        }
                    }
                    return true;
                }
                function warnInvalidARIAProps(type, props) {
                    var invalidProps = [];
                    for (var key in props) {
                        var isValid = validateProperty(type, key);
                        if (!isValid) {
                            invalidProps.push(key);
                        }
                    }
                    var unknownPropString = invalidProps.map(function (prop) {
                        return '`' + prop + '`';
                    }).join(', ');
                    if (invalidProps.length === 1) {
                        warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
                    }
                    else if (invalidProps.length > 1) {
                        warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
                    }
                }
                function validateProperties(type, props) {
                    if (isCustomComponent(type, props)) {
                        return;
                    }
                    warnInvalidARIAProps(type, props);
                }
                var didWarnValueNull = false;
                function validateProperties$1(type, props) {
                    if (type !== 'input' && type !== 'textarea' && type !== 'select') {
                        return;
                    }
                    if (props != null && props.value === null && !didWarnValueNull) {
                        didWarnValueNull = true;
                        if (type === 'select' && props.multiple) {
                            warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
                        }
                        else {
                            warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
                        }
                    }
                }
                var validateProperty$1 = function () { };
                {
                    var warnedProperties$1 = {};
                    var _hasOwnProperty = Object.prototype.hasOwnProperty;
                    var EVENT_NAME_REGEX = /^on./;
                    var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
                    var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
                    var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
                    validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
                        if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
                            return true;
                        }
                        var lowerCasedName = name.toLowerCase();
                        if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
                            warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        // We can't rely on the event system being injected on the server.
                        if (canUseEventSystem) {
                            if (registrationNameModules.hasOwnProperty(name)) {
                                return true;
                            }
                            var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
                            if (registrationName != null) {
                                warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
                                warnedProperties$1[name] = true;
                                return true;
                            }
                            if (EVENT_NAME_REGEX.test(name)) {
                                warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
                                warnedProperties$1[name] = true;
                                return true;
                            }
                        }
                        else if (EVENT_NAME_REGEX.test(name)) {
                            // If no event plugins have been injected, we are in a server environment.
                            // So we can't tell if the event name is correct for sure, but we can filter
                            // out known bad ones like `onclick`. We can't suggest a specific replacement though.
                            if (INVALID_EVENT_NAME_REGEX.test(name)) {
                                warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
                            }
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        // Let the ARIA attribute hook validate ARIA attributes
                        if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
                            return true;
                        }
                        if (lowerCasedName === 'innerhtml') {
                            warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        if (lowerCasedName === 'aria') {
                            warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
                            warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        if (typeof value === 'number' && isNaN(value)) {
                            warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        var propertyInfo = getPropertyInfo(name);
                        var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
                        // Known attributes should match the casing specified in the property config.
                        if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
                            var standardName = possibleStandardNames[lowerCasedName];
                            if (standardName !== name) {
                                warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
                                warnedProperties$1[name] = true;
                                return true;
                            }
                        }
                        else if (!isReserved && name !== lowerCasedName) {
                            // Unknown attributes should have lowercase casing since that's how they
                            // will be cased anyway with server rendering.
                            warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
                            if (value) {
                                warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
                            }
                            else {
                                warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
                            }
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        // Now that we've validated casing, do not validate
                        // data types for reserved props
                        if (isReserved) {
                            return true;
                        }
                        // Warn when a known attribute is a bad type
                        if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
                            warnedProperties$1[name] = true;
                            return false;
                        }
                        // Warn when passing the strings 'false' or 'true' into a boolean prop
                        if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
                            warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
                            warnedProperties$1[name] = true;
                            return true;
                        }
                        return true;
                    };
                }
                var warnUnknownProperties = function (type, props, canUseEventSystem) {
                    var unknownProps = [];
                    for (var key in props) {
                        var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
                        if (!isValid) {
                            unknownProps.push(key);
                        }
                    }
                    var unknownPropString = unknownProps.map(function (prop) {
                        return '`' + prop + '`';
                    }).join(', ');
                    if (unknownProps.length === 1) {
                        warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
                    }
                    else if (unknownProps.length > 1) {
                        warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
                    }
                };
                function validateProperties$2(type, props, canUseEventSystem) {
                    if (isCustomComponent(type, props)) {
                        return;
                    }
                    warnUnknownProperties(type, props, canUseEventSystem);
                }
                // TODO: direct imports like some-package/src/* are bad. Fix me.
                var didWarnInvalidHydration = false;
                var didWarnShadyDOM = false;
                var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
                var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
                var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
                var AUTOFOCUS = 'autoFocus';
                var CHILDREN = 'children';
                var STYLE = 'style';
                var HTML = '__html';
                var HTML_NAMESPACE = Namespaces.html;
                var warnedUnknownTags = void 0;
                var suppressHydrationWarning = void 0;
                var validatePropertiesInDevelopment = void 0;
                var warnForTextDifference = void 0;
                var warnForPropDifference = void 0;
                var warnForExtraAttributes = void 0;
                var warnForInvalidEventListener = void 0;
                var canDiffStyleForHydrationWarning = void 0;
                var normalizeMarkupForTextOrAttribute = void 0;
                var normalizeHTML = void 0;
                {
                    warnedUnknownTags = {
                        // Chrome is the only major browser not shipping <time>. But as of July
                        // 2017 it intends to ship it due to widespread usage. We intentionally
                        // *don't* warn for <time> even if it's unrecognized by Chrome because
                        // it soon will be, and many apps have been using it anyway.
                        time: true,
                        // There are working polyfills for <dialog>. Let people use it.
                        dialog: true,
                        // Electron ships a custom <webview> tag to display external web content in
                        // an isolated frame and process.
                        // This tag is not present in non Electron environments such as JSDom which
                        // is often used for testing purposes.
                        // @see https://electronjs.org/docs/api/webview-tag
                        webview: true
                    };
                    validatePropertiesInDevelopment = function (type, props) {
                        validateProperties(type, props);
                        validateProperties$1(type, props);
                        validateProperties$2(type, props, /* canUseEventSystem */ true);
                    };
                    // IE 11 parses & normalizes the style attribute as opposed to other
                    // browsers. It adds spaces and sorts the properties in some
                    // non-alphabetical order. Handling that would require sorting CSS
                    // properties in the client & server versions or applying
                    // `expectedStyle` to a temporary DOM node to read its `style` attribute
                    // normalized. Since it only affects IE, we're skipping style warnings
                    // in that browser completely in favor of doing all that work.
                    // See https://github.com/facebook/react/issues/11807
                    canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
                    // HTML parsing normalizes CR and CRLF to LF.
                    // It also can turn \u0000 into \uFFFD inside attributes.
                    // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
                    // If we have a mismatch, it might be caused by that.
                    // We will still patch up in this case but not fire the warning.
                    var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
                    var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
                    normalizeMarkupForTextOrAttribute = function (markup) {
                        var markupString = typeof markup === 'string' ? markup : '' + markup;
                        return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
                    };
                    warnForTextDifference = function (serverText, clientText) {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
                        var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
                        if (normalizedServerText === normalizedClientText) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
                    };
                    warnForPropDifference = function (propName, serverValue, clientValue) {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
                        var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
                        if (normalizedServerValue === normalizedClientValue) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
                    };
                    warnForExtraAttributes = function (attributeNames) {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        var names = [];
                        attributeNames.forEach(function (name) {
                            names.push(name);
                        });
                        warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
                    };
                    warnForInvalidEventListener = function (registrationName, listener) {
                        if (listener === false) {
                            warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
                        }
                        else {
                            warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
                        }
                    };
                    // Parse the HTML and read it back to normalize the HTML string so that it
                    // can be used for comparison.
                    normalizeHTML = function (parent, html) {
                        // We could have created a separate document here to avoid
                        // re-initializing custom elements if they exist. But this breaks
                        // how <noscript> is being handled. So we use the same document.
                        // See the discussion in https://github.com/facebook/react/pull/11157.
                        var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
                        testElement.innerHTML = html;
                        return testElement.innerHTML;
                    };
                }
                function ensureListeningTo(rootContainerElement, registrationName) {
                    var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
                    var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
                    listenTo(registrationName, doc);
                }
                function getOwnerDocumentFromRootContainer(rootContainerElement) {
                    return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
                }
                function noop() { }
                function trapClickOnNonInteractiveElement(node) {
                    // Mobile Safari does not fire properly bubble click events on
                    // non-interactive elements, which means delegated click listeners do not
                    // fire. The workaround for this bug involves attaching an empty click
                    // listener on the target node.
                    // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
                    // Just set it using the onclick property so that we don't have to manage any
                    // bookkeeping for it. Not sure if we need to clear it when the listener is
                    // removed.
                    // TODO: Only do this for the relevant Safaris maybe?
                    node.onclick = noop;
                }
                function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
                    for (var propKey in nextProps) {
                        if (!nextProps.hasOwnProperty(propKey)) {
                            continue;
                        }
                        var nextProp = nextProps[propKey];
                        if (propKey === STYLE) {
                            {
                                if (nextProp) {
                                    // Freeze the next style object so that we can assume it won't be
                                    // mutated. We have already warned for this in the past.
                                    Object.freeze(nextProp);
                                }
                            }
                            // Relies on `updateStylesByID` not mutating `styleUpdates`.
                            setValueForStyles(domElement, nextProp);
                        }
                        else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
                            var nextHtml = nextProp ? nextProp[HTML] : undefined;
                            if (nextHtml != null) {
                                setInnerHTML(domElement, nextHtml);
                            }
                        }
                        else if (propKey === CHILDREN) {
                            if (typeof nextProp === 'string') {
                                // Avoid setting initial textContent when the text is empty. In IE11 setting
                                // textContent on a <textarea> will cause the placeholder to not
                                // show within the <textarea> until it has been focused and blurred again.
                                // https://github.com/facebook/react/issues/6731#issuecomment-254874553
                                var canSetTextContent = tag !== 'textarea' || nextProp !== '';
                                if (canSetTextContent) {
                                    setTextContent(domElement, nextProp);
                                }
                            }
                            else if (typeof nextProp === 'number') {
                                setTextContent(domElement, '' + nextProp);
                            }
                        }
                        else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
                            // Noop
                        }
                        else if (propKey === AUTOFOCUS) {
                            // We polyfill it separately on the client during commit.
                            // We could have excluded it in the property list instead of
                            // adding a special case here, but then it wouldn't be emitted
                            // on server rendering (but we *do* want to emit it in SSR).
                        }
                        else if (registrationNameModules.hasOwnProperty(propKey)) {
                            if (nextProp != null) {
                                if (true && typeof nextProp !== 'function') {
                                    warnForInvalidEventListener(propKey, nextProp);
                                }
                                ensureListeningTo(rootContainerElement, propKey);
                            }
                        }
                        else if (nextProp != null) {
                            setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
                        }
                    }
                }
                function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
                    // TODO: Handle wasCustomComponentTag
                    for (var i = 0; i < updatePayload.length; i += 2) {
                        var propKey = updatePayload[i];
                        var propValue = updatePayload[i + 1];
                        if (propKey === STYLE) {
                            setValueForStyles(domElement, propValue);
                        }
                        else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
                            setInnerHTML(domElement, propValue);
                        }
                        else if (propKey === CHILDREN) {
                            setTextContent(domElement, propValue);
                        }
                        else {
                            setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
                        }
                    }
                }
                function createElement(type, props, rootContainerElement, parentNamespace) {
                    var isCustomComponentTag = void 0;
                    // We create tags in the namespace of their parent container, except HTML
                    // tags get no namespace.
                    var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
                    var domElement = void 0;
                    var namespaceURI = parentNamespace;
                    if (namespaceURI === HTML_NAMESPACE) {
                        namespaceURI = getIntrinsicNamespace(type);
                    }
                    if (namespaceURI === HTML_NAMESPACE) {
                        {
                            isCustomComponentTag = isCustomComponent(type, props);
                            // Should this check be gated by parent namespace? Not sure we want to
                            // allow <SVG> or <mATH>.
                            !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
                        }
                        if (type === 'script') {
                            // Create the script via .innerHTML so its "parser-inserted" flag is
                            // set to true and it does not execute
                            var div = ownerDocument.createElement('div');
                            div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
                            // This is guaranteed to yield a script element.
                            var firstChild = div.firstChild;
                            domElement = div.removeChild(firstChild);
                        }
                        else if (typeof props.is === 'string') {
                            // $FlowIssue `createElement` should be updated for Web Components
                            domElement = ownerDocument.createElement(type, { is: props.is });
                        }
                        else {
                            // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
                            // See discussion in https://github.com/facebook/react/pull/6896
                            // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
                            domElement = ownerDocument.createElement(type);
                            // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
                            // attribute on `select`s needs to be added before `option`s are inserted. This prevents
                            // a bug where the `select` does not scroll to the correct option because singular
                            // `select` elements automatically pick the first item.
                            // See https://github.com/facebook/react/issues/13222
                            if (type === 'select' && props.multiple) {
                                var node = domElement;
                                node.multiple = true;
                            }
                        }
                    }
                    else {
                        domElement = ownerDocument.createElementNS(namespaceURI, type);
                    }
                    {
                        if (namespaceURI === HTML_NAMESPACE) {
                            if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
                                warnedUnknownTags[type] = true;
                                warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
                            }
                        }
                    }
                    return domElement;
                }
                function createTextNode(text, rootContainerElement) {
                    return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
                }
                function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
                    var isCustomComponentTag = isCustomComponent(tag, rawProps);
                    {
                        validatePropertiesInDevelopment(tag, rawProps);
                        if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
                            warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
                            didWarnShadyDOM = true;
                        }
                    }
                    // TODO: Make sure that we check isMounted before firing any of these events.
                    var props = void 0;
                    switch (tag) {
                        case 'iframe':
                        case 'object':
                            trapBubbledEvent(TOP_LOAD, domElement);
                            props = rawProps;
                            break;
                        case 'video':
                        case 'audio':
                            // Create listener for each media event
                            for (var i = 0; i < mediaEventTypes.length; i++) {
                                trapBubbledEvent(mediaEventTypes[i], domElement);
                            }
                            props = rawProps;
                            break;
                        case 'source':
                            trapBubbledEvent(TOP_ERROR, domElement);
                            props = rawProps;
                            break;
                        case 'img':
                        case 'image':
                        case 'link':
                            trapBubbledEvent(TOP_ERROR, domElement);
                            trapBubbledEvent(TOP_LOAD, domElement);
                            props = rawProps;
                            break;
                        case 'form':
                            trapBubbledEvent(TOP_RESET, domElement);
                            trapBubbledEvent(TOP_SUBMIT, domElement);
                            props = rawProps;
                            break;
                        case 'details':
                            trapBubbledEvent(TOP_TOGGLE, domElement);
                            props = rawProps;
                            break;
                        case 'input':
                            initWrapperState(domElement, rawProps);
                            props = getHostProps(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                        case 'option':
                            validateProps(domElement, rawProps);
                            props = getHostProps$1(domElement, rawProps);
                            break;
                        case 'select':
                            initWrapperState$1(domElement, rawProps);
                            props = getHostProps$2(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                        case 'textarea':
                            initWrapperState$2(domElement, rawProps);
                            props = getHostProps$3(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                        default:
                            props = rawProps;
                    }
                    assertValidProps(tag, props);
                    setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
                    switch (tag) {
                        case 'input':
                            // TODO: Make sure we check if this is still unmounted or do any clean
                            // up necessary since we never stop tracking anymore.
                            track(domElement);
                            postMountWrapper(domElement, rawProps, false);
                            break;
                        case 'textarea':
                            // TODO: Make sure we check if this is still unmounted or do any clean
                            // up necessary since we never stop tracking anymore.
                            track(domElement);
                            postMountWrapper$3(domElement, rawProps);
                            break;
                        case 'option':
                            postMountWrapper$1(domElement, rawProps);
                            break;
                        case 'select':
                            postMountWrapper$2(domElement, rawProps);
                            break;
                        default:
                            if (typeof props.onClick === 'function') {
                                // TODO: This cast may not be sound for SVG, MathML or custom elements.
                                trapClickOnNonInteractiveElement(domElement);
                            }
                            break;
                    }
                }
                // Calculate the diff between the two objects.
                function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
                    {
                        validatePropertiesInDevelopment(tag, nextRawProps);
                    }
                    var updatePayload = null;
                    var lastProps = void 0;
                    var nextProps = void 0;
                    switch (tag) {
                        case 'input':
                            lastProps = getHostProps(domElement, lastRawProps);
                            nextProps = getHostProps(domElement, nextRawProps);
                            updatePayload = [];
                            break;
                        case 'option':
                            lastProps = getHostProps$1(domElement, lastRawProps);
                            nextProps = getHostProps$1(domElement, nextRawProps);
                            updatePayload = [];
                            break;
                        case 'select':
                            lastProps = getHostProps$2(domElement, lastRawProps);
                            nextProps = getHostProps$2(domElement, nextRawProps);
                            updatePayload = [];
                            break;
                        case 'textarea':
                            lastProps = getHostProps$3(domElement, lastRawProps);
                            nextProps = getHostProps$3(domElement, nextRawProps);
                            updatePayload = [];
                            break;
                        default:
                            lastProps = lastRawProps;
                            nextProps = nextRawProps;
                            if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
                                // TODO: This cast may not be sound for SVG, MathML or custom elements.
                                trapClickOnNonInteractiveElement(domElement);
                            }
                            break;
                    }
                    assertValidProps(tag, nextProps);
                    var propKey = void 0;
                    var styleName = void 0;
                    var styleUpdates = null;
                    for (propKey in lastProps) {
                        if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
                            continue;
                        }
                        if (propKey === STYLE) {
                            var lastStyle = lastProps[propKey];
                            for (styleName in lastStyle) {
                                if (lastStyle.hasOwnProperty(styleName)) {
                                    if (!styleUpdates) {
                                        styleUpdates = {};
                                    }
                                    styleUpdates[styleName] = '';
                                }
                            }
                        }
                        else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
                            // Noop. This is handled by the clear text mechanism.
                        }
                        else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
                            // Noop
                        }
                        else if (propKey === AUTOFOCUS) {
                            // Noop. It doesn't work on updates anyway.
                        }
                        else if (registrationNameModules.hasOwnProperty(propKey)) {
                            // This is a special case. If any listener updates we need to ensure
                            // that the "current" fiber pointer gets updated so we need a commit
                            // to update this element.
                            if (!updatePayload) {
                                updatePayload = [];
                            }
                        }
                        else {
                            // For all other deleted properties we add it to the queue. We use
                            // the whitelist in the commit phase instead.
                            (updatePayload = updatePayload || []).push(propKey, null);
                        }
                    }
                    for (propKey in nextProps) {
                        var nextProp = nextProps[propKey];
                        var lastProp = lastProps != null ? lastProps[propKey] : undefined;
                        if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
                            continue;
                        }
                        if (propKey === STYLE) {
                            {
                                if (nextProp) {
                                    // Freeze the next style object so that we can assume it won't be
                                    // mutated. We have already warned for this in the past.
                                    Object.freeze(nextProp);
                                }
                            }
                            if (lastProp) {
                                // Unset styles on `lastProp` but not on `nextProp`.
                                for (styleName in lastProp) {
                                    if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
                                        if (!styleUpdates) {
                                            styleUpdates = {};
                                        }
                                        styleUpdates[styleName] = '';
                                    }
                                }
                                // Update styles that changed since `lastProp`.
                                for (styleName in nextProp) {
                                    if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
                                        if (!styleUpdates) {
                                            styleUpdates = {};
                                        }
                                        styleUpdates[styleName] = nextProp[styleName];
                                    }
                                }
                            }
                            else {
                                // Relies on `updateStylesByID` not mutating `styleUpdates`.
                                if (!styleUpdates) {
                                    if (!updatePayload) {
                                        updatePayload = [];
                                    }
                                    updatePayload.push(propKey, styleUpdates);
                                }
                                styleUpdates = nextProp;
                            }
                        }
                        else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
                            var nextHtml = nextProp ? nextProp[HTML] : undefined;
                            var lastHtml = lastProp ? lastProp[HTML] : undefined;
                            if (nextHtml != null) {
                                if (lastHtml !== nextHtml) {
                                    (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
                                }
                            }
                            else {
                                // TODO: It might be too late to clear this if we have children
                                // inserted already.
                            }
                        }
                        else if (propKey === CHILDREN) {
                            if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
                                (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
                            }
                        }
                        else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
                            // Noop
                        }
                        else if (registrationNameModules.hasOwnProperty(propKey)) {
                            if (nextProp != null) {
                                // We eagerly listen to this even though we haven't committed yet.
                                if (true && typeof nextProp !== 'function') {
                                    warnForInvalidEventListener(propKey, nextProp);
                                }
                                ensureListeningTo(rootContainerElement, propKey);
                            }
                            if (!updatePayload && lastProp !== nextProp) {
                                // This is a special case. If any listener updates we need to ensure
                                // that the "current" props pointer gets updated so we need a commit
                                // to update this element.
                                updatePayload = [];
                            }
                        }
                        else {
                            // For any other property we always add it to the queue and then we
                            // filter it out using the whitelist during the commit.
                            (updatePayload = updatePayload || []).push(propKey, nextProp);
                        }
                    }
                    if (styleUpdates) {
                        (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
                    }
                    return updatePayload;
                }
                // Apply the diff.
                function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
                    // Update checked *before* name.
                    // In the middle of an update, it is possible to have multiple checked.
                    // When a checked radio tries to change name, browser makes another radio's checked false.
                    if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
                        updateChecked(domElement, nextRawProps);
                    }
                    var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
                    var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
                    // Apply the diff.
                    updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
                    // TODO: Ensure that an update gets scheduled if any of the special props
                    // changed.
                    switch (tag) {
                        case 'input':
                            // Update the wrapper around inputs *after* updating props. This has to
                            // happen after `updateDOMProperties`. Otherwise HTML5 input validations
                            // raise warnings and prevent the new value from being assigned.
                            updateWrapper(domElement, nextRawProps);
                            break;
                        case 'textarea':
                            updateWrapper$1(domElement, nextRawProps);
                            break;
                        case 'select':
                            // <select> value update needs to occur after <option> children
                            // reconciliation
                            postUpdateWrapper(domElement, nextRawProps);
                            break;
                    }
                }
                function getPossibleStandardName(propName) {
                    {
                        var lowerCasedName = propName.toLowerCase();
                        if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
                            return null;
                        }
                        return possibleStandardNames[lowerCasedName] || null;
                    }
                    return null;
                }
                function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
                    var isCustomComponentTag = void 0;
                    var extraAttributeNames = void 0;
                    {
                        suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
                        isCustomComponentTag = isCustomComponent(tag, rawProps);
                        validatePropertiesInDevelopment(tag, rawProps);
                        if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
                            warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
                            didWarnShadyDOM = true;
                        }
                    }
                    // TODO: Make sure that we check isMounted before firing any of these events.
                    switch (tag) {
                        case 'iframe':
                        case 'object':
                            trapBubbledEvent(TOP_LOAD, domElement);
                            break;
                        case 'video':
                        case 'audio':
                            // Create listener for each media event
                            for (var i = 0; i < mediaEventTypes.length; i++) {
                                trapBubbledEvent(mediaEventTypes[i], domElement);
                            }
                            break;
                        case 'source':
                            trapBubbledEvent(TOP_ERROR, domElement);
                            break;
                        case 'img':
                        case 'image':
                        case 'link':
                            trapBubbledEvent(TOP_ERROR, domElement);
                            trapBubbledEvent(TOP_LOAD, domElement);
                            break;
                        case 'form':
                            trapBubbledEvent(TOP_RESET, domElement);
                            trapBubbledEvent(TOP_SUBMIT, domElement);
                            break;
                        case 'details':
                            trapBubbledEvent(TOP_TOGGLE, domElement);
                            break;
                        case 'input':
                            initWrapperState(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                        case 'option':
                            validateProps(domElement, rawProps);
                            break;
                        case 'select':
                            initWrapperState$1(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                        case 'textarea':
                            initWrapperState$2(domElement, rawProps);
                            trapBubbledEvent(TOP_INVALID, domElement);
                            // For controlled components we always need to ensure we're listening
                            // to onChange. Even if there is no listener.
                            ensureListeningTo(rootContainerElement, 'onChange');
                            break;
                    }
                    assertValidProps(tag, rawProps);
                    {
                        extraAttributeNames = new Set();
                        var attributes = domElement.attributes;
                        for (var _i = 0; _i < attributes.length; _i++) {
                            var name = attributes[_i].name.toLowerCase();
                            switch (name) {
                                // Built-in SSR attribute is whitelisted
                                case 'data-reactroot':
                                    break;
                                // Controlled attributes are not validated
                                // TODO: Only ignore them on controlled tags.
                                case 'value':
                                    break;
                                case 'checked':
                                    break;
                                case 'selected':
                                    break;
                                default:
                                    // Intentionally use the original name.
                                    // See discussion in https://github.com/facebook/react/pull/10676.
                                    extraAttributeNames.add(attributes[_i].name);
                            }
                        }
                    }
                    var updatePayload = null;
                    for (var propKey in rawProps) {
                        if (!rawProps.hasOwnProperty(propKey)) {
                            continue;
                        }
                        var nextProp = rawProps[propKey];
                        if (propKey === CHILDREN) {
                            // For text content children we compare against textContent. This
                            // might match additional HTML that is hidden when we read it using
                            // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
                            // satisfies our requirement. Our requirement is not to produce perfect
                            // HTML and attributes. Ideally we should preserve structure but it's
                            // ok not to if the visible content is still enough to indicate what
                            // even listeners these nodes might be wired up to.
                            // TODO: Warn if there is more than a single textNode as a child.
                            // TODO: Should we use domElement.firstChild.nodeValue to compare?
                            if (typeof nextProp === 'string') {
                                if (domElement.textContent !== nextProp) {
                                    if (true && !suppressHydrationWarning) {
                                        warnForTextDifference(domElement.textContent, nextProp);
                                    }
                                    updatePayload = [CHILDREN, nextProp];
                                }
                            }
                            else if (typeof nextProp === 'number') {
                                if (domElement.textContent !== '' + nextProp) {
                                    if (true && !suppressHydrationWarning) {
                                        warnForTextDifference(domElement.textContent, nextProp);
                                    }
                                    updatePayload = [CHILDREN, '' + nextProp];
                                }
                            }
                        }
                        else if (registrationNameModules.hasOwnProperty(propKey)) {
                            if (nextProp != null) {
                                if (true && typeof nextProp !== 'function') {
                                    warnForInvalidEventListener(propKey, nextProp);
                                }
                                ensureListeningTo(rootContainerElement, propKey);
                            }
                        }
                        else if (true &&
                            // Convince Flow we've calculated it (it's DEV-only in this method.)
                            typeof isCustomComponentTag === 'boolean') {
                            // Validate that the properties correspond to their expected values.
                            var serverValue = void 0;
                            var propertyInfo = getPropertyInfo(propKey);
                            if (suppressHydrationWarning) {
                                // Don't bother comparing. We're ignoring all these warnings.
                            }
                            else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
                                // Controlled attributes are not validated
                                // TODO: Only ignore them on controlled tags.
                                propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
                                // Noop
                            }
                            else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
                                var serverHTML = domElement.innerHTML;
                                var nextHtml = nextProp ? nextProp[HTML] : undefined;
                                var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
                                if (expectedHTML !== serverHTML) {
                                    warnForPropDifference(propKey, serverHTML, expectedHTML);
                                }
                            }
                            else if (propKey === STYLE) {
                                // $FlowFixMe - Should be inferred as not undefined.
                                extraAttributeNames.delete(propKey);
                                if (canDiffStyleForHydrationWarning) {
                                    var expectedStyle = createDangerousStringForStyles(nextProp);
                                    serverValue = domElement.getAttribute('style');
                                    if (expectedStyle !== serverValue) {
                                        warnForPropDifference(propKey, serverValue, expectedStyle);
                                    }
                                }
                            }
                            else if (isCustomComponentTag) {
                                // $FlowFixMe - Should be inferred as not undefined.
                                extraAttributeNames.delete(propKey.toLowerCase());
                                serverValue = getValueForAttribute(domElement, propKey, nextProp);
                                if (nextProp !== serverValue) {
                                    warnForPropDifference(propKey, serverValue, nextProp);
                                }
                            }
                            else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
                                var isMismatchDueToBadCasing = false;
                                if (propertyInfo !== null) {
                                    // $FlowFixMe - Should be inferred as not undefined.
                                    extraAttributeNames.delete(propertyInfo.attributeName);
                                    serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
                                }
                                else {
                                    var ownNamespace = parentNamespace;
                                    if (ownNamespace === HTML_NAMESPACE) {
                                        ownNamespace = getIntrinsicNamespace(tag);
                                    }
                                    if (ownNamespace === HTML_NAMESPACE) {
                                        // $FlowFixMe - Should be inferred as not undefined.
                                        extraAttributeNames.delete(propKey.toLowerCase());
                                    }
                                    else {
                                        var standardName = getPossibleStandardName(propKey);
                                        if (standardName !== null && standardName !== propKey) {
                                            // If an SVG prop is supplied with bad casing, it will
                                            // be successfully parsed from HTML, but will produce a mismatch
                                            // (and would be incorrectly rendered on the client).
                                            // However, we already warn about bad casing elsewhere.
                                            // So we'll skip the misleading extra mismatch warning in this case.
                                            isMismatchDueToBadCasing = true;
                                            // $FlowFixMe - Should be inferred as not undefined.
                                            extraAttributeNames.delete(standardName);
                                        }
                                        // $FlowFixMe - Should be inferred as not undefined.
                                        extraAttributeNames.delete(propKey);
                                    }
                                    serverValue = getValueForAttribute(domElement, propKey, nextProp);
                                }
                                if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
                                    warnForPropDifference(propKey, serverValue, nextProp);
                                }
                            }
                        }
                    }
                    {
                        // $FlowFixMe - Should be inferred as not undefined.
                        if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
                            // $FlowFixMe - Should be inferred as not undefined.
                            warnForExtraAttributes(extraAttributeNames);
                        }
                    }
                    switch (tag) {
                        case 'input':
                            // TODO: Make sure we check if this is still unmounted or do any clean
                            // up necessary since we never stop tracking anymore.
                            track(domElement);
                            postMountWrapper(domElement, rawProps, true);
                            break;
                        case 'textarea':
                            // TODO: Make sure we check if this is still unmounted or do any clean
                            // up necessary since we never stop tracking anymore.
                            track(domElement);
                            postMountWrapper$3(domElement, rawProps);
                            break;
                        case 'select':
                        case 'option':
                            // For input and textarea we current always set the value property at
                            // post mount to force it to diverge from attributes. However, for
                            // option and select we don't quite do the same thing and select
                            // is not resilient to the DOM state changing so we don't do that here.
                            // TODO: Consider not doing this for input and textarea.
                            break;
                        default:
                            if (typeof rawProps.onClick === 'function') {
                                // TODO: This cast may not be sound for SVG, MathML or custom elements.
                                trapClickOnNonInteractiveElement(domElement);
                            }
                            break;
                    }
                    return updatePayload;
                }
                function diffHydratedText(textNode, text) {
                    var isDifferent = textNode.nodeValue !== text;
                    return isDifferent;
                }
                function warnForUnmatchedText(textNode, text) {
                    {
                        warnForTextDifference(textNode.nodeValue, text);
                    }
                }
                function warnForDeletedHydratableElement(parentNode, child) {
                    {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
                    }
                }
                function warnForDeletedHydratableText(parentNode, child) {
                    {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
                    }
                }
                function warnForInsertedHydratedElement(parentNode, tag, props) {
                    {
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
                    }
                }
                function warnForInsertedHydratedText(parentNode, text) {
                    {
                        if (text === '') {
                            // We expect to insert empty text nodes since they're not represented in
                            // the HTML.
                            // TODO: Remove this special case if we can just avoid inserting empty
                            // text nodes.
                            return;
                        }
                        if (didWarnInvalidHydration) {
                            return;
                        }
                        didWarnInvalidHydration = true;
                        warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
                    }
                }
                function restoreControlledState$1(domElement, tag, props) {
                    switch (tag) {
                        case 'input':
                            restoreControlledState(domElement, props);
                            return;
                        case 'textarea':
                            restoreControlledState$3(domElement, props);
                            return;
                        case 'select':
                            restoreControlledState$2(domElement, props);
                            return;
                    }
                }
                // TODO: direct imports like some-package/src/* are bad. Fix me.
                var validateDOMNesting = function () { };
                var updatedAncestorInfo = function () { };
                {
                    // This validation code was written based on the HTML5 parsing spec:
                    // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
                    //
                    // Note: this does not catch all invalid nesting, nor does it try to (as it's
                    // not clear what practical benefit doing so provides); instead, we warn only
                    // for cases where the parser will give a parse tree differing from what React
                    // intended. For example, <b><div></div></b> is invalid but we don't warn
                    // because it still parses correctly; we do warn for other cases like nested
                    // <p> tags where the beginning of the second element implicitly closes the
                    // first, causing a confusing mess.
                    // https://html.spec.whatwg.org/multipage/syntax.html#special
                    var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];
                    // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
                    var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
                        // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
                        // TODO: Distinguish by namespace here -- for <title>, including it here
                        // errs on the side of fewer warnings
                        'foreignObject', 'desc', 'title'];
                    // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
                    var buttonScopeTags = inScopeTags.concat(['button']);
                    // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
                    var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
                    var emptyAncestorInfo = {
                        current: null,
                        formTag: null,
                        aTagInScope: null,
                        buttonTagInScope: null,
                        nobrTagInScope: null,
                        pTagInButtonScope: null,
                        listItemTagAutoclosing: null,
                        dlItemTagAutoclosing: null
                    };
                    updatedAncestorInfo = function (oldInfo, tag) {
                        var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
                        var info = { tag: tag };
                        if (inScopeTags.indexOf(tag) !== -1) {
                            ancestorInfo.aTagInScope = null;
                            ancestorInfo.buttonTagInScope = null;
                            ancestorInfo.nobrTagInScope = null;
                        }
                        if (buttonScopeTags.indexOf(tag) !== -1) {
                            ancestorInfo.pTagInButtonScope = null;
                        }
                        // See rules for 'li', 'dd', 'dt' start tags in
                        // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
                        if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
                            ancestorInfo.listItemTagAutoclosing = null;
                            ancestorInfo.dlItemTagAutoclosing = null;
                        }
                        ancestorInfo.current = info;
                        if (tag === 'form') {
                            ancestorInfo.formTag = info;
                        }
                        if (tag === 'a') {
                            ancestorInfo.aTagInScope = info;
                        }
                        if (tag === 'button') {
                            ancestorInfo.buttonTagInScope = info;
                        }
                        if (tag === 'nobr') {
                            ancestorInfo.nobrTagInScope = info;
                        }
                        if (tag === 'p') {
                            ancestorInfo.pTagInButtonScope = info;
                        }
                        if (tag === 'li') {
                            ancestorInfo.listItemTagAutoclosing = info;
                        }
                        if (tag === 'dd' || tag === 'dt') {
                            ancestorInfo.dlItemTagAutoclosing = info;
                        }
                        return ancestorInfo;
                    };
                    /**
                     * Returns whether
                     */
                    var isTagValidWithParent = function (tag, parentTag) {
                        // First, let's check if we're in an unusual parsing mode...
                        switch (parentTag) {
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
                            case 'select':
                                return tag === 'option' || tag === 'optgroup' || tag === '#text';
                            case 'optgroup':
                                return tag === 'option' || tag === '#text';
                            // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
                            // but
                            case 'option':
                                return tag === '#text';
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
                            // No special behavior since these rules fall back to "in body" mode for
                            // all except special table nodes which cause bad parsing behavior anyway.
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
                            case 'tr':
                                return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
                            case 'tbody':
                            case 'thead':
                            case 'tfoot':
                                return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
                            case 'colgroup':
                                return tag === 'col' || tag === 'template';
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
                            case 'table':
                                return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
                            // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
                            case 'head':
                                return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
                            // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
                            case 'html':
                                return tag === 'head' || tag === 'body';
                            case '#document':
                                return tag === 'html';
                        }
                        // Probably in the "in body" parsing mode, so we outlaw only tag combos
                        // where the parsing rules cause implicit opens or closes to be added.
                        // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
                        switch (tag) {
                            case 'h1':
                            case 'h2':
                            case 'h3':
                            case 'h4':
                            case 'h5':
                            case 'h6':
                                return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
                            case 'rp':
                            case 'rt':
                                return impliedEndTags.indexOf(parentTag) === -1;
                            case 'body':
                            case 'caption':
                            case 'col':
                            case 'colgroup':
                            case 'frame':
                            case 'head':
                            case 'html':
                            case 'tbody':
                            case 'td':
                            case 'tfoot':
                            case 'th':
                            case 'thead':
                            case 'tr':
                                // These tags are only valid with a few parents that have special child
                                // parsing rules -- if we're down here, then none of those matched and
                                // so we allow it only if we don't know what the parent is, as all other
                                // cases are invalid.
                                return parentTag == null;
                        }
                        return true;
                    };
                    /**
                     * Returns whether
                     */
                    var findInvalidAncestorForTag = function (tag, ancestorInfo) {
                        switch (tag) {
                            case 'address':
                            case 'article':
                            case 'aside':
                            case 'blockquote':
                            case 'center':
                            case 'details':
                            case 'dialog':
                            case 'dir':
                            case 'div':
                            case 'dl':
                            case 'fieldset':
                            case 'figcaption':
                            case 'figure':
                            case 'footer':
                            case 'header':
                            case 'hgroup':
                            case 'main':
                            case 'menu':
                            case 'nav':
                            case 'ol':
                            case 'p':
                            case 'section':
                            case 'summary':
                            case 'ul':
                            case 'pre':
                            case 'listing':
                            case 'table':
                            case 'hr':
                            case 'xmp':
                            case 'h1':
                            case 'h2':
                            case 'h3':
                            case 'h4':
                            case 'h5':
                            case 'h6':
                                return ancestorInfo.pTagInButtonScope;
                            case 'form':
                                return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
                            case 'li':
                                return ancestorInfo.listItemTagAutoclosing;
                            case 'dd':
                            case 'dt':
                                return ancestorInfo.dlItemTagAutoclosing;
                            case 'button':
                                return ancestorInfo.buttonTagInScope;
                            case 'a':
                                // Spec says something about storing a list of markers, but it sounds
                                // equivalent to this check.
                                return ancestorInfo.aTagInScope;
                            case 'nobr':
                                return ancestorInfo.nobrTagInScope;
                        }
                        return null;
                    };
                    var didWarn = {};
                    validateDOMNesting = function (childTag, childText, ancestorInfo) {
                        ancestorInfo = ancestorInfo || emptyAncestorInfo;
                        var parentInfo = ancestorInfo.current;
                        var parentTag = parentInfo && parentInfo.tag;
                        if (childText != null) {
                            !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
                            childTag = '#text';
                        }
                        var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
                        var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
                        var invalidParentOrAncestor = invalidParent || invalidAncestor;
                        if (!invalidParentOrAncestor) {
                            return;
                        }
                        var ancestorTag = invalidParentOrAncestor.tag;
                        var addendum = getCurrentFiberStackInDev();
                        var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
                        if (didWarn[warnKey]) {
                            return;
                        }
                        didWarn[warnKey] = true;
                        var tagDisplayName = childTag;
                        var whitespaceInfo = '';
                        if (childTag === '#text') {
                            if (/\S/.test(childText)) {
                                tagDisplayName = 'Text nodes';
                            }
                            else {
                                tagDisplayName = 'Whitespace text nodes';
                                whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
                            }
                        }
                        else {
                            tagDisplayName = '<' + childTag + '>';
                        }
                        if (invalidParent) {
                            var info = '';
                            if (ancestorTag === 'table' && childTag === 'tr') {
                                info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
                            }
                            warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
                        }
                        else {
                            warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
                        }
                    };
                }
                // Renderers that don't support persistence
                // can re-export everything from this module.
                function shim() {
                    invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
                }
                // Persistence (when unsupported)
                var supportsPersistence = false;
                var cloneInstance = shim;
                var createContainerChildSet = shim;
                var appendChildToContainerChildSet = shim;
                var finalizeContainerChildren = shim;
                var replaceContainerChildren = shim;
                var SUPPRESS_HYDRATION_WARNING = void 0;
                {
                    SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
                }
                var eventsEnabled = null;
                var selectionInformation = null;
                function shouldAutoFocusHostComponent(type, props) {
                    switch (type) {
                        case 'button':
                        case 'input':
                        case 'select':
                        case 'textarea':
                            return !!props.autoFocus;
                    }
                    return false;
                }
                function getRootHostContext(rootContainerInstance) {
                    var type = void 0;
                    var namespace = void 0;
                    var nodeType = rootContainerInstance.nodeType;
                    switch (nodeType) {
                        case DOCUMENT_NODE:
                        case DOCUMENT_FRAGMENT_NODE:
                            {
                                type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
                                var root = rootContainerInstance.documentElement;
                                namespace = root ? root.namespaceURI : getChildNamespace(null, '');
                                break;
                            }
                        default:
                            {
                                var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
                                var ownNamespace = container.namespaceURI || null;
                                type = container.tagName;
                                namespace = getChildNamespace(ownNamespace, type);
                                break;
                            }
                    }
                    {
                        var validatedTag = type.toLowerCase();
                        var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
                        return { namespace: namespace, ancestorInfo: _ancestorInfo };
                    }
                    return namespace;
                }
                function getChildHostContext(parentHostContext, type, rootContainerInstance) {
                    {
                        var parentHostContextDev = parentHostContext;
                        var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
                        var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
                        return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
                    }
                    var parentNamespace = parentHostContext;
                    return getChildNamespace(parentNamespace, type);
                }
                function getPublicInstance(instance) {
                    return instance;
                }
                function prepareForCommit(containerInfo) {
                    eventsEnabled = isEnabled();
                    selectionInformation = getSelectionInformation();
                    setEnabled(false);
                }
                function resetAfterCommit(containerInfo) {
                    restoreSelection(selectionInformation);
                    selectionInformation = null;
                    setEnabled(eventsEnabled);
                    eventsEnabled = null;
                }
                function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
                    var parentNamespace = void 0;
                    {
                        // TODO: take namespace into account when validating.
                        var hostContextDev = hostContext;
                        validateDOMNesting(type, null, hostContextDev.ancestorInfo);
                        if (typeof props.children === 'string' || typeof props.children === 'number') {
                            var string = '' + props.children;
                            var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
                            validateDOMNesting(null, string, ownAncestorInfo);
                        }
                        parentNamespace = hostContextDev.namespace;
                    }
                    var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
                    precacheFiberNode(internalInstanceHandle, domElement);
                    updateFiberProps(domElement, props);
                    return domElement;
                }
                function appendInitialChild(parentInstance, child) {
                    parentInstance.appendChild(child);
                }
                function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
                    setInitialProperties(domElement, type, props, rootContainerInstance);
                    return shouldAutoFocusHostComponent(type, props);
                }
                function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
                    {
                        var hostContextDev = hostContext;
                        if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
                            var string = '' + newProps.children;
                            var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
                            validateDOMNesting(null, string, ownAncestorInfo);
                        }
                    }
                    return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
                }
                function shouldSetTextContent(type, props) {
                    return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
                }
                function shouldDeprioritizeSubtree(type, props) {
                    return !!props.hidden;
                }
                function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
                    {
                        var hostContextDev = hostContext;
                        validateDOMNesting(null, text, hostContextDev.ancestorInfo);
                    }
                    var textNode = createTextNode(text, rootContainerInstance);
                    precacheFiberNode(internalInstanceHandle, textNode);
                    return textNode;
                }
                var isPrimaryRenderer = true;
                var scheduleTimeout = setTimeout;
                var cancelTimeout = clearTimeout;
                var noTimeout = -1;
                // -------------------
                //     Mutation
                // -------------------
                var supportsMutation = true;
                function commitMount(domElement, type, newProps, internalInstanceHandle) {
                    // Despite the naming that might imply otherwise, this method only
                    // fires if there is an `Update` effect scheduled during mounting.
                    // This happens if `finalizeInitialChildren` returns `true` (which it
                    // does to implement the `autoFocus` attribute on the client). But
                    // there are also other cases when this might happen (such as patching
                    // up text content during hydration mismatch). So we'll check this again.
                    if (shouldAutoFocusHostComponent(type, newProps)) {
                        domElement.focus();
                    }
                }
                function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
                    // Update the props handle so that we know which props are the ones with
                    // with current event handlers.
                    updateFiberProps(domElement, newProps);
                    // Apply the diff to the DOM node.
                    updateProperties(domElement, updatePayload, type, oldProps, newProps);
                }
                function resetTextContent(domElement) {
                    setTextContent(domElement, '');
                }
                function commitTextUpdate(textInstance, oldText, newText) {
                    textInstance.nodeValue = newText;
                }
                function appendChild(parentInstance, child) {
                    parentInstance.appendChild(child);
                }
                function appendChildToContainer(container, child) {
                    var parentNode = void 0;
                    if (container.nodeType === COMMENT_NODE) {
                        parentNode = container.parentNode;
                        parentNode.insertBefore(child, container);
                    }
                    else {
                        parentNode = container;
                        parentNode.appendChild(child);
                    }
                    // This container might be used for a portal.
                    // If something inside a portal is clicked, that click should bubble
                    // through the React tree. However, on Mobile Safari the click would
                    // never bubble through the *DOM* tree unless an ancestor with onclick
                    // event exists. So we wouldn't see it and dispatch it.
                    // This is why we ensure that containers have inline onclick defined.
                    // https://github.com/facebook/react/issues/11918
                    if (parentNode.onclick === null) {
                        // TODO: This cast may not be sound for SVG, MathML or custom elements.
                        trapClickOnNonInteractiveElement(parentNode);
                    }
                }
                function insertBefore(parentInstance, child, beforeChild) {
                    parentInstance.insertBefore(child, beforeChild);
                }
                function insertInContainerBefore(container, child, beforeChild) {
                    if (container.nodeType === COMMENT_NODE) {
                        container.parentNode.insertBefore(child, beforeChild);
                    }
                    else {
                        container.insertBefore(child, beforeChild);
                    }
                }
                function removeChild(parentInstance, child) {
                    parentInstance.removeChild(child);
                }
                function removeChildFromContainer(container, child) {
                    if (container.nodeType === COMMENT_NODE) {
                        container.parentNode.removeChild(child);
                    }
                    else {
                        container.removeChild(child);
                    }
                }
                // -------------------
                //     Hydration
                // -------------------
                var supportsHydration = true;
                function canHydrateInstance(instance, type, props) {
                    if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
                        return null;
                    }
                    // This has now been refined to an element node.
                    return instance;
                }
                function canHydrateTextInstance(instance, text) {
                    if (text === '' || instance.nodeType !== TEXT_NODE) {
                        // Empty strings are not parsed by HTML so there won't be a correct match here.
                        return null;
                    }
                    // This has now been refined to a text node.
                    return instance;
                }
                function getNextHydratableSibling(instance) {
                    var node = instance.nextSibling;
                    // Skip non-hydratable nodes.
                    while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
                        node = node.nextSibling;
                    }
                    return node;
                }
                function getFirstHydratableChild(parentInstance) {
                    var next = parentInstance.firstChild;
                    // Skip non-hydratable nodes.
                    while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
                        next = next.nextSibling;
                    }
                    return next;
                }
                function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
                    precacheFiberNode(internalInstanceHandle, instance);
                    // TODO: Possibly defer this until the commit phase where all the events
                    // get attached.
                    updateFiberProps(instance, props);
                    var parentNamespace = void 0;
                    {
                        var hostContextDev = hostContext;
                        parentNamespace = hostContextDev.namespace;
                    }
                    return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
                }
                function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
                    precacheFiberNode(internalInstanceHandle, textInstance);
                    return diffHydratedText(textInstance, text);
                }
                function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
                    {
                        warnForUnmatchedText(textInstance, text);
                    }
                }
                function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
                    if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
                        warnForUnmatchedText(textInstance, text);
                    }
                }
                function didNotHydrateContainerInstance(parentContainer, instance) {
                    {
                        if (instance.nodeType === ELEMENT_NODE) {
                            warnForDeletedHydratableElement(parentContainer, instance);
                        }
                        else {
                            warnForDeletedHydratableText(parentContainer, instance);
                        }
                    }
                }
                function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
                    if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
                        if (instance.nodeType === ELEMENT_NODE) {
                            warnForDeletedHydratableElement(parentInstance, instance);
                        }
                        else {
                            warnForDeletedHydratableText(parentInstance, instance);
                        }
                    }
                }
                function didNotFindHydratableContainerInstance(parentContainer, type, props) {
                    {
                        warnForInsertedHydratedElement(parentContainer, type, props);
                    }
                }
                function didNotFindHydratableContainerTextInstance(parentContainer, text) {
                    {
                        warnForInsertedHydratedText(parentContainer, text);
                    }
                }
                function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
                    if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
                        warnForInsertedHydratedElement(parentInstance, type, props);
                    }
                }
                function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
                    if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
                        warnForInsertedHydratedText(parentInstance, text);
                    }
                }
                // Prefix measurements so that it's possible to filter them.
                // Longer prefixes are hard to read in DevTools.
                var reactEmoji = '\u269B';
                var warningEmoji = '\u26D4';
                var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
                // Keep track of current fiber so that we know the path to unwind on pause.
                // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
                var currentFiber = null;
                // If we're in the middle of user code, which fiber and method is it?
                // Reusing `currentFiber` would be confusing for this because user code fiber
                // can change during commit phase too, but we don't need to unwind it (since
                // lifecycles in the commit phase don't resemble a tree).
                var currentPhase = null;
                var currentPhaseFiber = null;
                // Did lifecycle hook schedule an update? This is often a performance problem,
                // so we will keep track of it, and include it in the report.
                // Track commits caused by cascading updates.
                var isCommitting = false;
                var hasScheduledUpdateInCurrentCommit = false;
                var hasScheduledUpdateInCurrentPhase = false;
                var commitCountInCurrentWorkLoop = 0;
                var effectCountInCurrentCommit = 0;
                var isWaitingForCallback = false;
                // During commits, we only show a measurement once per method name
                // to avoid stretch the commit phase with measurement overhead.
                var labelsInCurrentCommit = new Set();
                var formatMarkName = function (markName) {
                    return reactEmoji + ' ' + markName;
                };
                var formatLabel = function (label, warning) {
                    var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
                    var suffix = warning ? ' Warning: ' + warning : '';
                    return '' + prefix + label + suffix;
                };
                var beginMark = function (markName) {
                    performance.mark(formatMarkName(markName));
                };
                var clearMark = function (markName) {
                    performance.clearMarks(formatMarkName(markName));
                };
                var endMark = function (label, markName, warning) {
                    var formattedMarkName = formatMarkName(markName);
                    var formattedLabel = formatLabel(label, warning);
                    try {
                        performance.measure(formattedLabel, formattedMarkName);
                    }
                    catch (err) { }
                    // If previous mark was missing for some reason, this will throw.
                    // This could only happen if React crashed in an unexpected place earlier.
                    // Don't pile on with more errors.
                    // Clear marks immediately to avoid growing buffer.
                    performance.clearMarks(formattedMarkName);
                    performance.clearMeasures(formattedLabel);
                };
                var getFiberMarkName = function (label, debugID) {
                    return label + ' (#' + debugID + ')';
                };
                var getFiberLabel = function (componentName, isMounted, phase) {
                    if (phase === null) {
                        // These are composite component total time measurements.
                        return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
                    }
                    else {
                        // Composite component methods.
                        return componentName + '.' + phase;
                    }
                };
                var beginFiberMark = function (fiber, phase) {
                    var componentName = getComponentName(fiber.type) || 'Unknown';
                    var debugID = fiber._debugID;
                    var isMounted = fiber.alternate !== null;
                    var label = getFiberLabel(componentName, isMounted, phase);
                    if (isCommitting && labelsInCurrentCommit.has(label)) {
                        // During the commit phase, we don't show duplicate labels because
                        // there is a fixed overhead for every measurement, and we don't
                        // want to stretch the commit phase beyond necessary.
                        return false;
                    }
                    labelsInCurrentCommit.add(label);
                    var markName = getFiberMarkName(label, debugID);
                    beginMark(markName);
                    return true;
                };
                var clearFiberMark = function (fiber, phase) {
                    var componentName = getComponentName(fiber.type) || 'Unknown';
                    var debugID = fiber._debugID;
                    var isMounted = fiber.alternate !== null;
                    var label = getFiberLabel(componentName, isMounted, phase);
                    var markName = getFiberMarkName(label, debugID);
                    clearMark(markName);
                };
                var endFiberMark = function (fiber, phase, warning) {
                    var componentName = getComponentName(fiber.type) || 'Unknown';
                    var debugID = fiber._debugID;
                    var isMounted = fiber.alternate !== null;
                    var label = getFiberLabel(componentName, isMounted, phase);
                    var markName = getFiberMarkName(label, debugID);
                    endMark(label, markName, warning);
                };
                var shouldIgnoreFiber = function (fiber) {
                    // Host components should be skipped in the timeline.
                    // We could check typeof fiber.type, but does this work with RN?
                    switch (fiber.tag) {
                        case HostRoot:
                        case HostComponent:
                        case HostText:
                        case HostPortal:
                        case Fragment:
                        case ContextProvider:
                        case ContextConsumer:
                        case Mode:
                            return true;
                        default:
                            return false;
                    }
                };
                var clearPendingPhaseMeasurement = function () {
                    if (currentPhase !== null && currentPhaseFiber !== null) {
                        clearFiberMark(currentPhaseFiber, currentPhase);
                    }
                    currentPhaseFiber = null;
                    currentPhase = null;
                    hasScheduledUpdateInCurrentPhase = false;
                };
                var pauseTimers = function () {
                    // Stops all currently active measurements so that they can be resumed
                    // if we continue in a later deferred loop from the same unit of work.
                    var fiber = currentFiber;
                    while (fiber) {
                        if (fiber._debugIsCurrentlyTiming) {
                            endFiberMark(fiber, null, null);
                        }
                        fiber = fiber.return;
                    }
                };
                var resumeTimersRecursively = function (fiber) {
                    if (fiber.return !== null) {
                        resumeTimersRecursively(fiber.return);
                    }
                    if (fiber._debugIsCurrentlyTiming) {
                        beginFiberMark(fiber, null);
                    }
                };
                var resumeTimers = function () {
                    // Resumes all measurements that were active during the last deferred loop.
                    if (currentFiber !== null) {
                        resumeTimersRecursively(currentFiber);
                    }
                };
                function recordEffect() {
                    if (enableUserTimingAPI) {
                        effectCountInCurrentCommit++;
                    }
                }
                function recordScheduleUpdate() {
                    if (enableUserTimingAPI) {
                        if (isCommitting) {
                            hasScheduledUpdateInCurrentCommit = true;
                        }
                        if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
                            hasScheduledUpdateInCurrentPhase = true;
                        }
                    }
                }
                function startRequestCallbackTimer() {
                    if (enableUserTimingAPI) {
                        if (supportsUserTiming && !isWaitingForCallback) {
                            isWaitingForCallback = true;
                            beginMark('(Waiting for async callback...)');
                        }
                    }
                }
                function stopRequestCallbackTimer(didExpire, expirationTime) {
                    if (enableUserTimingAPI) {
                        if (supportsUserTiming) {
                            isWaitingForCallback = false;
                            var warning = didExpire ? 'React was blocked by main thread' : null;
                            endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
                        }
                    }
                }
                function startWorkTimer(fiber) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
                            return;
                        }
                        // If we pause, this is the fiber to unwind from.
                        currentFiber = fiber;
                        if (!beginFiberMark(fiber, null)) {
                            return;
                        }
                        fiber._debugIsCurrentlyTiming = true;
                    }
                }
                function cancelWorkTimer(fiber) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
                            return;
                        }
                        // Remember we shouldn't complete measurement for this fiber.
                        // Otherwise flamechart will be deep even for small updates.
                        fiber._debugIsCurrentlyTiming = false;
                        clearFiberMark(fiber, null);
                    }
                }
                function stopWorkTimer(fiber) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
                            return;
                        }
                        // If we pause, its parent is the fiber to unwind from.
                        currentFiber = fiber.return;
                        if (!fiber._debugIsCurrentlyTiming) {
                            return;
                        }
                        fiber._debugIsCurrentlyTiming = false;
                        endFiberMark(fiber, null, null);
                    }
                }
                function stopFailedWorkTimer(fiber) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
                            return;
                        }
                        // If we pause, its parent is the fiber to unwind from.
                        currentFiber = fiber.return;
                        if (!fiber._debugIsCurrentlyTiming) {
                            return;
                        }
                        fiber._debugIsCurrentlyTiming = false;
                        var warning = 'An error was thrown inside this error boundary';
                        endFiberMark(fiber, null, warning);
                    }
                }
                function startPhaseTimer(fiber, phase) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        clearPendingPhaseMeasurement();
                        if (!beginFiberMark(fiber, phase)) {
                            return;
                        }
                        currentPhaseFiber = fiber;
                        currentPhase = phase;
                    }
                }
                function stopPhaseTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        if (currentPhase !== null && currentPhaseFiber !== null) {
                            var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
                            endFiberMark(currentPhaseFiber, currentPhase, warning);
                        }
                        currentPhase = null;
                        currentPhaseFiber = null;
                    }
                }
                function startWorkLoopTimer(nextUnitOfWork) {
                    if (enableUserTimingAPI) {
                        currentFiber = nextUnitOfWork;
                        if (!supportsUserTiming) {
                            return;
                        }
                        commitCountInCurrentWorkLoop = 0;
                        // This is top level call.
                        // Any other measurements are performed within.
                        beginMark('(React Tree Reconciliation)');
                        // Resume any measurements that were in progress during the last loop.
                        resumeTimers();
                    }
                }
                function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        var warning = null;
                        if (interruptedBy !== null) {
                            if (interruptedBy.tag === HostRoot) {
                                warning = 'A top-level update interrupted the previous render';
                            }
                            else {
                                var componentName = getComponentName(interruptedBy.type) || 'Unknown';
                                warning = 'An update to ' + componentName + ' interrupted the previous render';
                            }
                        }
                        else if (commitCountInCurrentWorkLoop > 1) {
                            warning = 'There were cascading updates';
                        }
                        commitCountInCurrentWorkLoop = 0;
                        var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
                        // Pause any measurements until the next loop.
                        pauseTimers();
                        endMark(label, '(React Tree Reconciliation)', warning);
                    }
                }
                function startCommitTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        isCommitting = true;
                        hasScheduledUpdateInCurrentCommit = false;
                        labelsInCurrentCommit.clear();
                        beginMark('(Committing Changes)');
                    }
                }
                function stopCommitTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        var warning = null;
                        if (hasScheduledUpdateInCurrentCommit) {
                            warning = 'Lifecycle hook scheduled a cascading update';
                        }
                        else if (commitCountInCurrentWorkLoop > 0) {
                            warning = 'Caused by a cascading update in earlier commit';
                        }
                        hasScheduledUpdateInCurrentCommit = false;
                        commitCountInCurrentWorkLoop++;
                        isCommitting = false;
                        labelsInCurrentCommit.clear();
                        endMark('(Committing Changes)', '(Committing Changes)', warning);
                    }
                }
                function startCommitSnapshotEffectsTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        effectCountInCurrentCommit = 0;
                        beginMark('(Committing Snapshot Effects)');
                    }
                }
                function stopCommitSnapshotEffectsTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        var count = effectCountInCurrentCommit;
                        effectCountInCurrentCommit = 0;
                        endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
                    }
                }
                function startCommitHostEffectsTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        effectCountInCurrentCommit = 0;
                        beginMark('(Committing Host Effects)');
                    }
                }
                function stopCommitHostEffectsTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        var count = effectCountInCurrentCommit;
                        effectCountInCurrentCommit = 0;
                        endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
                    }
                }
                function startCommitLifeCyclesTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        effectCountInCurrentCommit = 0;
                        beginMark('(Calling Lifecycle Methods)');
                    }
                }
                function stopCommitLifeCyclesTimer() {
                    if (enableUserTimingAPI) {
                        if (!supportsUserTiming) {
                            return;
                        }
                        var count = effectCountInCurrentCommit;
                        effectCountInCurrentCommit = 0;
                        endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
                    }
                }
                var valueStack = [];
                var fiberStack = void 0;
                {
                    fiberStack = [];
                }
                var index = -1;
                function createCursor(defaultValue) {
                    return {
                        current: defaultValue
                    };
                }
                function pop(cursor, fiber) {
                    if (index < 0) {
                        {
                            warningWithoutStack$1(false, 'Unexpected pop.');
                        }
                        return;
                    }
                    {
                        if (fiber !== fiberStack[index]) {
                            warningWithoutStack$1(false, 'Unexpected Fiber popped.');
                        }
                    }
                    cursor.current = valueStack[index];
                    valueStack[index] = null;
                    {
                        fiberStack[index] = null;
                    }
                    index--;
                }
                function push(cursor, value, fiber) {
                    index++;
                    valueStack[index] = cursor.current;
                    {
                        fiberStack[index] = fiber;
                    }
                    cursor.current = value;
                }
                function checkThatStackIsEmpty() {
                    {
                        if (index !== -1) {
                            warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
                        }
                    }
                }
                function resetStackAfterFatalErrorInDev() {
                    {
                        index = -1;
                        valueStack.length = 0;
                        fiberStack.length = 0;
                    }
                }
                var warnedAboutMissingGetChildContext = void 0;
                {
                    warnedAboutMissingGetChildContext = {};
                }
                var emptyContextObject = {};
                {
                    Object.freeze(emptyContextObject);
                }
                // A cursor to the current merged context object on the stack.
                var contextStackCursor = createCursor(emptyContextObject);
                // A cursor to a boolean indicating whether the context has changed.
                var didPerformWorkStackCursor = createCursor(false);
                // Keep track of the previous context object that was on the stack.
                // We use this to get access to the parent context after we have already
                // pushed the next context provider, and now need to merge their contexts.
                var previousContext = emptyContextObject;
                function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
                    if (didPushOwnContextIfProvider && isContextProvider(Component)) {
                        // If the fiber is a context provider itself, when we read its context
                        // we may have already pushed its own child context on the stack. A context
                        // provider should not "see" its own child context. Therefore we read the
                        // previous (parent) context instead for a context provider.
                        return previousContext;
                    }
                    return contextStackCursor.current;
                }
                function cacheContext(workInProgress, unmaskedContext, maskedContext) {
                    var instance = workInProgress.stateNode;
                    instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
                    instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
                }
                function getMaskedContext(workInProgress, unmaskedContext) {
                    var type = workInProgress.type;
                    var contextTypes = type.contextTypes;
                    if (!contextTypes) {
                        return emptyContextObject;
                    }
                    // Avoid recreating masked context unless unmasked context has changed.
                    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
                    // This may trigger infinite loops if componentWillReceiveProps calls setState.
                    var instance = workInProgress.stateNode;
                    if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
                        return instance.__reactInternalMemoizedMaskedChildContext;
                    }
                    var context = {};
                    for (var key in contextTypes) {
                        context[key] = unmaskedContext[key];
                    }
                    {
                        var name = getComponentName(type) || 'Unknown';
                        checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
                    }
                    // Cache unmasked context so we can avoid recreating masked context unless necessary.
                    // Context is created before the class component is instantiated so check for instance.
                    if (instance) {
                        cacheContext(workInProgress, unmaskedContext, context);
                    }
                    return context;
                }
                function hasContextChanged() {
                    return didPerformWorkStackCursor.current;
                }
                function isContextProvider(type) {
                    var childContextTypes = type.childContextTypes;
                    return childContextTypes !== null && childContextTypes !== undefined;
                }
                function popContext(fiber) {
                    pop(didPerformWorkStackCursor, fiber);
                    pop(contextStackCursor, fiber);
                }
                function popTopLevelContextObject(fiber) {
                    pop(didPerformWorkStackCursor, fiber);
                    pop(contextStackCursor, fiber);
                }
                function pushTopLevelContextObject(fiber, context, didChange) {
                    !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    push(contextStackCursor, context, fiber);
                    push(didPerformWorkStackCursor, didChange, fiber);
                }
                function processChildContext(fiber, type, parentContext) {
                    var instance = fiber.stateNode;
                    var childContextTypes = type.childContextTypes;
                    // TODO (bvaughn) Replace this behavior with an invariant() in the future.
                    // It has only been added in Fiber to match the (unintentional) behavior in Stack.
                    if (typeof instance.getChildContext !== 'function') {
                        {
                            var componentName = getComponentName(type) || 'Unknown';
                            if (!warnedAboutMissingGetChildContext[componentName]) {
                                warnedAboutMissingGetChildContext[componentName] = true;
                                warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
                            }
                        }
                        return parentContext;
                    }
                    var childContext = void 0;
                    {
                        setCurrentPhase('getChildContext');
                    }
                    startPhaseTimer(fiber, 'getChildContext');
                    childContext = instance.getChildContext();
                    stopPhaseTimer();
                    {
                        setCurrentPhase(null);
                    }
                    for (var contextKey in childContext) {
                        !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
                    }
                    {
                        var name = getComponentName(type) || 'Unknown';
                        checkPropTypes(childContextTypes, childContext, 'child context', name, 
                        // In practice, there is one case in which we won't get a stack. It's when
                        // somebody calls unstable_renderSubtreeIntoContainer() and we process
                        // context from the parent component instance. The stack will be missing
                        // because it's outside of the reconciliation, and so the pointer has not
                        // been set. This is rare and doesn't matter. We'll also remove that API.
                        getCurrentFiberStackInDev);
                    }
                    return _assign({}, parentContext, childContext);
                }
                function pushContextProvider(workInProgress) {
                    var instance = workInProgress.stateNode;
                    // We push the context as early as possible to ensure stack integrity.
                    // If the instance does not exist yet, we will push null at first,
                    // and replace it on the stack later when invalidating the context.
                    var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
                    // Remember the parent context so we can merge with it later.
                    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
                    previousContext = contextStackCursor.current;
                    push(contextStackCursor, memoizedMergedChildContext, workInProgress);
                    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
                    return true;
                }
                function invalidateContextProvider(workInProgress, type, didChange) {
                    var instance = workInProgress.stateNode;
                    !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    if (didChange) {
                        // Merge parent and own context.
                        // Skip this if we're not updating due to sCU.
                        // This avoids unnecessarily recomputing memoized values.
                        var mergedContext = processChildContext(workInProgress, type, previousContext);
                        instance.__reactInternalMemoizedMergedChildContext = mergedContext;
                        // Replace the old (or empty) context with the new one.
                        // It is important to unwind the context in the reverse order.
                        pop(didPerformWorkStackCursor, workInProgress);
                        pop(contextStackCursor, workInProgress);
                        // Now push the new context and mark that it has changed.
                        push(contextStackCursor, mergedContext, workInProgress);
                        push(didPerformWorkStackCursor, didChange, workInProgress);
                    }
                    else {
                        pop(didPerformWorkStackCursor, workInProgress);
                        push(didPerformWorkStackCursor, didChange, workInProgress);
                    }
                }
                function findCurrentUnmaskedContext(fiber) {
                    // Currently this is only used with renderSubtreeIntoContainer; not sure if it
                    // makes sense elsewhere
                    !(isFiberMounted(fiber) && (fiber.tag === ClassComponent || fiber.tag === ClassComponentLazy)) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    var node = fiber;
                    do {
                        switch (node.tag) {
                            case HostRoot:
                                return node.stateNode.context;
                            case ClassComponent:
                                {
                                    var Component = node.type;
                                    if (isContextProvider(Component)) {
                                        return node.stateNode.__reactInternalMemoizedMergedChildContext;
                                    }
                                    break;
                                }
                            case ClassComponentLazy:
                                {
                                    var _Component = getResultFromResolvedThenable(node.type);
                                    if (isContextProvider(_Component)) {
                                        return node.stateNode.__reactInternalMemoizedMergedChildContext;
                                    }
                                    break;
                                }
                        }
                        node = node.return;
                    } while (node !== null);
                    invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
                }
                var onCommitFiberRoot = null;
                var onCommitFiberUnmount = null;
                var hasLoggedError = false;
                function catchErrors(fn) {
                    return function (arg) {
                        try {
                            return fn(arg);
                        }
                        catch (err) {
                            if (true && !hasLoggedError) {
                                hasLoggedError = true;
                                warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
                            }
                        }
                    };
                }
                var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
                function injectInternals(internals) {
                    if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
                        // No DevTools
                        return false;
                    }
                    var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
                    if (hook.isDisabled) {
                        // This isn't a real property on the hook, but it can be set to opt out
                        // of DevTools integration and associated warnings and logs.
                        // https://github.com/facebook/react/issues/3877
                        return true;
                    }
                    if (!hook.supportsFiber) {
                        {
                            warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
                        }
                        // DevTools exists, even though it doesn't support Fiber.
                        return true;
                    }
                    try {
                        var rendererID = hook.inject(internals);
                        // We have successfully injected, so now it is safe to set up hooks.
                        onCommitFiberRoot = catchErrors(function (root) {
                            return hook.onCommitFiberRoot(rendererID, root);
                        });
                        onCommitFiberUnmount = catchErrors(function (fiber) {
                            return hook.onCommitFiberUnmount(rendererID, fiber);
                        });
                    }
                    catch (err) {
                        // Catch all errors because it is unsafe to throw during initialization.
                        {
                            warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
                        }
                    }
                    // DevTools exists
                    return true;
                }
                function onCommitRoot(root) {
                    if (typeof onCommitFiberRoot === 'function') {
                        onCommitFiberRoot(root);
                    }
                }
                function onCommitUnmount(fiber) {
                    if (typeof onCommitFiberUnmount === 'function') {
                        onCommitFiberUnmount(fiber);
                    }
                }
                // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
                // Math.pow(2, 30) - 1
                // 0b111111111111111111111111111111
                var maxSigned31BitInt = 1073741823;
                var NoWork = 0;
                var Sync = 1;
                var Never = maxSigned31BitInt;
                var UNIT_SIZE = 10;
                var MAGIC_NUMBER_OFFSET = 2;
                // 1 unit of expiration time represents 10ms.
                function msToExpirationTime(ms) {
                    // Always add an offset so that we don't clash with the magic number for NoWork.
                    return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET;
                }
                function expirationTimeToMs(expirationTime) {
                    return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE;
                }
                function ceiling(num, precision) {
                    return ((num / precision | 0) + 1) * precision;
                }
                function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
                    return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
                }
                var LOW_PRIORITY_EXPIRATION = 5000;
                var LOW_PRIORITY_BATCH_SIZE = 250;
                function computeAsyncExpiration(currentTime) {
                    return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
                }
                // We intentionally set a higher expiration time for interactive updates in
                // dev than in production.
                //
                // If the main thread is being blocked so long that you hit the expiration,
                // it's a problem that could be solved with better scheduling.
                //
                // People will be more likely to notice this and fix it with the long
                // expiration time in development.
                //
                // In production we opt for better UX at the risk of masking scheduling
                // problems, by expiring fast.
                var HIGH_PRIORITY_EXPIRATION = 500;
                var HIGH_PRIORITY_BATCH_SIZE = 100;
                function computeInteractiveExpiration(currentTime) {
                    return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
                }
                var NoContext = 0;
                var AsyncMode = 1;
                var StrictMode = 2;
                var ProfileMode = 4;
                var hasBadMapPolyfill = void 0;
                {
                    hasBadMapPolyfill = false;
                    try {
                        var nonExtensibleObject = Object.preventExtensions({});
                        var testMap = new Map([[nonExtensibleObject, null]]);
                        var testSet = new Set([nonExtensibleObject]);
                        // This is necessary for Rollup to not consider these unused.
                        // https://github.com/rollup/rollup/issues/1771
                        // TODO: we can remove these if Rollup fixes the bug.
                        testMap.set(0, 0);
                        testSet.add(0);
                    }
                    catch (e) {
                        // TODO: Consider warning about bad polyfills
                        hasBadMapPolyfill = true;
                    }
                }
                // A Fiber is work on a Component that needs to be done or was done. There can
                // be more than one per component.
                var debugCounter = void 0;
                {
                    debugCounter = 1;
                }
                function FiberNode(tag, pendingProps, key, mode) {
                    // Instance
                    this.tag = tag;
                    this.key = key;
                    this.type = null;
                    this.stateNode = null;
                    // Fiber
                    this.return = null;
                    this.child = null;
                    this.sibling = null;
                    this.index = 0;
                    this.ref = null;
                    this.pendingProps = pendingProps;
                    this.memoizedProps = null;
                    this.updateQueue = null;
                    this.memoizedState = null;
                    this.firstContextDependency = null;
                    this.mode = mode;
                    // Effects
                    this.effectTag = NoEffect;
                    this.nextEffect = null;
                    this.firstEffect = null;
                    this.lastEffect = null;
                    this.expirationTime = NoWork;
                    this.childExpirationTime = NoWork;
                    this.alternate = null;
                    if (enableProfilerTimer) {
                        this.actualDuration = 0;
                        this.actualStartTime = -1;
                        this.selfBaseDuration = 0;
                        this.treeBaseDuration = 0;
                    }
                    {
                        this._debugID = debugCounter++;
                        this._debugSource = null;
                        this._debugOwner = null;
                        this._debugIsCurrentlyTiming = false;
                        if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
                            Object.preventExtensions(this);
                        }
                    }
                }
                // This is a constructor function, rather than a POJO constructor, still
                // please ensure we do the following:
                // 1) Nobody should add any instance methods on this. Instance methods can be
                //    more difficult to predict when they get optimized and they are almost
                //    never inlined properly in static compilers.
                // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
                //    always know when it is a fiber.
                // 3) We might want to experiment with using numeric keys since they are easier
                //    to optimize in a non-JIT environment.
                // 4) We can easily go from a constructor to a createFiber object literal if that
                //    is faster.
                // 5) It should be easy to port this to a C struct and keep a C implementation
                //    compatible.
                var createFiber = function (tag, pendingProps, key, mode) {
                    // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
                    return new FiberNode(tag, pendingProps, key, mode);
                };
                function shouldConstruct(Component) {
                    var prototype = Component.prototype;
                    return !!(prototype && prototype.isReactComponent);
                }
                function resolveLazyComponentTag(fiber, Component) {
                    if (typeof Component === 'function') {
                        return shouldConstruct(Component) ? ClassComponentLazy : FunctionalComponentLazy;
                    }
                    else if (Component !== undefined && Component !== null && Component.$$typeof) {
                        return ForwardRefLazy;
                    }
                    return IndeterminateComponent;
                }
                // This is used to create an alternate fiber to do work on.
                function createWorkInProgress(current, pendingProps, expirationTime) {
                    var workInProgress = current.alternate;
                    if (workInProgress === null) {
                        // We use a double buffering pooling technique because we know that we'll
                        // only ever need at most two versions of a tree. We pool the "other" unused
                        // node that we're free to reuse. This is lazily created to avoid allocating
                        // extra objects for things that are never updated. It also allow us to
                        // reclaim the extra memory if needed.
                        workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
                        workInProgress.type = current.type;
                        workInProgress.stateNode = current.stateNode;
                        {
                            // DEV-only fields
                            workInProgress._debugID = current._debugID;
                            workInProgress._debugSource = current._debugSource;
                            workInProgress._debugOwner = current._debugOwner;
                        }
                        workInProgress.alternate = current;
                        current.alternate = workInProgress;
                    }
                    else {
                        workInProgress.pendingProps = pendingProps;
                        // We already have an alternate.
                        // Reset the effect tag.
                        workInProgress.effectTag = NoEffect;
                        // The effect list is no longer valid.
                        workInProgress.nextEffect = null;
                        workInProgress.firstEffect = null;
                        workInProgress.lastEffect = null;
                        if (enableProfilerTimer) {
                            // We intentionally reset, rather than copy, actualDuration & actualStartTime.
                            // This prevents time from endlessly accumulating in new commits.
                            // This has the downside of resetting values for different priority renders,
                            // But works for yielding (the common case) and should support resuming.
                            workInProgress.actualDuration = 0;
                            workInProgress.actualStartTime = -1;
                        }
                    }
                    // Don't touching the subtree's expiration time, which has not changed.
                    workInProgress.childExpirationTime = current.childExpirationTime;
                    if (pendingProps !== current.pendingProps) {
                        // This fiber has new props.
                        workInProgress.expirationTime = expirationTime;
                    }
                    else {
                        // This fiber's props have not changed.
                        workInProgress.expirationTime = current.expirationTime;
                    }
                    workInProgress.child = current.child;
                    workInProgress.memoizedProps = current.memoizedProps;
                    workInProgress.memoizedState = current.memoizedState;
                    workInProgress.updateQueue = current.updateQueue;
                    workInProgress.firstContextDependency = current.firstContextDependency;
                    // These will be overridden during the parent's reconciliation
                    workInProgress.sibling = current.sibling;
                    workInProgress.index = current.index;
                    workInProgress.ref = current.ref;
                    if (enableProfilerTimer) {
                        workInProgress.selfBaseDuration = current.selfBaseDuration;
                        workInProgress.treeBaseDuration = current.treeBaseDuration;
                    }
                    return workInProgress;
                }
                function createHostRootFiber(isAsync) {
                    var mode = isAsync ? AsyncMode | StrictMode : NoContext;
                    if (enableProfilerTimer && isDevToolsPresent) {
                        // Always collect profile timings when DevTools are present.
                        // This enables DevTools to start capturing timing at any point–
                        // Without some nodes in the tree having empty base times.
                        mode |= ProfileMode;
                    }
                    return createFiber(HostRoot, null, null, mode);
                }
                function createFiberFromElement(element, mode, expirationTime) {
                    var owner = null;
                    {
                        owner = element._owner;
                    }
                    var fiber = void 0;
                    var type = element.type;
                    var key = element.key;
                    var pendingProps = element.props;
                    var fiberTag = void 0;
                    if (typeof type === 'function') {
                        fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent;
                    }
                    else if (typeof type === 'string') {
                        fiberTag = HostComponent;
                    }
                    else {
                        getTag: switch (type) {
                            case REACT_FRAGMENT_TYPE:
                                return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
                            case REACT_ASYNC_MODE_TYPE:
                                fiberTag = Mode;
                                mode |= AsyncMode | StrictMode;
                                break;
                            case REACT_STRICT_MODE_TYPE:
                                fiberTag = Mode;
                                mode |= StrictMode;
                                break;
                            case REACT_PROFILER_TYPE:
                                return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
                            case REACT_PLACEHOLDER_TYPE:
                                fiberTag = PlaceholderComponent;
                                break;
                            default:
                                {
                                    if (typeof type === 'object' && type !== null) {
                                        switch (type.$$typeof) {
                                            case REACT_PROVIDER_TYPE:
                                                fiberTag = ContextProvider;
                                                break getTag;
                                            case REACT_CONTEXT_TYPE:
                                                // This is a consumer
                                                fiberTag = ContextConsumer;
                                                break getTag;
                                            case REACT_FORWARD_REF_TYPE:
                                                fiberTag = ForwardRef;
                                                break getTag;
                                            default:
                                                {
                                                    if (typeof type.then === 'function') {
                                                        fiberTag = IndeterminateComponent;
                                                        break getTag;
                                                    }
                                                }
                                        }
                                    }
                                    var info = '';
                                    {
                                        if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
                                            info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
                                        }
                                        var ownerName = owner ? getComponentName(owner.type) : null;
                                        if (ownerName) {
                                            info += '\n\nCheck the render method of `' + ownerName + '`.';
                                        }
                                    }
                                    invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);
                                }
                        }
                    }
                    fiber = createFiber(fiberTag, pendingProps, key, mode);
                    fiber.type = type;
                    fiber.expirationTime = expirationTime;
                    {
                        fiber._debugSource = element._source;
                        fiber._debugOwner = element._owner;
                    }
                    return fiber;
                }
                function createFiberFromFragment(elements, mode, expirationTime, key) {
                    var fiber = createFiber(Fragment, elements, key, mode);
                    fiber.expirationTime = expirationTime;
                    return fiber;
                }
                function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
                    {
                        if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
                            warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
                        }
                    }
                    var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
                    fiber.type = REACT_PROFILER_TYPE;
                    fiber.expirationTime = expirationTime;
                    return fiber;
                }
                function createFiberFromText(content, mode, expirationTime) {
                    var fiber = createFiber(HostText, content, null, mode);
                    fiber.expirationTime = expirationTime;
                    return fiber;
                }
                function createFiberFromHostInstanceForDeletion() {
                    var fiber = createFiber(HostComponent, null, null, NoContext);
                    fiber.type = 'DELETED';
                    return fiber;
                }
                function createFiberFromPortal(portal, mode, expirationTime) {
                    var pendingProps = portal.children !== null ? portal.children : [];
                    var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
                    fiber.expirationTime = expirationTime;
                    fiber.stateNode = {
                        containerInfo: portal.containerInfo,
                        pendingChildren: null,
                        implementation: portal.implementation
                    };
                    return fiber;
                }
                // Used for stashing WIP properties to replay failed work in DEV.
                function assignFiberPropertiesInDEV(target, source) {
                    if (target === null) {
                        // This Fiber's initial properties will always be overwritten.
                        // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
                        target = createFiber(IndeterminateComponent, null, null, NoContext);
                    }
                    // This is intentionally written as a list of all properties.
                    // We tried to use Object.assign() instead but this is called in
                    // the hottest path, and Object.assign() was too slow:
                    // https://github.com/facebook/react/issues/12502
                    // This code is DEV-only so size is not a concern.
                    target.tag = source.tag;
                    target.key = source.key;
                    target.type = source.type;
                    target.stateNode = source.stateNode;
                    target.return = source.return;
                    target.child = source.child;
                    target.sibling = source.sibling;
                    target.index = source.index;
                    target.ref = source.ref;
                    target.pendingProps = source.pendingProps;
                    target.memoizedProps = source.memoizedProps;
                    target.updateQueue = source.updateQueue;
                    target.memoizedState = source.memoizedState;
                    target.firstContextDependency = source.firstContextDependency;
                    target.mode = source.mode;
                    target.effectTag = source.effectTag;
                    target.nextEffect = source.nextEffect;
                    target.firstEffect = source.firstEffect;
                    target.lastEffect = source.lastEffect;
                    target.expirationTime = source.expirationTime;
                    target.childExpirationTime = source.childExpirationTime;
                    target.alternate = source.alternate;
                    if (enableProfilerTimer) {
                        target.actualDuration = source.actualDuration;
                        target.actualStartTime = source.actualStartTime;
                        target.selfBaseDuration = source.selfBaseDuration;
                        target.treeBaseDuration = source.treeBaseDuration;
                    }
                    target._debugID = source._debugID;
                    target._debugSource = source._debugSource;
                    target._debugOwner = source._debugOwner;
                    target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
                    return target;
                }
                /* eslint-disable no-use-before-define */
                // TODO: This should be lifted into the renderer.
                // The following attributes are only used by interaction tracing builds.
                // They enable interactions to be associated with their async work,
                // And expose interaction metadata to the React DevTools Profiler plugin.
                // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
                // Exported FiberRoot type includes all properties,
                // To avoid requiring potentially error-prone :any casts throughout the project.
                // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
                // The types are defined separately within this file to ensure they stay in sync.
                // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
                /* eslint-enable no-use-before-define */
                function createFiberRoot(containerInfo, isAsync, hydrate) {
                    // Cyclic construction. This cheats the type system right now because
                    // stateNode is any.
                    var uninitializedFiber = createHostRootFiber(isAsync);
                    var root = void 0;
                    if (enableSchedulerTracing) {
                        root = {
                            current: uninitializedFiber,
                            containerInfo: containerInfo,
                            pendingChildren: null,
                            earliestPendingTime: NoWork,
                            latestPendingTime: NoWork,
                            earliestSuspendedTime: NoWork,
                            latestSuspendedTime: NoWork,
                            latestPingedTime: NoWork,
                            didError: false,
                            pendingCommitExpirationTime: NoWork,
                            finishedWork: null,
                            timeoutHandle: noTimeout,
                            context: null,
                            pendingContext: null,
                            hydrate: hydrate,
                            nextExpirationTimeToWorkOn: NoWork,
                            expirationTime: NoWork,
                            firstBatch: null,
                            nextScheduledRoot: null,
                            interactionThreadID: tracing.unstable_getThreadID(),
                            memoizedInteractions: new Set(),
                            pendingInteractionMap: new Map()
                        };
                    }
                    else {
                        root = {
                            current: uninitializedFiber,
                            containerInfo: containerInfo,
                            pendingChildren: null,
                            earliestPendingTime: NoWork,
                            latestPendingTime: NoWork,
                            earliestSuspendedTime: NoWork,
                            latestSuspendedTime: NoWork,
                            latestPingedTime: NoWork,
                            didError: false,
                            pendingCommitExpirationTime: NoWork,
                            finishedWork: null,
                            timeoutHandle: noTimeout,
                            context: null,
                            pendingContext: null,
                            hydrate: hydrate,
                            nextExpirationTimeToWorkOn: NoWork,
                            expirationTime: NoWork,
                            firstBatch: null,
                            nextScheduledRoot: null
                        };
                    }
                    uninitializedFiber.stateNode = root;
                    // The reason for the way the Flow types are structured in this file,
                    // Is to avoid needing :any casts everywhere interaction tracing fields are used.
                    // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
                    // $FlowFixMe Remove this :any cast and replace it with something better.
                    return root;
                }
                /**
                 * Forked from fbjs/warning:
                 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
                 *
                 * Only change is we use console.warn instead of console.error,
                 * and do nothing when 'console' is not supported.
                 * This really simplifies the code.
                 * ---
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var lowPriorityWarning = function () { };
                {
                    var printWarning = function (format) {
                        for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                            args[_key - 1] = arguments[_key];
                        }
                        var argIndex = 0;
                        var message = 'Warning: ' + format.replace(/%s/g, function () {
                            return args[argIndex++];
                        });
                        if (typeof console !== 'undefined') {
                            console.warn(message);
                        }
                        try {
                            // --- Welcome to debugging React ---
                            // This error was thrown as a convenience so that you can use this stack
                            // to find the callsite that caused this warning to fire.
                            throw new Error(message);
                        }
                        catch (x) { }
                    };
                    lowPriorityWarning = function (condition, format) {
                        if (format === undefined) {
                            throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
                        }
                        if (!condition) {
                            for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
                                args[_key2 - 2] = arguments[_key2];
                            }
                            printWarning.apply(undefined, [format].concat(args));
                        }
                    };
                }
                var lowPriorityWarning$1 = lowPriorityWarning;
                var ReactStrictModeWarnings = {
                    discardPendingWarnings: function () { },
                    flushPendingDeprecationWarnings: function () { },
                    flushPendingUnsafeLifecycleWarnings: function () { },
                    recordDeprecationWarnings: function (fiber, instance) { },
                    recordUnsafeLifecycleWarnings: function (fiber, instance) { },
                    recordLegacyContextWarning: function (fiber, instance) { },
                    flushLegacyContextWarning: function () { }
                };
                {
                    var LIFECYCLE_SUGGESTIONS = {
                        UNSAFE_componentWillMount: 'componentDidMount',
                        UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
                        UNSAFE_componentWillUpdate: 'componentDidUpdate'
                    };
                    var pendingComponentWillMountWarnings = [];
                    var pendingComponentWillReceivePropsWarnings = [];
                    var pendingComponentWillUpdateWarnings = [];
                    var pendingUnsafeLifecycleWarnings = new Map();
                    var pendingLegacyContextWarning = new Map();
                    // Tracks components we have already warned about.
                    var didWarnAboutDeprecatedLifecycles = new Set();
                    var didWarnAboutUnsafeLifecycles = new Set();
                    var didWarnAboutLegacyContext = new Set();
                    var setToSortedString = function (set) {
                        var array = [];
                        set.forEach(function (value) {
                            array.push(value);
                        });
                        return array.sort().join(', ');
                    };
                    ReactStrictModeWarnings.discardPendingWarnings = function () {
                        pendingComponentWillMountWarnings = [];
                        pendingComponentWillReceivePropsWarnings = [];
                        pendingComponentWillUpdateWarnings = [];
                        pendingUnsafeLifecycleWarnings = new Map();
                        pendingLegacyContextWarning = new Map();
                    };
                    ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
                        pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
                            var lifecyclesWarningMesages = [];
                            Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
                                var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
                                if (lifecycleWarnings.length > 0) {
                                    var componentNames = new Set();
                                    lifecycleWarnings.forEach(function (fiber) {
                                        componentNames.add(getComponentName(fiber.type) || 'Component');
                                        didWarnAboutUnsafeLifecycles.add(fiber.type);
                                    });
                                    var formatted = lifecycle.replace('UNSAFE_', '');
                                    var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
                                    var sortedComponentNames = setToSortedString(componentNames);
                                    lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
                                }
                            });
                            if (lifecyclesWarningMesages.length > 0) {
                                var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
                                warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n'));
                            }
                        });
                        pendingUnsafeLifecycleWarnings = new Map();
                    };
                    var findStrictRoot = function (fiber) {
                        var maybeStrictRoot = null;
                        var node = fiber;
                        while (node !== null) {
                            if (node.mode & StrictMode) {
                                maybeStrictRoot = node;
                            }
                            node = node.return;
                        }
                        return maybeStrictRoot;
                    };
                    ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
                        if (pendingComponentWillMountWarnings.length > 0) {
                            var uniqueNames = new Set();
                            pendingComponentWillMountWarnings.forEach(function (fiber) {
                                uniqueNames.add(getComponentName(fiber.type) || 'Component');
                                didWarnAboutDeprecatedLifecycles.add(fiber.type);
                            });
                            var sortedNames = setToSortedString(uniqueNames);
                            lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);
                            pendingComponentWillMountWarnings = [];
                        }
                        if (pendingComponentWillReceivePropsWarnings.length > 0) {
                            var _uniqueNames = new Set();
                            pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
                                _uniqueNames.add(getComponentName(fiber.type) || 'Component');
                                didWarnAboutDeprecatedLifecycles.add(fiber.type);
                            });
                            var _sortedNames = setToSortedString(_uniqueNames);
                            lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);
                            pendingComponentWillReceivePropsWarnings = [];
                        }
                        if (pendingComponentWillUpdateWarnings.length > 0) {
                            var _uniqueNames2 = new Set();
                            pendingComponentWillUpdateWarnings.forEach(function (fiber) {
                                _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
                                didWarnAboutDeprecatedLifecycles.add(fiber.type);
                            });
                            var _sortedNames2 = setToSortedString(_uniqueNames2);
                            lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);
                            pendingComponentWillUpdateWarnings = [];
                        }
                    };
                    ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
                        // Dedup strategy: Warn once per component.
                        if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
                            return;
                        }
                        // Don't warn about react-lifecycles-compat polyfilled components.
                        if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
                            pendingComponentWillMountWarnings.push(fiber);
                        }
                        if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
                            pendingComponentWillReceivePropsWarnings.push(fiber);
                        }
                        if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
                            pendingComponentWillUpdateWarnings.push(fiber);
                        }
                    };
                    ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
                        var strictRoot = findStrictRoot(fiber);
                        if (strictRoot === null) {
                            warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
                            return;
                        }
                        // Dedup strategy: Warn once per component.
                        // This is difficult to track any other way since component names
                        // are often vague and are likely to collide between 3rd party libraries.
                        // An expand property is probably okay to use here since it's DEV-only,
                        // and will only be set in the event of serious warnings.
                        if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
                            return;
                        }
                        var warningsForRoot = void 0;
                        if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
                            warningsForRoot = {
                                UNSAFE_componentWillMount: [],
                                UNSAFE_componentWillReceiveProps: [],
                                UNSAFE_componentWillUpdate: []
                            };
                            pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
                        }
                        else {
                            warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
                        }
                        var unsafeLifecycles = [];
                        if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
                            unsafeLifecycles.push('UNSAFE_componentWillMount');
                        }
                        if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
                            unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
                        }
                        if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
                            unsafeLifecycles.push('UNSAFE_componentWillUpdate');
                        }
                        if (unsafeLifecycles.length > 0) {
                            unsafeLifecycles.forEach(function (lifecycle) {
                                warningsForRoot[lifecycle].push(fiber);
                            });
                        }
                    };
                    ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
                        var strictRoot = findStrictRoot(fiber);
                        if (strictRoot === null) {
                            warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
                            return;
                        }
                        // Dedup strategy: Warn once per component.
                        if (didWarnAboutLegacyContext.has(fiber.type)) {
                            return;
                        }
                        var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
                        if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
                            if (warningsForRoot === undefined) {
                                warningsForRoot = [];
                                pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
                            }
                            warningsForRoot.push(fiber);
                        }
                    };
                    ReactStrictModeWarnings.flushLegacyContextWarning = function () {
                        pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
                            var uniqueNames = new Set();
                            fiberArray.forEach(function (fiber) {
                                uniqueNames.add(getComponentName(fiber.type) || 'Component');
                                didWarnAboutLegacyContext.add(fiber.type);
                            });
                            var sortedNames = setToSortedString(uniqueNames);
                            var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
                            warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);
                        });
                    };
                }
                // This lets us hook into Fiber to debug what it's doing.
                // See https://github.com/facebook/react/pull/8033.
                // This is not part of the public API, not even for React DevTools.
                // You may only inject a debugTool if you work on React Fiber itself.
                var ReactFiberInstrumentation = {
                    debugTool: null
                };
                var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
                // TODO: Offscreen updates should never suspend. However, a promise that
                // suspended inside an offscreen subtree should be able to ping at the priority
                // of the outer render.
                function markPendingPriorityLevel(root, expirationTime) {
                    // If there's a gap between completing a failed root and retrying it,
                    // additional updates may be scheduled. Clear `didError`, in case the update
                    // is sufficient to fix the error.
                    root.didError = false;
                    // Update the latest and earliest pending times
                    var earliestPendingTime = root.earliestPendingTime;
                    if (earliestPendingTime === NoWork) {
                        // No other pending updates.
                        root.earliestPendingTime = root.latestPendingTime = expirationTime;
                    }
                    else {
                        if (earliestPendingTime > expirationTime) {
                            // This is the earliest pending update.
                            root.earliestPendingTime = expirationTime;
                        }
                        else {
                            var latestPendingTime = root.latestPendingTime;
                            if (latestPendingTime < expirationTime) {
                                // This is the latest pending update
                                root.latestPendingTime = expirationTime;
                            }
                        }
                    }
                    findNextExpirationTimeToWorkOn(expirationTime, root);
                }
                function markCommittedPriorityLevels(root, earliestRemainingTime) {
                    root.didError = false;
                    if (earliestRemainingTime === NoWork) {
                        // Fast path. There's no remaining work. Clear everything.
                        root.earliestPendingTime = NoWork;
                        root.latestPendingTime = NoWork;
                        root.earliestSuspendedTime = NoWork;
                        root.latestSuspendedTime = NoWork;
                        root.latestPingedTime = NoWork;
                        findNextExpirationTimeToWorkOn(NoWork, root);
                        return;
                    }
                    // Let's see if the previous latest known pending level was just flushed.
                    var latestPendingTime = root.latestPendingTime;
                    if (latestPendingTime !== NoWork) {
                        if (latestPendingTime < earliestRemainingTime) {
                            // We've flushed all the known pending levels.
                            root.earliestPendingTime = root.latestPendingTime = NoWork;
                        }
                        else {
                            var earliestPendingTime = root.earliestPendingTime;
                            if (earliestPendingTime < earliestRemainingTime) {
                                // We've flushed the earliest known pending level. Set this to the
                                // latest pending time.
                                root.earliestPendingTime = root.latestPendingTime;
                            }
                        }
                    }
                    // Now let's handle the earliest remaining level in the whole tree. We need to
                    // decide whether to treat it as a pending level or as suspended. Check
                    // it falls within the range of known suspended levels.
                    var earliestSuspendedTime = root.earliestSuspendedTime;
                    if (earliestSuspendedTime === NoWork) {
                        // There's no suspended work. Treat the earliest remaining level as a
                        // pending level.
                        markPendingPriorityLevel(root, earliestRemainingTime);
                        findNextExpirationTimeToWorkOn(NoWork, root);
                        return;
                    }
                    var latestSuspendedTime = root.latestSuspendedTime;
                    if (earliestRemainingTime > latestSuspendedTime) {
                        // The earliest remaining level is later than all the suspended work. That
                        // means we've flushed all the suspended work.
                        root.earliestSuspendedTime = NoWork;
                        root.latestSuspendedTime = NoWork;
                        root.latestPingedTime = NoWork;
                        // There's no suspended work. Treat the earliest remaining level as a
                        // pending level.
                        markPendingPriorityLevel(root, earliestRemainingTime);
                        findNextExpirationTimeToWorkOn(NoWork, root);
                        return;
                    }
                    if (earliestRemainingTime < earliestSuspendedTime) {
                        // The earliest remaining time is earlier than all the suspended work.
                        // Treat it as a pending update.
                        markPendingPriorityLevel(root, earliestRemainingTime);
                        findNextExpirationTimeToWorkOn(NoWork, root);
                        return;
                    }
                    // The earliest remaining time falls within the range of known suspended
                    // levels. We should treat this as suspended work.
                    findNextExpirationTimeToWorkOn(NoWork, root);
                }
                function hasLowerPriorityWork(root, erroredExpirationTime) {
                    var latestPendingTime = root.latestPendingTime;
                    var latestSuspendedTime = root.latestSuspendedTime;
                    var latestPingedTime = root.latestPingedTime;
                    return latestPendingTime !== NoWork && latestPendingTime > erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime > erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime > erroredExpirationTime;
                }
                function isPriorityLevelSuspended(root, expirationTime) {
                    var earliestSuspendedTime = root.earliestSuspendedTime;
                    var latestSuspendedTime = root.latestSuspendedTime;
                    return earliestSuspendedTime !== NoWork && expirationTime >= earliestSuspendedTime && expirationTime <= latestSuspendedTime;
                }
                function markSuspendedPriorityLevel(root, suspendedTime) {
                    root.didError = false;
                    clearPing(root, suspendedTime);
                    // First, check the known pending levels and update them if needed.
                    var earliestPendingTime = root.earliestPendingTime;
                    var latestPendingTime = root.latestPendingTime;
                    if (earliestPendingTime === suspendedTime) {
                        if (latestPendingTime === suspendedTime) {
                            // Both known pending levels were suspended. Clear them.
                            root.earliestPendingTime = root.latestPendingTime = NoWork;
                        }
                        else {
                            // The earliest pending level was suspended. Clear by setting it to the
                            // latest pending level.
                            root.earliestPendingTime = latestPendingTime;
                        }
                    }
                    else if (latestPendingTime === suspendedTime) {
                        // The latest pending level was suspended. Clear by setting it to the
                        // latest pending level.
                        root.latestPendingTime = earliestPendingTime;
                    }
                    // Finally, update the known suspended levels.
                    var earliestSuspendedTime = root.earliestSuspendedTime;
                    var latestSuspendedTime = root.latestSuspendedTime;
                    if (earliestSuspendedTime === NoWork) {
                        // No other suspended levels.
                        root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
                    }
                    else {
                        if (earliestSuspendedTime > suspendedTime) {
                            // This is the earliest suspended level.
                            root.earliestSuspendedTime = suspendedTime;
                        }
                        else if (latestSuspendedTime < suspendedTime) {
                            // This is the latest suspended level
                            root.latestSuspendedTime = suspendedTime;
                        }
                    }
                    findNextExpirationTimeToWorkOn(suspendedTime, root);
                }
                function markPingedPriorityLevel(root, pingedTime) {
                    root.didError = false;
                    // TODO: When we add back resuming, we need to ensure the progressed work
                    // is thrown out and not reused during the restarted render. One way to
                    // invalidate the progressed work is to restart at expirationTime + 1.
                    var latestPingedTime = root.latestPingedTime;
                    if (latestPingedTime === NoWork || latestPingedTime < pingedTime) {
                        root.latestPingedTime = pingedTime;
                    }
                    findNextExpirationTimeToWorkOn(pingedTime, root);
                }
                function clearPing(root, completedTime) {
                    // TODO: Track whether the root was pinged during the render phase. If so,
                    // we need to make sure we don't lose track of it.
                    var latestPingedTime = root.latestPingedTime;
                    if (latestPingedTime !== NoWork && latestPingedTime <= completedTime) {
                        root.latestPingedTime = NoWork;
                    }
                }
                function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
                    var earliestExpirationTime = renderExpirationTime;
                    var earliestPendingTime = root.earliestPendingTime;
                    var earliestSuspendedTime = root.earliestSuspendedTime;
                    if (earliestExpirationTime === NoWork || earliestPendingTime !== NoWork && earliestPendingTime < earliestExpirationTime) {
                        earliestExpirationTime = earliestPendingTime;
                    }
                    if (earliestExpirationTime === NoWork || earliestSuspendedTime !== NoWork && earliestSuspendedTime < earliestExpirationTime) {
                        earliestExpirationTime = earliestSuspendedTime;
                    }
                    return earliestExpirationTime;
                }
                function didExpireAtExpirationTime(root, currentTime) {
                    var expirationTime = root.expirationTime;
                    if (expirationTime !== NoWork && currentTime >= expirationTime) {
                        // The root has expired. Flush all work up to the current time.
                        root.nextExpirationTimeToWorkOn = currentTime;
                    }
                }
                function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
                    var earliestSuspendedTime = root.earliestSuspendedTime;
                    var latestSuspendedTime = root.latestSuspendedTime;
                    var earliestPendingTime = root.earliestPendingTime;
                    var latestPingedTime = root.latestPingedTime;
                    // Work on the earliest pending time. Failing that, work on the latest
                    // pinged time.
                    var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
                    // If there is no pending or pinged work, check if there's suspended work
                    // that's lower priority than what we just completed.
                    if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime > completedExpirationTime)) {
                        // The lowest priority suspended work is the work most likely to be
                        // committed next. Let's start rendering it again, so that if it times out,
                        // it's ready to commit.
                        nextExpirationTimeToWorkOn = latestSuspendedTime;
                    }
                    var expirationTime = nextExpirationTimeToWorkOn;
                    if (expirationTime !== NoWork && earliestSuspendedTime !== NoWork && earliestSuspendedTime < expirationTime) {
                        // Expire using the earliest known expiration time.
                        expirationTime = earliestSuspendedTime;
                    }
                    root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
                    root.expirationTime = expirationTime;
                }
                // UpdateQueue is a linked list of prioritized updates.
                //
                // Like fibers, update queues come in pairs: a current queue, which represents
                // the visible state of the screen, and a work-in-progress queue, which is
                // can be mutated and processed asynchronously before it is committed — a form
                // of double buffering. If a work-in-progress render is discarded before
                // finishing, we create a new work-in-progress by cloning the current queue.
                //
                // Both queues share a persistent, singly-linked list structure. To schedule an
                // update, we append it to the end of both queues. Each queue maintains a
                // pointer to first update in the persistent list that hasn't been processed.
                // The work-in-progress pointer always has a position equal to or greater than
                // the current queue, since we always work on that one. The current queue's
                // pointer is only updated during the commit phase, when we swap in the
                // work-in-progress.
                //
                // For example:
                //
                //   Current pointer:           A - B - C - D - E - F
                //   Work-in-progress pointer:              D - E - F
                //                                          ^
                //                                          The work-in-progress queue has
                //                                          processed more updates than current.
                //
                // The reason we append to both queues is because otherwise we might drop
                // updates without ever processing them. For example, if we only add updates to
                // the work-in-progress queue, some updates could be lost whenever a work-in
                // -progress render restarts by cloning from current. Similarly, if we only add
                // updates to the current queue, the updates will be lost whenever an already
                // in-progress queue commits and swaps with the current queue. However, by
                // adding to both queues, we guarantee that the update will be part of the next
                // work-in-progress. (And because the work-in-progress queue becomes the
                // current queue once it commits, there's no danger of applying the same
                // update twice.)
                //
                // Prioritization
                // --------------
                //
                // Updates are not sorted by priority, but by insertion; new updates are always
                // appended to the end of the list.
                //
                // The priority is still important, though. When processing the update queue
                // during the render phase, only the updates with sufficient priority are
                // included in the result. If we skip an update because it has insufficient
                // priority, it remains in the queue to be processed later, during a lower
                // priority render. Crucially, all updates subsequent to a skipped update also
                // remain in the queue *regardless of their priority*. That means high priority
                // updates are sometimes processed twice, at two separate priorities. We also
                // keep track of a base state, that represents the state before the first
                // update in the queue is applied.
                //
                // For example:
                //
                //   Given a base state of '', and the following queue of updates
                //
                //     A1 - B2 - C1 - D2
                //
                //   where the number indicates the priority, and the update is applied to the
                //   previous state by appending a letter, React will process these updates as
                //   two separate renders, one per distinct priority level:
                //
                //   First render, at priority 1:
                //     Base state: ''
                //     Updates: [A1, C1]
                //     Result state: 'AC'
                //
                //   Second render, at priority 2:
                //     Base state: 'A'            <-  The base state does not include C1,
                //                                    because B2 was skipped.
                //     Updates: [B2, C1, D2]      <-  C1 was rebased on top of B2
                //     Result state: 'ABCD'
                //
                // Because we process updates in insertion order, and rebase high priority
                // updates when preceding updates are skipped, the final result is deterministic
                // regardless of priority. Intermediate state may vary according to system
                // resources, but the final state is always the same.
                var UpdateState = 0;
                var ReplaceState = 1;
                var ForceUpdate = 2;
                var CaptureUpdate = 3;
                // Global state that is reset at the beginning of calling `processUpdateQueue`.
                // It should only be read right after calling `processUpdateQueue`, via
                // `checkHasForceUpdateAfterProcessing`.
                var hasForceUpdate = false;
                var didWarnUpdateInsideUpdate = void 0;
                var currentlyProcessingQueue = void 0;
                var resetCurrentlyProcessingQueue = void 0;
                {
                    didWarnUpdateInsideUpdate = false;
                    currentlyProcessingQueue = null;
                    resetCurrentlyProcessingQueue = function () {
                        currentlyProcessingQueue = null;
                    };
                }
                function createUpdateQueue(baseState) {
                    var queue = {
                        baseState: baseState,
                        firstUpdate: null,
                        lastUpdate: null,
                        firstCapturedUpdate: null,
                        lastCapturedUpdate: null,
                        firstEffect: null,
                        lastEffect: null,
                        firstCapturedEffect: null,
                        lastCapturedEffect: null
                    };
                    return queue;
                }
                function cloneUpdateQueue(currentQueue) {
                    var queue = {
                        baseState: currentQueue.baseState,
                        firstUpdate: currentQueue.firstUpdate,
                        lastUpdate: currentQueue.lastUpdate,
                        // TODO: With resuming, if we bail out and resuse the child tree, we should
                        // keep these effects.
                        firstCapturedUpdate: null,
                        lastCapturedUpdate: null,
                        firstEffect: null,
                        lastEffect: null,
                        firstCapturedEffect: null,
                        lastCapturedEffect: null
                    };
                    return queue;
                }
                function createUpdate(expirationTime) {
                    return {
                        expirationTime: expirationTime,
                        tag: UpdateState,
                        payload: null,
                        callback: null,
                        next: null,
                        nextEffect: null
                    };
                }
                function appendUpdateToQueue(queue, update) {
                    // Append the update to the end of the list.
                    if (queue.lastUpdate === null) {
                        // Queue is empty
                        queue.firstUpdate = queue.lastUpdate = update;
                    }
                    else {
                        queue.lastUpdate.next = update;
                        queue.lastUpdate = update;
                    }
                }
                function enqueueUpdate(fiber, update) {
                    // Update queues are created lazily.
                    var alternate = fiber.alternate;
                    var queue1 = void 0;
                    var queue2 = void 0;
                    if (alternate === null) {
                        // There's only one fiber.
                        queue1 = fiber.updateQueue;
                        queue2 = null;
                        if (queue1 === null) {
                            queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
                        }
                    }
                    else {
                        // There are two owners.
                        queue1 = fiber.updateQueue;
                        queue2 = alternate.updateQueue;
                        if (queue1 === null) {
                            if (queue2 === null) {
                                // Neither fiber has an update queue. Create new ones.
                                queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
                                queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
                            }
                            else {
                                // Only one fiber has an update queue. Clone to create a new one.
                                queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
                            }
                        }
                        else {
                            if (queue2 === null) {
                                // Only one fiber has an update queue. Clone to create a new one.
                                queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
                            }
                            else {
                                // Both owners have an update queue.
                            }
                        }
                    }
                    if (queue2 === null || queue1 === queue2) {
                        // There's only a single queue.
                        appendUpdateToQueue(queue1, update);
                    }
                    else {
                        // There are two queues. We need to append the update to both queues,
                        // while accounting for the persistent structure of the list — we don't
                        // want the same update to be added multiple times.
                        if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
                            // One of the queues is not empty. We must add the update to both queues.
                            appendUpdateToQueue(queue1, update);
                            appendUpdateToQueue(queue2, update);
                        }
                        else {
                            // Both queues are non-empty. The last update is the same in both lists,
                            // because of structural sharing. So, only append to one of the lists.
                            appendUpdateToQueue(queue1, update);
                            // But we still need to update the `lastUpdate` pointer of queue2.
                            queue2.lastUpdate = update;
                        }
                    }
                    {
                        if ((fiber.tag === ClassComponent || fiber.tag === ClassComponentLazy) && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
                            warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
                            didWarnUpdateInsideUpdate = true;
                        }
                    }
                }
                function enqueueCapturedUpdate(workInProgress, update) {
                    // Captured updates go into a separate list, and only on the work-in-
                    // progress queue.
                    var workInProgressQueue = workInProgress.updateQueue;
                    if (workInProgressQueue === null) {
                        workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
                    }
                    else {
                        // TODO: I put this here rather than createWorkInProgress so that we don't
                        // clone the queue unnecessarily. There's probably a better way to
                        // structure this.
                        workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
                    }
                    // Append the update to the end of the list.
                    if (workInProgressQueue.lastCapturedUpdate === null) {
                        // This is the first render phase update
                        workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
                    }
                    else {
                        workInProgressQueue.lastCapturedUpdate.next = update;
                        workInProgressQueue.lastCapturedUpdate = update;
                    }
                }
                function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
                    var current = workInProgress.alternate;
                    if (current !== null) {
                        // If the work-in-progress queue is equal to the current queue,
                        // we need to clone it first.
                        if (queue === current.updateQueue) {
                            queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
                        }
                    }
                    return queue;
                }
                function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
                    switch (update.tag) {
                        case ReplaceState:
                            {
                                var _payload = update.payload;
                                if (typeof _payload === 'function') {
                                    // Updater function
                                    {
                                        if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
                                            _payload.call(instance, prevState, nextProps);
                                        }
                                    }
                                    return _payload.call(instance, prevState, nextProps);
                                }
                                // State object
                                return _payload;
                            }
                        case CaptureUpdate:
                            {
                                workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
                            }
                        // Intentional fallthrough
                        case UpdateState:
                            {
                                var _payload2 = update.payload;
                                var partialState = void 0;
                                if (typeof _payload2 === 'function') {
                                    // Updater function
                                    {
                                        if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
                                            _payload2.call(instance, prevState, nextProps);
                                        }
                                    }
                                    partialState = _payload2.call(instance, prevState, nextProps);
                                }
                                else {
                                    // Partial state object
                                    partialState = _payload2;
                                }
                                if (partialState === null || partialState === undefined) {
                                    // Null and undefined are treated as no-ops.
                                    return prevState;
                                }
                                // Merge the partial state and the previous state.
                                return _assign({}, prevState, partialState);
                            }
                        case ForceUpdate:
                            {
                                hasForceUpdate = true;
                                return prevState;
                            }
                    }
                    return prevState;
                }
                function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
                    hasForceUpdate = false;
                    queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
                    {
                        currentlyProcessingQueue = queue;
                    }
                    // These values may change as we process the queue.
                    var newBaseState = queue.baseState;
                    var newFirstUpdate = null;
                    var newExpirationTime = NoWork;
                    // Iterate through the list of updates to compute the result.
                    var update = queue.firstUpdate;
                    var resultState = newBaseState;
                    while (update !== null) {
                        var updateExpirationTime = update.expirationTime;
                        if (updateExpirationTime > renderExpirationTime) {
                            // This update does not have sufficient priority. Skip it.
                            if (newFirstUpdate === null) {
                                // This is the first skipped update. It will be the first update in
                                // the new list.
                                newFirstUpdate = update;
                                // Since this is the first update that was skipped, the current result
                                // is the new base state.
                                newBaseState = resultState;
                            }
                            // Since this update will remain in the list, update the remaining
                            // expiration time.
                            if (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) {
                                newExpirationTime = updateExpirationTime;
                            }
                        }
                        else {
                            // This update does have sufficient priority. Process it and compute
                            // a new result.
                            resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
                            var _callback = update.callback;
                            if (_callback !== null) {
                                workInProgress.effectTag |= Callback;
                                // Set this to null, in case it was mutated during an aborted render.
                                update.nextEffect = null;
                                if (queue.lastEffect === null) {
                                    queue.firstEffect = queue.lastEffect = update;
                                }
                                else {
                                    queue.lastEffect.nextEffect = update;
                                    queue.lastEffect = update;
                                }
                            }
                        }
                        // Continue to the next update.
                        update = update.next;
                    }
                    // Separately, iterate though the list of captured updates.
                    var newFirstCapturedUpdate = null;
                    update = queue.firstCapturedUpdate;
                    while (update !== null) {
                        var _updateExpirationTime = update.expirationTime;
                        if (_updateExpirationTime > renderExpirationTime) {
                            // This update does not have sufficient priority. Skip it.
                            if (newFirstCapturedUpdate === null) {
                                // This is the first skipped captured update. It will be the first
                                // update in the new list.
                                newFirstCapturedUpdate = update;
                                // If this is the first update that was skipped, the current result is
                                // the new base state.
                                if (newFirstUpdate === null) {
                                    newBaseState = resultState;
                                }
                            }
                            // Since this update will remain in the list, update the remaining
                            // expiration time.
                            if (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) {
                                newExpirationTime = _updateExpirationTime;
                            }
                        }
                        else {
                            // This update does have sufficient priority. Process it and compute
                            // a new result.
                            resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
                            var _callback2 = update.callback;
                            if (_callback2 !== null) {
                                workInProgress.effectTag |= Callback;
                                // Set this to null, in case it was mutated during an aborted render.
                                update.nextEffect = null;
                                if (queue.lastCapturedEffect === null) {
                                    queue.firstCapturedEffect = queue.lastCapturedEffect = update;
                                }
                                else {
                                    queue.lastCapturedEffect.nextEffect = update;
                                    queue.lastCapturedEffect = update;
                                }
                            }
                        }
                        update = update.next;
                    }
                    if (newFirstUpdate === null) {
                        queue.lastUpdate = null;
                    }
                    if (newFirstCapturedUpdate === null) {
                        queue.lastCapturedUpdate = null;
                    }
                    else {
                        workInProgress.effectTag |= Callback;
                    }
                    if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
                        // We processed every update, without skipping. That means the new base
                        // state is the same as the result state.
                        newBaseState = resultState;
                    }
                    queue.baseState = newBaseState;
                    queue.firstUpdate = newFirstUpdate;
                    queue.firstCapturedUpdate = newFirstCapturedUpdate;
                    // Set the remaining expiration time to be whatever is remaining in the queue.
                    // This should be fine because the only two other things that contribute to
                    // expiration time are props and context. We're already in the middle of the
                    // begin phase by the time we start processing the queue, so we've already
                    // dealt with the props. Context in components that specify
                    // shouldComponentUpdate is tricky; but we'll have to account for
                    // that regardless.
                    workInProgress.expirationTime = newExpirationTime;
                    workInProgress.memoizedState = resultState;
                    {
                        currentlyProcessingQueue = null;
                    }
                }
                function callCallback(callback, context) {
                    !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
                    callback.call(context);
                }
                function resetHasForceUpdateBeforeProcessing() {
                    hasForceUpdate = false;
                }
                function checkHasForceUpdateAfterProcessing() {
                    return hasForceUpdate;
                }
                function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
                    // If the finished render included captured updates, and there are still
                    // lower priority updates left over, we need to keep the captured updates
                    // in the queue so that they are rebased and not dropped once we process the
                    // queue again at the lower priority.
                    if (finishedQueue.firstCapturedUpdate !== null) {
                        // Join the captured update list to the end of the normal list.
                        if (finishedQueue.lastUpdate !== null) {
                            finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
                            finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
                        }
                        // Clear the list of captured updates.
                        finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
                    }
                    // Commit the effects
                    commitUpdateEffects(finishedQueue.firstEffect, instance);
                    finishedQueue.firstEffect = finishedQueue.lastEffect = null;
                    commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
                    finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
                }
                function commitUpdateEffects(effect, instance) {
                    while (effect !== null) {
                        var _callback3 = effect.callback;
                        if (_callback3 !== null) {
                            effect.callback = null;
                            callCallback(_callback3, instance);
                        }
                        effect = effect.nextEffect;
                    }
                }
                function createCapturedValue(value, source) {
                    // If the value is an error, call this function immediately after it is thrown
                    // so the stack is accurate.
                    return {
                        value: value,
                        source: source,
                        stack: getStackByFiberInDevAndProd(source)
                    };
                }
                var valueCursor = createCursor(null);
                var rendererSigil = void 0;
                {
                    // Use this to detect multiple renderers using the same context
                    rendererSigil = {};
                }
                var currentlyRenderingFiber = null;
                var lastContextDependency = null;
                var lastContextWithAllBitsObserved = null;
                function resetContextDependences() {
                    // This is called right before React yields execution, to ensure `readContext`
                    // cannot be called outside the render phase.
                    currentlyRenderingFiber = null;
                    lastContextDependency = null;
                    lastContextWithAllBitsObserved = null;
                }
                function pushProvider(providerFiber, nextValue) {
                    var context = providerFiber.type._context;
                    if (isPrimaryRenderer) {
                        push(valueCursor, context._currentValue, providerFiber);
                        context._currentValue = nextValue;
                        {
                            !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
                            context._currentRenderer = rendererSigil;
                        }
                    }
                    else {
                        push(valueCursor, context._currentValue2, providerFiber);
                        context._currentValue2 = nextValue;
                        {
                            !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
                            context._currentRenderer2 = rendererSigil;
                        }
                    }
                }
                function popProvider(providerFiber) {
                    var currentValue = valueCursor.current;
                    pop(valueCursor, providerFiber);
                    var context = providerFiber.type._context;
                    if (isPrimaryRenderer) {
                        context._currentValue = currentValue;
                    }
                    else {
                        context._currentValue2 = currentValue;
                    }
                }
                function calculateChangedBits(context, newValue, oldValue) {
                    // Use Object.is to compare the new context value to the old value. Inlined
                    // Object.is polyfill.
                    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
                    if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
                    ) {
                        // No change
                        return 0;
                    }
                    else {
                        var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;
                        {
                            !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
                        }
                        return changedBits | 0;
                    }
                }
                function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
                    var fiber = workInProgress.child;
                    if (fiber !== null) {
                        // Set the return pointer of the child to the work-in-progress fiber.
                        fiber.return = workInProgress;
                    }
                    while (fiber !== null) {
                        var nextFiber = void 0;
                        // Visit this fiber.
                        var dependency = fiber.firstContextDependency;
                        if (dependency !== null) {
                            do {
                                // Check if the context matches.
                                if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
                                    // Match! Schedule an update on this fiber.
                                    if (fiber.tag === ClassComponent || fiber.tag === ClassComponentLazy) {
                                        // Schedule a force update on the work-in-progress.
                                        var update = createUpdate(renderExpirationTime);
                                        update.tag = ForceUpdate;
                                        // TODO: Because we don't have a work-in-progress, this will add the
                                        // update to the current fiber, too, which means it will persist even if
                                        // this render is thrown away. Since it's a race condition, not sure it's
                                        // worth fixing.
                                        enqueueUpdate(fiber, update);
                                    }
                                    if (fiber.expirationTime === NoWork || fiber.expirationTime > renderExpirationTime) {
                                        fiber.expirationTime = renderExpirationTime;
                                    }
                                    var alternate = fiber.alternate;
                                    if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) {
                                        alternate.expirationTime = renderExpirationTime;
                                    }
                                    // Update the child expiration time of all the ancestors, including
                                    // the alternates.
                                    var node = fiber.return;
                                    while (node !== null) {
                                        alternate = node.alternate;
                                        if (node.childExpirationTime === NoWork || node.childExpirationTime > renderExpirationTime) {
                                            node.childExpirationTime = renderExpirationTime;
                                            if (alternate !== null && (alternate.childExpirationTime === NoWork || alternate.childExpirationTime > renderExpirationTime)) {
                                                alternate.childExpirationTime = renderExpirationTime;
                                            }
                                        }
                                        else if (alternate !== null && (alternate.childExpirationTime === NoWork || alternate.childExpirationTime > renderExpirationTime)) {
                                            alternate.childExpirationTime = renderExpirationTime;
                                        }
                                        else {
                                            // Neither alternate was updated, which means the rest of the
                                            // ancestor path already has sufficient priority.
                                            break;
                                        }
                                        node = node.return;
                                    }
                                }
                                nextFiber = fiber.child;
                                dependency = dependency.next;
                            } while (dependency !== null);
                        }
                        else if (fiber.tag === ContextProvider) {
                            // Don't scan deeper if this is a matching provider
                            nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
                        }
                        else {
                            // Traverse down.
                            nextFiber = fiber.child;
                        }
                        if (nextFiber !== null) {
                            // Set the return pointer of the child to the work-in-progress fiber.
                            nextFiber.return = fiber;
                        }
                        else {
                            // No child. Traverse to next sibling.
                            nextFiber = fiber;
                            while (nextFiber !== null) {
                                if (nextFiber === workInProgress) {
                                    // We're back to the root of this subtree. Exit.
                                    nextFiber = null;
                                    break;
                                }
                                var sibling = nextFiber.sibling;
                                if (sibling !== null) {
                                    // Set the return pointer of the sibling to the work-in-progress fiber.
                                    sibling.return = nextFiber.return;
                                    nextFiber = sibling;
                                    break;
                                }
                                // No more siblings. Traverse up.
                                nextFiber = nextFiber.return;
                            }
                        }
                        fiber = nextFiber;
                    }
                }
                function prepareToReadContext(workInProgress, renderExpirationTime) {
                    currentlyRenderingFiber = workInProgress;
                    lastContextDependency = null;
                    lastContextWithAllBitsObserved = null;
                    // Reset the work-in-progress list
                    workInProgress.firstContextDependency = null;
                }
                function readContext(context, observedBits) {
                    if (lastContextWithAllBitsObserved === context) {
                        // Nothing to do. We already observe everything in this context.
                    }
                    else if (observedBits === false || observedBits === 0) {
                        // Do not observe any updates.
                    }
                    else {
                        var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
                        if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
                            // Observe all updates.
                            lastContextWithAllBitsObserved = context;
                            resolvedObservedBits = maxSigned31BitInt;
                        }
                        else {
                            resolvedObservedBits = observedBits;
                        }
                        var contextItem = {
                            context: context,
                            observedBits: resolvedObservedBits,
                            next: null
                        };
                        if (lastContextDependency === null) {
                            !(currentlyRenderingFiber !== null) ? invariant(false, 'Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
                            // This is the first dependency in the list
                            currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
                        }
                        else {
                            // Append a new context item.
                            lastContextDependency = lastContextDependency.next = contextItem;
                        }
                    }
                    return isPrimaryRenderer ? context._currentValue : context._currentValue2;
                }
                var NO_CONTEXT = {};
                var contextStackCursor$1 = createCursor(NO_CONTEXT);
                var contextFiberStackCursor = createCursor(NO_CONTEXT);
                var rootInstanceStackCursor = createCursor(NO_CONTEXT);
                function requiredContext(c) {
                    !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    return c;
                }
                function getRootHostContainer() {
                    var rootInstance = requiredContext(rootInstanceStackCursor.current);
                    return rootInstance;
                }
                function pushHostContainer(fiber, nextRootInstance) {
                    // Push current root instance onto the stack;
                    // This allows us to reset root when portals are popped.
                    push(rootInstanceStackCursor, nextRootInstance, fiber);
                    // Track the context and the Fiber that provided it.
                    // This enables us to pop only Fibers that provide unique contexts.
                    push(contextFiberStackCursor, fiber, fiber);
                    // Finally, we need to push the host context to the stack.
                    // However, we can't just call getRootHostContext() and push it because
                    // we'd have a different number of entries on the stack depending on
                    // whether getRootHostContext() throws somewhere in renderer code or not.
                    // So we push an empty value first. This lets us safely unwind on errors.
                    push(contextStackCursor$1, NO_CONTEXT, fiber);
                    var nextRootContext = getRootHostContext(nextRootInstance);
                    // Now that we know this function doesn't throw, replace it.
                    pop(contextStackCursor$1, fiber);
                    push(contextStackCursor$1, nextRootContext, fiber);
                }
                function popHostContainer(fiber) {
                    pop(contextStackCursor$1, fiber);
                    pop(contextFiberStackCursor, fiber);
                    pop(rootInstanceStackCursor, fiber);
                }
                function getHostContext() {
                    var context = requiredContext(contextStackCursor$1.current);
                    return context;
                }
                function pushHostContext(fiber) {
                    var rootInstance = requiredContext(rootInstanceStackCursor.current);
                    var context = requiredContext(contextStackCursor$1.current);
                    var nextContext = getChildHostContext(context, fiber.type, rootInstance);
                    // Don't push this Fiber's context unless it's unique.
                    if (context === nextContext) {
                        return;
                    }
                    // Track the context and the Fiber that provided it.
                    // This enables us to pop only Fibers that provide unique contexts.
                    push(contextFiberStackCursor, fiber, fiber);
                    push(contextStackCursor$1, nextContext, fiber);
                }
                function popHostContext(fiber) {
                    // Do not pop unless this Fiber provided the current context.
                    // pushHostContext() only pushes Fibers that provide unique contexts.
                    if (contextFiberStackCursor.current !== fiber) {
                        return;
                    }
                    pop(contextStackCursor$1, fiber);
                    pop(contextFiberStackCursor, fiber);
                }
                var commitTime = 0;
                var profilerStartTime = -1;
                function getCommitTime() {
                    return commitTime;
                }
                function recordCommitTime() {
                    if (!enableProfilerTimer) {
                        return;
                    }
                    commitTime = schedule.unstable_now();
                }
                function startProfilerTimer(fiber) {
                    if (!enableProfilerTimer) {
                        return;
                    }
                    profilerStartTime = schedule.unstable_now();
                    if (fiber.actualStartTime < 0) {
                        fiber.actualStartTime = schedule.unstable_now();
                    }
                }
                function stopProfilerTimerIfRunning(fiber) {
                    if (!enableProfilerTimer) {
                        return;
                    }
                    profilerStartTime = -1;
                }
                function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
                    if (!enableProfilerTimer) {
                        return;
                    }
                    if (profilerStartTime >= 0) {
                        var elapsedTime = schedule.unstable_now() - profilerStartTime;
                        fiber.actualDuration += elapsedTime;
                        if (overrideBaseTime) {
                            fiber.selfBaseDuration = elapsedTime;
                        }
                        profilerStartTime = -1;
                    }
                }
                var fakeInternalInstance = {};
                var isArray = Array.isArray;
                // React.Component uses a shared frozen object by default.
                // We'll use it to determine whether we need to initialize legacy refs.
                var emptyRefsObject = new React.Component().refs;
                var didWarnAboutStateAssignmentForComponent = void 0;
                var didWarnAboutUninitializedState = void 0;
                var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
                var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
                var didWarnAboutUndefinedDerivedState = void 0;
                var warnOnUndefinedDerivedState = void 0;
                var warnOnInvalidCallback$1 = void 0;
                var didWarnAboutDirectlyAssigningPropsToState = void 0;
                {
                    didWarnAboutStateAssignmentForComponent = new Set();
                    didWarnAboutUninitializedState = new Set();
                    didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
                    didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
                    didWarnAboutDirectlyAssigningPropsToState = new Set();
                    didWarnAboutUndefinedDerivedState = new Set();
                    var didWarnOnInvalidCallback = new Set();
                    warnOnInvalidCallback$1 = function (callback, callerName) {
                        if (callback === null || typeof callback === 'function') {
                            return;
                        }
                        var key = callerName + '_' + callback;
                        if (!didWarnOnInvalidCallback.has(key)) {
                            didWarnOnInvalidCallback.add(key);
                            warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
                        }
                    };
                    warnOnUndefinedDerivedState = function (type, partialState) {
                        if (partialState === undefined) {
                            var componentName = getComponentName(type) || 'Component';
                            if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
                                didWarnAboutUndefinedDerivedState.add(componentName);
                                warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
                            }
                        }
                    };
                    // This is so gross but it's at least non-critical and can be removed if
                    // it causes problems. This is meant to give a nicer error message for
                    // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
                    // ...)) which otherwise throws a "_processChildContext is not a function"
                    // exception.
                    Object.defineProperty(fakeInternalInstance, '_processChildContext', {
                        enumerable: false,
                        value: function () {
                            invariant(false, '_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).');
                        }
                    });
                    Object.freeze(fakeInternalInstance);
                }
                function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
                    var prevState = workInProgress.memoizedState;
                    {
                        if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
                            // Invoke the function an extra time to help detect side-effects.
                            getDerivedStateFromProps(nextProps, prevState);
                        }
                    }
                    var partialState = getDerivedStateFromProps(nextProps, prevState);
                    {
                        warnOnUndefinedDerivedState(ctor, partialState);
                    }
                    // Merge the partial state and the previous state.
                    var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
                    workInProgress.memoizedState = memoizedState;
                    // Once the update queue is empty, persist the derived state onto the
                    // base state.
                    var updateQueue = workInProgress.updateQueue;
                    if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
                        updateQueue.baseState = memoizedState;
                    }
                }
                var classComponentUpdater = {
                    isMounted: isMounted,
                    enqueueSetState: function (inst, payload, callback) {
                        var fiber = get(inst);
                        var currentTime = requestCurrentTime();
                        var expirationTime = computeExpirationForFiber(currentTime, fiber);
                        var update = createUpdate(expirationTime);
                        update.payload = payload;
                        if (callback !== undefined && callback !== null) {
                            {
                                warnOnInvalidCallback$1(callback, 'setState');
                            }
                            update.callback = callback;
                        }
                        enqueueUpdate(fiber, update);
                        scheduleWork(fiber, expirationTime);
                    },
                    enqueueReplaceState: function (inst, payload, callback) {
                        var fiber = get(inst);
                        var currentTime = requestCurrentTime();
                        var expirationTime = computeExpirationForFiber(currentTime, fiber);
                        var update = createUpdate(expirationTime);
                        update.tag = ReplaceState;
                        update.payload = payload;
                        if (callback !== undefined && callback !== null) {
                            {
                                warnOnInvalidCallback$1(callback, 'replaceState');
                            }
                            update.callback = callback;
                        }
                        enqueueUpdate(fiber, update);
                        scheduleWork(fiber, expirationTime);
                    },
                    enqueueForceUpdate: function (inst, callback) {
                        var fiber = get(inst);
                        var currentTime = requestCurrentTime();
                        var expirationTime = computeExpirationForFiber(currentTime, fiber);
                        var update = createUpdate(expirationTime);
                        update.tag = ForceUpdate;
                        if (callback !== undefined && callback !== null) {
                            {
                                warnOnInvalidCallback$1(callback, 'forceUpdate');
                            }
                            update.callback = callback;
                        }
                        enqueueUpdate(fiber, update);
                        scheduleWork(fiber, expirationTime);
                    }
                };
                function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextLegacyContext) {
                    var instance = workInProgress.stateNode;
                    if (typeof instance.shouldComponentUpdate === 'function') {
                        startPhaseTimer(workInProgress, 'shouldComponentUpdate');
                        var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextLegacyContext);
                        stopPhaseTimer();
                        {
                            !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
                        }
                        return shouldUpdate;
                    }
                    if (ctor.prototype && ctor.prototype.isPureReactComponent) {
                        return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
                    }
                    return true;
                }
                function checkClassInstance(workInProgress, ctor, newProps) {
                    var instance = workInProgress.stateNode;
                    {
                        var name = getComponentName(ctor) || 'Component';
                        var renderPresent = instance.render;
                        if (!renderPresent) {
                            if (ctor.prototype && typeof ctor.prototype.render === 'function') {
                                warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
                            }
                            else {
                                warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
                            }
                        }
                        var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
                        !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
                        var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
                        !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
                        var noInstancePropTypes = !instance.propTypes;
                        !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
                        var noInstanceContextTypes = !instance.contextTypes;
                        !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
                        var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
                        !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
                        if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
                            warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
                        }
                        var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
                        !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
                        var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
                        !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
                        var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
                        !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
                        var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
                        !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
                        var hasMutatedProps = instance.props !== newProps;
                        !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
                        var noInstanceDefaultProps = !instance.defaultProps;
                        !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
                        if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
                            didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
                            warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
                        }
                        var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
                        !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
                        var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromCatch !== 'function';
                        !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromCatch() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
                        var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
                        !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
                        var _state = instance.state;
                        if (_state && (typeof _state !== 'object' || isArray(_state))) {
                            warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
                        }
                        if (typeof instance.getChildContext === 'function') {
                            !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
                        }
                    }
                }
                function adoptClassInstance(workInProgress, instance) {
                    instance.updater = classComponentUpdater;
                    workInProgress.stateNode = instance;
                    // The instance needs access to the fiber so that it can schedule updates
                    set(instance, workInProgress);
                    {
                        instance._reactInternalInstance = fakeInternalInstance;
                    }
                }
                function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
                    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
                    var contextTypes = ctor.contextTypes;
                    var isContextConsumer = contextTypes !== null && contextTypes !== undefined;
                    var context = isContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
                    // Instantiate twice to help detect side-effects.
                    {
                        if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
                            new ctor(props, context); // eslint-disable-line no-new
                        }
                    }
                    var instance = new ctor(props, context);
                    var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
                    adoptClassInstance(workInProgress, instance);
                    {
                        if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
                            var componentName = getComponentName(ctor) || 'Component';
                            if (!didWarnAboutUninitializedState.has(componentName)) {
                                didWarnAboutUninitializedState.add(componentName);
                                warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
                            }
                        }
                        // If new component APIs are defined, "unsafe" lifecycles won't be called.
                        // Warn about these lifecycles if they are present.
                        // Don't warn about react-lifecycles-compat polyfilled methods though.
                        if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
                            var foundWillMountName = null;
                            var foundWillReceivePropsName = null;
                            var foundWillUpdateName = null;
                            if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
                                foundWillMountName = 'componentWillMount';
                            }
                            else if (typeof instance.UNSAFE_componentWillMount === 'function') {
                                foundWillMountName = 'UNSAFE_componentWillMount';
                            }
                            if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
                                foundWillReceivePropsName = 'componentWillReceiveProps';
                            }
                            else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
                                foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
                            }
                            if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
                                foundWillUpdateName = 'componentWillUpdate';
                            }
                            else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
                                foundWillUpdateName = 'UNSAFE_componentWillUpdate';
                            }
                            if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
                                var _componentName = getComponentName(ctor) || 'Component';
                                var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
                                if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
                                    didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
                                    warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n  ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n  ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n  ' + foundWillUpdateName : '');
                                }
                            }
                        }
                    }
                    // Cache unmasked context so we can avoid recreating masked context unless necessary.
                    // ReactFiberContext usually updates this cache but can't for newly-created instances.
                    if (isContextConsumer) {
                        cacheContext(workInProgress, unmaskedContext, context);
                    }
                    return instance;
                }
                function callComponentWillMount(workInProgress, instance) {
                    startPhaseTimer(workInProgress, 'componentWillMount');
                    var oldState = instance.state;
                    if (typeof instance.componentWillMount === 'function') {
                        instance.componentWillMount();
                    }
                    if (typeof instance.UNSAFE_componentWillMount === 'function') {
                        instance.UNSAFE_componentWillMount();
                    }
                    stopPhaseTimer();
                    if (oldState !== instance.state) {
                        {
                            warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
                        }
                        classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
                    }
                }
                function callComponentWillReceiveProps(workInProgress, instance, newProps, nextLegacyContext) {
                    var oldState = instance.state;
                    startPhaseTimer(workInProgress, 'componentWillReceiveProps');
                    if (typeof instance.componentWillReceiveProps === 'function') {
                        instance.componentWillReceiveProps(newProps, nextLegacyContext);
                    }
                    if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
                        instance.UNSAFE_componentWillReceiveProps(newProps, nextLegacyContext);
                    }
                    stopPhaseTimer();
                    if (instance.state !== oldState) {
                        {
                            var componentName = getComponentName(workInProgress.type) || 'Component';
                            if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
                                didWarnAboutStateAssignmentForComponent.add(componentName);
                                warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
                            }
                        }
                        classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
                    }
                }
                // Invokes the mount life-cycles on a previously never rendered instance.
                function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
                    {
                        checkClassInstance(workInProgress, ctor, newProps);
                    }
                    var instance = workInProgress.stateNode;
                    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
                    instance.props = newProps;
                    instance.state = workInProgress.memoizedState;
                    instance.refs = emptyRefsObject;
                    instance.context = getMaskedContext(workInProgress, unmaskedContext);
                    {
                        if (instance.state === newProps) {
                            var componentName = getComponentName(ctor) || 'Component';
                            if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
                                didWarnAboutDirectlyAssigningPropsToState.add(componentName);
                                warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
                            }
                        }
                        if (workInProgress.mode & StrictMode) {
                            ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
                            ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
                        }
                        if (warnAboutDeprecatedLifecycles) {
                            ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
                        }
                    }
                    var updateQueue = workInProgress.updateQueue;
                    if (updateQueue !== null) {
                        processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
                        instance.state = workInProgress.memoizedState;
                    }
                    var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
                    if (typeof getDerivedStateFromProps === 'function') {
                        applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
                        instance.state = workInProgress.memoizedState;
                    }
                    // In order to support react-lifecycles-compat polyfilled components,
                    // Unsafe lifecycles should not be invoked for components using the new APIs.
                    if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
                        callComponentWillMount(workInProgress, instance);
                        // If we had additional state updates during this life-cycle, let's
                        // process them now.
                        updateQueue = workInProgress.updateQueue;
                        if (updateQueue !== null) {
                            processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
                            instance.state = workInProgress.memoizedState;
                        }
                    }
                    if (typeof instance.componentDidMount === 'function') {
                        workInProgress.effectTag |= Update;
                    }
                }
                function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
                    var instance = workInProgress.stateNode;
                    var oldProps = workInProgress.memoizedProps;
                    instance.props = oldProps;
                    var oldContext = instance.context;
                    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
                    var nextLegacyContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
                    var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
                    var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
                    // Note: During these life-cycles, instance.props/instance.state are what
                    // ever the previously attempted to render - not the "current". However,
                    // during componentDidUpdate we pass the "current" props.
                    // In order to support react-lifecycles-compat polyfilled components,
                    // Unsafe lifecycles should not be invoked for components using the new APIs.
                    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
                        if (oldProps !== newProps || oldContext !== nextLegacyContext) {
                            callComponentWillReceiveProps(workInProgress, instance, newProps, nextLegacyContext);
                        }
                    }
                    resetHasForceUpdateBeforeProcessing();
                    var oldState = workInProgress.memoizedState;
                    var newState = instance.state = oldState;
                    var updateQueue = workInProgress.updateQueue;
                    if (updateQueue !== null) {
                        processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
                        newState = workInProgress.memoizedState;
                    }
                    if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
                        // If an update was already in progress, we should schedule an Update
                        // effect even though we're bailing out, so that cWU/cDU are called.
                        if (typeof instance.componentDidMount === 'function') {
                            workInProgress.effectTag |= Update;
                        }
                        return false;
                    }
                    if (typeof getDerivedStateFromProps === 'function') {
                        applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
                        newState = workInProgress.memoizedState;
                    }
                    var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextLegacyContext);
                    if (shouldUpdate) {
                        // In order to support react-lifecycles-compat polyfilled components,
                        // Unsafe lifecycles should not be invoked for components using the new APIs.
                        if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
                            startPhaseTimer(workInProgress, 'componentWillMount');
                            if (typeof instance.componentWillMount === 'function') {
                                instance.componentWillMount();
                            }
                            if (typeof instance.UNSAFE_componentWillMount === 'function') {
                                instance.UNSAFE_componentWillMount();
                            }
                            stopPhaseTimer();
                        }
                        if (typeof instance.componentDidMount === 'function') {
                            workInProgress.effectTag |= Update;
                        }
                    }
                    else {
                        // If an update was already in progress, we should schedule an Update
                        // effect even though we're bailing out, so that cWU/cDU are called.
                        if (typeof instance.componentDidMount === 'function') {
                            workInProgress.effectTag |= Update;
                        }
                        // If shouldComponentUpdate returned false, we should still update the
                        // memoized state to indicate that this work can be reused.
                        workInProgress.memoizedProps = newProps;
                        workInProgress.memoizedState = newState;
                    }
                    // Update the existing instance's state, props, and context pointers even
                    // if shouldComponentUpdate returns false.
                    instance.props = newProps;
                    instance.state = newState;
                    instance.context = nextLegacyContext;
                    return shouldUpdate;
                }
                // Invokes the update life-cycles and returns false if it shouldn't rerender.
                function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
                    var instance = workInProgress.stateNode;
                    var oldProps = workInProgress.memoizedProps;
                    instance.props = oldProps;
                    var oldContext = instance.context;
                    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
                    var nextLegacyContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
                    var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
                    var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
                    // Note: During these life-cycles, instance.props/instance.state are what
                    // ever the previously attempted to render - not the "current". However,
                    // during componentDidUpdate we pass the "current" props.
                    // In order to support react-lifecycles-compat polyfilled components,
                    // Unsafe lifecycles should not be invoked for components using the new APIs.
                    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
                        if (oldProps !== newProps || oldContext !== nextLegacyContext) {
                            callComponentWillReceiveProps(workInProgress, instance, newProps, nextLegacyContext);
                        }
                    }
                    resetHasForceUpdateBeforeProcessing();
                    var oldState = workInProgress.memoizedState;
                    var newState = instance.state = oldState;
                    var updateQueue = workInProgress.updateQueue;
                    if (updateQueue !== null) {
                        processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
                        newState = workInProgress.memoizedState;
                    }
                    if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
                        // If an update was already in progress, we should schedule an Update
                        // effect even though we're bailing out, so that cWU/cDU are called.
                        if (typeof instance.componentDidUpdate === 'function') {
                            if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
                                workInProgress.effectTag |= Update;
                            }
                        }
                        if (typeof instance.getSnapshotBeforeUpdate === 'function') {
                            if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
                                workInProgress.effectTag |= Snapshot;
                            }
                        }
                        return false;
                    }
                    if (typeof getDerivedStateFromProps === 'function') {
                        applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
                        newState = workInProgress.memoizedState;
                    }
                    var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextLegacyContext);
                    if (shouldUpdate) {
                        // In order to support react-lifecycles-compat polyfilled components,
                        // Unsafe lifecycles should not be invoked for components using the new APIs.
                        if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
                            startPhaseTimer(workInProgress, 'componentWillUpdate');
                            if (typeof instance.componentWillUpdate === 'function') {
                                instance.componentWillUpdate(newProps, newState, nextLegacyContext);
                            }
                            if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
                                instance.UNSAFE_componentWillUpdate(newProps, newState, nextLegacyContext);
                            }
                            stopPhaseTimer();
                        }
                        if (typeof instance.componentDidUpdate === 'function') {
                            workInProgress.effectTag |= Update;
                        }
                        if (typeof instance.getSnapshotBeforeUpdate === 'function') {
                            workInProgress.effectTag |= Snapshot;
                        }
                    }
                    else {
                        // If an update was already in progress, we should schedule an Update
                        // effect even though we're bailing out, so that cWU/cDU are called.
                        if (typeof instance.componentDidUpdate === 'function') {
                            if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
                                workInProgress.effectTag |= Update;
                            }
                        }
                        if (typeof instance.getSnapshotBeforeUpdate === 'function') {
                            if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
                                workInProgress.effectTag |= Snapshot;
                            }
                        }
                        // If shouldComponentUpdate returned false, we should still update the
                        // memoized props/state to indicate that this work can be reused.
                        workInProgress.memoizedProps = newProps;
                        workInProgress.memoizedState = newState;
                    }
                    // Update the existing instance's state, props, and context pointers even
                    // if shouldComponentUpdate returns false.
                    instance.props = newProps;
                    instance.state = newState;
                    instance.context = nextLegacyContext;
                    return shouldUpdate;
                }
                var didWarnAboutMaps = void 0;
                var didWarnAboutGenerators = void 0;
                var didWarnAboutStringRefInStrictMode = void 0;
                var ownerHasKeyUseWarning = void 0;
                var ownerHasFunctionTypeWarning = void 0;
                var warnForMissingKey = function (child) { };
                {
                    didWarnAboutMaps = false;
                    didWarnAboutGenerators = false;
                    didWarnAboutStringRefInStrictMode = {};
                    /**
                     * Warn if there's no key explicitly set on dynamic arrays of children or
                     * object keys are not valid. This allows us to keep track of children between
                     * updates.
                     */
                    ownerHasKeyUseWarning = {};
                    ownerHasFunctionTypeWarning = {};
                    warnForMissingKey = function (child) {
                        if (child === null || typeof child !== 'object') {
                            return;
                        }
                        if (!child._store || child._store.validated || child.key != null) {
                            return;
                        }
                        !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                        child._store.validated = true;
                        var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
                        if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
                            return;
                        }
                        ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
                        warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
                    };
                }
                var isArray$1 = Array.isArray;
                function coerceRef(returnFiber, current$$1, element) {
                    var mixedRef = element.ref;
                    if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
                        {
                            if (returnFiber.mode & StrictMode) {
                                var componentName = getComponentName(returnFiber.type) || 'Component';
                                if (!didWarnAboutStringRefInStrictMode[componentName]) {
                                    warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
                                    didWarnAboutStringRefInStrictMode[componentName] = true;
                                }
                            }
                        }
                        if (element._owner) {
                            var owner = element._owner;
                            var inst = void 0;
                            if (owner) {
                                var ownerFiber = owner;
                                !(ownerFiber.tag === ClassComponent || ownerFiber.tag === ClassComponentLazy) ? invariant(false, 'Stateless function components cannot have refs.') : void 0;
                                inst = ownerFiber.stateNode;
                            }
                            !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
                            var stringRef = '' + mixedRef;
                            // Check if previous string ref matches new string ref
                            if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
                                return current$$1.ref;
                            }
                            var ref = function (value) {
                                var refs = inst.refs;
                                if (refs === emptyRefsObject) {
                                    // This is a lazy pooled frozen object, so we need to initialize.
                                    refs = inst.refs = {};
                                }
                                if (value === null) {
                                    delete refs[stringRef];
                                }
                                else {
                                    refs[stringRef] = value;
                                }
                            };
                            ref._stringRef = stringRef;
                            return ref;
                        }
                        else {
                            !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
                            !element._owner ? invariant(false, 'Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.', mixedRef) : void 0;
                        }
                    }
                    return mixedRef;
                }
                function throwOnInvalidObjectType(returnFiber, newChild) {
                    if (returnFiber.type !== 'textarea') {
                        var addendum = '';
                        {
                            addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
                        }
                        invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);
                    }
                }
                function warnOnFunctionType() {
                    var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();
                    if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
                        return;
                    }
                    ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
                    warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
                }
                // This wrapper function exists because I expect to clone the code in each path
                // to be able to optimize each path individually by branching early. This needs
                // a compiler or we can do it manually. Helpers that don't need this branching
                // live outside of this function.
                function ChildReconciler(shouldTrackSideEffects) {
                    function deleteChild(returnFiber, childToDelete) {
                        if (!shouldTrackSideEffects) {
                            // Noop.
                            return;
                        }
                        // Deletions are added in reversed order so we add it to the front.
                        // At this point, the return fiber's effect list is empty except for
                        // deletions, so we can just append the deletion to the list. The remaining
                        // effects aren't added until the complete phase. Once we implement
                        // resuming, this may not be true.
                        var last = returnFiber.lastEffect;
                        if (last !== null) {
                            last.nextEffect = childToDelete;
                            returnFiber.lastEffect = childToDelete;
                        }
                        else {
                            returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
                        }
                        childToDelete.nextEffect = null;
                        childToDelete.effectTag = Deletion;
                    }
                    function deleteRemainingChildren(returnFiber, currentFirstChild) {
                        if (!shouldTrackSideEffects) {
                            // Noop.
                            return null;
                        }
                        // TODO: For the shouldClone case, this could be micro-optimized a bit by
                        // assuming that after the first child we've already added everything.
                        var childToDelete = currentFirstChild;
                        while (childToDelete !== null) {
                            deleteChild(returnFiber, childToDelete);
                            childToDelete = childToDelete.sibling;
                        }
                        return null;
                    }
                    function mapRemainingChildren(returnFiber, currentFirstChild) {
                        // Add the remaining children to a temporary map so that we can find them by
                        // keys quickly. Implicit (null) keys get added to this set with their index
                        var existingChildren = new Map();
                        var existingChild = currentFirstChild;
                        while (existingChild !== null) {
                            if (existingChild.key !== null) {
                                existingChildren.set(existingChild.key, existingChild);
                            }
                            else {
                                existingChildren.set(existingChild.index, existingChild);
                            }
                            existingChild = existingChild.sibling;
                        }
                        return existingChildren;
                    }
                    function useFiber(fiber, pendingProps, expirationTime) {
                        // We currently set sibling to null and index to 0 here because it is easy
                        // to forget to do before returning it. E.g. for the single child case.
                        var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
                        clone.index = 0;
                        clone.sibling = null;
                        return clone;
                    }
                    function placeChild(newFiber, lastPlacedIndex, newIndex) {
                        newFiber.index = newIndex;
                        if (!shouldTrackSideEffects) {
                            // Noop.
                            return lastPlacedIndex;
                        }
                        var current$$1 = newFiber.alternate;
                        if (current$$1 !== null) {
                            var oldIndex = current$$1.index;
                            if (oldIndex < lastPlacedIndex) {
                                // This is a move.
                                newFiber.effectTag = Placement;
                                return lastPlacedIndex;
                            }
                            else {
                                // This item can stay in place.
                                return oldIndex;
                            }
                        }
                        else {
                            // This is an insertion.
                            newFiber.effectTag = Placement;
                            return lastPlacedIndex;
                        }
                    }
                    function placeSingleChild(newFiber) {
                        // This is simpler for the single child case. We only need to do a
                        // placement for inserting new children.
                        if (shouldTrackSideEffects && newFiber.alternate === null) {
                            newFiber.effectTag = Placement;
                        }
                        return newFiber;
                    }
                    function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
                        if (current$$1 === null || current$$1.tag !== HostText) {
                            // Insert
                            var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
                            created.return = returnFiber;
                            return created;
                        }
                        else {
                            // Update
                            var existing = useFiber(current$$1, textContent, expirationTime);
                            existing.return = returnFiber;
                            return existing;
                        }
                    }
                    function updateElement(returnFiber, current$$1, element, expirationTime) {
                        if (current$$1 !== null && current$$1.type === element.type) {
                            // Move based on index
                            var existing = useFiber(current$$1, element.props, expirationTime);
                            existing.ref = coerceRef(returnFiber, current$$1, element);
                            existing.return = returnFiber;
                            {
                                existing._debugSource = element._source;
                                existing._debugOwner = element._owner;
                            }
                            return existing;
                        }
                        else {
                            // Insert
                            var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
                            created.ref = coerceRef(returnFiber, current$$1, element);
                            created.return = returnFiber;
                            return created;
                        }
                    }
                    function updatePortal(returnFiber, current$$1, portal, expirationTime) {
                        if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
                            // Insert
                            var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
                            created.return = returnFiber;
                            return created;
                        }
                        else {
                            // Update
                            var existing = useFiber(current$$1, portal.children || [], expirationTime);
                            existing.return = returnFiber;
                            return existing;
                        }
                    }
                    function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
                        if (current$$1 === null || current$$1.tag !== Fragment) {
                            // Insert
                            var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
                            created.return = returnFiber;
                            return created;
                        }
                        else {
                            // Update
                            var existing = useFiber(current$$1, fragment, expirationTime);
                            existing.return = returnFiber;
                            return existing;
                        }
                    }
                    function createChild(returnFiber, newChild, expirationTime) {
                        if (typeof newChild === 'string' || typeof newChild === 'number') {
                            // Text nodes don't have keys. If the previous node is implicitly keyed
                            // we can continue to replace it without aborting even if it is not a text
                            // node.
                            var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
                            created.return = returnFiber;
                            return created;
                        }
                        if (typeof newChild === 'object' && newChild !== null) {
                            switch (newChild.$$typeof) {
                                case REACT_ELEMENT_TYPE:
                                    {
                                        var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
                                        _created.ref = coerceRef(returnFiber, null, newChild);
                                        _created.return = returnFiber;
                                        return _created;
                                    }
                                case REACT_PORTAL_TYPE:
                                    {
                                        var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
                                        _created2.return = returnFiber;
                                        return _created2;
                                    }
                            }
                            if (isArray$1(newChild) || getIteratorFn(newChild)) {
                                var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
                                _created3.return = returnFiber;
                                return _created3;
                            }
                            throwOnInvalidObjectType(returnFiber, newChild);
                        }
                        {
                            if (typeof newChild === 'function') {
                                warnOnFunctionType();
                            }
                        }
                        return null;
                    }
                    function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
                        // Update the fiber if the keys match, otherwise return null.
                        var key = oldFiber !== null ? oldFiber.key : null;
                        if (typeof newChild === 'string' || typeof newChild === 'number') {
                            // Text nodes don't have keys. If the previous node is implicitly keyed
                            // we can continue to replace it without aborting even if it is not a text
                            // node.
                            if (key !== null) {
                                return null;
                            }
                            return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
                        }
                        if (typeof newChild === 'object' && newChild !== null) {
                            switch (newChild.$$typeof) {
                                case REACT_ELEMENT_TYPE:
                                    {
                                        if (newChild.key === key) {
                                            if (newChild.type === REACT_FRAGMENT_TYPE) {
                                                return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
                                            }
                                            return updateElement(returnFiber, oldFiber, newChild, expirationTime);
                                        }
                                        else {
                                            return null;
                                        }
                                    }
                                case REACT_PORTAL_TYPE:
                                    {
                                        if (newChild.key === key) {
                                            return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
                                        }
                                        else {
                                            return null;
                                        }
                                    }
                            }
                            if (isArray$1(newChild) || getIteratorFn(newChild)) {
                                if (key !== null) {
                                    return null;
                                }
                                return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
                            }
                            throwOnInvalidObjectType(returnFiber, newChild);
                        }
                        {
                            if (typeof newChild === 'function') {
                                warnOnFunctionType();
                            }
                        }
                        return null;
                    }
                    function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
                        if (typeof newChild === 'string' || typeof newChild === 'number') {
                            // Text nodes don't have keys, so we neither have to check the old nor
                            // new node for the key. If both are text nodes, they match.
                            var matchedFiber = existingChildren.get(newIdx) || null;
                            return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
                        }
                        if (typeof newChild === 'object' && newChild !== null) {
                            switch (newChild.$$typeof) {
                                case REACT_ELEMENT_TYPE:
                                    {
                                        var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
                                        if (newChild.type === REACT_FRAGMENT_TYPE) {
                                            return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
                                        }
                                        return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
                                    }
                                case REACT_PORTAL_TYPE:
                                    {
                                        var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
                                        return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
                                    }
                            }
                            if (isArray$1(newChild) || getIteratorFn(newChild)) {
                                var _matchedFiber3 = existingChildren.get(newIdx) || null;
                                return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
                            }
                            throwOnInvalidObjectType(returnFiber, newChild);
                        }
                        {
                            if (typeof newChild === 'function') {
                                warnOnFunctionType();
                            }
                        }
                        return null;
                    }
                    /**
                     * Warns if there is a duplicate or missing key
                     */
                    function warnOnInvalidKey(child, knownKeys) {
                        {
                            if (typeof child !== 'object' || child === null) {
                                return knownKeys;
                            }
                            switch (child.$$typeof) {
                                case REACT_ELEMENT_TYPE:
                                case REACT_PORTAL_TYPE:
                                    warnForMissingKey(child);
                                    var key = child.key;
                                    if (typeof key !== 'string') {
                                        break;
                                    }
                                    if (knownKeys === null) {
                                        knownKeys = new Set();
                                        knownKeys.add(key);
                                        break;
                                    }
                                    if (!knownKeys.has(key)) {
                                        knownKeys.add(key);
                                        break;
                                    }
                                    warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
                                    break;
                                default:
                                    break;
                            }
                        }
                        return knownKeys;
                    }
                    function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
                        // This algorithm can't optimize by searching from boths ends since we
                        // don't have backpointers on fibers. I'm trying to see how far we can get
                        // with that model. If it ends up not being worth the tradeoffs, we can
                        // add it later.
                        // Even with a two ended optimization, we'd want to optimize for the case
                        // where there are few changes and brute force the comparison instead of
                        // going for the Map. It'd like to explore hitting that path first in
                        // forward-only mode and only go for the Map once we notice that we need
                        // lots of look ahead. This doesn't handle reversal as well as two ended
                        // search but that's unusual. Besides, for the two ended optimization to
                        // work on Iterables, we'd need to copy the whole set.
                        // In this first iteration, we'll just live with hitting the bad case
                        // (adding everything to a Map) in for every insert/move.
                        // If you change this code, also update reconcileChildrenIterator() which
                        // uses the same algorithm.
                        {
                            // First, validate keys.
                            var knownKeys = null;
                            for (var i = 0; i < newChildren.length; i++) {
                                var child = newChildren[i];
                                knownKeys = warnOnInvalidKey(child, knownKeys);
                            }
                        }
                        var resultingFirstChild = null;
                        var previousNewFiber = null;
                        var oldFiber = currentFirstChild;
                        var lastPlacedIndex = 0;
                        var newIdx = 0;
                        var nextOldFiber = null;
                        for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
                            if (oldFiber.index > newIdx) {
                                nextOldFiber = oldFiber;
                                oldFiber = null;
                            }
                            else {
                                nextOldFiber = oldFiber.sibling;
                            }
                            var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
                            if (newFiber === null) {
                                // TODO: This breaks on empty slots like null children. That's
                                // unfortunate because it triggers the slow path all the time. We need
                                // a better way to communicate whether this was a miss or null,
                                // boolean, undefined, etc.
                                if (oldFiber === null) {
                                    oldFiber = nextOldFiber;
                                }
                                break;
                            }
                            if (shouldTrackSideEffects) {
                                if (oldFiber && newFiber.alternate === null) {
                                    // We matched the slot, but we didn't reuse the existing fiber, so we
                                    // need to delete the existing child.
                                    deleteChild(returnFiber, oldFiber);
                                }
                            }
                            lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
                            if (previousNewFiber === null) {
                                // TODO: Move out of the loop. This only happens for the first run.
                                resultingFirstChild = newFiber;
                            }
                            else {
                                // TODO: Defer siblings if we're not at the right index for this slot.
                                // I.e. if we had null values before, then we want to defer this
                                // for each null value. However, we also don't want to call updateSlot
                                // with the previous one.
                                previousNewFiber.sibling = newFiber;
                            }
                            previousNewFiber = newFiber;
                            oldFiber = nextOldFiber;
                        }
                        if (newIdx === newChildren.length) {
                            // We've reached the end of the new children. We can delete the rest.
                            deleteRemainingChildren(returnFiber, oldFiber);
                            return resultingFirstChild;
                        }
                        if (oldFiber === null) {
                            // If we don't have any more existing children we can choose a fast path
                            // since the rest will all be insertions.
                            for (; newIdx < newChildren.length; newIdx++) {
                                var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
                                if (!_newFiber) {
                                    continue;
                                }
                                lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
                                if (previousNewFiber === null) {
                                    // TODO: Move out of the loop. This only happens for the first run.
                                    resultingFirstChild = _newFiber;
                                }
                                else {
                                    previousNewFiber.sibling = _newFiber;
                                }
                                previousNewFiber = _newFiber;
                            }
                            return resultingFirstChild;
                        }
                        // Add all children to a key map for quick lookups.
                        var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
                        // Keep scanning and use the map to restore deleted items as moves.
                        for (; newIdx < newChildren.length; newIdx++) {
                            var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
                            if (_newFiber2) {
                                if (shouldTrackSideEffects) {
                                    if (_newFiber2.alternate !== null) {
                                        // The new fiber is a work in progress, but if there exists a
                                        // current, that means that we reused the fiber. We need to delete
                                        // it from the child list so that we don't add it to the deletion
                                        // list.
                                        existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
                                    }
                                }
                                lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
                                if (previousNewFiber === null) {
                                    resultingFirstChild = _newFiber2;
                                }
                                else {
                                    previousNewFiber.sibling = _newFiber2;
                                }
                                previousNewFiber = _newFiber2;
                            }
                        }
                        if (shouldTrackSideEffects) {
                            // Any existing children that weren't consumed above were deleted. We need
                            // to add them to the deletion list.
                            existingChildren.forEach(function (child) {
                                return deleteChild(returnFiber, child);
                            });
                        }
                        return resultingFirstChild;
                    }
                    function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
                        // This is the same implementation as reconcileChildrenArray(),
                        // but using the iterator instead.
                        var iteratorFn = getIteratorFn(newChildrenIterable);
                        !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                        {
                            // We don't support rendering Generators because it's a mutation.
                            // See https://github.com/facebook/react/issues/12995
                            if (typeof Symbol === 'function' &&
                                // $FlowFixMe Flow doesn't know about toStringTag
                                newChildrenIterable[Symbol.toStringTag] === 'Generator') {
                                !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
                                didWarnAboutGenerators = true;
                            }
                            // Warn about using Maps as children
                            if (newChildrenIterable.entries === iteratorFn) {
                                !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
                                didWarnAboutMaps = true;
                            }
                            // First, validate keys.
                            // We'll get a different iterator later for the main pass.
                            var _newChildren = iteratorFn.call(newChildrenIterable);
                            if (_newChildren) {
                                var knownKeys = null;
                                var _step = _newChildren.next();
                                for (; !_step.done; _step = _newChildren.next()) {
                                    var child = _step.value;
                                    knownKeys = warnOnInvalidKey(child, knownKeys);
                                }
                            }
                        }
                        var newChildren = iteratorFn.call(newChildrenIterable);
                        !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;
                        var resultingFirstChild = null;
                        var previousNewFiber = null;
                        var oldFiber = currentFirstChild;
                        var lastPlacedIndex = 0;
                        var newIdx = 0;
                        var nextOldFiber = null;
                        var step = newChildren.next();
                        for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
                            if (oldFiber.index > newIdx) {
                                nextOldFiber = oldFiber;
                                oldFiber = null;
                            }
                            else {
                                nextOldFiber = oldFiber.sibling;
                            }
                            var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
                            if (newFiber === null) {
                                // TODO: This breaks on empty slots like null children. That's
                                // unfortunate because it triggers the slow path all the time. We need
                                // a better way to communicate whether this was a miss or null,
                                // boolean, undefined, etc.
                                if (!oldFiber) {
                                    oldFiber = nextOldFiber;
                                }
                                break;
                            }
                            if (shouldTrackSideEffects) {
                                if (oldFiber && newFiber.alternate === null) {
                                    // We matched the slot, but we didn't reuse the existing fiber, so we
                                    // need to delete the existing child.
                                    deleteChild(returnFiber, oldFiber);
                                }
                            }
                            lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
                            if (previousNewFiber === null) {
                                // TODO: Move out of the loop. This only happens for the first run.
                                resultingFirstChild = newFiber;
                            }
                            else {
                                // TODO: Defer siblings if we're not at the right index for this slot.
                                // I.e. if we had null values before, then we want to defer this
                                // for each null value. However, we also don't want to call updateSlot
                                // with the previous one.
                                previousNewFiber.sibling = newFiber;
                            }
                            previousNewFiber = newFiber;
                            oldFiber = nextOldFiber;
                        }
                        if (step.done) {
                            // We've reached the end of the new children. We can delete the rest.
                            deleteRemainingChildren(returnFiber, oldFiber);
                            return resultingFirstChild;
                        }
                        if (oldFiber === null) {
                            // If we don't have any more existing children we can choose a fast path
                            // since the rest will all be insertions.
                            for (; !step.done; newIdx++, step = newChildren.next()) {
                                var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
                                if (_newFiber3 === null) {
                                    continue;
                                }
                                lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
                                if (previousNewFiber === null) {
                                    // TODO: Move out of the loop. This only happens for the first run.
                                    resultingFirstChild = _newFiber3;
                                }
                                else {
                                    previousNewFiber.sibling = _newFiber3;
                                }
                                previousNewFiber = _newFiber3;
                            }
                            return resultingFirstChild;
                        }
                        // Add all children to a key map for quick lookups.
                        var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
                        // Keep scanning and use the map to restore deleted items as moves.
                        for (; !step.done; newIdx++, step = newChildren.next()) {
                            var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
                            if (_newFiber4 !== null) {
                                if (shouldTrackSideEffects) {
                                    if (_newFiber4.alternate !== null) {
                                        // The new fiber is a work in progress, but if there exists a
                                        // current, that means that we reused the fiber. We need to delete
                                        // it from the child list so that we don't add it to the deletion
                                        // list.
                                        existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
                                    }
                                }
                                lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
                                if (previousNewFiber === null) {
                                    resultingFirstChild = _newFiber4;
                                }
                                else {
                                    previousNewFiber.sibling = _newFiber4;
                                }
                                previousNewFiber = _newFiber4;
                            }
                        }
                        if (shouldTrackSideEffects) {
                            // Any existing children that weren't consumed above were deleted. We need
                            // to add them to the deletion list.
                            existingChildren.forEach(function (child) {
                                return deleteChild(returnFiber, child);
                            });
                        }
                        return resultingFirstChild;
                    }
                    function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
                        // There's no need to check for keys on text nodes since we don't have a
                        // way to define them.
                        if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
                            // We already have an existing node so let's just update it and delete
                            // the rest.
                            deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
                            var existing = useFiber(currentFirstChild, textContent, expirationTime);
                            existing.return = returnFiber;
                            return existing;
                        }
                        // The existing first child is not a text node so we need to create one
                        // and delete the existing ones.
                        deleteRemainingChildren(returnFiber, currentFirstChild);
                        var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
                        created.return = returnFiber;
                        return created;
                    }
                    function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
                        var key = element.key;
                        var child = currentFirstChild;
                        while (child !== null) {
                            // TODO: If key === null and child.key === null, then this only applies to
                            // the first item in the list.
                            if (child.key === key) {
                                if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) {
                                    deleteRemainingChildren(returnFiber, child.sibling);
                                    var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
                                    existing.ref = coerceRef(returnFiber, child, element);
                                    existing.return = returnFiber;
                                    {
                                        existing._debugSource = element._source;
                                        existing._debugOwner = element._owner;
                                    }
                                    return existing;
                                }
                                else {
                                    deleteRemainingChildren(returnFiber, child);
                                    break;
                                }
                            }
                            else {
                                deleteChild(returnFiber, child);
                            }
                            child = child.sibling;
                        }
                        if (element.type === REACT_FRAGMENT_TYPE) {
                            var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
                            created.return = returnFiber;
                            return created;
                        }
                        else {
                            var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
                            _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
                            _created4.return = returnFiber;
                            return _created4;
                        }
                    }
                    function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
                        var key = portal.key;
                        var child = currentFirstChild;
                        while (child !== null) {
                            // TODO: If key === null and child.key === null, then this only applies to
                            // the first item in the list.
                            if (child.key === key) {
                                if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
                                    deleteRemainingChildren(returnFiber, child.sibling);
                                    var existing = useFiber(child, portal.children || [], expirationTime);
                                    existing.return = returnFiber;
                                    return existing;
                                }
                                else {
                                    deleteRemainingChildren(returnFiber, child);
                                    break;
                                }
                            }
                            else {
                                deleteChild(returnFiber, child);
                            }
                            child = child.sibling;
                        }
                        var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
                        created.return = returnFiber;
                        return created;
                    }
                    // This API will tag the children with the side-effect of the reconciliation
                    // itself. They will be added to the side-effect list as we pass through the
                    // children and the parent.
                    function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
                        // This function is not recursive.
                        // If the top level item is an array, we treat it as a set of children,
                        // not as a fragment. Nested arrays on the other hand will be treated as
                        // fragment nodes. Recursion happens at the normal flow.
                        // Handle top level unkeyed fragments as if they were arrays.
                        // This leads to an ambiguity between <>{[...]}</> and <>...</>.
                        // We treat the ambiguous cases above the same.
                        var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
                        if (isUnkeyedTopLevelFragment) {
                            newChild = newChild.props.children;
                        }
                        // Handle object types
                        var isObject = typeof newChild === 'object' && newChild !== null;
                        if (isObject) {
                            switch (newChild.$$typeof) {
                                case REACT_ELEMENT_TYPE:
                                    return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
                                case REACT_PORTAL_TYPE:
                                    return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
                            }
                        }
                        if (typeof newChild === 'string' || typeof newChild === 'number') {
                            return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
                        }
                        if (isArray$1(newChild)) {
                            return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
                        }
                        if (getIteratorFn(newChild)) {
                            return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
                        }
                        if (isObject) {
                            throwOnInvalidObjectType(returnFiber, newChild);
                        }
                        {
                            if (typeof newChild === 'function') {
                                warnOnFunctionType();
                            }
                        }
                        if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
                            // If the new child is undefined, and the return fiber is a composite
                            // component, throw an error. If Fiber return types are disabled,
                            // we already threw above.
                            switch (returnFiber.tag) {
                                case ClassComponent:
                                case ClassComponentLazy:
                                    {
                                        {
                                            var instance = returnFiber.stateNode;
                                            if (instance.render._isMockFunction) {
                                                // We allow auto-mocks to proceed as if they're returning null.
                                                break;
                                            }
                                        }
                                    }
                                // Intentionally fall through to the next case, which handles both
                                // functions and classes
                                // eslint-disable-next-lined no-fallthrough
                                case FunctionalComponent:
                                    {
                                        var Component = returnFiber.type;
                                        invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');
                                    }
                            }
                        }
                        // Remaining cases are all treated as empty.
                        return deleteRemainingChildren(returnFiber, currentFirstChild);
                    }
                    return reconcileChildFibers;
                }
                var reconcileChildFibers = ChildReconciler(true);
                var mountChildFibers = ChildReconciler(false);
                function cloneChildFibers(current$$1, workInProgress) {
                    !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;
                    if (workInProgress.child === null) {
                        return;
                    }
                    var currentChild = workInProgress.child;
                    var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
                    workInProgress.child = newChild;
                    newChild.return = workInProgress;
                    while (currentChild.sibling !== null) {
                        currentChild = currentChild.sibling;
                        newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
                        newChild.return = workInProgress;
                    }
                    newChild.sibling = null;
                }
                // The deepest Fiber on the stack involved in a hydration context.
                // This may have been an insertion or a hydration.
                var hydrationParentFiber = null;
                var nextHydratableInstance = null;
                var isHydrating = false;
                function enterHydrationState(fiber) {
                    if (!supportsHydration) {
                        return false;
                    }
                    var parentInstance = fiber.stateNode.containerInfo;
                    nextHydratableInstance = getFirstHydratableChild(parentInstance);
                    hydrationParentFiber = fiber;
                    isHydrating = true;
                    return true;
                }
                function deleteHydratableInstance(returnFiber, instance) {
                    {
                        switch (returnFiber.tag) {
                            case HostRoot:
                                didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
                                break;
                            case HostComponent:
                                didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
                                break;
                        }
                    }
                    var childToDelete = createFiberFromHostInstanceForDeletion();
                    childToDelete.stateNode = instance;
                    childToDelete.return = returnFiber;
                    childToDelete.effectTag = Deletion;
                    // This might seem like it belongs on progressedFirstDeletion. However,
                    // these children are not part of the reconciliation list of children.
                    // Even if we abort and rereconcile the children, that will try to hydrate
                    // again and the nodes are still in the host tree so these will be
                    // recreated.
                    if (returnFiber.lastEffect !== null) {
                        returnFiber.lastEffect.nextEffect = childToDelete;
                        returnFiber.lastEffect = childToDelete;
                    }
                    else {
                        returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
                    }
                }
                function insertNonHydratedInstance(returnFiber, fiber) {
                    fiber.effectTag |= Placement;
                    {
                        switch (returnFiber.tag) {
                            case HostRoot:
                                {
                                    var parentContainer = returnFiber.stateNode.containerInfo;
                                    switch (fiber.tag) {
                                        case HostComponent:
                                            var type = fiber.type;
                                            var props = fiber.pendingProps;
                                            didNotFindHydratableContainerInstance(parentContainer, type, props);
                                            break;
                                        case HostText:
                                            var text = fiber.pendingProps;
                                            didNotFindHydratableContainerTextInstance(parentContainer, text);
                                            break;
                                    }
                                    break;
                                }
                            case HostComponent:
                                {
                                    var parentType = returnFiber.type;
                                    var parentProps = returnFiber.memoizedProps;
                                    var parentInstance = returnFiber.stateNode;
                                    switch (fiber.tag) {
                                        case HostComponent:
                                            var _type = fiber.type;
                                            var _props = fiber.pendingProps;
                                            didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
                                            break;
                                        case HostText:
                                            var _text = fiber.pendingProps;
                                            didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
                                            break;
                                    }
                                    break;
                                }
                            default:
                                return;
                        }
                    }
                }
                function tryHydrate(fiber, nextInstance) {
                    switch (fiber.tag) {
                        case HostComponent:
                            {
                                var type = fiber.type;
                                var props = fiber.pendingProps;
                                var instance = canHydrateInstance(nextInstance, type, props);
                                if (instance !== null) {
                                    fiber.stateNode = instance;
                                    return true;
                                }
                                return false;
                            }
                        case HostText:
                            {
                                var text = fiber.pendingProps;
                                var textInstance = canHydrateTextInstance(nextInstance, text);
                                if (textInstance !== null) {
                                    fiber.stateNode = textInstance;
                                    return true;
                                }
                                return false;
                            }
                        default:
                            return false;
                    }
                }
                function tryToClaimNextHydratableInstance(fiber) {
                    if (!isHydrating) {
                        return;
                    }
                    var nextInstance = nextHydratableInstance;
                    if (!nextInstance) {
                        // Nothing to hydrate. Make it an insertion.
                        insertNonHydratedInstance(hydrationParentFiber, fiber);
                        isHydrating = false;
                        hydrationParentFiber = fiber;
                        return;
                    }
                    var firstAttemptedInstance = nextInstance;
                    if (!tryHydrate(fiber, nextInstance)) {
                        // If we can't hydrate this instance let's try the next one.
                        // We use this as a heuristic. It's based on intuition and not data so it
                        // might be flawed or unnecessary.
                        nextInstance = getNextHydratableSibling(firstAttemptedInstance);
                        if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
                            // Nothing to hydrate. Make it an insertion.
                            insertNonHydratedInstance(hydrationParentFiber, fiber);
                            isHydrating = false;
                            hydrationParentFiber = fiber;
                            return;
                        }
                        // We matched the next one, we'll now assume that the first one was
                        // superfluous and we'll delete it. Since we can't eagerly delete it
                        // we'll have to schedule a deletion. To do that, this node needs a dummy
                        // fiber associated with it.
                        deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
                    }
                    hydrationParentFiber = fiber;
                    nextHydratableInstance = getFirstHydratableChild(nextInstance);
                }
                function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
                    if (!supportsHydration) {
                        invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
                    }
                    var instance = fiber.stateNode;
                    var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
                    // TODO: Type this specific to this type of component.
                    fiber.updateQueue = updatePayload;
                    // If the update payload indicates that there is a change or if there
                    // is a new ref we mark this as an update.
                    if (updatePayload !== null) {
                        return true;
                    }
                    return false;
                }
                function prepareToHydrateHostTextInstance(fiber) {
                    if (!supportsHydration) {
                        invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
                    }
                    var textInstance = fiber.stateNode;
                    var textContent = fiber.memoizedProps;
                    var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
                    {
                        if (shouldUpdate) {
                            // We assume that prepareToHydrateHostTextInstance is called in a context where the
                            // hydration parent is the parent host component of this host text.
                            var returnFiber = hydrationParentFiber;
                            if (returnFiber !== null) {
                                switch (returnFiber.tag) {
                                    case HostRoot:
                                        {
                                            var parentContainer = returnFiber.stateNode.containerInfo;
                                            didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
                                            break;
                                        }
                                    case HostComponent:
                                        {
                                            var parentType = returnFiber.type;
                                            var parentProps = returnFiber.memoizedProps;
                                            var parentInstance = returnFiber.stateNode;
                                            didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
                                            break;
                                        }
                                }
                            }
                        }
                    }
                    return shouldUpdate;
                }
                function popToNextHostParent(fiber) {
                    var parent = fiber.return;
                    while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
                        parent = parent.return;
                    }
                    hydrationParentFiber = parent;
                }
                function popHydrationState(fiber) {
                    if (!supportsHydration) {
                        return false;
                    }
                    if (fiber !== hydrationParentFiber) {
                        // We're deeper than the current hydration context, inside an inserted
                        // tree.
                        return false;
                    }
                    if (!isHydrating) {
                        // If we're not currently hydrating but we're in a hydration context, then
                        // we were an insertion and now need to pop up reenter hydration of our
                        // siblings.
                        popToNextHostParent(fiber);
                        isHydrating = true;
                        return false;
                    }
                    var type = fiber.type;
                    // If we have any remaining hydratable nodes, we need to delete them now.
                    // We only do this deeper than head and body since they tend to have random
                    // other nodes in them. We also ignore components with pure text content in
                    // side of them.
                    // TODO: Better heuristic.
                    if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
                        var nextInstance = nextHydratableInstance;
                        while (nextInstance) {
                            deleteHydratableInstance(fiber, nextInstance);
                            nextInstance = getNextHydratableSibling(nextInstance);
                        }
                    }
                    popToNextHostParent(fiber);
                    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
                    return true;
                }
                function resetHydrationState() {
                    if (!supportsHydration) {
                        return;
                    }
                    hydrationParentFiber = null;
                    nextHydratableInstance = null;
                    isHydrating = false;
                }
                function readLazyComponentType(thenable) {
                    var status = thenable._reactStatus;
                    switch (status) {
                        case Resolved:
                            var Component = thenable._reactResult;
                            return Component;
                        case Rejected:
                            throw thenable._reactResult;
                        case Pending:
                            throw thenable;
                        default:
                            {
                                thenable._reactStatus = Pending;
                                thenable.then(function (resolvedValue) {
                                    if (thenable._reactStatus === Pending) {
                                        thenable._reactStatus = Resolved;
                                        if (typeof resolvedValue === 'object' && resolvedValue !== null) {
                                            // If the `default` property is not empty, assume it's the result
                                            // of an async import() and use that. Otherwise, use the
                                            // resolved value itself.
                                            var defaultExport = resolvedValue.default;
                                            resolvedValue = defaultExport !== undefined && defaultExport !== null ? defaultExport : resolvedValue;
                                        }
                                        else {
                                            resolvedValue = resolvedValue;
                                        }
                                        thenable._reactResult = resolvedValue;
                                    }
                                }, function (error) {
                                    if (thenable._reactStatus === Pending) {
                                        thenable._reactStatus = Rejected;
                                        thenable._reactResult = error;
                                    }
                                });
                                throw thenable;
                            }
                    }
                }
                var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
                var didWarnAboutBadClass = void 0;
                var didWarnAboutGetDerivedStateOnFunctionalComponent = void 0;
                var didWarnAboutStatelessRefs = void 0;
                {
                    didWarnAboutBadClass = {};
                    didWarnAboutGetDerivedStateOnFunctionalComponent = {};
                    didWarnAboutStatelessRefs = {};
                }
                function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
                    if (current$$1 === null) {
                        // If this is a fresh new component that hasn't been rendered yet, we
                        // won't update its child set by applying minimal side-effects. Instead,
                        // we will add them all to the child before it gets rendered. That means
                        // we can optimize this reconciliation pass by not tracking side-effects.
                        workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
                    }
                    else {
                        // If the current child is the same as the work in progress, it means that
                        // we haven't yet started any work on these children. Therefore, we use
                        // the clone algorithm to create a copy of all the current children.
                        // If we had any progressed work already, that is invalid at this point so
                        // let's throw it out.
                        workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
                    }
                }
                function updateForwardRef(current$$1, workInProgress, type, nextProps, renderExpirationTime) {
                    var render = type.render;
                    var ref = workInProgress.ref;
                    if (hasContextChanged()) {
                        // Normally we can bail out on props equality but if context has changed
                        // we don't do the bailout and we have to reuse existing props instead.
                    }
                    else if (workInProgress.memoizedProps === nextProps) {
                        var currentRef = current$$1 !== null ? current$$1.ref : null;
                        if (ref === currentRef) {
                            return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                        }
                    }
                    var nextChildren = void 0;
                    {
                        ReactCurrentOwner$3.current = workInProgress;
                        setCurrentPhase('render');
                        nextChildren = render(nextProps, ref);
                        setCurrentPhase(null);
                    }
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextProps);
                    return workInProgress.child;
                }
                function updateFragment(current$$1, workInProgress, renderExpirationTime) {
                    var nextChildren = workInProgress.pendingProps;
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextChildren);
                    return workInProgress.child;
                }
                function updateMode(current$$1, workInProgress, renderExpirationTime) {
                    var nextChildren = workInProgress.pendingProps.children;
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextChildren);
                    return workInProgress.child;
                }
                function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
                    if (enableProfilerTimer) {
                        workInProgress.effectTag |= Update;
                    }
                    var nextProps = workInProgress.pendingProps;
                    var nextChildren = nextProps.children;
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextProps);
                    return workInProgress.child;
                }
                function markRef(current$$1, workInProgress) {
                    var ref = workInProgress.ref;
                    if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
                        // Schedule a Ref effect
                        workInProgress.effectTag |= Ref;
                    }
                }
                function updateFunctionalComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
                    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
                    var context = getMaskedContext(workInProgress, unmaskedContext);
                    var nextChildren = void 0;
                    prepareToReadContext(workInProgress, renderExpirationTime);
                    {
                        ReactCurrentOwner$3.current = workInProgress;
                        setCurrentPhase('render');
                        nextChildren = Component(nextProps, context);
                        setCurrentPhase(null);
                    }
                    // React DevTools reads this flag.
                    workInProgress.effectTag |= PerformedWork;
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextProps);
                    return workInProgress.child;
                }
                function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
                    // Push context providers early to prevent context stack mismatches.
                    // During mounting we don't know the child context yet as the instance doesn't exist.
                    // We will invalidate the child context in finishClassComponent() right after rendering.
                    var hasContext = void 0;
                    if (isContextProvider(Component)) {
                        hasContext = true;
                        pushContextProvider(workInProgress);
                    }
                    else {
                        hasContext = false;
                    }
                    prepareToReadContext(workInProgress, renderExpirationTime);
                    var shouldUpdate = void 0;
                    if (current$$1 === null) {
                        if (workInProgress.stateNode === null) {
                            // In the initial pass we might need to construct the instance.
                            constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
                            mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
                            shouldUpdate = true;
                        }
                        else {
                            // In a resume, we'll already have an instance we can reuse.
                            shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
                        }
                    }
                    else {
                        shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
                    }
                    return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
                }
                function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
                    // Refs should update even if shouldComponentUpdate returns false
                    markRef(current$$1, workInProgress);
                    var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
                    if (!shouldUpdate && !didCaptureError) {
                        // Context providers should defer to sCU for rendering
                        if (hasContext) {
                            invalidateContextProvider(workInProgress, Component, false);
                        }
                        return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                    }
                    var instance = workInProgress.stateNode;
                    // Rerender
                    ReactCurrentOwner$3.current = workInProgress;
                    var nextChildren = void 0;
                    if (didCaptureError && (!enableGetDerivedStateFromCatch || typeof Component.getDerivedStateFromCatch !== 'function')) {
                        // If we captured an error, but getDerivedStateFrom catch is not defined,
                        // unmount all the children. componentDidCatch will schedule an update to
                        // re-render a fallback. This is temporary until we migrate everyone to
                        // the new API.
                        // TODO: Warn in a future release.
                        nextChildren = null;
                        if (enableProfilerTimer) {
                            stopProfilerTimerIfRunning(workInProgress);
                        }
                    }
                    else {
                        {
                            setCurrentPhase('render');
                            nextChildren = instance.render();
                            if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
                                instance.render();
                            }
                            setCurrentPhase(null);
                        }
                    }
                    // React DevTools reads this flag.
                    workInProgress.effectTag |= PerformedWork;
                    if (current$$1 !== null && didCaptureError) {
                        // If we're recovering from an error, reconcile twice: first to delete
                        // all the existing children.
                        reconcileChildren(current$$1, workInProgress, null, renderExpirationTime);
                        workInProgress.child = null;
                        // Now we can continue reconciling like normal. This has the effect of
                        // remounting all children regardless of whether their their
                        // identity matches.
                    }
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    // Memoize props and state using the values we just used to render.
                    // TODO: Restructure so we never read values from the instance.
                    memoizeState(workInProgress, instance.state);
                    memoizeProps(workInProgress, instance.props);
                    // The context might have changed so we need to recalculate it.
                    if (hasContext) {
                        invalidateContextProvider(workInProgress, Component, true);
                    }
                    return workInProgress.child;
                }
                function pushHostRootContext(workInProgress) {
                    var root = workInProgress.stateNode;
                    if (root.pendingContext) {
                        pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
                    }
                    else if (root.context) {
                        // Should always be set
                        pushTopLevelContextObject(workInProgress, root.context, false);
                    }
                    pushHostContainer(workInProgress, root.containerInfo);
                }
                function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
                    pushHostRootContext(workInProgress);
                    var updateQueue = workInProgress.updateQueue;
                    !(updateQueue !== null) ? invariant(false, 'If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    var nextProps = workInProgress.pendingProps;
                    var prevState = workInProgress.memoizedState;
                    var prevChildren = prevState !== null ? prevState.element : null;
                    processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
                    var nextState = workInProgress.memoizedState;
                    // Caution: React DevTools currently depends on this property
                    // being called "element".
                    var nextChildren = nextState.element;
                    if (nextChildren === prevChildren) {
                        // If the state is the same as before, that's a bailout because we had
                        // no work that expires at this time.
                        resetHydrationState();
                        return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                    }
                    var root = workInProgress.stateNode;
                    if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
                        // If we don't have any current children this might be the first pass.
                        // We always try to hydrate. If this isn't a hydration pass there won't
                        // be any children to hydrate which is effectively the same thing as
                        // not hydrating.
                        // This is a bit of a hack. We track the host root as a placement to
                        // know that we're currently in a mounting state. That way isMounted
                        // works as expected. We must reset this before committing.
                        // TODO: Delete this when we delete isMounted and findDOMNode.
                        workInProgress.effectTag |= Placement;
                        // Ensure that children mount into this root without tracking
                        // side-effects. This ensures that we don't store Placement effects on
                        // nodes that will be hydrated.
                        workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
                    }
                    else {
                        // Otherwise reset hydration state in case we aborted and resumed another
                        // root.
                        reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                        resetHydrationState();
                    }
                    return workInProgress.child;
                }
                function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
                    pushHostContext(workInProgress);
                    if (current$$1 === null) {
                        tryToClaimNextHydratableInstance(workInProgress);
                    }
                    var type = workInProgress.type;
                    var nextProps = workInProgress.pendingProps;
                    var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
                    var nextChildren = nextProps.children;
                    var isDirectTextChild = shouldSetTextContent(type, nextProps);
                    if (isDirectTextChild) {
                        // We special case a direct text child of a host node. This is a common
                        // case. We won't handle it as a reified child. We will instead handle
                        // this in the host environment that also have access to this prop. That
                        // avoids allocating another HostText fiber and traversing it.
                        nextChildren = null;
                    }
                    else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
                        // If we're switching from a direct text child to a normal child, or to
                        // empty, we need to schedule the text content to be reset.
                        workInProgress.effectTag |= ContentReset;
                    }
                    markRef(current$$1, workInProgress);
                    // Check the host config to see if the children are offscreen/hidden.
                    if (renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps)) {
                        // Schedule this fiber to re-render at offscreen priority. Then bailout.
                        workInProgress.expirationTime = Never;
                        workInProgress.memoizedProps = nextProps;
                        return null;
                    }
                    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                    memoizeProps(workInProgress, nextProps);
                    return workInProgress.child;
                }
                function updateHostText(current$$1, workInProgress) {
                    if (current$$1 === null) {
                        tryToClaimNextHydratableInstance(workInProgress);
                    }
                    var nextProps = workInProgress.pendingProps;
                    memoizeProps(workInProgress, nextProps);
                    // Nothing to do here. This is terminal. We'll do the completion step
                    // immediately after.
                    return null;
                }
                function resolveDefaultProps(Component, baseProps) {
                    if (Component && Component.defaultProps) {
                        // Resolve default props. Taken from ReactElement
                        var props = _assign({}, baseProps);
                        var defaultProps = Component.defaultProps;
                        for (var propName in defaultProps) {
                            if (props[propName] === undefined) {
                                props[propName] = defaultProps[propName];
                            }
                        }
                        return props;
                    }
                    return baseProps;
                }
                function mountIndeterminateComponent(current$$1, workInProgress, Component, renderExpirationTime) {
                    !(current$$1 === null) ? invariant(false, 'An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    var props = workInProgress.pendingProps;
                    if (typeof Component === 'object' && Component !== null && typeof Component.then === 'function') {
                        Component = readLazyComponentType(Component);
                        var resolvedTag = workInProgress.tag = resolveLazyComponentTag(workInProgress, Component);
                        var resolvedProps = resolveDefaultProps(Component, props);
                        switch (resolvedTag) {
                            case FunctionalComponentLazy:
                                {
                                    return updateFunctionalComponent(current$$1, workInProgress, Component, resolvedProps, renderExpirationTime);
                                }
                            case ClassComponentLazy:
                                {
                                    return updateClassComponent(current$$1, workInProgress, Component, resolvedProps, renderExpirationTime);
                                }
                            case ForwardRefLazy:
                                {
                                    return updateForwardRef(current$$1, workInProgress, Component, resolvedProps, renderExpirationTime);
                                }
                            default:
                                {
                                    // This message intentionally doesn't metion ForwardRef because the
                                    // fact that it's a separate type of work is an implementation detail.
                                    invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
                                }
                        }
                    }
                    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
                    var context = getMaskedContext(workInProgress, unmaskedContext);
                    prepareToReadContext(workInProgress, renderExpirationTime);
                    var value = void 0;
                    {
                        if (Component.prototype && typeof Component.prototype.render === 'function') {
                            var componentName = getComponentName(Component) || 'Unknown';
                            if (!didWarnAboutBadClass[componentName]) {
                                warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
                                didWarnAboutBadClass[componentName] = true;
                            }
                        }
                        if (workInProgress.mode & StrictMode) {
                            ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
                        }
                        ReactCurrentOwner$3.current = workInProgress;
                        value = Component(props, context);
                    }
                    // React DevTools reads this flag.
                    workInProgress.effectTag |= PerformedWork;
                    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
                        // Proceed under the assumption that this is a class instance
                        workInProgress.tag = ClassComponent;
                        // Push context providers early to prevent context stack mismatches.
                        // During mounting we don't know the child context yet as the instance doesn't exist.
                        // We will invalidate the child context in finishClassComponent() right after rendering.
                        var hasContext = false;
                        if (isContextProvider(Component)) {
                            hasContext = true;
                            pushContextProvider(workInProgress);
                        }
                        else {
                            hasContext = false;
                        }
                        workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
                        var getDerivedStateFromProps = Component.getDerivedStateFromProps;
                        if (typeof getDerivedStateFromProps === 'function') {
                            applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
                        }
                        adoptClassInstance(workInProgress, value);
                        mountClassInstance(workInProgress, Component, props, renderExpirationTime);
                        return finishClassComponent(current$$1, workInProgress, Component, true, hasContext, renderExpirationTime);
                    }
                    else {
                        // Proceed under the assumption that this is a functional component
                        workInProgress.tag = FunctionalComponent;
                        {
                            if (Component) {
                                !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;
                            }
                            if (workInProgress.ref !== null) {
                                var info = '';
                                var ownerName = getCurrentFiberOwnerNameInDevOrNull();
                                if (ownerName) {
                                    info += '\n\nCheck the render method of `' + ownerName + '`.';
                                }
                                var warningKey = ownerName || workInProgress._debugID || '';
                                var debugSource = workInProgress._debugSource;
                                if (debugSource) {
                                    warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
                                }
                                if (!didWarnAboutStatelessRefs[warningKey]) {
                                    didWarnAboutStatelessRefs[warningKey] = true;
                                    warning$1(false, 'Stateless function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
                                }
                            }
                            if (typeof Component.getDerivedStateFromProps === 'function') {
                                var _componentName = getComponentName(Component) || 'Unknown';
                                if (!didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName]) {
                                    warningWithoutStack$1(false, '%s: Stateless functional components do not support getDerivedStateFromProps.', _componentName);
                                    didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = true;
                                }
                            }
                        }
                        reconcileChildren(current$$1, workInProgress, value, renderExpirationTime);
                        memoizeProps(workInProgress, props);
                        return workInProgress.child;
                    }
                }
                function updatePlaceholderComponent(current$$1, workInProgress, renderExpirationTime) {
                    if (enableSuspense) {
                        var nextProps = workInProgress.pendingProps;
                        // Check if we already attempted to render the normal state. If we did,
                        // and we timed out, render the placeholder state.
                        var alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect;
                        var nextDidTimeout = void 0;
                        if (current$$1 !== null && workInProgress.updateQueue !== null) {
                            // We're outside strict mode. Something inside this Placeholder boundary
                            // suspended during the last commit. Switch to the placholder.
                            workInProgress.updateQueue = null;
                            nextDidTimeout = true;
                            // If we're recovering from an error, reconcile twice: first to delete
                            // all the existing children.
                            reconcileChildren(current$$1, workInProgress, null, renderExpirationTime);
                            current$$1.child = null;
                            // Now we can continue reconciling like normal. This has the effect of
                            // remounting all children regardless of whether their their
                            // identity matches.
                        }
                        else {
                            nextDidTimeout = !alreadyCaptured;
                        }
                        if ((workInProgress.mode & StrictMode) !== NoEffect) {
                            if (nextDidTimeout) {
                                // If the timed-out view commits, schedule an update effect to record
                                // the committed time.
                                workInProgress.effectTag |= Update;
                            }
                            else {
                                // The state node points to the time at which placeholder timed out.
                                // We can clear it once we switch back to the normal children.
                                workInProgress.stateNode = null;
                            }
                        }
                        // If the `children` prop is a function, treat it like a render prop.
                        // TODO: This is temporary until we finalize a lower level API.
                        var children = nextProps.children;
                        var nextChildren = void 0;
                        if (typeof children === 'function') {
                            nextChildren = children(nextDidTimeout);
                        }
                        else {
                            nextChildren = nextDidTimeout ? nextProps.fallback : children;
                        }
                        workInProgress.memoizedProps = nextProps;
                        workInProgress.memoizedState = nextDidTimeout;
                        reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                        return workInProgress.child;
                    }
                    else {
                        return null;
                    }
                }
                function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
                    pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
                    var nextChildren = workInProgress.pendingProps;
                    if (current$$1 === null) {
                        // Portals are special because we don't append the children during mount
                        // but at commit. Therefore we need to track insertions which the normal
                        // flow doesn't do during mount. This doesn't happen at the root because
                        // the root always starts with a "current" with a null child.
                        // TODO: Consider unifying this with how the root works.
                        workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
                        memoizeProps(workInProgress, nextChildren);
                    }
                    else {
                        reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
                        memoizeProps(workInProgress, nextChildren);
                    }
                    return workInProgress.child;
                }
                function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
                    var providerType = workInProgress.type;
                    var context = providerType._context;
                    var newProps = workInProgress.pendingProps;
                    var oldProps = workInProgress.memoizedProps;
                    var newValue = newProps.value;
                    workInProgress.memoizedProps = newProps;
                    {
                        var providerPropTypes = workInProgress.type.propTypes;
                        if (providerPropTypes) {
                            checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
                        }
                    }
                    pushProvider(workInProgress, newValue);
                    if (oldProps !== null) {
                        var oldValue = oldProps.value;
                        var changedBits = calculateChangedBits(context, newValue, oldValue);
                        if (changedBits === 0) {
                            // No change. Bailout early if children are the same.
                            if (oldProps.children === newProps.children && !hasContextChanged()) {
                                return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                            }
                        }
                        else {
                            // The context value changed. Search for matching consumers and schedule
                            // them to update.
                            propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
                        }
                    }
                    var newChildren = newProps.children;
                    reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
                    return workInProgress.child;
                }
                function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
                    var context = workInProgress.type;
                    var newProps = workInProgress.pendingProps;
                    var render = newProps.children;
                    {
                        !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
                    }
                    prepareToReadContext(workInProgress, renderExpirationTime);
                    var newValue = readContext(context, newProps.unstable_observedBits);
                    var newChildren = void 0;
                    {
                        ReactCurrentOwner$3.current = workInProgress;
                        setCurrentPhase('render');
                        newChildren = render(newValue);
                        setCurrentPhase(null);
                    }
                    // React DevTools reads this flag.
                    workInProgress.effectTag |= PerformedWork;
                    reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
                    workInProgress.memoizedProps = newProps;
                    return workInProgress.child;
                }
                /*
                  function reuseChildrenEffects(returnFiber : Fiber, firstChild : Fiber) {
                    let child = firstChild;
                    do {
                      // Ensure that the first and last effect of the parent corresponds
                      // to the children's first and last effect.
                      if (!returnFiber.firstEffect) {
                        returnFiber.firstEffect = child.firstEffect;
                      }
                      if (child.lastEffect) {
                        if (returnFiber.lastEffect) {
                          returnFiber.lastEffect.nextEffect = child.firstEffect;
                        }
                        returnFiber.lastEffect = child.lastEffect;
                      }
                    } while (child = child.sibling);
                  }
                  */
                function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
                    cancelWorkTimer(workInProgress);
                    if (current$$1 !== null) {
                        // Reuse previous context list
                        workInProgress.firstContextDependency = current$$1.firstContextDependency;
                    }
                    if (enableProfilerTimer) {
                        // Don't update "base" render times for bailouts.
                        stopProfilerTimerIfRunning(workInProgress);
                    }
                    // Check if the children have any pending work.
                    var childExpirationTime = workInProgress.childExpirationTime;
                    if (childExpirationTime === NoWork || childExpirationTime > renderExpirationTime) {
                        // The children don't have any work either. We can skip them.
                        // TODO: Once we add back resuming, we should check if the children are
                        // a work-in-progress set. If so, we need to transfer their effects.
                        return null;
                    }
                    else {
                        // This fiber doesn't have work, but its subtree does. Clone the child
                        // fibers and continue.
                        cloneChildFibers(current$$1, workInProgress);
                        return workInProgress.child;
                    }
                }
                // TODO: Delete memoizeProps/State and move to reconcile/bailout instead
                function memoizeProps(workInProgress, nextProps) {
                    workInProgress.memoizedProps = nextProps;
                }
                function memoizeState(workInProgress, nextState) {
                    workInProgress.memoizedState = nextState;
                    // Don't reset the updateQueue, in case there are pending updates. Resetting
                    // is handled by processUpdateQueue.
                }
                function beginWork(current$$1, workInProgress, renderExpirationTime) {
                    var updateExpirationTime = workInProgress.expirationTime;
                    if (!hasContextChanged() && (updateExpirationTime === NoWork || updateExpirationTime > renderExpirationTime)) {
                        // This fiber does not have any pending work. Bailout without entering
                        // the begin phase. There's still some bookkeeping we that needs to be done
                        // in this optimized path, mostly pushing stuff onto the stack.
                        switch (workInProgress.tag) {
                            case HostRoot:
                                pushHostRootContext(workInProgress);
                                resetHydrationState();
                                break;
                            case HostComponent:
                                pushHostContext(workInProgress);
                                break;
                            case ClassComponent:
                                {
                                    var Component = workInProgress.type;
                                    if (isContextProvider(Component)) {
                                        pushContextProvider(workInProgress);
                                    }
                                    break;
                                }
                            case ClassComponentLazy:
                                {
                                    var thenable = workInProgress.type;
                                    var _Component = getResultFromResolvedThenable(thenable);
                                    if (isContextProvider(_Component)) {
                                        pushContextProvider(workInProgress);
                                    }
                                    break;
                                }
                            case HostPortal:
                                pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
                                break;
                            case ContextProvider:
                                {
                                    var newValue = workInProgress.memoizedProps.value;
                                    pushProvider(workInProgress, newValue);
                                    break;
                                }
                            case Profiler:
                                if (enableProfilerTimer) {
                                    workInProgress.effectTag |= Update;
                                }
                                break;
                        }
                        return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                    }
                    // Before entering the begin phase, clear the expiration time.
                    workInProgress.expirationTime = NoWork;
                    switch (workInProgress.tag) {
                        case IndeterminateComponent:
                            {
                                var _Component3 = workInProgress.type;
                                return mountIndeterminateComponent(current$$1, workInProgress, _Component3, renderExpirationTime);
                            }
                        case FunctionalComponent:
                            {
                                var _Component4 = workInProgress.type;
                                var _unresolvedProps = workInProgress.pendingProps;
                                return updateFunctionalComponent(current$$1, workInProgress, _Component4, _unresolvedProps, renderExpirationTime);
                            }
                        case FunctionalComponentLazy:
                            {
                                var _thenable2 = workInProgress.type;
                                var _Component5 = getResultFromResolvedThenable(_thenable2);
                                var _unresolvedProps2 = workInProgress.pendingProps;
                                var _child = updateFunctionalComponent(current$$1, workInProgress, _Component5, resolveDefaultProps(_Component5, _unresolvedProps2), renderExpirationTime);
                                workInProgress.memoizedProps = _unresolvedProps2;
                                return _child;
                            }
                        case ClassComponent:
                            {
                                var _Component6 = workInProgress.type;
                                var _unresolvedProps3 = workInProgress.pendingProps;
                                return updateClassComponent(current$$1, workInProgress, _Component6, _unresolvedProps3, renderExpirationTime);
                            }
                        case ClassComponentLazy:
                            {
                                var _thenable3 = workInProgress.type;
                                var _Component7 = getResultFromResolvedThenable(_thenable3);
                                var _unresolvedProps4 = workInProgress.pendingProps;
                                var _child2 = updateClassComponent(current$$1, workInProgress, _Component7, resolveDefaultProps(_Component7, _unresolvedProps4), renderExpirationTime);
                                workInProgress.memoizedProps = _unresolvedProps4;
                                return _child2;
                            }
                        case HostRoot:
                            return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
                        case HostComponent:
                            return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
                        case HostText:
                            return updateHostText(current$$1, workInProgress);
                        case PlaceholderComponent:
                            return updatePlaceholderComponent(current$$1, workInProgress, renderExpirationTime);
                        case HostPortal:
                            return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
                        case ForwardRef:
                            {
                                var type = workInProgress.type;
                                return updateForwardRef(current$$1, workInProgress, type, workInProgress.pendingProps, renderExpirationTime);
                            }
                        case ForwardRefLazy:
                            var _thenable = workInProgress.type;
                            var _Component2 = getResultFromResolvedThenable(_thenable);
                            var unresolvedProps = workInProgress.pendingProps;
                            var child = updateForwardRef(current$$1, workInProgress, _Component2, resolveDefaultProps(_Component2, unresolvedProps), renderExpirationTime);
                            workInProgress.memoizedProps = unresolvedProps;
                            return child;
                        case Fragment:
                            return updateFragment(current$$1, workInProgress, renderExpirationTime);
                        case Mode:
                            return updateMode(current$$1, workInProgress, renderExpirationTime);
                        case Profiler:
                            return updateProfiler(current$$1, workInProgress, renderExpirationTime);
                        case ContextProvider:
                            return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
                        case ContextConsumer:
                            return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
                        default:
                            invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
                    }
                }
                function markUpdate(workInProgress) {
                    // Tag the fiber with an update effect. This turns a Placement into
                    // a PlacementAndUpdate.
                    workInProgress.effectTag |= Update;
                }
                function markRef$1(workInProgress) {
                    workInProgress.effectTag |= Ref;
                }
                function appendAllChildren(parent, workInProgress) {
                    // We only have the top Fiber that was created but we need recurse down its
                    // children to find all the terminal nodes.
                    var node = workInProgress.child;
                    while (node !== null) {
                        if (node.tag === HostComponent || node.tag === HostText) {
                            appendInitialChild(parent, node.stateNode);
                        }
                        else if (node.tag === HostPortal) {
                            // If we have a portal child, then we don't want to traverse
                            // down its children. Instead, we'll get insertions from each child in
                            // the portal directly.
                        }
                        else if (node.child !== null) {
                            node.child.return = node;
                            node = node.child;
                            continue;
                        }
                        if (node === workInProgress) {
                            return;
                        }
                        while (node.sibling === null) {
                            if (node.return === null || node.return === workInProgress) {
                                return;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                }
                var updateHostContainer = void 0;
                var updateHostComponent$1 = void 0;
                var updateHostText$1 = void 0;
                if (supportsMutation) {
                    // Mutation mode
                    updateHostContainer = function (workInProgress) {
                        // Noop
                    };
                    updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
                        // If we have an alternate, that means this is an update and we need to
                        // schedule a side-effect to do the updates.
                        var oldProps = current.memoizedProps;
                        if (oldProps === newProps) {
                            // In mutation mode, this is sufficient for a bailout because
                            // we won't touch this node even if children changed.
                            return;
                        }
                        // If we get updated because one of our children updated, we don't
                        // have newProps so we'll have to reuse them.
                        // TODO: Split the update API as separate for the props vs. children.
                        // Even better would be if children weren't special cased at all tho.
                        var instance = workInProgress.stateNode;
                        var currentHostContext = getHostContext();
                        // TODO: Experiencing an error where oldProps is null. Suggests a host
                        // component is hitting the resume path. Figure out why. Possibly
                        // related to `hidden`.
                        var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
                        // TODO: Type this specific to this type of component.
                        workInProgress.updateQueue = updatePayload;
                        // If the update payload indicates that there is a change or if there
                        // is a new ref we mark this as an update. All the work is done in commitWork.
                        if (updatePayload) {
                            markUpdate(workInProgress);
                        }
                    };
                    updateHostText$1 = function (current, workInProgress, oldText, newText) {
                        // If the text differs, mark it as an update. All the work in done in commitWork.
                        if (oldText !== newText) {
                            markUpdate(workInProgress);
                        }
                    };
                }
                else if (supportsPersistence) {
                    // Persistent host tree mode
                    // An unfortunate fork of appendAllChildren because we have two different parent types.
                    var appendAllChildrenToContainer = function (containerChildSet, workInProgress) {
                        // We only have the top Fiber that was created but we need recurse down its
                        // children to find all the terminal nodes.
                        var node = workInProgress.child;
                        while (node !== null) {
                            if (node.tag === HostComponent || node.tag === HostText) {
                                appendChildToContainerChildSet(containerChildSet, node.stateNode);
                            }
                            else if (node.tag === HostPortal) {
                                // If we have a portal child, then we don't want to traverse
                                // down its children. Instead, we'll get insertions from each child in
                                // the portal directly.
                            }
                            else if (node.child !== null) {
                                node.child.return = node;
                                node = node.child;
                                continue;
                            }
                            if (node === workInProgress) {
                                return;
                            }
                            while (node.sibling === null) {
                                if (node.return === null || node.return === workInProgress) {
                                    return;
                                }
                                node = node.return;
                            }
                            node.sibling.return = node.return;
                            node = node.sibling;
                        }
                    };
                    updateHostContainer = function (workInProgress) {
                        var portalOrRoot = workInProgress.stateNode;
                        var childrenUnchanged = workInProgress.firstEffect === null;
                        if (childrenUnchanged) {
                            // No changes, just reuse the existing instance.
                        }
                        else {
                            var container = portalOrRoot.containerInfo;
                            var newChildSet = createContainerChildSet(container);
                            // If children might have changed, we have to add them all to the set.
                            appendAllChildrenToContainer(newChildSet, workInProgress);
                            portalOrRoot.pendingChildren = newChildSet;
                            // Schedule an update on the container to swap out the container.
                            markUpdate(workInProgress);
                            finalizeContainerChildren(container, newChildSet);
                        }
                    };
                    updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
                        var currentInstance = current.stateNode;
                        var oldProps = current.memoizedProps;
                        // If there are no effects associated with this node, then none of our children had any updates.
                        // This guarantees that we can reuse all of them.
                        var childrenUnchanged = workInProgress.firstEffect === null;
                        if (childrenUnchanged && oldProps === newProps) {
                            // No changes, just reuse the existing instance.
                            // Note that this might release a previous clone.
                            workInProgress.stateNode = currentInstance;
                            return;
                        }
                        var recyclableInstance = workInProgress.stateNode;
                        var currentHostContext = getHostContext();
                        var updatePayload = null;
                        if (oldProps !== newProps) {
                            updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
                        }
                        if (childrenUnchanged && updatePayload === null) {
                            // No changes, just reuse the existing instance.
                            // Note that this might release a previous clone.
                            workInProgress.stateNode = currentInstance;
                            return;
                        }
                        var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
                        if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
                            markUpdate(workInProgress);
                        }
                        workInProgress.stateNode = newInstance;
                        if (childrenUnchanged) {
                            // If there are no other effects in this tree, we need to flag this node as having one.
                            // Even though we're not going to use it for anything.
                            // Otherwise parents won't know that there are new children to propagate upwards.
                            markUpdate(workInProgress);
                        }
                        else {
                            // If children might have changed, we have to add them all to the set.
                            appendAllChildren(newInstance, workInProgress);
                        }
                    };
                    updateHostText$1 = function (current, workInProgress, oldText, newText) {
                        if (oldText !== newText) {
                            // If the text content differs, we'll create a new text instance for it.
                            var rootContainerInstance = getRootHostContainer();
                            var currentHostContext = getHostContext();
                            workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
                            // We'll have to mark it as having an effect, even though we won't use the effect for anything.
                            // This lets the parents know that at least one of their children has changed.
                            markUpdate(workInProgress);
                        }
                    };
                }
                else {
                    // No host operations
                    updateHostContainer = function (workInProgress) {
                        // Noop
                    };
                    updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
                        // Noop
                    };
                    updateHostText$1 = function (current, workInProgress, oldText, newText) {
                        // Noop
                    };
                }
                function completeWork(current, workInProgress, renderExpirationTime) {
                    var newProps = workInProgress.pendingProps;
                    switch (workInProgress.tag) {
                        case FunctionalComponent:
                        case FunctionalComponentLazy:
                            break;
                        case ClassComponent:
                            {
                                var Component = workInProgress.type;
                                if (isContextProvider(Component)) {
                                    popContext(workInProgress);
                                }
                                break;
                            }
                        case ClassComponentLazy:
                            {
                                var _Component = getResultFromResolvedThenable(workInProgress.type);
                                if (isContextProvider(_Component)) {
                                    popContext(workInProgress);
                                }
                                break;
                            }
                        case HostRoot:
                            {
                                popHostContainer(workInProgress);
                                popTopLevelContextObject(workInProgress);
                                var fiberRoot = workInProgress.stateNode;
                                if (fiberRoot.pendingContext) {
                                    fiberRoot.context = fiberRoot.pendingContext;
                                    fiberRoot.pendingContext = null;
                                }
                                if (current === null || current.child === null) {
                                    // If we hydrated, pop so that we can delete any remaining children
                                    // that weren't hydrated.
                                    popHydrationState(workInProgress);
                                    // This resets the hacky state to fix isMounted before committing.
                                    // TODO: Delete this when we delete isMounted and findDOMNode.
                                    workInProgress.effectTag &= ~Placement;
                                }
                                updateHostContainer(workInProgress);
                                break;
                            }
                        case HostComponent:
                            {
                                popHostContext(workInProgress);
                                var rootContainerInstance = getRootHostContainer();
                                var type = workInProgress.type;
                                if (current !== null && workInProgress.stateNode != null) {
                                    updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
                                    if (current.ref !== workInProgress.ref) {
                                        markRef$1(workInProgress);
                                    }
                                }
                                else {
                                    if (!newProps) {
                                        !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                                        // This can happen when we abort work.
                                        break;
                                    }
                                    var currentHostContext = getHostContext();
                                    // TODO: Move createInstance to beginWork and keep it on a context
                                    // "stack" as the parent. Then append children as we go in beginWork
                                    // or completeWork depending on we want to add then top->down or
                                    // bottom->up. Top->down is faster in IE11.
                                    var wasHydrated = popHydrationState(workInProgress);
                                    if (wasHydrated) {
                                        // TODO: Move this and createInstance step into the beginPhase
                                        // to consolidate.
                                        if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
                                            // If changes to the hydrated node needs to be applied at the
                                            // commit-phase we mark this as such.
                                            markUpdate(workInProgress);
                                        }
                                    }
                                    else {
                                        var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
                                        appendAllChildren(instance, workInProgress);
                                        // Certain renderers require commit-time effects for initial mount.
                                        // (eg DOM renderer supports auto-focus for certain elements).
                                        // Make sure such renderers get scheduled for later work.
                                        if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
                                            markUpdate(workInProgress);
                                        }
                                        workInProgress.stateNode = instance;
                                    }
                                    if (workInProgress.ref !== null) {
                                        // If there is a ref on a host node we need to schedule a callback
                                        markRef$1(workInProgress);
                                    }
                                }
                                break;
                            }
                        case HostText:
                            {
                                var newText = newProps;
                                if (current && workInProgress.stateNode != null) {
                                    var oldText = current.memoizedProps;
                                    // If we have an alternate, that means this is an update and we need
                                    // to schedule a side-effect to do the updates.
                                    updateHostText$1(current, workInProgress, oldText, newText);
                                }
                                else {
                                    if (typeof newText !== 'string') {
                                        !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                                        // This can happen when we abort work.
                                    }
                                    var _rootContainerInstance = getRootHostContainer();
                                    var _currentHostContext = getHostContext();
                                    var _wasHydrated = popHydrationState(workInProgress);
                                    if (_wasHydrated) {
                                        if (prepareToHydrateHostTextInstance(workInProgress)) {
                                            markUpdate(workInProgress);
                                        }
                                    }
                                    else {
                                        workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
                                    }
                                }
                                break;
                            }
                        case ForwardRef:
                        case ForwardRefLazy:
                            break;
                        case PlaceholderComponent:
                            break;
                        case Fragment:
                            break;
                        case Mode:
                            break;
                        case Profiler:
                            break;
                        case HostPortal:
                            popHostContainer(workInProgress);
                            updateHostContainer(workInProgress);
                            break;
                        case ContextProvider:
                            // Pop provider fiber
                            popProvider(workInProgress);
                            break;
                        case ContextConsumer:
                            break;
                        // Error cases
                        case IndeterminateComponent:
                            invariant(false, 'An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue.');
                        // eslint-disable-next-line no-fallthrough
                        default:
                            invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
                    }
                    return null;
                }
                // This module is forked in different environments.
                // By default, return `true` to log errors to the console.
                // Forks can return `false` if this isn't desirable.
                function showErrorDialog(capturedError) {
                    return true;
                }
                function logCapturedError(capturedError) {
                    var logError = showErrorDialog(capturedError);
                    // Allow injected showErrorDialog() to prevent default console.error logging.
                    // This enables renderers like ReactNative to better manage redbox behavior.
                    if (logError === false) {
                        return;
                    }
                    var error = capturedError.error;
                    {
                        var componentName = capturedError.componentName, componentStack = capturedError.componentStack, errorBoundaryName = capturedError.errorBoundaryName, errorBoundaryFound = capturedError.errorBoundaryFound, willRetry = capturedError.willRetry;
                        // Browsers support silencing uncaught errors by calling
                        // `preventDefault()` in window `error` handler.
                        // We record this information as an expando on the error.
                        if (error != null && error._suppressLogging) {
                            if (errorBoundaryFound && willRetry) {
                                // The error is recoverable and was silenced.
                                // Ignore it and don't print the stack addendum.
                                // This is handy for testing error boundaries without noise.
                                return;
                            }
                            // The error is fatal. Since the silencing might have
                            // been accidental, we'll surface it anyway.
                            // However, the browser would have silenced the original error
                            // so we'll print it first, and then print the stack addendum.
                            console.error(error);
                            // For a more detailed description of this block, see:
                            // https://github.com/facebook/react/pull/13384
                        }
                        var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
                        var errorBoundaryMessage = void 0;
                        // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
                        if (errorBoundaryFound && errorBoundaryName) {
                            if (willRetry) {
                                errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
                            }
                            else {
                                errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
                            }
                        }
                        else {
                            errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
                        }
                        var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
                        // In development, we provide our own message with just the component stack.
                        // We don't include the original error message and JS stack because the browser
                        // has already printed it. Even if the application swallows the error, it is still
                        // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
                        console.error(combinedMessage);
                    }
                }
                var emptyObject = {};
                var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
                {
                    didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
                }
                function logError(boundary, errorInfo) {
                    var source = errorInfo.source;
                    var stack = errorInfo.stack;
                    if (stack === null && source !== null) {
                        stack = getStackByFiberInDevAndProd(source);
                    }
                    var capturedError = {
                        componentName: source !== null ? getComponentName(source.type) : null,
                        componentStack: stack !== null ? stack : '',
                        error: errorInfo.value,
                        errorBoundary: null,
                        errorBoundaryName: null,
                        errorBoundaryFound: false,
                        willRetry: false
                    };
                    if (boundary !== null && boundary.tag === ClassComponent) {
                        capturedError.errorBoundary = boundary.stateNode;
                        capturedError.errorBoundaryName = getComponentName(boundary.type);
                        capturedError.errorBoundaryFound = true;
                        capturedError.willRetry = true;
                    }
                    try {
                        logCapturedError(capturedError);
                    }
                    catch (e) {
                        // This method must not throw, or React internal state will get messed up.
                        // If console.error is overridden, or logCapturedError() shows a dialog that throws,
                        // we want to report this error outside of the normal stack as a last resort.
                        // https://github.com/facebook/react/issues/13188
                        setTimeout(function () {
                            throw e;
                        });
                    }
                }
                var callComponentWillUnmountWithTimer = function (current$$1, instance) {
                    startPhaseTimer(current$$1, 'componentWillUnmount');
                    instance.props = current$$1.memoizedProps;
                    instance.state = current$$1.memoizedState;
                    instance.componentWillUnmount();
                    stopPhaseTimer();
                };
                // Capture errors so they don't interrupt unmounting.
                function safelyCallComponentWillUnmount(current$$1, instance) {
                    {
                        invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
                        if (hasCaughtError()) {
                            var unmountError = clearCaughtError();
                            captureCommitPhaseError(current$$1, unmountError);
                        }
                    }
                }
                function safelyDetachRef(current$$1) {
                    var ref = current$$1.ref;
                    if (ref !== null) {
                        if (typeof ref === 'function') {
                            {
                                invokeGuardedCallback(null, ref, null, null);
                                if (hasCaughtError()) {
                                    var refError = clearCaughtError();
                                    captureCommitPhaseError(current$$1, refError);
                                }
                            }
                        }
                        else {
                            ref.current = null;
                        }
                    }
                }
                function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
                    switch (finishedWork.tag) {
                        case ClassComponent:
                        case ClassComponentLazy:
                            {
                                if (finishedWork.effectTag & Snapshot) {
                                    if (current$$1 !== null) {
                                        var prevProps = current$$1.memoizedProps;
                                        var prevState = current$$1.memoizedState;
                                        startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
                                        var instance = finishedWork.stateNode;
                                        instance.props = finishedWork.memoizedProps;
                                        instance.state = finishedWork.memoizedState;
                                        var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState);
                                        {
                                            var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
                                            if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
                                                didWarnSet.add(finishedWork.type);
                                                warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
                                            }
                                        }
                                        instance.__reactInternalSnapshotBeforeUpdate = snapshot;
                                        stopPhaseTimer();
                                    }
                                }
                                return;
                            }
                        case HostRoot:
                        case HostComponent:
                        case HostText:
                        case HostPortal:
                            // Nothing to do for these component types
                            return;
                        default:
                            {
                                invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
                            }
                    }
                }
                function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
                    switch (finishedWork.tag) {
                        case ClassComponent:
                        case ClassComponentLazy:
                            {
                                var instance = finishedWork.stateNode;
                                if (finishedWork.effectTag & Update) {
                                    if (current$$1 === null) {
                                        startPhaseTimer(finishedWork, 'componentDidMount');
                                        instance.props = finishedWork.memoizedProps;
                                        instance.state = finishedWork.memoizedState;
                                        instance.componentDidMount();
                                        stopPhaseTimer();
                                    }
                                    else {
                                        var prevProps = current$$1.memoizedProps;
                                        var prevState = current$$1.memoizedState;
                                        startPhaseTimer(finishedWork, 'componentDidUpdate');
                                        instance.props = finishedWork.memoizedProps;
                                        instance.state = finishedWork.memoizedState;
                                        instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
                                        stopPhaseTimer();
                                    }
                                }
                                var updateQueue = finishedWork.updateQueue;
                                if (updateQueue !== null) {
                                    instance.props = finishedWork.memoizedProps;
                                    instance.state = finishedWork.memoizedState;
                                    commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
                                }
                                return;
                            }
                        case HostRoot:
                            {
                                var _updateQueue = finishedWork.updateQueue;
                                if (_updateQueue !== null) {
                                    var _instance = null;
                                    if (finishedWork.child !== null) {
                                        switch (finishedWork.child.tag) {
                                            case HostComponent:
                                                _instance = getPublicInstance(finishedWork.child.stateNode);
                                                break;
                                            case ClassComponent:
                                            case ClassComponentLazy:
                                                _instance = finishedWork.child.stateNode;
                                                break;
                                        }
                                    }
                                    commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
                                }
                                return;
                            }
                        case HostComponent:
                            {
                                var _instance2 = finishedWork.stateNode;
                                // Renderers may schedule work to be done after host components are mounted
                                // (eg DOM renderer may schedule auto-focus for inputs and form controls).
                                // These effects should only be committed when components are first mounted,
                                // aka when there is no current/alternate.
                                if (current$$1 === null && finishedWork.effectTag & Update) {
                                    var type = finishedWork.type;
                                    var props = finishedWork.memoizedProps;
                                    commitMount(_instance2, type, props, finishedWork);
                                }
                                return;
                            }
                        case HostText:
                            {
                                // We have no life-cycles associated with text.
                                return;
                            }
                        case HostPortal:
                            {
                                // We have no life-cycles associated with portals.
                                return;
                            }
                        case Profiler:
                            {
                                if (enableProfilerTimer) {
                                    var onRender = finishedWork.memoizedProps.onRender;
                                    if (enableSchedulerTracing) {
                                        onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
                                    }
                                    else {
                                        onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
                                    }
                                }
                                return;
                            }
                        case PlaceholderComponent:
                            {
                                if (enableSuspense) {
                                    if ((finishedWork.mode & StrictMode) === NoEffect) {
                                        // In loose mode, a placeholder times out by scheduling a synchronous
                                        // update in the commit phase. Use `updateQueue` field to signal that
                                        // the Timeout needs to switch to the placeholder. We don't need an
                                        // entire queue. Any non-null value works.
                                        // $FlowFixMe - Intentionally using a value other than an UpdateQueue.
                                        finishedWork.updateQueue = emptyObject;
                                        scheduleWork(finishedWork, Sync);
                                    }
                                    else {
                                        // In strict mode, the Update effect is used to record the time at
                                        // which the placeholder timed out.
                                        var currentTime = requestCurrentTime();
                                        finishedWork.stateNode = { timedOutAt: currentTime };
                                    }
                                }
                                return;
                            }
                        default:
                            {
                                invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
                            }
                    }
                }
                function commitAttachRef(finishedWork) {
                    var ref = finishedWork.ref;
                    if (ref !== null) {
                        var instance = finishedWork.stateNode;
                        var instanceToUse = void 0;
                        switch (finishedWork.tag) {
                            case HostComponent:
                                instanceToUse = getPublicInstance(instance);
                                break;
                            default:
                                instanceToUse = instance;
                        }
                        if (typeof ref === 'function') {
                            ref(instanceToUse);
                        }
                        else {
                            {
                                if (!ref.hasOwnProperty('current')) {
                                    warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
                                }
                            }
                            ref.current = instanceToUse;
                        }
                    }
                }
                function commitDetachRef(current$$1) {
                    var currentRef = current$$1.ref;
                    if (currentRef !== null) {
                        if (typeof currentRef === 'function') {
                            currentRef(null);
                        }
                        else {
                            currentRef.current = null;
                        }
                    }
                }
                // User-originating errors (lifecycles and refs) should not interrupt
                // deletion, so don't let them throw. Host-originating errors should
                // interrupt deletion, so it's okay
                function commitUnmount(current$$1) {
                    onCommitUnmount(current$$1);
                    switch (current$$1.tag) {
                        case ClassComponent:
                        case ClassComponentLazy:
                            {
                                safelyDetachRef(current$$1);
                                var instance = current$$1.stateNode;
                                if (typeof instance.componentWillUnmount === 'function') {
                                    safelyCallComponentWillUnmount(current$$1, instance);
                                }
                                return;
                            }
                        case HostComponent:
                            {
                                safelyDetachRef(current$$1);
                                return;
                            }
                        case HostPortal:
                            {
                                // TODO: this is recursive.
                                // We are also not using this parent because
                                // the portal will get pushed immediately.
                                if (supportsMutation) {
                                    unmountHostComponents(current$$1);
                                }
                                else if (supportsPersistence) {
                                    emptyPortalContainer(current$$1);
                                }
                                return;
                            }
                    }
                }
                function commitNestedUnmounts(root) {
                    // While we're inside a removed host node we don't want to call
                    // removeChild on the inner nodes because they're removed by the top
                    // call anyway. We also want to call componentWillUnmount on all
                    // composites before this host node is removed from the tree. Therefore
                    var node = root;
                    while (true) {
                        commitUnmount(node);
                        // Visit children because they may contain more composite or host nodes.
                        // Skip portals because commitUnmount() currently visits them recursively.
                        if (node.child !== null && (
                        // If we use mutation we drill down into portals using commitUnmount above.
                        // If we don't use mutation we drill down into portals here instead.
                        !supportsMutation || node.tag !== HostPortal)) {
                            node.child.return = node;
                            node = node.child;
                            continue;
                        }
                        if (node === root) {
                            return;
                        }
                        while (node.sibling === null) {
                            if (node.return === null || node.return === root) {
                                return;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                }
                function detachFiber(current$$1) {
                    // Cut off the return pointers to disconnect it from the tree. Ideally, we
                    // should clear the child pointer of the parent alternate to let this
                    // get GC:ed but we don't know which for sure which parent is the current
                    // one so we'll settle for GC:ing the subtree of this child. This child
                    // itself will be GC:ed when the parent updates the next time.
                    current$$1.return = null;
                    current$$1.child = null;
                    if (current$$1.alternate) {
                        current$$1.alternate.child = null;
                        current$$1.alternate.return = null;
                    }
                }
                function emptyPortalContainer(current$$1) {
                    if (!supportsPersistence) {
                        return;
                    }
                    var portal = current$$1.stateNode;
                    var containerInfo = portal.containerInfo;
                    var emptyChildSet = createContainerChildSet(containerInfo);
                    replaceContainerChildren(containerInfo, emptyChildSet);
                }
                function commitContainer(finishedWork) {
                    if (!supportsPersistence) {
                        return;
                    }
                    switch (finishedWork.tag) {
                        case ClassComponent:
                        case ClassComponentLazy:
                            {
                                return;
                            }
                        case HostComponent:
                            {
                                return;
                            }
                        case HostText:
                            {
                                return;
                            }
                        case HostRoot:
                        case HostPortal:
                            {
                                var portalOrRoot = finishedWork.stateNode;
                                var containerInfo = portalOrRoot.containerInfo, _pendingChildren = portalOrRoot.pendingChildren;
                                replaceContainerChildren(containerInfo, _pendingChildren);
                                return;
                            }
                        default:
                            {
                                invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
                            }
                    }
                }
                function getHostParentFiber(fiber) {
                    var parent = fiber.return;
                    while (parent !== null) {
                        if (isHostParent(parent)) {
                            return parent;
                        }
                        parent = parent.return;
                    }
                    invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
                }
                function isHostParent(fiber) {
                    return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
                }
                function getHostSibling(fiber) {
                    // We're going to search forward into the tree until we find a sibling host
                    // node. Unfortunately, if multiple insertions are done in a row we have to
                    // search past them. This leads to exponential search for the next sibling.
                    var node = fiber;
                    siblings: while (true) {
                        // If we didn't find anything, let's try the next sibling.
                        while (node.sibling === null) {
                            if (node.return === null || isHostParent(node.return)) {
                                // If we pop out of the root or hit the parent the fiber we are the
                                // last sibling.
                                return null;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                        while (node.tag !== HostComponent && node.tag !== HostText) {
                            // If it is not host node and, we might have a host node inside it.
                            // Try to search down until we find one.
                            if (node.effectTag & Placement) {
                                // If we don't have a child, try the siblings instead.
                                continue siblings;
                            }
                            // If we don't have a child, try the siblings instead.
                            // We also skip portals because they are not part of this host tree.
                            if (node.child === null || node.tag === HostPortal) {
                                continue siblings;
                            }
                            else {
                                node.child.return = node;
                                node = node.child;
                            }
                        }
                        // Check if this host node is stable or about to be placed.
                        if (!(node.effectTag & Placement)) {
                            // Found it!
                            return node.stateNode;
                        }
                    }
                }
                function commitPlacement(finishedWork) {
                    if (!supportsMutation) {
                        return;
                    }
                    // Recursively insert all host nodes into the parent.
                    var parentFiber = getHostParentFiber(finishedWork);
                    // Note: these two variables *must* always be updated together.
                    var parent = void 0;
                    var isContainer = void 0;
                    switch (parentFiber.tag) {
                        case HostComponent:
                            parent = parentFiber.stateNode;
                            isContainer = false;
                            break;
                        case HostRoot:
                            parent = parentFiber.stateNode.containerInfo;
                            isContainer = true;
                            break;
                        case HostPortal:
                            parent = parentFiber.stateNode.containerInfo;
                            isContainer = true;
                            break;
                        default:
                            invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
                    }
                    if (parentFiber.effectTag & ContentReset) {
                        // Reset the text content of the parent before doing any insertions
                        resetTextContent(parent);
                        // Clear ContentReset from the effect tag
                        parentFiber.effectTag &= ~ContentReset;
                    }
                    var before = getHostSibling(finishedWork);
                    // We only have the top Fiber that was inserted but we need recurse down its
                    // children to find all the terminal nodes.
                    var node = finishedWork;
                    while (true) {
                        if (node.tag === HostComponent || node.tag === HostText) {
                            if (before) {
                                if (isContainer) {
                                    insertInContainerBefore(parent, node.stateNode, before);
                                }
                                else {
                                    insertBefore(parent, node.stateNode, before);
                                }
                            }
                            else {
                                if (isContainer) {
                                    appendChildToContainer(parent, node.stateNode);
                                }
                                else {
                                    appendChild(parent, node.stateNode);
                                }
                            }
                        }
                        else if (node.tag === HostPortal) {
                            // If the insertion itself is a portal, then we don't want to traverse
                            // down its children. Instead, we'll get insertions from each child in
                            // the portal directly.
                        }
                        else if (node.child !== null) {
                            node.child.return = node;
                            node = node.child;
                            continue;
                        }
                        if (node === finishedWork) {
                            return;
                        }
                        while (node.sibling === null) {
                            if (node.return === null || node.return === finishedWork) {
                                return;
                            }
                            node = node.return;
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                }
                function unmountHostComponents(current$$1) {
                    // We only have the top Fiber that was deleted but we need recurse down its
                    var node = current$$1;
                    // Each iteration, currentParent is populated with node's host parent if not
                    // currentParentIsValid.
                    var currentParentIsValid = false;
                    // Note: these two variables *must* always be updated together.
                    var currentParent = void 0;
                    var currentParentIsContainer = void 0;
                    while (true) {
                        if (!currentParentIsValid) {
                            var parent = node.return;
                            findParent: while (true) {
                                !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                                switch (parent.tag) {
                                    case HostComponent:
                                        currentParent = parent.stateNode;
                                        currentParentIsContainer = false;
                                        break findParent;
                                    case HostRoot:
                                        currentParent = parent.stateNode.containerInfo;
                                        currentParentIsContainer = true;
                                        break findParent;
                                    case HostPortal:
                                        currentParent = parent.stateNode.containerInfo;
                                        currentParentIsContainer = true;
                                        break findParent;
                                }
                                parent = parent.return;
                            }
                            currentParentIsValid = true;
                        }
                        if (node.tag === HostComponent || node.tag === HostText) {
                            commitNestedUnmounts(node);
                            // After all the children have unmounted, it is now safe to remove the
                            // node from the tree.
                            if (currentParentIsContainer) {
                                removeChildFromContainer(currentParent, node.stateNode);
                            }
                            else {
                                removeChild(currentParent, node.stateNode);
                            }
                            // Don't visit children because we already visited them.
                        }
                        else if (node.tag === HostPortal) {
                            // When we go into a portal, it becomes the parent to remove from.
                            // We will reassign it back when we pop the portal on the way up.
                            currentParent = node.stateNode.containerInfo;
                            currentParentIsContainer = true;
                            // Visit children because portals might contain host components.
                            if (node.child !== null) {
                                node.child.return = node;
                                node = node.child;
                                continue;
                            }
                        }
                        else {
                            commitUnmount(node);
                            // Visit children because we may find more host components below.
                            if (node.child !== null) {
                                node.child.return = node;
                                node = node.child;
                                continue;
                            }
                        }
                        if (node === current$$1) {
                            return;
                        }
                        while (node.sibling === null) {
                            if (node.return === null || node.return === current$$1) {
                                return;
                            }
                            node = node.return;
                            if (node.tag === HostPortal) {
                                // When we go out of the portal, we need to restore the parent.
                                // Since we don't keep a stack of them, we will search for it.
                                currentParentIsValid = false;
                            }
                        }
                        node.sibling.return = node.return;
                        node = node.sibling;
                    }
                }
                function commitDeletion(current$$1) {
                    if (supportsMutation) {
                        // Recursively delete all host nodes from the parent.
                        // Detach refs and call componentWillUnmount() on the whole subtree.
                        unmountHostComponents(current$$1);
                    }
                    else {
                        // Detach refs and call componentWillUnmount() on the whole subtree.
                        commitNestedUnmounts(current$$1);
                    }
                    detachFiber(current$$1);
                }
                function commitWork(current$$1, finishedWork) {
                    if (!supportsMutation) {
                        commitContainer(finishedWork);
                        return;
                    }
                    switch (finishedWork.tag) {
                        case ClassComponent:
                        case ClassComponentLazy:
                            {
                                return;
                            }
                        case HostComponent:
                            {
                                var instance = finishedWork.stateNode;
                                if (instance != null) {
                                    // Commit the work prepared earlier.
                                    var newProps = finishedWork.memoizedProps;
                                    // For hydration we reuse the update path but we treat the oldProps
                                    // as the newProps. The updatePayload will contain the real change in
                                    // this case.
                                    var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
                                    var type = finishedWork.type;
                                    // TODO: Type the updateQueue to be specific to host components.
                                    var updatePayload = finishedWork.updateQueue;
                                    finishedWork.updateQueue = null;
                                    if (updatePayload !== null) {
                                        commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
                                    }
                                }
                                return;
                            }
                        case HostText:
                            {
                                !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                                var textInstance = finishedWork.stateNode;
                                var newText = finishedWork.memoizedProps;
                                // For hydration we reuse the update path but we treat the oldProps
                                // as the newProps. The updatePayload will contain the real change in
                                // this case.
                                var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
                                commitTextUpdate(textInstance, oldText, newText);
                                return;
                            }
                        case HostRoot:
                            {
                                return;
                            }
                        case Profiler:
                            {
                                return;
                            }
                        case PlaceholderComponent:
                            {
                                return;
                            }
                        default:
                            {
                                invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
                            }
                    }
                }
                function commitResetTextContent(current$$1) {
                    if (!supportsMutation) {
                        return;
                    }
                    resetTextContent(current$$1.stateNode);
                }
                function NoopComponent() {
                    return null;
                }
                function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
                    var update = createUpdate(expirationTime);
                    // Unmount the root by rendering null.
                    update.tag = CaptureUpdate;
                    // Caution: React DevTools currently depends on this property
                    // being called "element".
                    update.payload = { element: null };
                    var error = errorInfo.value;
                    update.callback = function () {
                        onUncaughtError(error);
                        logError(fiber, errorInfo);
                    };
                    return update;
                }
                function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
                    var update = createUpdate(expirationTime);
                    update.tag = CaptureUpdate;
                    var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch;
                    if (enableGetDerivedStateFromCatch && typeof getDerivedStateFromCatch === 'function') {
                        var error = errorInfo.value;
                        update.payload = function () {
                            return getDerivedStateFromCatch(error);
                        };
                    }
                    var inst = fiber.stateNode;
                    if (inst !== null && typeof inst.componentDidCatch === 'function') {
                        update.callback = function callback() {
                            if (!enableGetDerivedStateFromCatch || getDerivedStateFromCatch !== 'function') {
                                // To preserve the preexisting retry behavior of error boundaries,
                                // we keep track of which ones already failed during this batch.
                                // This gets reset before we yield back to the browser.
                                // TODO: Warn in strict mode if getDerivedStateFromCatch is
                                // not defined.
                                markLegacyErrorBoundaryAsFailed(this);
                            }
                            var error = errorInfo.value;
                            var stack = errorInfo.stack;
                            logError(fiber, errorInfo);
                            this.componentDidCatch(error, {
                                componentStack: stack !== null ? stack : ''
                            });
                        };
                    }
                    return update;
                }
                function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
                    // The source fiber did not complete.
                    sourceFiber.effectTag |= Incomplete;
                    // Its effect list is no longer valid.
                    sourceFiber.firstEffect = sourceFiber.lastEffect = null;
                    if (enableSuspense && value !== null && typeof value === 'object' && typeof value.then === 'function') {
                        // This is a thenable.
                        var thenable = value;
                        // Find the earliest timeout threshold of all the placeholders in the
                        // ancestor path. We could avoid this traversal by storing the thresholds on
                        // the stack, but we choose not to because we only hit this path if we're
                        // IO-bound (i.e. if something suspends). Whereas the stack is used even in
                        // the non-IO- bound case.
                        var _workInProgress = returnFiber;
                        var earliestTimeoutMs = -1;
                        var startTimeMs = -1;
                        do {
                            if (_workInProgress.tag === PlaceholderComponent) {
                                var current = _workInProgress.alternate;
                                if (current !== null && current.memoizedState === true && current.stateNode !== null) {
                                    // Reached a placeholder that already timed out. Each timed out
                                    // placeholder acts as the root of a new suspense boundary.
                                    // Use the time at which the placeholder timed out as the start time
                                    // for the current render.
                                    var timedOutAt = current.stateNode.timedOutAt;
                                    startTimeMs = expirationTimeToMs(timedOutAt);
                                    // Do not search any further.
                                    break;
                                }
                                var timeoutPropMs = _workInProgress.pendingProps.delayMs;
                                if (typeof timeoutPropMs === 'number') {
                                    if (timeoutPropMs <= 0) {
                                        earliestTimeoutMs = 0;
                                    }
                                    else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
                                        earliestTimeoutMs = timeoutPropMs;
                                    }
                                }
                            }
                            _workInProgress = _workInProgress.return;
                        } while (_workInProgress !== null);
                        // Schedule the nearest Placeholder to re-render the timed out view.
                        _workInProgress = returnFiber;
                        do {
                            if (_workInProgress.tag === PlaceholderComponent) {
                                var didTimeout = _workInProgress.memoizedState;
                                if (!didTimeout) {
                                    // Found the nearest boundary.
                                    // If the boundary is not in async mode, we should not suspend, and
                                    // likewise, when the promise resolves, we should ping synchronously.
                                    var pingTime = (_workInProgress.mode & AsyncMode) === NoEffect ? Sync : renderExpirationTime;
                                    // Attach a listener to the promise to "ping" the root and retry.
                                    var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, pingTime);
                                    thenable.then(onResolveOrReject, onResolveOrReject);
                                    // If the boundary is outside of strict mode, we should *not* suspend
                                    // the commit. Pretend as if the suspended component rendered null and
                                    // keep rendering. In the commit phase, we'll schedule a subsequent
                                    // synchronous update to re-render the Placeholder.
                                    //
                                    // Note: It doesn't matter whether the component that suspended was
                                    // inside a strict mode tree. If the Placeholder is outside of it, we
                                    // should *not* suspend the commit.
                                    if ((_workInProgress.mode & StrictMode) === NoEffect) {
                                        _workInProgress.effectTag |= Update;
                                        // Unmount the source fiber's children
                                        var nextChildren = null;
                                        reconcileChildren(sourceFiber.alternate, sourceFiber, nextChildren, renderExpirationTime);
                                        sourceFiber.effectTag &= ~Incomplete;
                                        if (sourceFiber.tag === IndeterminateComponent) {
                                            // Let's just assume it's a functional component. This fiber will
                                            // be unmounted in the immediate next commit, anyway.
                                            sourceFiber.tag = FunctionalComponent;
                                        }
                                        if (sourceFiber.tag === ClassComponent || sourceFiber.tag === ClassComponentLazy) {
                                            // We're going to commit this fiber even though it didn't
                                            // complete. But we shouldn't call any lifecycle methods or
                                            // callbacks. Remove all lifecycle effect tags.
                                            sourceFiber.effectTag &= ~LifecycleEffectMask;
                                            if (sourceFiber.alternate === null) {
                                                // We're about to mount a class component that doesn't have an
                                                // instance. Turn this into a dummy functional component instead,
                                                // to prevent type errors. This is a bit weird but it's an edge
                                                // case and we're about to synchronously delete this
                                                // component, anyway.
                                                sourceFiber.tag = FunctionalComponent;
                                                sourceFiber.type = NoopComponent;
                                            }
                                        }
                                        // Exit without suspending.
                                        return;
                                    }
                                    // Confirmed that the boundary is in a strict mode tree. Continue with
                                    // the normal suspend path.
                                    var absoluteTimeoutMs = void 0;
                                    if (earliestTimeoutMs === -1) {
                                        // If no explicit threshold is given, default to an abitrarily large
                                        // value. The actual size doesn't matter because the threshold for the
                                        // whole tree will be clamped to the expiration time.
                                        absoluteTimeoutMs = maxSigned31BitInt;
                                    }
                                    else {
                                        if (startTimeMs === -1) {
                                            // This suspend happened outside of any already timed-out
                                            // placeholders. We don't know exactly when the update was scheduled,
                                            // but we can infer an approximate start time from the expiration
                                            // time. First, find the earliest uncommitted expiration time in the
                                            // tree, including work that is suspended. Then subtract the offset
                                            // used to compute an async update's expiration time. This will cause
                                            // high priority (interactive) work to expire earlier than necessary,
                                            // but we can account for this by adjusting for the Just Noticeable
                                            // Difference.
                                            var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
                                            var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
                                            startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
                                        }
                                        absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
                                    }
                                    // Mark the earliest timeout in the suspended fiber's ancestor path.
                                    // After completing the root, we'll take the largest of all the
                                    // suspended fiber's timeouts and use it to compute a timeout for the
                                    // whole tree.
                                    renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);
                                    _workInProgress.effectTag |= ShouldCapture;
                                    _workInProgress.expirationTime = renderExpirationTime;
                                    return;
                                }
                                // This boundary already captured during this render. Continue to the
                                // next boundary.
                            }
                            _workInProgress = _workInProgress.return;
                        } while (_workInProgress !== null);
                        // No boundary was found. Fallthrough to error mode.
                        value = new Error('An update was suspended, but no placeholder UI was provided.');
                    }
                    // We didn't find a boundary that could handle this type of exception. Start
                    // over and traverse parent path again, this time treating the exception
                    // as an error.
                    renderDidError();
                    value = createCapturedValue(value, sourceFiber);
                    var workInProgress = returnFiber;
                    do {
                        switch (workInProgress.tag) {
                            case HostRoot:
                                {
                                    var _errorInfo = value;
                                    workInProgress.effectTag |= ShouldCapture;
                                    workInProgress.expirationTime = renderExpirationTime;
                                    var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
                                    enqueueCapturedUpdate(workInProgress, update);
                                    return;
                                }
                            case ClassComponent:
                            case ClassComponentLazy:
                                // Capture and retry
                                var errorInfo = value;
                                var ctor = workInProgress.type;
                                var instance = workInProgress.stateNode;
                                if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromCatch === 'function' && enableGetDerivedStateFromCatch || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
                                    workInProgress.effectTag |= ShouldCapture;
                                    workInProgress.expirationTime = renderExpirationTime;
                                    // Schedule the error boundary to re-render using updated state
                                    var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
                                    enqueueCapturedUpdate(workInProgress, _update);
                                    return;
                                }
                                break;
                            default:
                                break;
                        }
                        workInProgress = workInProgress.return;
                    } while (workInProgress !== null);
                }
                function unwindWork(workInProgress, renderExpirationTime) {
                    switch (workInProgress.tag) {
                        case ClassComponent:
                            {
                                var Component = workInProgress.type;
                                if (isContextProvider(Component)) {
                                    popContext(workInProgress);
                                }
                                var effectTag = workInProgress.effectTag;
                                if (effectTag & ShouldCapture) {
                                    workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
                                    return workInProgress;
                                }
                                return null;
                            }
                        case ClassComponentLazy:
                            {
                                var _Component = workInProgress.type._reactResult;
                                if (isContextProvider(_Component)) {
                                    popContext(workInProgress);
                                }
                                var _effectTag = workInProgress.effectTag;
                                if (_effectTag & ShouldCapture) {
                                    workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
                                    return workInProgress;
                                }
                                return null;
                            }
                        case HostRoot:
                            {
                                popHostContainer(workInProgress);
                                popTopLevelContextObject(workInProgress);
                                var _effectTag2 = workInProgress.effectTag;
                                !((_effectTag2 & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;
                                workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
                                return workInProgress;
                            }
                        case HostComponent:
                            {
                                popHostContext(workInProgress);
                                return null;
                            }
                        case PlaceholderComponent:
                            {
                                var _effectTag3 = workInProgress.effectTag;
                                if (_effectTag3 & ShouldCapture) {
                                    workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
                                    return workInProgress;
                                }
                                return null;
                            }
                        case HostPortal:
                            popHostContainer(workInProgress);
                            return null;
                        case ContextProvider:
                            popProvider(workInProgress);
                            return null;
                        default:
                            return null;
                    }
                }
                function unwindInterruptedWork(interruptedWork) {
                    switch (interruptedWork.tag) {
                        case ClassComponent:
                            {
                                var childContextTypes = interruptedWork.type.childContextTypes;
                                if (childContextTypes !== null && childContextTypes !== undefined) {
                                    popContext(interruptedWork);
                                }
                                break;
                            }
                        case ClassComponentLazy:
                            {
                                var _childContextTypes = interruptedWork.type._reactResult.childContextTypes;
                                if (_childContextTypes !== null && _childContextTypes !== undefined) {
                                    popContext(interruptedWork);
                                }
                                break;
                            }
                        case HostRoot:
                            {
                                popHostContainer(interruptedWork);
                                popTopLevelContextObject(interruptedWork);
                                break;
                            }
                        case HostComponent:
                            {
                                popHostContext(interruptedWork);
                                break;
                            }
                        case HostPortal:
                            popHostContainer(interruptedWork);
                            break;
                        case ContextProvider:
                            popProvider(interruptedWork);
                            break;
                        default:
                            break;
                    }
                }
                var Dispatcher = {
                    readContext: readContext
                };
                var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
                var didWarnAboutStateTransition = void 0;
                var didWarnSetStateChildContext = void 0;
                var warnAboutUpdateOnUnmounted = void 0;
                var warnAboutInvalidUpdates = void 0;
                if (enableSchedulerTracing) {
                    // Provide explicit error message when production+profiling bundle of e.g. react-dom
                    // is used with production (non-profiling) bundle of schedule/tracing
                    !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling') : void 0;
                }
                {
                    didWarnAboutStateTransition = false;
                    didWarnSetStateChildContext = false;
                    var didWarnStateUpdateForUnmountedComponent = {};
                    warnAboutUpdateOnUnmounted = function (fiber) {
                        // We show the whole stack but dedupe on the top component's name because
                        // the problematic code almost always lies inside that component.
                        var componentName = getComponentName(fiber.type) || 'ReactClass';
                        if (didWarnStateUpdateForUnmountedComponent[componentName]) {
                            return;
                        }
                        warningWithoutStack$1(false, "Can't call setState (or forceUpdate) on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in the ' + 'componentWillUnmount method.%s', getStackByFiberInDevAndProd(fiber));
                        didWarnStateUpdateForUnmountedComponent[componentName] = true;
                    };
                    warnAboutInvalidUpdates = function (instance) {
                        switch (phase) {
                            case 'getChildContext':
                                if (didWarnSetStateChildContext) {
                                    return;
                                }
                                warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
                                didWarnSetStateChildContext = true;
                                break;
                            case 'render':
                                if (didWarnAboutStateTransition) {
                                    return;
                                }
                                warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as within ' + '`render`). Render methods should be a pure function of props and state.');
                                didWarnAboutStateTransition = true;
                                break;
                        }
                    };
                }
                // Used to ensure computeUniqueAsyncExpiration is monotonically increasing.
                var lastUniqueAsyncExpiration = 0;
                // Represents the expiration time that incoming updates should use. (If this
                // is NoWork, use the default strategy: async updates in async mode, sync
                // updates in sync mode.)
                var expirationContext = NoWork;
                var isWorking = false;
                // The next work in progress fiber that we're currently working on.
                var nextUnitOfWork = null;
                var nextRoot = null;
                // The time at which we're currently rendering work.
                var nextRenderExpirationTime = NoWork;
                var nextLatestAbsoluteTimeoutMs = -1;
                var nextRenderDidError = false;
                // The next fiber with an effect that we're currently committing.
                var nextEffect = null;
                var isCommitting$1 = false;
                var legacyErrorBoundariesThatAlreadyFailed = null;
                // Used for performance tracking.
                var interruptedBy = null;
                // Do not decrement interaction counts in the event of suspense timeouts.
                // This would lead to prematurely calling the interaction-complete hook.
                var suspenseDidTimeout = false;
                var stashedWorkInProgressProperties = void 0;
                var replayUnitOfWork = void 0;
                var isReplayingFailedUnitOfWork = void 0;
                var originalReplayError = void 0;
                var rethrowOriginalError = void 0;
                if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
                    stashedWorkInProgressProperties = null;
                    isReplayingFailedUnitOfWork = false;
                    originalReplayError = null;
                    replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
                        if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
                            // Don't replay promises. Treat everything else like an error.
                            // TODO: Need to figure out a different strategy if/when we add
                            // support for catching other types.
                            return;
                        }
                        // Restore the original state of the work-in-progress
                        if (stashedWorkInProgressProperties === null) {
                            // This should never happen. Don't throw because this code is DEV-only.
                            warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
                            return;
                        }
                        assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);
                        switch (failedUnitOfWork.tag) {
                            case HostRoot:
                                popHostContainer(failedUnitOfWork);
                                popTopLevelContextObject(failedUnitOfWork);
                                break;
                            case HostComponent:
                                popHostContext(failedUnitOfWork);
                                break;
                            case ClassComponent:
                                {
                                    var Component = failedUnitOfWork.type;
                                    if (isContextProvider(Component)) {
                                        popContext(failedUnitOfWork);
                                    }
                                    break;
                                }
                            case ClassComponentLazy:
                                {
                                    var _Component = getResultFromResolvedThenable(failedUnitOfWork.type);
                                    if (isContextProvider(_Component)) {
                                        popContext(failedUnitOfWork);
                                    }
                                    break;
                                }
                            case HostPortal:
                                popHostContainer(failedUnitOfWork);
                                break;
                            case ContextProvider:
                                popProvider(failedUnitOfWork);
                                break;
                        }
                        // Replay the begin phase.
                        isReplayingFailedUnitOfWork = true;
                        originalReplayError = thrownValue;
                        invokeGuardedCallback(null, workLoop, null, isYieldy);
                        isReplayingFailedUnitOfWork = false;
                        originalReplayError = null;
                        if (hasCaughtError()) {
                            var replayError = clearCaughtError();
                            if (replayError != null && thrownValue != null) {
                                try {
                                    // Reading the expando property is intentionally
                                    // inside `try` because it might be a getter or Proxy.
                                    if (replayError._suppressLogging) {
                                        // Also suppress logging for the original error.
                                        thrownValue._suppressLogging = true;
                                    }
                                }
                                catch (inner) {
                                    // Ignore.
                                }
                            }
                        }
                        else {
                            // If the begin phase did not fail the second time, set this pointer
                            // back to the original value.
                            nextUnitOfWork = failedUnitOfWork;
                        }
                    };
                    rethrowOriginalError = function () {
                        throw originalReplayError;
                    };
                }
                function resetStack() {
                    if (nextUnitOfWork !== null) {
                        var interruptedWork = nextUnitOfWork.return;
                        while (interruptedWork !== null) {
                            unwindInterruptedWork(interruptedWork);
                            interruptedWork = interruptedWork.return;
                        }
                    }
                    {
                        ReactStrictModeWarnings.discardPendingWarnings();
                        checkThatStackIsEmpty();
                    }
                    nextRoot = null;
                    nextRenderExpirationTime = NoWork;
                    nextLatestAbsoluteTimeoutMs = -1;
                    nextRenderDidError = false;
                    nextUnitOfWork = null;
                }
                function commitAllHostEffects() {
                    while (nextEffect !== null) {
                        {
                            setCurrentFiber(nextEffect);
                        }
                        recordEffect();
                        var effectTag = nextEffect.effectTag;
                        if (effectTag & ContentReset) {
                            commitResetTextContent(nextEffect);
                        }
                        if (effectTag & Ref) {
                            var current$$1 = nextEffect.alternate;
                            if (current$$1 !== null) {
                                commitDetachRef(current$$1);
                            }
                        }
                        // The following switch statement is only concerned about placement,
                        // updates, and deletions. To avoid needing to add a case for every
                        // possible bitmap value, we remove the secondary effects from the
                        // effect tag and switch on that value.
                        var primaryEffectTag = effectTag & (Placement | Update | Deletion);
                        switch (primaryEffectTag) {
                            case Placement:
                                {
                                    commitPlacement(nextEffect);
                                    // Clear the "placement" from effect tag so that we know that this is inserted, before
                                    // any life-cycles like componentDidMount gets called.
                                    // TODO: findDOMNode doesn't rely on this any more but isMounted
                                    // does and isMounted is deprecated anyway so we should be able
                                    // to kill this.
                                    nextEffect.effectTag &= ~Placement;
                                    break;
                                }
                            case PlacementAndUpdate:
                                {
                                    // Placement
                                    commitPlacement(nextEffect);
                                    // Clear the "placement" from effect tag so that we know that this is inserted, before
                                    // any life-cycles like componentDidMount gets called.
                                    nextEffect.effectTag &= ~Placement;
                                    // Update
                                    var _current = nextEffect.alternate;
                                    commitWork(_current, nextEffect);
                                    break;
                                }
                            case Update:
                                {
                                    var _current2 = nextEffect.alternate;
                                    commitWork(_current2, nextEffect);
                                    break;
                                }
                            case Deletion:
                                {
                                    commitDeletion(nextEffect);
                                    break;
                                }
                        }
                        nextEffect = nextEffect.nextEffect;
                    }
                    {
                        resetCurrentFiber();
                    }
                }
                function commitBeforeMutationLifecycles() {
                    while (nextEffect !== null) {
                        {
                            setCurrentFiber(nextEffect);
                        }
                        var effectTag = nextEffect.effectTag;
                        if (effectTag & Snapshot) {
                            recordEffect();
                            var current$$1 = nextEffect.alternate;
                            commitBeforeMutationLifeCycles(current$$1, nextEffect);
                        }
                        // Don't cleanup effects yet;
                        // This will be done by commitAllLifeCycles()
                        nextEffect = nextEffect.nextEffect;
                    }
                    {
                        resetCurrentFiber();
                    }
                }
                function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
                    {
                        ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
                        if (warnAboutDeprecatedLifecycles) {
                            ReactStrictModeWarnings.flushPendingDeprecationWarnings();
                        }
                        if (warnAboutLegacyContextAPI) {
                            ReactStrictModeWarnings.flushLegacyContextWarning();
                        }
                    }
                    while (nextEffect !== null) {
                        var effectTag = nextEffect.effectTag;
                        if (effectTag & (Update | Callback)) {
                            recordEffect();
                            var current$$1 = nextEffect.alternate;
                            commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
                        }
                        if (effectTag & Ref) {
                            recordEffect();
                            commitAttachRef(nextEffect);
                        }
                        var next = nextEffect.nextEffect;
                        // Ensure that we clean these up so that we don't accidentally keep them.
                        // I'm not actually sure this matters because we can't reset firstEffect
                        // and lastEffect since they're on every node, not just the effectful
                        // ones. So we have to clean everything as we reuse nodes anyway.
                        nextEffect.nextEffect = null;
                        // Ensure that we reset the effectTag here so that we can rely on effect
                        // tags to reason about the current life-cycle.
                        nextEffect = next;
                    }
                }
                function isAlreadyFailedLegacyErrorBoundary(instance) {
                    return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
                }
                function markLegacyErrorBoundaryAsFailed(instance) {
                    if (legacyErrorBoundariesThatAlreadyFailed === null) {
                        legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
                    }
                    else {
                        legacyErrorBoundariesThatAlreadyFailed.add(instance);
                    }
                }
                function commitRoot(root, finishedWork) {
                    isWorking = true;
                    isCommitting$1 = true;
                    startCommitTimer();
                    !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    var committedExpirationTime = root.pendingCommitExpirationTime;
                    !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    root.pendingCommitExpirationTime = NoWork;
                    // Update the pending priority levels to account for the work that we are
                    // about to commit. This needs to happen before calling the lifecycles, since
                    // they may schedule additional updates.
                    var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
                    var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
                    var earliestRemainingTimeBeforeCommit = updateExpirationTimeBeforeCommit === NoWork || childExpirationTimeBeforeCommit !== NoWork && childExpirationTimeBeforeCommit < updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
                    markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);
                    var prevInteractions = null;
                    var committedInteractions = enableSchedulerTracing ? [] : null;
                    if (enableSchedulerTracing) {
                        // Restore any pending interactions at this point,
                        // So that cascading work triggered during the render phase will be accounted for.
                        prevInteractions = tracing.__interactionsRef.current;
                        tracing.__interactionsRef.current = root.memoizedInteractions;
                        // We are potentially finished with the current batch of interactions.
                        // So we should clear them out of the pending interaction map.
                        // We do this at the start of commit in case cascading work is scheduled by commit phase lifecycles.
                        // In that event, interaction data may be added back into the pending map for a future commit.
                        // We also store the interactions we are about to commit so that we can notify subscribers after we're done.
                        // These are stored as an Array rather than a Set,
                        // Because the same interaction may be pending for multiple expiration times,
                        // In which case it's important that we decrement the count the right number of times after finishing.
                        root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
                            if (scheduledExpirationTime <= committedExpirationTime) {
                                committedInteractions.push.apply(committedInteractions, Array.from(scheduledInteractions));
                                root.pendingInteractionMap.delete(scheduledExpirationTime);
                            }
                        });
                    }
                    // Reset this to null before calling lifecycles
                    ReactCurrentOwner$2.current = null;
                    var firstEffect = void 0;
                    if (finishedWork.effectTag > PerformedWork) {
                        // A fiber's effect list consists only of its children, not itself. So if
                        // the root has an effect, we need to add it to the end of the list. The
                        // resulting list is the set that would belong to the root's parent, if
                        // it had one; that is, all the effects in the tree including the root.
                        if (finishedWork.lastEffect !== null) {
                            finishedWork.lastEffect.nextEffect = finishedWork;
                            firstEffect = finishedWork.firstEffect;
                        }
                        else {
                            firstEffect = finishedWork;
                        }
                    }
                    else {
                        // There is no effect on the root.
                        firstEffect = finishedWork.firstEffect;
                    }
                    prepareForCommit(root.containerInfo);
                    // Invoke instances of getSnapshotBeforeUpdate before mutation.
                    nextEffect = firstEffect;
                    startCommitSnapshotEffectsTimer();
                    while (nextEffect !== null) {
                        var didError = false;
                        var error = void 0;
                        {
                            invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
                            if (hasCaughtError()) {
                                didError = true;
                                error = clearCaughtError();
                            }
                        }
                        if (didError) {
                            !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                            captureCommitPhaseError(nextEffect, error);
                            // Clean-up
                            if (nextEffect !== null) {
                                nextEffect = nextEffect.nextEffect;
                            }
                        }
                    }
                    stopCommitSnapshotEffectsTimer();
                    if (enableProfilerTimer) {
                        // Mark the current commit time to be shared by all Profilers in this batch.
                        // This enables them to be grouped later.
                        recordCommitTime();
                    }
                    // Commit all the side-effects within a tree. We'll do this in two passes.
                    // The first pass performs all the host insertions, updates, deletions and
                    // ref unmounts.
                    nextEffect = firstEffect;
                    startCommitHostEffectsTimer();
                    while (nextEffect !== null) {
                        var _didError = false;
                        var _error = void 0;
                        {
                            invokeGuardedCallback(null, commitAllHostEffects, null);
                            if (hasCaughtError()) {
                                _didError = true;
                                _error = clearCaughtError();
                            }
                        }
                        if (_didError) {
                            !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                            captureCommitPhaseError(nextEffect, _error);
                            // Clean-up
                            if (nextEffect !== null) {
                                nextEffect = nextEffect.nextEffect;
                            }
                        }
                    }
                    stopCommitHostEffectsTimer();
                    resetAfterCommit(root.containerInfo);
                    // The work-in-progress tree is now the current tree. This must come after
                    // the first pass of the commit phase, so that the previous tree is still
                    // current during componentWillUnmount, but before the second pass, so that
                    // the finished work is current during componentDidMount/Update.
                    root.current = finishedWork;
                    // In the second pass we'll perform all life-cycles and ref callbacks.
                    // Life-cycles happen as a separate pass so that all placements, updates,
                    // and deletions in the entire tree have already been invoked.
                    // This pass also triggers any renderer-specific initial effects.
                    nextEffect = firstEffect;
                    startCommitLifeCyclesTimer();
                    while (nextEffect !== null) {
                        var _didError2 = false;
                        var _error2 = void 0;
                        {
                            invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
                            if (hasCaughtError()) {
                                _didError2 = true;
                                _error2 = clearCaughtError();
                            }
                        }
                        if (_didError2) {
                            !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                            captureCommitPhaseError(nextEffect, _error2);
                            if (nextEffect !== null) {
                                nextEffect = nextEffect.nextEffect;
                            }
                        }
                    }
                    isCommitting$1 = false;
                    isWorking = false;
                    stopCommitLifeCyclesTimer();
                    stopCommitTimer();
                    onCommitRoot(finishedWork.stateNode);
                    if (true && ReactFiberInstrumentation_1.debugTool) {
                        ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
                    }
                    var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
                    var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
                    var earliestRemainingTimeAfterCommit = updateExpirationTimeAfterCommit === NoWork || childExpirationTimeAfterCommit !== NoWork && childExpirationTimeAfterCommit < updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
                    if (earliestRemainingTimeAfterCommit === NoWork) {
                        // If there's no remaining work, we can clear the set of already failed
                        // error boundaries.
                        legacyErrorBoundariesThatAlreadyFailed = null;
                    }
                    onCommit(root, earliestRemainingTimeAfterCommit);
                    if (enableSchedulerTracing) {
                        tracing.__interactionsRef.current = prevInteractions;
                        var subscriber = void 0;
                        try {
                            subscriber = tracing.__subscriberRef.current;
                            if (subscriber !== null && root.memoizedInteractions.size > 0) {
                                var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
                                subscriber.onWorkStopped(root.memoizedInteractions, threadID);
                            }
                        }
                        catch (error) {
                            // It's not safe for commitRoot() to throw.
                            // Store the error for now and we'll re-throw in finishRendering().
                            if (!hasUnhandledError) {
                                hasUnhandledError = true;
                                unhandledError = error;
                            }
                        }
                        finally {
                            // Don't update interaction counts if we're frozen due to suspense.
                            // In this case, we can skip the completed-work check entirely.
                            if (!suspenseDidTimeout) {
                                // Now that we're done, check the completed batch of interactions.
                                // If no more work is outstanding for a given interaction,
                                // We need to notify the subscribers that it's finished.
                                committedInteractions.forEach(function (interaction) {
                                    interaction.__count--;
                                    if (subscriber !== null && interaction.__count === 0) {
                                        try {
                                            subscriber.onInteractionScheduledWorkCompleted(interaction);
                                        }
                                        catch (error) {
                                            // It's not safe for commitRoot() to throw.
                                            // Store the error for now and we'll re-throw in finishRendering().
                                            if (!hasUnhandledError) {
                                                hasUnhandledError = true;
                                                unhandledError = error;
                                            }
                                        }
                                    }
                                });
                            }
                        }
                    }
                }
                function resetChildExpirationTime(workInProgress, renderTime) {
                    if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
                        // The children of this component are hidden. Don't bubble their
                        // expiration times.
                        return;
                    }
                    var newChildExpirationTime = NoWork;
                    // Bubble up the earliest expiration time.
                    if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
                        // We're in profiling mode.
                        // Let's use this same traversal to update the render durations.
                        var actualDuration = workInProgress.actualDuration;
                        var treeBaseDuration = workInProgress.selfBaseDuration;
                        // When a fiber is cloned, its actualDuration is reset to 0.
                        // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
                        // When work is done, it should bubble to the parent's actualDuration.
                        // If the fiber has not been cloned though, (meaning no work was done),
                        // Then this value will reflect the amount of time spent working on a previous render.
                        // In that case it should not bubble.
                        // We determine whether it was cloned by comparing the child pointer.
                        var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;
                        var child = workInProgress.child;
                        while (child !== null) {
                            var childUpdateExpirationTime = child.expirationTime;
                            var childChildExpirationTime = child.childExpirationTime;
                            if (newChildExpirationTime === NoWork || childUpdateExpirationTime !== NoWork && childUpdateExpirationTime < newChildExpirationTime) {
                                newChildExpirationTime = childUpdateExpirationTime;
                            }
                            if (newChildExpirationTime === NoWork || childChildExpirationTime !== NoWork && childChildExpirationTime < newChildExpirationTime) {
                                newChildExpirationTime = childChildExpirationTime;
                            }
                            if (shouldBubbleActualDurations) {
                                actualDuration += child.actualDuration;
                            }
                            treeBaseDuration += child.treeBaseDuration;
                            child = child.sibling;
                        }
                        workInProgress.actualDuration = actualDuration;
                        workInProgress.treeBaseDuration = treeBaseDuration;
                    }
                    else {
                        var _child = workInProgress.child;
                        while (_child !== null) {
                            var _childUpdateExpirationTime = _child.expirationTime;
                            var _childChildExpirationTime = _child.childExpirationTime;
                            if (newChildExpirationTime === NoWork || _childUpdateExpirationTime !== NoWork && _childUpdateExpirationTime < newChildExpirationTime) {
                                newChildExpirationTime = _childUpdateExpirationTime;
                            }
                            if (newChildExpirationTime === NoWork || _childChildExpirationTime !== NoWork && _childChildExpirationTime < newChildExpirationTime) {
                                newChildExpirationTime = _childChildExpirationTime;
                            }
                            _child = _child.sibling;
                        }
                    }
                    workInProgress.childExpirationTime = newChildExpirationTime;
                }
                function completeUnitOfWork(workInProgress) {
                    // Attempt to complete the current unit of work, then move to the
                    // next sibling. If there are no more siblings, return to the
                    // parent fiber.
                    while (true) {
                        // The current, flushed, state of this fiber is the alternate.
                        // Ideally nothing should rely on this, but relying on it here
                        // means that we don't need an additional field on the work in
                        // progress.
                        var current$$1 = workInProgress.alternate;
                        {
                            setCurrentFiber(workInProgress);
                        }
                        var returnFiber = workInProgress.return;
                        var siblingFiber = workInProgress.sibling;
                        if ((workInProgress.effectTag & Incomplete) === NoEffect) {
                            // This fiber completed.
                            if (enableProfilerTimer) {
                                if (workInProgress.mode & ProfileMode) {
                                    startProfilerTimer(workInProgress);
                                }
                                nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
                                if (workInProgress.mode & ProfileMode) {
                                    // Update render duration assuming we didn't error.
                                    stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
                                }
                            }
                            else {
                                nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
                            }
                            var next = nextUnitOfWork;
                            stopWorkTimer(workInProgress);
                            resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
                            {
                                resetCurrentFiber();
                            }
                            if (next !== null) {
                                stopWorkTimer(workInProgress);
                                if (true && ReactFiberInstrumentation_1.debugTool) {
                                    ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
                                }
                                // If completing this work spawned new work, do that next. We'll come
                                // back here again.
                                return next;
                            }
                            if (returnFiber !== null &&
                                // Do not append effects to parents if a sibling failed to complete
                                (returnFiber.effectTag & Incomplete) === NoEffect) {
                                // Append all the effects of the subtree and this fiber onto the effect
                                // list of the parent. The completion order of the children affects the
                                // side-effect order.
                                if (returnFiber.firstEffect === null) {
                                    returnFiber.firstEffect = workInProgress.firstEffect;
                                }
                                if (workInProgress.lastEffect !== null) {
                                    if (returnFiber.lastEffect !== null) {
                                        returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
                                    }
                                    returnFiber.lastEffect = workInProgress.lastEffect;
                                }
                                // If this fiber had side-effects, we append it AFTER the children's
                                // side-effects. We can perform certain side-effects earlier if
                                // needed, by doing multiple passes over the effect list. We don't want
                                // to schedule our own side-effect on our own list because if end up
                                // reusing children we'll schedule this effect onto itself since we're
                                // at the end.
                                var effectTag = workInProgress.effectTag;
                                // Skip both NoWork and PerformedWork tags when creating the effect list.
                                // PerformedWork effect is read by React DevTools but shouldn't be committed.
                                if (effectTag > PerformedWork) {
                                    if (returnFiber.lastEffect !== null) {
                                        returnFiber.lastEffect.nextEffect = workInProgress;
                                    }
                                    else {
                                        returnFiber.firstEffect = workInProgress;
                                    }
                                    returnFiber.lastEffect = workInProgress;
                                }
                            }
                            if (true && ReactFiberInstrumentation_1.debugTool) {
                                ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
                            }
                            if (siblingFiber !== null) {
                                // If there is more work to do in this returnFiber, do that next.
                                return siblingFiber;
                            }
                            else if (returnFiber !== null) {
                                // If there's no more work in this returnFiber. Complete the returnFiber.
                                workInProgress = returnFiber;
                                continue;
                            }
                            else {
                                // We've reached the root.
                                return null;
                            }
                        }
                        else {
                            if (workInProgress.mode & ProfileMode) {
                                // Record the render duration for the fiber that errored.
                                stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
                            }
                            // This fiber did not complete because something threw. Pop values off
                            // the stack without entering the complete phase. If this is a boundary,
                            // capture values if possible.
                            var _next = unwindWork(workInProgress, nextRenderExpirationTime);
                            // Because this fiber did not complete, don't reset its expiration time.
                            if (workInProgress.effectTag & DidCapture) {
                                // Restarting an error boundary
                                stopFailedWorkTimer(workInProgress);
                            }
                            else {
                                stopWorkTimer(workInProgress);
                            }
                            {
                                resetCurrentFiber();
                            }
                            if (_next !== null) {
                                stopWorkTimer(workInProgress);
                                if (true && ReactFiberInstrumentation_1.debugTool) {
                                    ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
                                }
                                if (enableProfilerTimer) {
                                    // Include the time spent working on failed children before continuing.
                                    if (_next.mode & ProfileMode) {
                                        var actualDuration = _next.actualDuration;
                                        var child = _next.child;
                                        while (child !== null) {
                                            actualDuration += child.actualDuration;
                                            child = child.sibling;
                                        }
                                        _next.actualDuration = actualDuration;
                                    }
                                }
                                // If completing this work spawned new work, do that next. We'll come
                                // back here again.
                                // Since we're restarting, remove anything that is not a host effect
                                // from the effect tag.
                                _next.effectTag &= HostEffectMask;
                                return _next;
                            }
                            if (returnFiber !== null) {
                                // Mark the parent fiber as incomplete and clear its effect list.
                                returnFiber.firstEffect = returnFiber.lastEffect = null;
                                returnFiber.effectTag |= Incomplete;
                            }
                            if (true && ReactFiberInstrumentation_1.debugTool) {
                                ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
                            }
                            if (siblingFiber !== null) {
                                // If there is more work to do in this returnFiber, do that next.
                                return siblingFiber;
                            }
                            else if (returnFiber !== null) {
                                // If there's no more work in this returnFiber. Complete the returnFiber.
                                workInProgress = returnFiber;
                                continue;
                            }
                            else {
                                return null;
                            }
                        }
                    }
                    // Without this explicit null return Flow complains of invalid return type
                    // TODO Remove the above while(true) loop
                    // eslint-disable-next-line no-unreachable
                    return null;
                }
                function performUnitOfWork(workInProgress) {
                    // The current, flushed, state of this fiber is the alternate.
                    // Ideally nothing should rely on this, but relying on it here
                    // means that we don't need an additional field on the work in
                    // progress.
                    var current$$1 = workInProgress.alternate;
                    // See if beginning this work spawns more work.
                    startWorkTimer(workInProgress);
                    {
                        setCurrentFiber(workInProgress);
                    }
                    if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
                        stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
                    }
                    var next = void 0;
                    if (enableProfilerTimer) {
                        if (workInProgress.mode & ProfileMode) {
                            startProfilerTimer(workInProgress);
                        }
                        next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
                        if (workInProgress.mode & ProfileMode) {
                            // Record the render duration assuming we didn't bailout (or error).
                            stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
                        }
                    }
                    else {
                        next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
                    }
                    {
                        resetCurrentFiber();
                        if (isReplayingFailedUnitOfWork) {
                            // Currently replaying a failed unit of work. This should be unreachable,
                            // because the render phase is meant to be idempotent, and it should
                            // have thrown again. Since it didn't, rethrow the original error, so
                            // React's internal stack is not misaligned.
                            rethrowOriginalError();
                        }
                    }
                    if (true && ReactFiberInstrumentation_1.debugTool) {
                        ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
                    }
                    if (next === null) {
                        // If this doesn't spawn new work, complete the current work.
                        next = completeUnitOfWork(workInProgress);
                    }
                    ReactCurrentOwner$2.current = null;
                    return next;
                }
                function workLoop(isYieldy) {
                    if (!isYieldy) {
                        // Flush work without yielding
                        while (nextUnitOfWork !== null) {
                            nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
                        }
                    }
                    else {
                        // Flush asynchronous work until the deadline runs out of time.
                        while (nextUnitOfWork !== null && !shouldYield()) {
                            nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
                        }
                    }
                }
                function renderRoot(root, isYieldy, isExpired) {
                    !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    isWorking = true;
                    ReactCurrentOwner$2.currentDispatcher = Dispatcher;
                    var expirationTime = root.nextExpirationTimeToWorkOn;
                    var prevInteractions = null;
                    if (enableSchedulerTracing) {
                        // We're about to start new traced work.
                        // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
                        prevInteractions = tracing.__interactionsRef.current;
                        tracing.__interactionsRef.current = root.memoizedInteractions;
                    }
                    // Check if we're starting from a fresh stack, or if we're resuming from
                    // previously yielded work.
                    if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
                        // Reset the stack and start working from the root.
                        resetStack();
                        nextRoot = root;
                        nextRenderExpirationTime = expirationTime;
                        nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
                        root.pendingCommitExpirationTime = NoWork;
                        if (enableSchedulerTracing) {
                            // Determine which interactions this batch of work currently includes,
                            // So that we can accurately attribute time spent working on it,
                            var interactions = new Set();
                            root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
                                if (scheduledExpirationTime <= expirationTime) {
                                    scheduledInteractions.forEach(function (interaction) {
                                        return interactions.add(interaction);
                                    });
                                }
                            });
                            // Store the current set of interactions on the FiberRoot for a few reasons:
                            // We can re-use it in hot functions like renderRoot() without having to recalculate it.
                            // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
                            // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
                            root.memoizedInteractions = interactions;
                            if (interactions.size > 0) {
                                var subscriber = tracing.__subscriberRef.current;
                                if (subscriber !== null) {
                                    var threadID = computeThreadID(expirationTime, root.interactionThreadID);
                                    try {
                                        subscriber.onWorkStarted(interactions, threadID);
                                    }
                                    catch (error) {
                                        // Work thrown by an interaction tracing subscriber should be rethrown,
                                        // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
                                        // Store the error for now and we'll re-throw in finishRendering().
                                        if (!hasUnhandledError) {
                                            hasUnhandledError = true;
                                            unhandledError = error;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    var didFatal = false;
                    startWorkLoopTimer(nextUnitOfWork);
                    do {
                        try {
                            workLoop(isYieldy);
                        }
                        catch (thrownValue) {
                            if (nextUnitOfWork === null) {
                                // This is a fatal error.
                                didFatal = true;
                                onUncaughtError(thrownValue);
                            }
                            else {
                                {
                                    // Reset global debug state
                                    // We assume this is defined in DEV
                                    resetCurrentlyProcessingQueue();
                                }
                                var failedUnitOfWork = nextUnitOfWork;
                                if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
                                    replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
                                }
                                // TODO: we already know this isn't true in some cases.
                                // At least this shows a nicer error message until we figure out the cause.
                                // https://github.com/facebook/react/issues/12449#issuecomment-386727431
                                !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;
                                var sourceFiber = nextUnitOfWork;
                                var returnFiber = sourceFiber.return;
                                if (returnFiber === null) {
                                    // This is the root. The root could capture its own errors. However,
                                    // we don't know if it errors before or after we pushed the host
                                    // context. This information is needed to avoid a stack mismatch.
                                    // Because we're not sure, treat this as a fatal error. We could track
                                    // which phase it fails in, but doesn't seem worth it. At least
                                    // for now.
                                    didFatal = true;
                                    onUncaughtError(thrownValue);
                                }
                                else {
                                    throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
                                    nextUnitOfWork = completeUnitOfWork(sourceFiber);
                                    continue;
                                }
                            }
                        }
                        break;
                    } while (true);
                    if (enableSchedulerTracing) {
                        // Traced work is done for now; restore the previous interactions.
                        tracing.__interactionsRef.current = prevInteractions;
                    }
                    // We're done performing work. Time to clean up.
                    isWorking = false;
                    ReactCurrentOwner$2.currentDispatcher = null;
                    resetContextDependences();
                    // Yield back to main thread.
                    if (didFatal) {
                        var _didCompleteRoot = false;
                        stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
                        interruptedBy = null;
                        // There was a fatal error.
                        {
                            resetStackAfterFatalErrorInDev();
                        }
                        // `nextRoot` points to the in-progress root. A non-null value indicates
                        // that we're in the middle of an async render. Set it to null to indicate
                        // there's no more work to be done in the current batch.
                        nextRoot = null;
                        onFatal(root);
                        return;
                    }
                    if (nextUnitOfWork !== null) {
                        // There's still remaining async work in this tree, but we ran out of time
                        // in the current frame. Yield back to the renderer. Unless we're
                        // interrupted by a higher priority update, we'll continue later from where
                        // we left off.
                        var _didCompleteRoot2 = false;
                        stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
                        interruptedBy = null;
                        onYield(root);
                        return;
                    }
                    // We completed the whole tree.
                    var didCompleteRoot = true;
                    stopWorkLoopTimer(interruptedBy, didCompleteRoot);
                    var rootWorkInProgress = root.current.alternate;
                    !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    // `nextRoot` points to the in-progress root. A non-null value indicates
                    // that we're in the middle of an async render. Set it to null to indicate
                    // there's no more work to be done in the current batch.
                    nextRoot = null;
                    interruptedBy = null;
                    if (nextRenderDidError) {
                        // There was an error
                        if (hasLowerPriorityWork(root, expirationTime)) {
                            // There's lower priority work. If so, it may have the effect of fixing
                            // the exception that was just thrown. Exit without committing. This is
                            // similar to a suspend, but without a timeout because we're not waiting
                            // for a promise to resolve. React will restart at the lower
                            // priority level.
                            markSuspendedPriorityLevel(root, expirationTime);
                            var suspendedExpirationTime = expirationTime;
                            var rootExpirationTime = root.expirationTime;
                            onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
                            );
                            return;
                        }
                        else if (
                        // There's no lower priority work, but we're rendering asynchronously.
                        // Synchronsouly attempt to render the same level one more time. This is
                        // similar to a suspend, but without a timeout because we're not waiting
                        // for a promise to resolve.
                        !root.didError && !isExpired) {
                            root.didError = true;
                            var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
                            var _rootExpirationTime = root.expirationTime = Sync;
                            onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
                            );
                            return;
                        }
                    }
                    if (enableSuspense && !isExpired && nextLatestAbsoluteTimeoutMs !== -1) {
                        // The tree was suspended.
                        var _suspendedExpirationTime2 = expirationTime;
                        markSuspendedPriorityLevel(root, _suspendedExpirationTime2);
                        // Find the earliest uncommitted expiration time in the tree, including
                        // work that is suspended. The timeout threshold cannot be longer than
                        // the overall expiration.
                        var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
                        var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
                        if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
                            nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
                        }
                        // Subtract the current time from the absolute timeout to get the number
                        // of milliseconds until the timeout. In other words, convert an absolute
                        // timestamp to a relative time. This is the value that is passed
                        // to `setTimeout`.
                        var currentTimeMs = expirationTimeToMs(requestCurrentTime());
                        var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
                        msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
                        // TODO: Account for the Just Noticeable Difference
                        var _rootExpirationTime2 = root.expirationTime;
                        onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
                        return;
                    }
                    // Ready to commit.
                    onComplete(root, rootWorkInProgress, expirationTime);
                }
                function dispatch(sourceFiber, value, expirationTime) {
                    !(!isWorking || isCommitting$1) ? invariant(false, 'dispatch: Cannot dispatch during the render phase.') : void 0;
                    var fiber = sourceFiber.return;
                    while (fiber !== null) {
                        switch (fiber.tag) {
                            case ClassComponent:
                            case ClassComponentLazy:
                                var ctor = fiber.type;
                                var instance = fiber.stateNode;
                                if (typeof ctor.getDerivedStateFromCatch === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
                                    var errorInfo = createCapturedValue(value, sourceFiber);
                                    var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
                                    enqueueUpdate(fiber, update);
                                    scheduleWork(fiber, expirationTime);
                                    return;
                                }
                                break;
                            case HostRoot:
                                {
                                    var _errorInfo = createCapturedValue(value, sourceFiber);
                                    var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
                                    enqueueUpdate(fiber, _update);
                                    scheduleWork(fiber, expirationTime);
                                    return;
                                }
                        }
                        fiber = fiber.return;
                    }
                    if (sourceFiber.tag === HostRoot) {
                        // Error was thrown at the root. There is no parent, so the root
                        // itself should capture it.
                        var rootFiber = sourceFiber;
                        var _errorInfo2 = createCapturedValue(value, rootFiber);
                        var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
                        enqueueUpdate(rootFiber, _update2);
                        scheduleWork(rootFiber, expirationTime);
                    }
                }
                function captureCommitPhaseError(fiber, error) {
                    return dispatch(fiber, error, Sync);
                }
                function computeThreadID(expirationTime, interactionThreadID) {
                    // Interaction threads are unique per root and expiration time.
                    return expirationTime * 1000 + interactionThreadID;
                }
                // Creates a unique async expiration time.
                function computeUniqueAsyncExpiration() {
                    var currentTime = requestCurrentTime();
                    var result = computeAsyncExpiration(currentTime);
                    if (result <= lastUniqueAsyncExpiration) {
                        // Since we assume the current time monotonically increases, we only hit
                        // this branch when computeUniqueAsyncExpiration is fired multiple times
                        // within a 200ms window (or whatever the async bucket size is).
                        result = lastUniqueAsyncExpiration + 1;
                    }
                    lastUniqueAsyncExpiration = result;
                    return lastUniqueAsyncExpiration;
                }
                function computeExpirationForFiber(currentTime, fiber) {
                    var expirationTime = void 0;
                    if (expirationContext !== NoWork) {
                        // An explicit expiration context was set;
                        expirationTime = expirationContext;
                    }
                    else if (isWorking) {
                        if (isCommitting$1) {
                            // Updates that occur during the commit phase should have sync priority
                            // by default.
                            expirationTime = Sync;
                        }
                        else {
                            // Updates during the render phase should expire at the same time as
                            // the work that is being rendered.
                            expirationTime = nextRenderExpirationTime;
                        }
                    }
                    else {
                        // No explicit expiration context was set, and we're not currently
                        // performing work. Calculate a new expiration time.
                        if (fiber.mode & AsyncMode) {
                            if (isBatchingInteractiveUpdates) {
                                // This is an interactive update
                                expirationTime = computeInteractiveExpiration(currentTime);
                            }
                            else {
                                // This is an async update
                                expirationTime = computeAsyncExpiration(currentTime);
                            }
                            // If we're in the middle of rendering a tree, do not update at the same
                            // expiration time that is already rendering.
                            if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
                                expirationTime += 1;
                            }
                        }
                        else {
                            // This is a sync update
                            expirationTime = Sync;
                        }
                    }
                    if (isBatchingInteractiveUpdates) {
                        // This is an interactive update. Keep track of the lowest pending
                        // interactive expiration time. This allows us to synchronously flush
                        // all interactive updates when needed.
                        if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPriorityPendingInteractiveExpirationTime) {
                            lowestPriorityPendingInteractiveExpirationTime = expirationTime;
                        }
                    }
                    return expirationTime;
                }
                function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
                    // Schedule the timeout.
                    if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
                        nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
                    }
                }
                function renderDidError() {
                    nextRenderDidError = true;
                }
                function retrySuspendedRoot(root, fiber, suspendedTime) {
                    if (enableSuspense) {
                        var retryTime = void 0;
                        if (isPriorityLevelSuspended(root, suspendedTime)) {
                            // Ping at the original level
                            retryTime = suspendedTime;
                            markPingedPriorityLevel(root, retryTime);
                        }
                        else {
                            // Placeholder already timed out. Compute a new expiration time
                            var currentTime = requestCurrentTime();
                            retryTime = computeExpirationForFiber(currentTime, fiber);
                            markPendingPriorityLevel(root, retryTime);
                        }
                        scheduleWorkToRoot(fiber, retryTime);
                        var rootExpirationTime = root.expirationTime;
                        if (rootExpirationTime !== NoWork) {
                            if (enableSchedulerTracing) {
                                // Restore previous interactions so that new work is associated with them.
                                var prevInteractions = tracing.__interactionsRef.current;
                                tracing.__interactionsRef.current = root.memoizedInteractions;
                                // Because suspense timeouts do not decrement the interaction count,
                                // Continued suspense work should also not increment the count.
                                storeInteractionsForExpirationTime(root, rootExpirationTime, false);
                                requestWork(root, rootExpirationTime);
                                tracing.__interactionsRef.current = prevInteractions;
                            }
                            else {
                                requestWork(root, rootExpirationTime);
                            }
                        }
                    }
                }
                function scheduleWorkToRoot(fiber, expirationTime) {
                    // Update the source fiber's expiration time
                    if (fiber.expirationTime === NoWork || fiber.expirationTime > expirationTime) {
                        fiber.expirationTime = expirationTime;
                    }
                    var alternate = fiber.alternate;
                    if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > expirationTime)) {
                        alternate.expirationTime = expirationTime;
                    }
                    // Walk the parent path to the root and update the child expiration time.
                    var node = fiber.return;
                    if (node === null && fiber.tag === HostRoot) {
                        return fiber.stateNode;
                    }
                    while (node !== null) {
                        alternate = node.alternate;
                        if (node.childExpirationTime === NoWork || node.childExpirationTime > expirationTime) {
                            node.childExpirationTime = expirationTime;
                            if (alternate !== null && (alternate.childExpirationTime === NoWork || alternate.childExpirationTime > expirationTime)) {
                                alternate.childExpirationTime = expirationTime;
                            }
                        }
                        else if (alternate !== null && (alternate.childExpirationTime === NoWork || alternate.childExpirationTime > expirationTime)) {
                            alternate.childExpirationTime = expirationTime;
                        }
                        if (node.return === null && node.tag === HostRoot) {
                            return node.stateNode;
                        }
                        node = node.return;
                    }
                    return null;
                }
                function storeInteractionsForExpirationTime(root, expirationTime, updateInteractionCounts) {
                    if (!enableSchedulerTracing) {
                        return;
                    }
                    var interactions = tracing.__interactionsRef.current;
                    if (interactions.size > 0) {
                        var pendingInteractions = root.pendingInteractionMap.get(expirationTime);
                        if (pendingInteractions != null) {
                            interactions.forEach(function (interaction) {
                                if (updateInteractionCounts && !pendingInteractions.has(interaction)) {
                                    // Update the pending async work count for previously unscheduled interaction.
                                    interaction.__count++;
                                }
                                pendingInteractions.add(interaction);
                            });
                        }
                        else {
                            root.pendingInteractionMap.set(expirationTime, new Set(interactions));
                            // Update the pending async work count for the current interactions.
                            if (updateInteractionCounts) {
                                interactions.forEach(function (interaction) {
                                    interaction.__count++;
                                });
                            }
                        }
                        var subscriber = tracing.__subscriberRef.current;
                        if (subscriber !== null) {
                            var threadID = computeThreadID(expirationTime, root.interactionThreadID);
                            subscriber.onWorkScheduled(interactions, threadID);
                        }
                    }
                }
                function scheduleWork(fiber, expirationTime) {
                    recordScheduleUpdate();
                    {
                        if (fiber.tag === ClassComponent || fiber.tag === ClassComponentLazy) {
                            var instance = fiber.stateNode;
                            warnAboutInvalidUpdates(instance);
                        }
                    }
                    var root = scheduleWorkToRoot(fiber, expirationTime);
                    if (root === null) {
                        if (true && (fiber.tag === ClassComponent || fiber.tag === ClassComponentLazy)) {
                            warnAboutUpdateOnUnmounted(fiber);
                        }
                        return;
                    }
                    if (enableSchedulerTracing) {
                        storeInteractionsForExpirationTime(root, expirationTime, true);
                    }
                    if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime) {
                        // This is an interruption. (Used for performance tracking.)
                        interruptedBy = fiber;
                        resetStack();
                    }
                    markPendingPriorityLevel(root, expirationTime);
                    if (
                    // If we're in the render phase, we don't need to schedule this root
                    // for an update, because we'll do it before we exit...
                    !isWorking || isCommitting$1 ||
                        // ...unless this is a different root than the one we're rendering.
                        nextRoot !== root) {
                        var rootExpirationTime = root.expirationTime;
                        requestWork(root, rootExpirationTime);
                    }
                    if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
                        // Reset this back to zero so subsequent updates don't throw.
                        nestedUpdateCount = 0;
                        invariant(false, 'Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.');
                    }
                }
                function syncUpdates(fn, a, b, c, d) {
                    var previousExpirationContext = expirationContext;
                    expirationContext = Sync;
                    try {
                        return fn(a, b, c, d);
                    }
                    finally {
                        expirationContext = previousExpirationContext;
                    }
                }
                // TODO: Everything below this is written as if it has been lifted to the
                // renderers. I'll do this in a follow-up.
                // Linked-list of roots
                var firstScheduledRoot = null;
                var lastScheduledRoot = null;
                var callbackExpirationTime = NoWork;
                var callbackID = void 0;
                var isRendering = false;
                var nextFlushedRoot = null;
                var nextFlushedExpirationTime = NoWork;
                var lowestPriorityPendingInteractiveExpirationTime = NoWork;
                var deadlineDidExpire = false;
                var hasUnhandledError = false;
                var unhandledError = null;
                var deadline = null;
                var isBatchingUpdates = false;
                var isUnbatchingUpdates = false;
                var isBatchingInteractiveUpdates = false;
                var completedBatches = null;
                var originalStartTimeMs = schedule.unstable_now();
                var currentRendererTime = msToExpirationTime(originalStartTimeMs);
                var currentSchedulerTime = currentRendererTime;
                // Use these to prevent an infinite loop of nested updates
                var NESTED_UPDATE_LIMIT = 50;
                var nestedUpdateCount = 0;
                var lastCommittedRootDuringThisBatch = null;
                var timeHeuristicForUnitOfWork = 1;
                function recomputeCurrentRendererTime() {
                    var currentTimeMs = schedule.unstable_now() - originalStartTimeMs;
                    currentRendererTime = msToExpirationTime(currentTimeMs);
                }
                function scheduleCallbackWithExpirationTime(root, expirationTime) {
                    if (callbackExpirationTime !== NoWork) {
                        // A callback is already scheduled. Check its expiration time (timeout).
                        if (expirationTime > callbackExpirationTime) {
                            // Existing callback has sufficient timeout. Exit.
                            return;
                        }
                        else {
                            if (callbackID !== null) {
                                // Existing callback has insufficient timeout. Cancel and schedule a
                                // new one.
                                schedule.unstable_cancelScheduledWork(callbackID);
                            }
                        }
                        // The request callback timer is already running. Don't start a new one.
                    }
                    else {
                        startRequestCallbackTimer();
                    }
                    callbackExpirationTime = expirationTime;
                    var currentMs = schedule.unstable_now() - originalStartTimeMs;
                    var expirationTimeMs = expirationTimeToMs(expirationTime);
                    var timeout = expirationTimeMs - currentMs;
                    callbackID = schedule.unstable_scheduleWork(performAsyncWork, { timeout: timeout });
                }
                // For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
                // onYield is called upon exiting. We use these in lieu of returning a tuple.
                // I've also chosen not to inline them into renderRoot because these will
                // eventually be lifted into the renderer.
                function onFatal(root) {
                    root.finishedWork = null;
                }
                function onComplete(root, finishedWork, expirationTime) {
                    root.pendingCommitExpirationTime = expirationTime;
                    root.finishedWork = finishedWork;
                }
                function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
                    root.expirationTime = rootExpirationTime;
                    if (enableSuspense && msUntilTimeout === 0 && !shouldYield()) {
                        // Don't wait an additional tick. Commit the tree immediately.
                        root.pendingCommitExpirationTime = suspendedExpirationTime;
                        root.finishedWork = finishedWork;
                    }
                    else if (msUntilTimeout > 0) {
                        // Wait `msUntilTimeout` milliseconds before committing.
                        root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
                    }
                }
                function onYield(root) {
                    root.finishedWork = null;
                }
                function onTimeout(root, finishedWork, suspendedExpirationTime) {
                    if (enableSuspense) {
                        // The root timed out. Commit it.
                        root.pendingCommitExpirationTime = suspendedExpirationTime;
                        root.finishedWork = finishedWork;
                        // Read the current time before entering the commit phase. We can be
                        // certain this won't cause tearing related to batching of event updates
                        // because we're at the top of a timer event.
                        recomputeCurrentRendererTime();
                        currentSchedulerTime = currentRendererTime;
                        if (enableSchedulerTracing) {
                            // Don't update pending interaction counts for suspense timeouts,
                            // Because we know we still need to do more work in this case.
                            suspenseDidTimeout = true;
                            flushRoot(root, suspendedExpirationTime);
                            suspenseDidTimeout = false;
                        }
                        else {
                            flushRoot(root, suspendedExpirationTime);
                        }
                    }
                }
                function onCommit(root, expirationTime) {
                    root.expirationTime = expirationTime;
                    root.finishedWork = null;
                }
                function requestCurrentTime() {
                    // requestCurrentTime is called by the scheduler to compute an expiration
                    // time.
                    //
                    // Expiration times are computed by adding to the current time (the start
                    // time). However, if two updates are scheduled within the same event, we
                    // should treat their start times as simultaneous, even if the actual clock
                    // time has advanced between the first and second call.
                    // In other words, because expiration times determine how updates are batched,
                    // we want all updates of like priority that occur within the same event to
                    // receive the same expiration time. Otherwise we get tearing.
                    //
                    // We keep track of two separate times: the current "renderer" time and the
                    // current "scheduler" time. The renderer time can be updated whenever; it
                    // only exists to minimize the calls performance.now.
                    //
                    // But the scheduler time can only be updated if there's no pending work, or
                    // if we know for certain that we're not in the middle of an event.
                    if (isRendering) {
                        // We're already rendering. Return the most recently read time.
                        return currentSchedulerTime;
                    }
                    // Check if there's pending work.
                    findHighestPriorityRoot();
                    if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
                        // If there's no pending work, or if the pending work is offscreen, we can
                        // read the current time without risk of tearing.
                        recomputeCurrentRendererTime();
                        currentSchedulerTime = currentRendererTime;
                        return currentSchedulerTime;
                    }
                    // There's already pending work. We might be in the middle of a browser
                    // event. If we were to read the current time, it could cause multiple updates
                    // within the same event to receive different expiration times, leading to
                    // tearing. Return the last read time. During the next idle callback, the
                    // time will be updated.
                    return currentSchedulerTime;
                }
                // requestWork is called by the scheduler whenever a root receives an update.
                // It's up to the renderer to call renderRoot at some point in the future.
                function requestWork(root, expirationTime) {
                    addRootToSchedule(root, expirationTime);
                    if (isRendering) {
                        // Prevent reentrancy. Remaining work will be scheduled at the end of
                        // the currently rendering batch.
                        return;
                    }
                    if (isBatchingUpdates) {
                        // Flush work at the end of the batch.
                        if (isUnbatchingUpdates) {
                            // ...unless we're inside unbatchedUpdates, in which case we should
                            // flush it now.
                            nextFlushedRoot = root;
                            nextFlushedExpirationTime = Sync;
                            performWorkOnRoot(root, Sync, true);
                        }
                        return;
                    }
                    // TODO: Get rid of Sync and use current time?
                    if (expirationTime === Sync) {
                        performSyncWork();
                    }
                    else {
                        scheduleCallbackWithExpirationTime(root, expirationTime);
                    }
                }
                function addRootToSchedule(root, expirationTime) {
                    // Add the root to the schedule.
                    // Check if this root is already part of the schedule.
                    if (root.nextScheduledRoot === null) {
                        // This root is not already scheduled. Add it.
                        root.expirationTime = expirationTime;
                        if (lastScheduledRoot === null) {
                            firstScheduledRoot = lastScheduledRoot = root;
                            root.nextScheduledRoot = root;
                        }
                        else {
                            lastScheduledRoot.nextScheduledRoot = root;
                            lastScheduledRoot = root;
                            lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
                        }
                    }
                    else {
                        // This root is already scheduled, but its priority may have increased.
                        var remainingExpirationTime = root.expirationTime;
                        if (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) {
                            // Update the priority.
                            root.expirationTime = expirationTime;
                        }
                    }
                }
                function findHighestPriorityRoot() {
                    var highestPriorityWork = NoWork;
                    var highestPriorityRoot = null;
                    if (lastScheduledRoot !== null) {
                        var previousScheduledRoot = lastScheduledRoot;
                        var root = firstScheduledRoot;
                        while (root !== null) {
                            var remainingExpirationTime = root.expirationTime;
                            if (remainingExpirationTime === NoWork) {
                                // This root no longer has work. Remove it from the scheduler.
                                // TODO: This check is redudant, but Flow is confused by the branch
                                // below where we set lastScheduledRoot to null, even though we break
                                // from the loop right after.
                                !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                                if (root === root.nextScheduledRoot) {
                                    // This is the only root in the list.
                                    root.nextScheduledRoot = null;
                                    firstScheduledRoot = lastScheduledRoot = null;
                                    break;
                                }
                                else if (root === firstScheduledRoot) {
                                    // This is the first root in the list.
                                    var next = root.nextScheduledRoot;
                                    firstScheduledRoot = next;
                                    lastScheduledRoot.nextScheduledRoot = next;
                                    root.nextScheduledRoot = null;
                                }
                                else if (root === lastScheduledRoot) {
                                    // This is the last root in the list.
                                    lastScheduledRoot = previousScheduledRoot;
                                    lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
                                    root.nextScheduledRoot = null;
                                    break;
                                }
                                else {
                                    previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
                                    root.nextScheduledRoot = null;
                                }
                                root = previousScheduledRoot.nextScheduledRoot;
                            }
                            else {
                                if (highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) {
                                    // Update the priority, if it's higher
                                    highestPriorityWork = remainingExpirationTime;
                                    highestPriorityRoot = root;
                                }
                                if (root === lastScheduledRoot) {
                                    break;
                                }
                                if (highestPriorityWork === Sync) {
                                    // Sync is highest priority by definition so
                                    // we can stop searching.
                                    break;
                                }
                                previousScheduledRoot = root;
                                root = root.nextScheduledRoot;
                            }
                        }
                    }
                    nextFlushedRoot = highestPriorityRoot;
                    nextFlushedExpirationTime = highestPriorityWork;
                }
                function performAsyncWork(dl) {
                    if (dl.didTimeout) {
                        // The callback timed out. That means at least one update has expired.
                        // Iterate through the root schedule. If they contain expired work, set
                        // the next render expiration time to the current time. This has the effect
                        // of flushing all expired work in a single batch, instead of flushing each
                        // level one at a time.
                        if (firstScheduledRoot !== null) {
                            recomputeCurrentRendererTime();
                            var root = firstScheduledRoot;
                            do {
                                didExpireAtExpirationTime(root, currentRendererTime);
                                // The root schedule is circular, so this is never null.
                                root = root.nextScheduledRoot;
                            } while (root !== firstScheduledRoot);
                        }
                    }
                    performWork(NoWork, dl);
                }
                function performSyncWork() {
                    performWork(Sync, null);
                }
                function performWork(minExpirationTime, dl) {
                    deadline = dl;
                    // Keep working on roots until there's no more work, or until we reach
                    // the deadline.
                    findHighestPriorityRoot();
                    if (deadline !== null) {
                        recomputeCurrentRendererTime();
                        currentSchedulerTime = currentRendererTime;
                        if (enableUserTimingAPI) {
                            var didExpire = nextFlushedExpirationTime < currentRendererTime;
                            var timeout = expirationTimeToMs(nextFlushedExpirationTime);
                            stopRequestCallbackTimer(didExpire, timeout);
                        }
                        while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || currentRendererTime >= nextFlushedExpirationTime)) {
                            performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime >= nextFlushedExpirationTime);
                            findHighestPriorityRoot();
                            recomputeCurrentRendererTime();
                            currentSchedulerTime = currentRendererTime;
                        }
                    }
                    else {
                        while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime)) {
                            performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, true);
                            findHighestPriorityRoot();
                        }
                    }
                    // We're done flushing work. Either we ran out of time in this callback,
                    // or there's no more work left with sufficient priority.
                    // If we're inside a callback, set this to false since we just completed it.
                    if (deadline !== null) {
                        callbackExpirationTime = NoWork;
                        callbackID = null;
                    }
                    // If there's work left over, schedule a new callback.
                    if (nextFlushedExpirationTime !== NoWork) {
                        scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
                    }
                    // Clean-up.
                    deadline = null;
                    deadlineDidExpire = false;
                    finishRendering();
                }
                function flushRoot(root, expirationTime) {
                    !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
                    // Perform work on root as if the given expiration time is the current time.
                    // This has the effect of synchronously flushing all work up to and
                    // including the given time.
                    nextFlushedRoot = root;
                    nextFlushedExpirationTime = expirationTime;
                    performWorkOnRoot(root, expirationTime, true);
                    // Flush any sync work that was scheduled by lifecycles
                    performSyncWork();
                }
                function finishRendering() {
                    nestedUpdateCount = 0;
                    lastCommittedRootDuringThisBatch = null;
                    if (completedBatches !== null) {
                        var batches = completedBatches;
                        completedBatches = null;
                        for (var i = 0; i < batches.length; i++) {
                            var batch = batches[i];
                            try {
                                batch._onComplete();
                            }
                            catch (error) {
                                if (!hasUnhandledError) {
                                    hasUnhandledError = true;
                                    unhandledError = error;
                                }
                            }
                        }
                    }
                    if (hasUnhandledError) {
                        var error = unhandledError;
                        unhandledError = null;
                        hasUnhandledError = false;
                        throw error;
                    }
                }
                function performWorkOnRoot(root, expirationTime, isExpired) {
                    !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    isRendering = true;
                    // Check if this is async work or sync/expired work.
                    if (deadline === null || isExpired) {
                        // Flush work without yielding.
                        // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
                        // may want to perform some work without yielding, but also without
                        // requiring the root to complete (by triggering placeholders).
                        var finishedWork = root.finishedWork;
                        if (finishedWork !== null) {
                            // This root is already complete. We can commit it.
                            completeRoot(root, finishedWork, expirationTime);
                        }
                        else {
                            root.finishedWork = null;
                            // If this root previously suspended, clear its existing timeout, since
                            // we're about to try rendering again.
                            var timeoutHandle = root.timeoutHandle;
                            if (enableSuspense && timeoutHandle !== noTimeout) {
                                root.timeoutHandle = noTimeout;
                                // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
                                cancelTimeout(timeoutHandle);
                            }
                            var isYieldy = false;
                            renderRoot(root, isYieldy, isExpired);
                            finishedWork = root.finishedWork;
                            if (finishedWork !== null) {
                                // We've completed the root. Commit it.
                                completeRoot(root, finishedWork, expirationTime);
                            }
                        }
                    }
                    else {
                        // Flush async work.
                        var _finishedWork = root.finishedWork;
                        if (_finishedWork !== null) {
                            // This root is already complete. We can commit it.
                            completeRoot(root, _finishedWork, expirationTime);
                        }
                        else {
                            root.finishedWork = null;
                            // If this root previously suspended, clear its existing timeout, since
                            // we're about to try rendering again.
                            var _timeoutHandle = root.timeoutHandle;
                            if (enableSuspense && _timeoutHandle !== noTimeout) {
                                root.timeoutHandle = noTimeout;
                                // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
                                cancelTimeout(_timeoutHandle);
                            }
                            var _isYieldy = true;
                            renderRoot(root, _isYieldy, isExpired);
                            _finishedWork = root.finishedWork;
                            if (_finishedWork !== null) {
                                // We've completed the root. Check the deadline one more time
                                // before committing.
                                if (!shouldYield()) {
                                    // Still time left. Commit the root.
                                    completeRoot(root, _finishedWork, expirationTime);
                                }
                                else {
                                    // There's no time left. Mark this root as complete. We'll come
                                    // back and commit it later.
                                    root.finishedWork = _finishedWork;
                                }
                            }
                        }
                    }
                    isRendering = false;
                }
                function completeRoot(root, finishedWork, expirationTime) {
                    // Check if there's a batch that matches this expiration time.
                    var firstBatch = root.firstBatch;
                    if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) {
                        if (completedBatches === null) {
                            completedBatches = [firstBatch];
                        }
                        else {
                            completedBatches.push(firstBatch);
                        }
                        if (firstBatch._defer) {
                            // This root is blocked from committing by a batch. Unschedule it until
                            // we receive another update.
                            root.finishedWork = finishedWork;
                            root.expirationTime = NoWork;
                            return;
                        }
                    }
                    // Commit the root.
                    root.finishedWork = null;
                    // Check if this is a nested update (a sync update scheduled during the
                    // commit phase).
                    if (root === lastCommittedRootDuringThisBatch) {
                        // If the next root is the same as the previous root, this is a nested
                        // update. To prevent an infinite loop, increment the nested update count.
                        nestedUpdateCount++;
                    }
                    else {
                        // Reset whenever we switch roots.
                        lastCommittedRootDuringThisBatch = root;
                        nestedUpdateCount = 0;
                    }
                    commitRoot(root, finishedWork);
                }
                // When working on async work, the reconciler asks the renderer if it should
                // yield execution. For DOM, we implement this with requestIdleCallback.
                function shouldYield() {
                    if (deadlineDidExpire) {
                        return true;
                    }
                    if (deadline === null || deadline.timeRemaining() > timeHeuristicForUnitOfWork) {
                        // Disregard deadline.didTimeout. Only expired work should be flushed
                        // during a timeout. This path is only hit for non-expired work.
                        return false;
                    }
                    deadlineDidExpire = true;
                    return true;
                }
                function onUncaughtError(error) {
                    !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
                    // Unschedule this root so we don't work on it again until there's
                    // another update.
                    nextFlushedRoot.expirationTime = NoWork;
                    if (!hasUnhandledError) {
                        hasUnhandledError = true;
                        unhandledError = error;
                    }
                }
                // TODO: Batching should be implemented at the renderer level, not inside
                // the reconciler.
                function batchedUpdates$1(fn, a) {
                    var previousIsBatchingUpdates = isBatchingUpdates;
                    isBatchingUpdates = true;
                    try {
                        return fn(a);
                    }
                    finally {
                        isBatchingUpdates = previousIsBatchingUpdates;
                        if (!isBatchingUpdates && !isRendering) {
                            performSyncWork();
                        }
                    }
                }
                // TODO: Batching should be implemented at the renderer level, not inside
                // the reconciler.
                function unbatchedUpdates(fn, a) {
                    if (isBatchingUpdates && !isUnbatchingUpdates) {
                        isUnbatchingUpdates = true;
                        try {
                            return fn(a);
                        }
                        finally {
                            isUnbatchingUpdates = false;
                        }
                    }
                    return fn(a);
                }
                // TODO: Batching should be implemented at the renderer level, not within
                // the reconciler.
                function flushSync(fn, a) {
                    !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
                    var previousIsBatchingUpdates = isBatchingUpdates;
                    isBatchingUpdates = true;
                    try {
                        return syncUpdates(fn, a);
                    }
                    finally {
                        isBatchingUpdates = previousIsBatchingUpdates;
                        performSyncWork();
                    }
                }
                function interactiveUpdates$1(fn, a, b) {
                    if (isBatchingInteractiveUpdates) {
                        return fn(a, b);
                    }
                    // If there are any pending interactive updates, synchronously flush them.
                    // This needs to happen before we read any handlers, because the effect of
                    // the previous event may influence which handlers are called during
                    // this event.
                    if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
                        // Synchronously flush pending interactive updates.
                        performWork(lowestPriorityPendingInteractiveExpirationTime, null);
                        lowestPriorityPendingInteractiveExpirationTime = NoWork;
                    }
                    var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
                    var previousIsBatchingUpdates = isBatchingUpdates;
                    isBatchingInteractiveUpdates = true;
                    isBatchingUpdates = true;
                    try {
                        return fn(a, b);
                    }
                    finally {
                        isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
                        isBatchingUpdates = previousIsBatchingUpdates;
                        if (!isBatchingUpdates && !isRendering) {
                            performSyncWork();
                        }
                    }
                }
                function flushInteractiveUpdates$1() {
                    if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
                        // Synchronously flush pending interactive updates.
                        performWork(lowestPriorityPendingInteractiveExpirationTime, null);
                        lowestPriorityPendingInteractiveExpirationTime = NoWork;
                    }
                }
                function flushControlled(fn) {
                    var previousIsBatchingUpdates = isBatchingUpdates;
                    isBatchingUpdates = true;
                    try {
                        syncUpdates(fn);
                    }
                    finally {
                        isBatchingUpdates = previousIsBatchingUpdates;
                        if (!isBatchingUpdates && !isRendering) {
                            performSyncWork();
                        }
                    }
                }
                // 0 is PROD, 1 is DEV.
                // Might add PROFILE later.
                var didWarnAboutNestedUpdates = void 0;
                {
                    didWarnAboutNestedUpdates = false;
                }
                function getContextForSubtree(parentComponent) {
                    if (!parentComponent) {
                        return emptyContextObject;
                    }
                    var fiber = get(parentComponent);
                    var parentContext = findCurrentUnmaskedContext(fiber);
                    if (fiber.tag === ClassComponent) {
                        var Component = fiber.type;
                        if (isContextProvider(Component)) {
                            return processChildContext(fiber, Component, parentContext);
                        }
                    }
                    else if (fiber.tag === ClassComponentLazy) {
                        var _Component = getResultFromResolvedThenable(fiber.type);
                        if (isContextProvider(_Component)) {
                            return processChildContext(fiber, _Component, parentContext);
                        }
                    }
                    return parentContext;
                }
                function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
                    {
                        if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
                            didWarnAboutNestedUpdates = true;
                            warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
                        }
                    }
                    var update = createUpdate(expirationTime);
                    // Caution: React DevTools currently depends on this property
                    // being called "element".
                    update.payload = { element: element };
                    callback = callback === undefined ? null : callback;
                    if (callback !== null) {
                        !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
                        update.callback = callback;
                    }
                    enqueueUpdate(current$$1, update);
                    scheduleWork(current$$1, expirationTime);
                    return expirationTime;
                }
                function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
                    // TODO: If this is a nested container, this won't be the root.
                    var current$$1 = container.current;
                    {
                        if (ReactFiberInstrumentation_1.debugTool) {
                            if (current$$1.alternate === null) {
                                ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
                            }
                            else if (element === null) {
                                ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
                            }
                            else {
                                ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
                            }
                        }
                    }
                    var context = getContextForSubtree(parentComponent);
                    if (container.context === null) {
                        container.context = context;
                    }
                    else {
                        container.pendingContext = context;
                    }
                    return scheduleRootUpdate(current$$1, element, expirationTime, callback);
                }
                function findHostInstance(component) {
                    var fiber = get(component);
                    if (fiber === undefined) {
                        if (typeof component.render === 'function') {
                            invariant(false, 'Unable to find node on an unmounted component.');
                        }
                        else {
                            invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
                        }
                    }
                    var hostFiber = findCurrentHostFiber(fiber);
                    if (hostFiber === null) {
                        return null;
                    }
                    return hostFiber.stateNode;
                }
                function createContainer(containerInfo, isAsync, hydrate) {
                    return createFiberRoot(containerInfo, isAsync, hydrate);
                }
                function updateContainer(element, container, parentComponent, callback) {
                    var current$$1 = container.current;
                    var currentTime = requestCurrentTime();
                    var expirationTime = computeExpirationForFiber(currentTime, current$$1);
                    return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
                }
                function getPublicRootInstance(container) {
                    var containerFiber = container.current;
                    if (!containerFiber.child) {
                        return null;
                    }
                    switch (containerFiber.child.tag) {
                        case HostComponent:
                            return getPublicInstance(containerFiber.child.stateNode);
                        default:
                            return containerFiber.child.stateNode;
                    }
                }
                function findHostInstanceWithNoPortals(fiber) {
                    var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
                    if (hostFiber === null) {
                        return null;
                    }
                    return hostFiber.stateNode;
                }
                function injectIntoDevTools(devToolsConfig) {
                    var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
                    return injectInternals(_assign({}, devToolsConfig, {
                        findHostInstanceByFiber: function (fiber) {
                            var hostFiber = findCurrentHostFiber(fiber);
                            if (hostFiber === null) {
                                return null;
                            }
                            return hostFiber.stateNode;
                        },
                        findFiberByHostInstance: function (instance) {
                            if (!findFiberByHostInstance) {
                                // Might not be implemented by the renderer.
                                return null;
                            }
                            return findFiberByHostInstance(instance);
                        }
                    }));
                }
                // This file intentionally does *not* have the Flow annotation.
                // Don't add it. See `./inline-typed.js` for an explanation.
                function createPortal$1(children, containerInfo, 
                // TODO: figure out the API for cross-renderer implementation.
                implementation) {
                    var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
                    return {
                        // This tag allow us to uniquely identify this as a React Portal
                        $$typeof: REACT_PORTAL_TYPE,
                        key: key == null ? null : '' + key,
                        children: children,
                        containerInfo: containerInfo,
                        implementation: implementation
                    };
                }
                // TODO: this is special because it gets imported during build.
                var ReactVersion = '16.5.2';
                // TODO: This type is shared between the reconciler and ReactDOM, but will
                // eventually be lifted out to the renderer.
                var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
                var topLevelUpdateWarnings = void 0;
                var warnOnInvalidCallback = void 0;
                var didWarnAboutUnstableCreatePortal = false;
                {
                    if (typeof Map !== 'function' ||
                        // $FlowIssue Flow incorrectly thinks Map has no prototype
                        Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
                        // $FlowIssue Flow incorrectly thinks Set has no prototype
                        Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
                        warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
                    }
                    topLevelUpdateWarnings = function (container) {
                        if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
                            var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
                            if (hostInstance) {
                                !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
                            }
                        }
                        var isRootRenderedBySomeReact = !!container._reactRootContainer;
                        var rootEl = getReactRootElementInContainer(container);
                        var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
                        !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
                        !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
                    };
                    warnOnInvalidCallback = function (callback, callerName) {
                        !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
                    };
                }
                setRestoreImplementation(restoreControlledState$1);
                /* eslint-disable no-use-before-define */
                /* eslint-enable no-use-before-define */
                function ReactBatch(root) {
                    var expirationTime = computeUniqueAsyncExpiration();
                    this._expirationTime = expirationTime;
                    this._root = root;
                    this._next = null;
                    this._callbacks = null;
                    this._didComplete = false;
                    this._hasChildren = false;
                    this._children = null;
                    this._defer = true;
                }
                ReactBatch.prototype.render = function (children) {
                    !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
                    this._hasChildren = true;
                    this._children = children;
                    var internalRoot = this._root._internalRoot;
                    var expirationTime = this._expirationTime;
                    var work = new ReactWork();
                    updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
                    return work;
                };
                ReactBatch.prototype.then = function (onComplete) {
                    if (this._didComplete) {
                        onComplete();
                        return;
                    }
                    var callbacks = this._callbacks;
                    if (callbacks === null) {
                        callbacks = this._callbacks = [];
                    }
                    callbacks.push(onComplete);
                };
                ReactBatch.prototype.commit = function () {
                    var internalRoot = this._root._internalRoot;
                    var firstBatch = internalRoot.firstBatch;
                    !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
                    if (!this._hasChildren) {
                        // This batch is empty. Return.
                        this._next = null;
                        this._defer = false;
                        return;
                    }
                    var expirationTime = this._expirationTime;
                    // Ensure this is the first batch in the list.
                    if (firstBatch !== this) {
                        // This batch is not the earliest batch. We need to move it to the front.
                        // Update its expiration time to be the expiration time of the earliest
                        // batch, so that we can flush it without flushing the other batches.
                        if (this._hasChildren) {
                            expirationTime = this._expirationTime = firstBatch._expirationTime;
                            // Rendering this batch again ensures its children will be the final state
                            // when we flush (updates are processed in insertion order: last
                            // update wins).
                            // TODO: This forces a restart. Should we print a warning?
                            this.render(this._children);
                        }
                        // Remove the batch from the list.
                        var previous = null;
                        var batch = firstBatch;
                        while (batch !== this) {
                            previous = batch;
                            batch = batch._next;
                        }
                        !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
                        previous._next = batch._next;
                        // Add it to the front.
                        this._next = firstBatch;
                        firstBatch = internalRoot.firstBatch = this;
                    }
                    // Synchronously flush all the work up to this batch's expiration time.
                    this._defer = false;
                    flushRoot(internalRoot, expirationTime);
                    // Pop the batch from the list.
                    var next = this._next;
                    this._next = null;
                    firstBatch = internalRoot.firstBatch = next;
                    // Append the next earliest batch's children to the update queue.
                    if (firstBatch !== null && firstBatch._hasChildren) {
                        firstBatch.render(firstBatch._children);
                    }
                };
                ReactBatch.prototype._onComplete = function () {
                    if (this._didComplete) {
                        return;
                    }
                    this._didComplete = true;
                    var callbacks = this._callbacks;
                    if (callbacks === null) {
                        return;
                    }
                    // TODO: Error handling.
                    for (var i = 0; i < callbacks.length; i++) {
                        var _callback = callbacks[i];
                        _callback();
                    }
                };
                function ReactWork() {
                    this._callbacks = null;
                    this._didCommit = false;
                    // TODO: Avoid need to bind by replacing callbacks in the update queue with
                    // list of Work objects.
                    this._onCommit = this._onCommit.bind(this);
                }
                ReactWork.prototype.then = function (onCommit) {
                    if (this._didCommit) {
                        onCommit();
                        return;
                    }
                    var callbacks = this._callbacks;
                    if (callbacks === null) {
                        callbacks = this._callbacks = [];
                    }
                    callbacks.push(onCommit);
                };
                ReactWork.prototype._onCommit = function () {
                    if (this._didCommit) {
                        return;
                    }
                    this._didCommit = true;
                    var callbacks = this._callbacks;
                    if (callbacks === null) {
                        return;
                    }
                    // TODO: Error handling.
                    for (var i = 0; i < callbacks.length; i++) {
                        var _callback2 = callbacks[i];
                        !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
                        _callback2();
                    }
                };
                function ReactRoot(container, isAsync, hydrate) {
                    var root = createContainer(container, isAsync, hydrate);
                    this._internalRoot = root;
                }
                ReactRoot.prototype.render = function (children, callback) {
                    var root = this._internalRoot;
                    var work = new ReactWork();
                    callback = callback === undefined ? null : callback;
                    {
                        warnOnInvalidCallback(callback, 'render');
                    }
                    if (callback !== null) {
                        work.then(callback);
                    }
                    updateContainer(children, root, null, work._onCommit);
                    return work;
                };
                ReactRoot.prototype.unmount = function (callback) {
                    var root = this._internalRoot;
                    var work = new ReactWork();
                    callback = callback === undefined ? null : callback;
                    {
                        warnOnInvalidCallback(callback, 'render');
                    }
                    if (callback !== null) {
                        work.then(callback);
                    }
                    updateContainer(null, root, null, work._onCommit);
                    return work;
                };
                ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
                    var root = this._internalRoot;
                    var work = new ReactWork();
                    callback = callback === undefined ? null : callback;
                    {
                        warnOnInvalidCallback(callback, 'render');
                    }
                    if (callback !== null) {
                        work.then(callback);
                    }
                    updateContainer(children, root, parentComponent, work._onCommit);
                    return work;
                };
                ReactRoot.prototype.createBatch = function () {
                    var batch = new ReactBatch(this);
                    var expirationTime = batch._expirationTime;
                    var internalRoot = this._internalRoot;
                    var firstBatch = internalRoot.firstBatch;
                    if (firstBatch === null) {
                        internalRoot.firstBatch = batch;
                        batch._next = null;
                    }
                    else {
                        // Insert sorted by expiration time then insertion order
                        var insertAfter = null;
                        var insertBefore = firstBatch;
                        while (insertBefore !== null && insertBefore._expirationTime <= expirationTime) {
                            insertAfter = insertBefore;
                            insertBefore = insertBefore._next;
                        }
                        batch._next = insertBefore;
                        if (insertAfter !== null) {
                            insertAfter._next = batch;
                        }
                    }
                    return batch;
                };
                /**
                 * True if the supplied DOM node is a valid node element.
                 *
                 * @param {?DOMElement} node The candidate DOM node.
                 * @return {boolean} True if the DOM is a valid DOM node.
                 * @internal
                 */
                function isValidContainer(node) {
                    return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
                }
                function getReactRootElementInContainer(container) {
                    if (!container) {
                        return null;
                    }
                    if (container.nodeType === DOCUMENT_NODE) {
                        return container.documentElement;
                    }
                    else {
                        return container.firstChild;
                    }
                }
                function shouldHydrateDueToLegacyHeuristic(container) {
                    var rootElement = getReactRootElementInContainer(container);
                    return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
                }
                setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);
                var warnedAboutHydrateAPI = false;
                function legacyCreateRootFromDOMContainer(container, forceHydrate) {
                    var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
                    // First clear any existing content.
                    if (!shouldHydrate) {
                        var warned = false;
                        var rootSibling = void 0;
                        while (rootSibling = container.lastChild) {
                            {
                                if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
                                    warned = true;
                                    warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
                                }
                            }
                            container.removeChild(rootSibling);
                        }
                    }
                    {
                        if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
                            warnedAboutHydrateAPI = true;
                            lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
                        }
                    }
                    // Legacy roots are not async by default.
                    var isAsync = false;
                    return new ReactRoot(container, isAsync, shouldHydrate);
                }
                function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
                    // TODO: Ensure all entry points contain this check
                    !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
                    {
                        topLevelUpdateWarnings(container);
                    }
                    // TODO: Without `any` type, Flow says "Property cannot be accessed on any
                    // member of intersection type." Whyyyyyy.
                    var root = container._reactRootContainer;
                    if (!root) {
                        // Initial mount
                        root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
                        if (typeof callback === 'function') {
                            var originalCallback = callback;
                            callback = function () {
                                var instance = getPublicRootInstance(root._internalRoot);
                                originalCallback.call(instance);
                            };
                        }
                        // Initial mount should not be batched.
                        unbatchedUpdates(function () {
                            if (parentComponent != null) {
                                root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
                            }
                            else {
                                root.render(children, callback);
                            }
                        });
                    }
                    else {
                        if (typeof callback === 'function') {
                            var _originalCallback = callback;
                            callback = function () {
                                var instance = getPublicRootInstance(root._internalRoot);
                                _originalCallback.call(instance);
                            };
                        }
                        // Update
                        if (parentComponent != null) {
                            root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
                        }
                        else {
                            root.render(children, callback);
                        }
                    }
                    return getPublicRootInstance(root._internalRoot);
                }
                function createPortal(children, container) {
                    var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
                    !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
                    // TODO: pass ReactDOM portal implementation as third argument
                    return createPortal$1(children, container, null, key);
                }
                var ReactDOM = {
                    createPortal: createPortal,
                    findDOMNode: function (componentOrElement) {
                        {
                            var owner = ReactCurrentOwner.current;
                            if (owner !== null && owner.stateNode !== null) {
                                var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
                                !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
                                owner.stateNode._warnedAboutRefsInRender = true;
                            }
                        }
                        if (componentOrElement == null) {
                            return null;
                        }
                        if (componentOrElement.nodeType === ELEMENT_NODE) {
                            return componentOrElement;
                        }
                        return findHostInstance(componentOrElement);
                    },
                    hydrate: function (element, container, callback) {
                        // TODO: throw or warn if we couldn't hydrate?
                        return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
                    },
                    render: function (element, container, callback) {
                        return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
                    },
                    unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
                        !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
                        return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
                    },
                    unmountComponentAtNode: function (container) {
                        !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;
                        if (container._reactRootContainer) {
                            {
                                var rootEl = getReactRootElementInContainer(container);
                                var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
                                !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
                            }
                            // Unmount should not be batched.
                            unbatchedUpdates(function () {
                                legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
                                    container._reactRootContainer = null;
                                });
                            });
                            // If you call unmountComponentAtNode twice in quick succession, you'll
                            // get `true` twice. That's probably fine?
                            return true;
                        }
                        else {
                            {
                                var _rootEl = getReactRootElementInContainer(container);
                                var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
                                // Check if the container itself is a React root node.
                                var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
                                !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
                            }
                            return false;
                        }
                    },
                    // Temporary alias since we already shipped React 16 RC with it.
                    // TODO: remove in React 17.
                    unstable_createPortal: function () {
                        if (!didWarnAboutUnstableCreatePortal) {
                            didWarnAboutUnstableCreatePortal = true;
                            lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
                        }
                        return createPortal.apply(undefined, arguments);
                    },
                    unstable_batchedUpdates: batchedUpdates$1,
                    unstable_interactiveUpdates: interactiveUpdates$1,
                    flushSync: flushSync,
                    unstable_flushControlled: flushControlled,
                    __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
                        // Keep in sync with ReactDOMUnstableNativeDependencies.js
                        // and ReactTestUtils.js. This is an array for better minification.
                        Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
                    }
                };
                ReactDOM.unstable_createRoot = function createRoot(container, options) {
                    !isValidContainer(container) ? invariant(false, 'unstable_createRoot(...): Target container is not a DOM element.') : void 0;
                    var hydrate = options != null && options.hydrate === true;
                    return new ReactRoot(container, true, hydrate);
                };
                var foundDevTools = injectIntoDevTools({
                    findFiberByHostInstance: getClosestInstanceFromNode,
                    bundleType: 1,
                    version: ReactVersion,
                    rendererPackageName: 'react-dom'
                });
                {
                    if (!foundDevTools && canUseDOM && window.top === window.self) {
                        // If we're in Chrome or Firefox, provide a download link if not installed.
                        if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
                            var protocol = window.location.protocol;
                            // Don't warn in exotic cases like chrome-extension://.
                            if (/^(https?|file):$/.test(protocol)) {
                                console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
                            }
                        }
                    }
                }
                var ReactDOM$2 = Object.freeze({
                    default: ReactDOM
                });
                var ReactDOM$3 = (ReactDOM$2 && ReactDOM) || ReactDOM$2;
                // TODO: decide on the top-level export form.
                // This is hacky but makes it work with both Rollup and Jest.
                var reactDom = ReactDOM$3.default || ReactDOM$3;
                module.exports = reactDom;
            })();
        }
        /***/ 
    }),
    /* 9 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        if (false) { }
        else {
            module.exports = __webpack_require__(10);
        }
        /***/ 
    }),
    /* 10 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /** @license React v16.5.2
         * react.development.js
         *
         * Copyright (c) Facebook, Inc. and its affiliates.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        if (true) {
            (function () {
                'use strict';
                var _assign = __webpack_require__(11);
                var checkPropTypes = __webpack_require__(12);
                // TODO: this is special because it gets imported during build.
                var ReactVersion = '16.5.2';
                // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
                // nor polyfill, then a plain number is used for performance.
                var hasSymbol = typeof Symbol === 'function' && Symbol.for;
                var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
                var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
                var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
                var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
                var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
                var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
                var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
                var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
                var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
                var REACT_PLACEHOLDER_TYPE = hasSymbol ? Symbol.for('react.placeholder') : 0xead1;
                var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
                var FAUX_ITERATOR_SYMBOL = '@@iterator';
                function getIteratorFn(maybeIterable) {
                    if (maybeIterable === null || typeof maybeIterable !== 'object') {
                        return null;
                    }
                    var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
                    if (typeof maybeIterator === 'function') {
                        return maybeIterator;
                    }
                    return null;
                }
                // Exports ReactDOM.createRoot
                // Experimental error-boundary API that can recover from errors within a single
                // render phase
                // Suspense
                var enableSuspense = false;
                // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
                // In some cases, StrictMode should also double-render lifecycles.
                // This can be confusing for tests though,
                // And it can be bad for performance in production.
                // This feature flag can be used to control the behavior:
                // To preserve the "Pause on caught exceptions" behavior of the debugger, we
                // replay the begin phase of a failed component inside invokeGuardedCallback.
                // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
                // Warn about legacy context API
                // Gather advanced timing metrics for Profiler subtrees.
                // Trace which interactions trigger each commit.
                // Only used in www builds.
                // Only used in www builds.
                // React Fire: prevent the value and checked attributes from syncing
                // with their related DOM properties
                /**
                 * Use invariant() to assert state which your program assumes to be true.
                 *
                 * Provide sprintf-style format (only %s is supported) and arguments
                 * to provide information about what broke and what you were
                 * expecting.
                 *
                 * The invariant message will be stripped in production, but the invariant
                 * will remain to ensure logic does not differ in production.
                 */
                var validateFormat = function () { };
                {
                    validateFormat = function (format) {
                        if (format === undefined) {
                            throw new Error('invariant requires an error message argument');
                        }
                    };
                }
                function invariant(condition, format, a, b, c, d, e, f) {
                    validateFormat(format);
                    if (!condition) {
                        var error = void 0;
                        if (format === undefined) {
                            error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
                        }
                        else {
                            var args = [a, b, c, d, e, f];
                            var argIndex = 0;
                            error = new Error(format.replace(/%s/g, function () {
                                return args[argIndex++];
                            }));
                            error.name = 'Invariant Violation';
                        }
                        error.framesToPop = 1; // we don't care about invariant's own frame
                        throw error;
                    }
                }
                // Relying on the `invariant()` implementation lets us
                // preserve the format and params in the www builds.
                /**
                 * Forked from fbjs/warning:
                 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
                 *
                 * Only change is we use console.warn instead of console.error,
                 * and do nothing when 'console' is not supported.
                 * This really simplifies the code.
                 * ---
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var lowPriorityWarning = function () { };
                {
                    var printWarning = function (format) {
                        for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                            args[_key - 1] = arguments[_key];
                        }
                        var argIndex = 0;
                        var message = 'Warning: ' + format.replace(/%s/g, function () {
                            return args[argIndex++];
                        });
                        if (typeof console !== 'undefined') {
                            console.warn(message);
                        }
                        try {
                            // --- Welcome to debugging React ---
                            // This error was thrown as a convenience so that you can use this stack
                            // to find the callsite that caused this warning to fire.
                            throw new Error(message);
                        }
                        catch (x) { }
                    };
                    lowPriorityWarning = function (condition, format) {
                        if (format === undefined) {
                            throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
                        }
                        if (!condition) {
                            for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
                                args[_key2 - 2] = arguments[_key2];
                            }
                            printWarning.apply(undefined, [format].concat(args));
                        }
                    };
                }
                var lowPriorityWarning$1 = lowPriorityWarning;
                /**
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var warningWithoutStack = function () { };
                {
                    warningWithoutStack = function (condition, format) {
                        for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
                            args[_key - 2] = arguments[_key];
                        }
                        if (format === undefined) {
                            throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
                        }
                        if (args.length > 8) {
                            // Check before the condition to catch violations early.
                            throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
                        }
                        if (condition) {
                            return;
                        }
                        if (typeof console !== 'undefined') {
                            var _args$map = args.map(function (item) {
                                return '' + item;
                            }), a = _args$map[0], b = _args$map[1], c = _args$map[2], d = _args$map[3], e = _args$map[4], f = _args$map[5], g = _args$map[6], h = _args$map[7];
                            var message = 'Warning: ' + format;
                            // We intentionally don't use spread (or .apply) because it breaks IE9:
                            // https://github.com/facebook/react/issues/13610
                            switch (args.length) {
                                case 0:
                                    console.error(message);
                                    break;
                                case 1:
                                    console.error(message, a);
                                    break;
                                case 2:
                                    console.error(message, a, b);
                                    break;
                                case 3:
                                    console.error(message, a, b, c);
                                    break;
                                case 4:
                                    console.error(message, a, b, c, d);
                                    break;
                                case 5:
                                    console.error(message, a, b, c, d, e);
                                    break;
                                case 6:
                                    console.error(message, a, b, c, d, e, f);
                                    break;
                                case 7:
                                    console.error(message, a, b, c, d, e, f, g);
                                    break;
                                case 8:
                                    console.error(message, a, b, c, d, e, f, g, h);
                                    break;
                                default:
                                    throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
                            }
                        }
                        try {
                            // --- Welcome to debugging React ---
                            // This error was thrown as a convenience so that you can use this stack
                            // to find the callsite that caused this warning to fire.
                            var argIndex = 0;
                            var _message = 'Warning: ' + format.replace(/%s/g, function () {
                                return args[argIndex++];
                            });
                            throw new Error(_message);
                        }
                        catch (x) { }
                    };
                }
                var warningWithoutStack$1 = warningWithoutStack;
                var didWarnStateUpdateForUnmountedComponent = {};
                function warnNoop(publicInstance, callerName) {
                    {
                        var _constructor = publicInstance.constructor;
                        var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
                        var warningKey = componentName + '.' + callerName;
                        if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
                            return;
                        }
                        warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
                        didWarnStateUpdateForUnmountedComponent[warningKey] = true;
                    }
                }
                /**
                 * This is the abstract API for an update queue.
                 */
                var ReactNoopUpdateQueue = {
                    /**
                     * Checks whether or not this composite component is mounted.
                     * @param {ReactClass} publicInstance The instance we want to test.
                     * @return {boolean} True if mounted, false otherwise.
                     * @protected
                     * @final
                     */
                    isMounted: function (publicInstance) {
                        return false;
                    },
                    /**
                     * Forces an update. This should only be invoked when it is known with
                     * certainty that we are **not** in a DOM transaction.
                     *
                     * You may want to call this when you know that some deeper aspect of the
                     * component's state has changed but `setState` was not called.
                     *
                     * This will not invoke `shouldComponentUpdate`, but it will invoke
                     * `componentWillUpdate` and `componentDidUpdate`.
                     *
                     * @param {ReactClass} publicInstance The instance that should rerender.
                     * @param {?function} callback Called after component is updated.
                     * @param {?string} callerName name of the calling function in the public API.
                     * @internal
                     */
                    enqueueForceUpdate: function (publicInstance, callback, callerName) {
                        warnNoop(publicInstance, 'forceUpdate');
                    },
                    /**
                     * Replaces all of the state. Always use this or `setState` to mutate state.
                     * You should treat `this.state` as immutable.
                     *
                     * There is no guarantee that `this.state` will be immediately updated, so
                     * accessing `this.state` after calling this method may return the old value.
                     *
                     * @param {ReactClass} publicInstance The instance that should rerender.
                     * @param {object} completeState Next state.
                     * @param {?function} callback Called after component is updated.
                     * @param {?string} callerName name of the calling function in the public API.
                     * @internal
                     */
                    enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
                        warnNoop(publicInstance, 'replaceState');
                    },
                    /**
                     * Sets a subset of the state. This only exists because _pendingState is
                     * internal. This provides a merging strategy that is not available to deep
                     * properties which is confusing. TODO: Expose pendingState or don't use it
                     * during the merge.
                     *
                     * @param {ReactClass} publicInstance The instance that should rerender.
                     * @param {object} partialState Next partial state to be merged with state.
                     * @param {?function} callback Called after component is updated.
                     * @param {?string} Name of the calling function in the public API.
                     * @internal
                     */
                    enqueueSetState: function (publicInstance, partialState, callback, callerName) {
                        warnNoop(publicInstance, 'setState');
                    }
                };
                var emptyObject = {};
                {
                    Object.freeze(emptyObject);
                }
                /**
                 * Base class helpers for the updating state of a component.
                 */
                function Component(props, context, updater) {
                    this.props = props;
                    this.context = context;
                    // If a component has string refs, we will assign a different object later.
                    this.refs = emptyObject;
                    // We initialize the default updater but the real one gets injected by the
                    // renderer.
                    this.updater = updater || ReactNoopUpdateQueue;
                }
                Component.prototype.isReactComponent = {};
                /**
                 * Sets a subset of the state. Always use this to mutate
                 * state. You should treat `this.state` as immutable.
                 *
                 * There is no guarantee that `this.state` will be immediately updated, so
                 * accessing `this.state` after calling this method may return the old value.
                 *
                 * There is no guarantee that calls to `setState` will run synchronously,
                 * as they may eventually be batched together.  You can provide an optional
                 * callback that will be executed when the call to setState is actually
                 * completed.
                 *
                 * When a function is provided to setState, it will be called at some point in
                 * the future (not synchronously). It will be called with the up to date
                 * component arguments (state, props, context). These values can be different
                 * from this.* because your function may be called after receiveProps but before
                 * shouldComponentUpdate, and this new state, props, and context will not yet be
                 * assigned to this.
                 *
                 * @param {object|function} partialState Next partial state or function to
                 *        produce next partial state to be merged with current state.
                 * @param {?function} callback Called after state is updated.
                 * @final
                 * @protected
                 */
                Component.prototype.setState = function (partialState, callback) {
                    !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
                    this.updater.enqueueSetState(this, partialState, callback, 'setState');
                };
                /**
                 * Forces an update. This should only be invoked when it is known with
                 * certainty that we are **not** in a DOM transaction.
                 *
                 * You may want to call this when you know that some deeper aspect of the
                 * component's state has changed but `setState` was not called.
                 *
                 * This will not invoke `shouldComponentUpdate`, but it will invoke
                 * `componentWillUpdate` and `componentDidUpdate`.
                 *
                 * @param {?function} callback Called after update is complete.
                 * @final
                 * @protected
                 */
                Component.prototype.forceUpdate = function (callback) {
                    this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
                };
                /**
                 * Deprecated APIs. These APIs used to exist on classic React classes but since
                 * we would like to deprecate them, we're not going to move them over to this
                 * modern base class. Instead, we define a getter that warns if it's accessed.
                 */
                {
                    var deprecatedAPIs = {
                        isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
                        replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
                    };
                    var defineDeprecationWarning = function (methodName, info) {
                        Object.defineProperty(Component.prototype, methodName, {
                            get: function () {
                                lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
                                return undefined;
                            }
                        });
                    };
                    for (var fnName in deprecatedAPIs) {
                        if (deprecatedAPIs.hasOwnProperty(fnName)) {
                            defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
                        }
                    }
                }
                function ComponentDummy() { }
                ComponentDummy.prototype = Component.prototype;
                /**
                 * Convenience component with default shallow equality check for sCU.
                 */
                function PureComponent(props, context, updater) {
                    this.props = props;
                    this.context = context;
                    // If a component has string refs, we will assign a different object later.
                    this.refs = emptyObject;
                    this.updater = updater || ReactNoopUpdateQueue;
                }
                var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
                pureComponentPrototype.constructor = PureComponent;
                // Avoid an extra prototype jump for these methods.
                _assign(pureComponentPrototype, Component.prototype);
                pureComponentPrototype.isPureReactComponent = true;
                // an immutable object with a single mutable value
                function createRef() {
                    var refObject = {
                        current: null
                    };
                    {
                        Object.seal(refObject);
                    }
                    return refObject;
                }
                /**
                 * Keeps track of the current owner.
                 *
                 * The current owner is the component who should own any components that are
                 * currently being constructed.
                 */
                var ReactCurrentOwner = {
                    /**
                     * @internal
                     * @type {ReactComponent}
                     */
                    current: null,
                    currentDispatcher: null
                };
                var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
                var describeComponentFrame = function (name, source, ownerName) {
                    var sourceInfo = '';
                    if (source) {
                        var path = source.fileName;
                        var fileName = path.replace(BEFORE_SLASH_RE, '');
                        {
                            // In DEV, include code for a common special case:
                            // prefer "folder/index.js" instead of just "index.js".
                            if (/^index\./.test(fileName)) {
                                var match = path.match(BEFORE_SLASH_RE);
                                if (match) {
                                    var pathBeforeSlash = match[1];
                                    if (pathBeforeSlash) {
                                        var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
                                        fileName = folderName + '/' + fileName;
                                    }
                                }
                            }
                        }
                        sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
                    }
                    else if (ownerName) {
                        sourceInfo = ' (created by ' + ownerName + ')';
                    }
                    return '\n    in ' + (name || 'Unknown') + sourceInfo;
                };
                var Resolved = 1;
                function refineResolvedThenable(thenable) {
                    return thenable._reactStatus === Resolved ? thenable._reactResult : null;
                }
                function getComponentName(type) {
                    if (type == null) {
                        // Host root, text node or just invalid type.
                        return null;
                    }
                    {
                        if (typeof type.tag === 'number') {
                            warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
                        }
                    }
                    if (typeof type === 'function') {
                        return type.displayName || type.name || null;
                    }
                    if (typeof type === 'string') {
                        return type;
                    }
                    switch (type) {
                        case REACT_ASYNC_MODE_TYPE:
                            return 'AsyncMode';
                        case REACT_FRAGMENT_TYPE:
                            return 'Fragment';
                        case REACT_PORTAL_TYPE:
                            return 'Portal';
                        case REACT_PROFILER_TYPE:
                            return 'Profiler';
                        case REACT_STRICT_MODE_TYPE:
                            return 'StrictMode';
                        case REACT_PLACEHOLDER_TYPE:
                            return 'Placeholder';
                    }
                    if (typeof type === 'object') {
                        switch (type.$$typeof) {
                            case REACT_CONTEXT_TYPE:
                                return 'Context.Consumer';
                            case REACT_PROVIDER_TYPE:
                                return 'Context.Provider';
                            case REACT_FORWARD_REF_TYPE:
                                var renderFn = type.render;
                                var functionName = renderFn.displayName || renderFn.name || '';
                                return type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
                        }
                        if (typeof type.then === 'function') {
                            var thenable = type;
                            var resolvedThenable = refineResolvedThenable(thenable);
                            if (resolvedThenable) {
                                return getComponentName(resolvedThenable);
                            }
                        }
                    }
                    return null;
                }
                var ReactDebugCurrentFrame = {};
                var currentlyValidatingElement = null;
                function setCurrentlyValidatingElement(element) {
                    {
                        currentlyValidatingElement = element;
                    }
                }
                {
                    // Stack implementation injected by the current renderer.
                    ReactDebugCurrentFrame.getCurrentStack = null;
                    ReactDebugCurrentFrame.getStackAddendum = function () {
                        var stack = '';
                        // Add an extra top frame while an element is being validated
                        if (currentlyValidatingElement) {
                            var name = getComponentName(currentlyValidatingElement.type);
                            var owner = currentlyValidatingElement._owner;
                            stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
                        }
                        // Delegate to the injected renderer-specific implementation
                        var impl = ReactDebugCurrentFrame.getCurrentStack;
                        if (impl) {
                            stack += impl() || '';
                        }
                        return stack;
                    };
                }
                var ReactSharedInternals = {
                    ReactCurrentOwner: ReactCurrentOwner,
                    // Used by renderers to avoid bundling object-assign twice in UMD bundles:
                    assign: _assign
                };
                {
                    _assign(ReactSharedInternals, {
                        // These should not be included in production.
                        ReactDebugCurrentFrame: ReactDebugCurrentFrame,
                        // Shim for React DOM 16.0.0 which still destructured (but not used) this.
                        // TODO: remove in React 17.0.
                        ReactComponentTreeHook: {}
                    });
                }
                /**
                 * Similar to invariant but only logs a warning if the condition is not met.
                 * This can be used to log issues in development environments in critical
                 * paths. Removing the logging code for production environments will keep the
                 * same logic and follow the same code paths.
                 */
                var warning = warningWithoutStack$1;
                {
                    warning = function (condition, format) {
                        if (condition) {
                            return;
                        }
                        var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
                        var stack = ReactDebugCurrentFrame.getStackAddendum();
                        // eslint-disable-next-line react-internal/warning-and-invariant-args
                        for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
                            args[_key - 2] = arguments[_key];
                        }
                        warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
                    };
                }
                var warning$1 = warning;
                var hasOwnProperty = Object.prototype.hasOwnProperty;
                var RESERVED_PROPS = {
                    key: true,
                    ref: true,
                    __self: true,
                    __source: true
                };
                var specialPropKeyWarningShown = void 0;
                var specialPropRefWarningShown = void 0;
                function hasValidRef(config) {
                    {
                        if (hasOwnProperty.call(config, 'ref')) {
                            var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
                            if (getter && getter.isReactWarning) {
                                return false;
                            }
                        }
                    }
                    return config.ref !== undefined;
                }
                function hasValidKey(config) {
                    {
                        if (hasOwnProperty.call(config, 'key')) {
                            var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
                            if (getter && getter.isReactWarning) {
                                return false;
                            }
                        }
                    }
                    return config.key !== undefined;
                }
                function defineKeyPropWarningGetter(props, displayName) {
                    var warnAboutAccessingKey = function () {
                        if (!specialPropKeyWarningShown) {
                            specialPropKeyWarningShown = true;
                            warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
                        }
                    };
                    warnAboutAccessingKey.isReactWarning = true;
                    Object.defineProperty(props, 'key', {
                        get: warnAboutAccessingKey,
                        configurable: true
                    });
                }
                function defineRefPropWarningGetter(props, displayName) {
                    var warnAboutAccessingRef = function () {
                        if (!specialPropRefWarningShown) {
                            specialPropRefWarningShown = true;
                            warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
                        }
                    };
                    warnAboutAccessingRef.isReactWarning = true;
                    Object.defineProperty(props, 'ref', {
                        get: warnAboutAccessingRef,
                        configurable: true
                    });
                }
                /**
                 * Factory method to create a new React element. This no longer adheres to
                 * the class pattern, so do not use new to call it. Also, no instanceof check
                 * will work. Instead test $$typeof field against Symbol.for('react.element') to check
                 * if something is a React Element.
                 *
                 * @param {*} type
                 * @param {*} key
                 * @param {string|object} ref
                 * @param {*} self A *temporary* helper to detect places where `this` is
                 * different from the `owner` when React.createElement is called, so that we
                 * can warn. We want to get rid of owner and replace string `ref`s with arrow
                 * functions, and as long as `this` and owner are the same, there will be no
                 * change in behavior.
                 * @param {*} source An annotation object (added by a transpiler or otherwise)
                 * indicating filename, line number, and/or other information.
                 * @param {*} owner
                 * @param {*} props
                 * @internal
                 */
                var ReactElement = function (type, key, ref, self, source, owner, props) {
                    var element = {
                        // This tag allows us to uniquely identify this as a React Element
                        $$typeof: REACT_ELEMENT_TYPE,
                        // Built-in properties that belong on the element
                        type: type,
                        key: key,
                        ref: ref,
                        props: props,
                        // Record the component responsible for creating this element.
                        _owner: owner
                    };
                    {
                        // The validation flag is currently mutative. We put it on
                        // an external backing store so that we can freeze the whole object.
                        // This can be replaced with a WeakMap once they are implemented in
                        // commonly used development environments.
                        element._store = {};
                        // To make comparing ReactElements easier for testing purposes, we make
                        // the validation flag non-enumerable (where possible, which should
                        // include every environment we run tests in), so the test framework
                        // ignores it.
                        Object.defineProperty(element._store, 'validated', {
                            configurable: false,
                            enumerable: false,
                            writable: true,
                            value: false
                        });
                        // self and source are DEV only properties.
                        Object.defineProperty(element, '_self', {
                            configurable: false,
                            enumerable: false,
                            writable: false,
                            value: self
                        });
                        // Two elements created in two different places should be considered
                        // equal for testing purposes and therefore we hide it from enumeration.
                        Object.defineProperty(element, '_source', {
                            configurable: false,
                            enumerable: false,
                            writable: false,
                            value: source
                        });
                        if (Object.freeze) {
                            Object.freeze(element.props);
                            Object.freeze(element);
                        }
                    }
                    return element;
                };
                /**
                 * Create and return a new ReactElement of the given type.
                 * See https://reactjs.org/docs/react-api.html#createelement
                 */
                function createElement(type, config, children) {
                    var propName = void 0;
                    // Reserved names are extracted
                    var props = {};
                    var key = null;
                    var ref = null;
                    var self = null;
                    var source = null;
                    if (config != null) {
                        if (hasValidRef(config)) {
                            ref = config.ref;
                        }
                        if (hasValidKey(config)) {
                            key = '' + config.key;
                        }
                        self = config.__self === undefined ? null : config.__self;
                        source = config.__source === undefined ? null : config.__source;
                        // Remaining properties are added to a new props object
                        for (propName in config) {
                            if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
                                props[propName] = config[propName];
                            }
                        }
                    }
                    // Children can be more than one argument, and those are transferred onto
                    // the newly allocated props object.
                    var childrenLength = arguments.length - 2;
                    if (childrenLength === 1) {
                        props.children = children;
                    }
                    else if (childrenLength > 1) {
                        var childArray = Array(childrenLength);
                        for (var i = 0; i < childrenLength; i++) {
                            childArray[i] = arguments[i + 2];
                        }
                        {
                            if (Object.freeze) {
                                Object.freeze(childArray);
                            }
                        }
                        props.children = childArray;
                    }
                    // Resolve default props
                    if (type && type.defaultProps) {
                        var defaultProps = type.defaultProps;
                        for (propName in defaultProps) {
                            if (props[propName] === undefined) {
                                props[propName] = defaultProps[propName];
                            }
                        }
                    }
                    {
                        if (key || ref) {
                            var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
                            if (key) {
                                defineKeyPropWarningGetter(props, displayName);
                            }
                            if (ref) {
                                defineRefPropWarningGetter(props, displayName);
                            }
                        }
                    }
                    return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
                }
                /**
                 * Return a function that produces ReactElements of a given type.
                 * See https://reactjs.org/docs/react-api.html#createfactory
                 */
                function cloneAndReplaceKey(oldElement, newKey) {
                    var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
                    return newElement;
                }
                /**
                 * Clone and return a new ReactElement using element as the starting point.
                 * See https://reactjs.org/docs/react-api.html#cloneelement
                 */
                function cloneElement(element, config, children) {
                    !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
                    var propName = void 0;
                    // Original props are copied
                    var props = _assign({}, element.props);
                    // Reserved names are extracted
                    var key = element.key;
                    var ref = element.ref;
                    // Self is preserved since the owner is preserved.
                    var self = element._self;
                    // Source is preserved since cloneElement is unlikely to be targeted by a
                    // transpiler, and the original source is probably a better indicator of the
                    // true owner.
                    var source = element._source;
                    // Owner will be preserved, unless ref is overridden
                    var owner = element._owner;
                    if (config != null) {
                        if (hasValidRef(config)) {
                            // Silently steal the ref from the parent.
                            ref = config.ref;
                            owner = ReactCurrentOwner.current;
                        }
                        if (hasValidKey(config)) {
                            key = '' + config.key;
                        }
                        // Remaining properties override existing props
                        var defaultProps = void 0;
                        if (element.type && element.type.defaultProps) {
                            defaultProps = element.type.defaultProps;
                        }
                        for (propName in config) {
                            if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
                                if (config[propName] === undefined && defaultProps !== undefined) {
                                    // Resolve default props
                                    props[propName] = defaultProps[propName];
                                }
                                else {
                                    props[propName] = config[propName];
                                }
                            }
                        }
                    }
                    // Children can be more than one argument, and those are transferred onto
                    // the newly allocated props object.
                    var childrenLength = arguments.length - 2;
                    if (childrenLength === 1) {
                        props.children = children;
                    }
                    else if (childrenLength > 1) {
                        var childArray = Array(childrenLength);
                        for (var i = 0; i < childrenLength; i++) {
                            childArray[i] = arguments[i + 2];
                        }
                        props.children = childArray;
                    }
                    return ReactElement(element.type, key, ref, self, source, owner, props);
                }
                /**
                 * Verifies the object is a ReactElement.
                 * See https://reactjs.org/docs/react-api.html#isvalidelement
                 * @param {?object} object
                 * @return {boolean} True if `object` is a ReactElement.
                 * @final
                 */
                function isValidElement(object) {
                    return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
                }
                var SEPARATOR = '.';
                var SUBSEPARATOR = ':';
                /**
                 * Escape and wrap key so it is safe to use as a reactid
                 *
                 * @param {string} key to be escaped.
                 * @return {string} the escaped key.
                 */
                function escape(key) {
                    var escapeRegex = /[=:]/g;
                    var escaperLookup = {
                        '=': '=0',
                        ':': '=2'
                    };
                    var escapedString = ('' + key).replace(escapeRegex, function (match) {
                        return escaperLookup[match];
                    });
                    return '$' + escapedString;
                }
                /**
                 * TODO: Test that a single child and an array with one item have the same key
                 * pattern.
                 */
                var didWarnAboutMaps = false;
                var userProvidedKeyEscapeRegex = /\/+/g;
                function escapeUserProvidedKey(text) {
                    return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
                }
                var POOL_SIZE = 10;
                var traverseContextPool = [];
                function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
                    if (traverseContextPool.length) {
                        var traverseContext = traverseContextPool.pop();
                        traverseContext.result = mapResult;
                        traverseContext.keyPrefix = keyPrefix;
                        traverseContext.func = mapFunction;
                        traverseContext.context = mapContext;
                        traverseContext.count = 0;
                        return traverseContext;
                    }
                    else {
                        return {
                            result: mapResult,
                            keyPrefix: keyPrefix,
                            func: mapFunction,
                            context: mapContext,
                            count: 0
                        };
                    }
                }
                function releaseTraverseContext(traverseContext) {
                    traverseContext.result = null;
                    traverseContext.keyPrefix = null;
                    traverseContext.func = null;
                    traverseContext.context = null;
                    traverseContext.count = 0;
                    if (traverseContextPool.length < POOL_SIZE) {
                        traverseContextPool.push(traverseContext);
                    }
                }
                /**
                 * @param {?*} children Children tree container.
                 * @param {!string} nameSoFar Name of the key path so far.
                 * @param {!function} callback Callback to invoke with each child found.
                 * @param {?*} traverseContext Used to pass information throughout the traversal
                 * process.
                 * @return {!number} The number of children in this subtree.
                 */
                function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
                    var type = typeof children;
                    if (type === 'undefined' || type === 'boolean') {
                        // All of the above are perceived as null.
                        children = null;
                    }
                    var invokeCallback = false;
                    if (children === null) {
                        invokeCallback = true;
                    }
                    else {
                        switch (type) {
                            case 'string':
                            case 'number':
                                invokeCallback = true;
                                break;
                            case 'object':
                                switch (children.$$typeof) {
                                    case REACT_ELEMENT_TYPE:
                                    case REACT_PORTAL_TYPE:
                                        invokeCallback = true;
                                }
                        }
                    }
                    if (invokeCallback) {
                        callback(traverseContext, children, 
                        // If it's the only child, treat the name as if it was wrapped in an array
                        // so that it's consistent if the number of children grows.
                        nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
                        return 1;
                    }
                    var child = void 0;
                    var nextName = void 0;
                    var subtreeCount = 0; // Count of children found in the current subtree.
                    var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
                    if (Array.isArray(children)) {
                        for (var i = 0; i < children.length; i++) {
                            child = children[i];
                            nextName = nextNamePrefix + getComponentKey(child, i);
                            subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
                        }
                    }
                    else {
                        var iteratorFn = getIteratorFn(children);
                        if (typeof iteratorFn === 'function') {
                            {
                                // Warn about using Maps as children
                                if (iteratorFn === children.entries) {
                                    !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
                                    didWarnAboutMaps = true;
                                }
                            }
                            var iterator = iteratorFn.call(children);
                            var step = void 0;
                            var ii = 0;
                            while (!(step = iterator.next()).done) {
                                child = step.value;
                                nextName = nextNamePrefix + getComponentKey(child, ii++);
                                subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
                            }
                        }
                        else if (type === 'object') {
                            var addendum = '';
                            {
                                addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
                            }
                            var childrenString = '' + children;
                            invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
                        }
                    }
                    return subtreeCount;
                }
                /**
                 * Traverses children that are typically specified as `props.children`, but
                 * might also be specified through attributes:
                 *
                 * - `traverseAllChildren(this.props.children, ...)`
                 * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
                 *
                 * The `traverseContext` is an optional argument that is passed through the
                 * entire traversal. It can be used to store accumulations or anything else that
                 * the callback might find relevant.
                 *
                 * @param {?*} children Children tree object.
                 * @param {!function} callback To invoke upon traversing each child.
                 * @param {?*} traverseContext Context for traversal.
                 * @return {!number} The number of children in this subtree.
                 */
                function traverseAllChildren(children, callback, traverseContext) {
                    if (children == null) {
                        return 0;
                    }
                    return traverseAllChildrenImpl(children, '', callback, traverseContext);
                }
                /**
                 * Generate a key string that identifies a component within a set.
                 *
                 * @param {*} component A component that could contain a manual key.
                 * @param {number} index Index that is used if a manual key is not provided.
                 * @return {string}
                 */
                function getComponentKey(component, index) {
                    // Do some typechecking here since we call this blindly. We want to ensure
                    // that we don't block potential future ES APIs.
                    if (typeof component === 'object' && component !== null && component.key != null) {
                        // Explicit key
                        return escape(component.key);
                    }
                    // Implicit key determined by the index in the set
                    return index.toString(36);
                }
                function forEachSingleChild(bookKeeping, child, name) {
                    var func = bookKeeping.func, context = bookKeeping.context;
                    func.call(context, child, bookKeeping.count++);
                }
                /**
                 * Iterates through children that are typically specified as `props.children`.
                 *
                 * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
                 *
                 * The provided forEachFunc(child, index) will be called for each
                 * leaf child.
                 *
                 * @param {?*} children Children tree container.
                 * @param {function(*, int)} forEachFunc
                 * @param {*} forEachContext Context for forEachContext.
                 */
                function forEachChildren(children, forEachFunc, forEachContext) {
                    if (children == null) {
                        return children;
                    }
                    var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
                    traverseAllChildren(children, forEachSingleChild, traverseContext);
                    releaseTraverseContext(traverseContext);
                }
                function mapSingleChildIntoContext(bookKeeping, child, childKey) {
                    var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context;
                    var mappedChild = func.call(context, child, bookKeeping.count++);
                    if (Array.isArray(mappedChild)) {
                        mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
                            return c;
                        });
                    }
                    else if (mappedChild != null) {
                        if (isValidElement(mappedChild)) {
                            mappedChild = cloneAndReplaceKey(mappedChild, 
                            // Keep both the (mapped) and old keys if they differ, just as
                            // traverseAllChildren used to do for objects as children
                            keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
                        }
                        result.push(mappedChild);
                    }
                }
                function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
                    var escapedPrefix = '';
                    if (prefix != null) {
                        escapedPrefix = escapeUserProvidedKey(prefix) + '/';
                    }
                    var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
                    traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
                    releaseTraverseContext(traverseContext);
                }
                /**
                 * Maps children that are typically specified as `props.children`.
                 *
                 * See https://reactjs.org/docs/react-api.html#reactchildrenmap
                 *
                 * The provided mapFunction(child, key, index) will be called for each
                 * leaf child.
                 *
                 * @param {?*} children Children tree container.
                 * @param {function(*, int)} func The map function.
                 * @param {*} context Context for mapFunction.
                 * @return {object} Object containing the ordered map of results.
                 */
                function mapChildren(children, func, context) {
                    if (children == null) {
                        return children;
                    }
                    var result = [];
                    mapIntoWithKeyPrefixInternal(children, result, null, func, context);
                    return result;
                }
                /**
                 * Count the number of children that are typically specified as
                 * `props.children`.
                 *
                 * See https://reactjs.org/docs/react-api.html#reactchildrencount
                 *
                 * @param {?*} children Children tree container.
                 * @return {number} The number of children.
                 */
                function countChildren(children) {
                    return traverseAllChildren(children, function () {
                        return null;
                    }, null);
                }
                /**
                 * Flatten a children object (typically specified as `props.children`) and
                 * return an array with appropriately re-keyed children.
                 *
                 * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
                 */
                function toArray(children) {
                    var result = [];
                    mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
                        return child;
                    });
                    return result;
                }
                /**
                 * Returns the first child in a collection of children and verifies that there
                 * is only one child in the collection.
                 *
                 * See https://reactjs.org/docs/react-api.html#reactchildrenonly
                 *
                 * The current implementation of this function assumes that a single child gets
                 * passed without a wrapper, but the purpose of this helper function is to
                 * abstract away the particular structure of children.
                 *
                 * @param {?object} children Child collection structure.
                 * @return {ReactElement} The first and only `ReactElement` contained in the
                 * structure.
                 */
                function onlyChild(children) {
                    !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
                    return children;
                }
                function readContext(context, observedBits) {
                    var dispatcher = ReactCurrentOwner.currentDispatcher;
                    !(dispatcher !== null) ? invariant(false, 'Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
                    return dispatcher.readContext(context, observedBits);
                }
                function createContext(defaultValue, calculateChangedBits) {
                    if (calculateChangedBits === undefined) {
                        calculateChangedBits = null;
                    }
                    else {
                        {
                            !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
                        }
                    }
                    var context = {
                        $$typeof: REACT_CONTEXT_TYPE,
                        _calculateChangedBits: calculateChangedBits,
                        // As a workaround to support multiple concurrent renderers, we categorize
                        // some renderers as primary and others as secondary. We only expect
                        // there to be two concurrent renderers at most: React Native (primary) and
                        // Fabric (secondary); React DOM (primary) and React ART (secondary).
                        // Secondary renderers store their context values on separate fields.
                        _currentValue: defaultValue,
                        _currentValue2: defaultValue,
                        // These are circular
                        Provider: null,
                        Consumer: null,
                        unstable_read: null
                    };
                    context.Provider = {
                        $$typeof: REACT_PROVIDER_TYPE,
                        _context: context
                    };
                    context.Consumer = context;
                    context.unstable_read = readContext.bind(null, context);
                    {
                        context._currentRenderer = null;
                        context._currentRenderer2 = null;
                    }
                    return context;
                }
                function lazy(ctor) {
                    var thenable = null;
                    return {
                        then: function (resolve, reject) {
                            if (thenable === null) {
                                // Lazily create thenable by wrapping in an extra thenable.
                                thenable = ctor();
                                ctor = null;
                            }
                            return thenable.then(resolve, reject);
                        },
                        // React uses these fields to store the result.
                        _reactStatus: -1,
                        _reactResult: null
                    };
                }
                function forwardRef(render) {
                    {
                        if (typeof render !== 'function') {
                            warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
                        }
                        else {
                            !(
                            // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
                            render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
                        }
                        if (render != null) {
                            !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
                        }
                    }
                    return {
                        $$typeof: REACT_FORWARD_REF_TYPE,
                        render: render
                    };
                }
                function isValidElementType(type) {
                    return typeof type === 'string' || typeof type === 'function' ||
                        // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
                        type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_PLACEHOLDER_TYPE || typeof type === 'object' && type !== null && (typeof type.then === 'function' || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
                }
                /**
                 * ReactElementValidator provides a wrapper around a element factory
                 * which validates the props passed to the element. This is intended to be
                 * used only in DEV and could be replaced by a static type checker for languages
                 * that support it.
                 */
                var propTypesMisspellWarningShown = void 0;
                {
                    propTypesMisspellWarningShown = false;
                }
                function getDeclarationErrorAddendum() {
                    if (ReactCurrentOwner.current) {
                        var name = getComponentName(ReactCurrentOwner.current.type);
                        if (name) {
                            return '\n\nCheck the render method of `' + name + '`.';
                        }
                    }
                    return '';
                }
                function getSourceInfoErrorAddendum(elementProps) {
                    if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
                        var source = elementProps.__source;
                        var fileName = source.fileName.replace(/^.*[\\\/]/, '');
                        var lineNumber = source.lineNumber;
                        return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
                    }
                    return '';
                }
                /**
                 * Warn if there's no key explicitly set on dynamic arrays of children or
                 * object keys are not valid. This allows us to keep track of children between
                 * updates.
                 */
                var ownerHasKeyUseWarning = {};
                function getCurrentComponentErrorInfo(parentType) {
                    var info = getDeclarationErrorAddendum();
                    if (!info) {
                        var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
                        if (parentName) {
                            info = '\n\nCheck the top-level render call using <' + parentName + '>.';
                        }
                    }
                    return info;
                }
                /**
                 * Warn if the element doesn't have an explicit key assigned to it.
                 * This element is in an array. The array could grow and shrink or be
                 * reordered. All children that haven't already been validated are required to
                 * have a "key" property assigned to it. Error statuses are cached so a warning
                 * will only be shown once.
                 *
                 * @internal
                 * @param {ReactElement} element Element that requires a key.
                 * @param {*} parentType element's parent's type.
                 */
                function validateExplicitKey(element, parentType) {
                    if (!element._store || element._store.validated || element.key != null) {
                        return;
                    }
                    element._store.validated = true;
                    var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
                    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
                        return;
                    }
                    ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
                    // Usually the current owner is the offender, but if it accepts children as a
                    // property, it may be the creator of the child that's responsible for
                    // assigning it a key.
                    var childOwner = '';
                    if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
                        // Give the component that originally created this child.
                        childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
                    }
                    setCurrentlyValidatingElement(element);
                    {
                        warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
                    }
                    setCurrentlyValidatingElement(null);
                }
                /**
                 * Ensure that every element either is passed in a static location, in an
                 * array with an explicit keys property defined, or in an object literal
                 * with valid key property.
                 *
                 * @internal
                 * @param {ReactNode} node Statically passed child of any type.
                 * @param {*} parentType node's parent's type.
                 */
                function validateChildKeys(node, parentType) {
                    if (typeof node !== 'object') {
                        return;
                    }
                    if (Array.isArray(node)) {
                        for (var i = 0; i < node.length; i++) {
                            var child = node[i];
                            if (isValidElement(child)) {
                                validateExplicitKey(child, parentType);
                            }
                        }
                    }
                    else if (isValidElement(node)) {
                        // This element was passed in a valid location.
                        if (node._store) {
                            node._store.validated = true;
                        }
                    }
                    else if (node) {
                        var iteratorFn = getIteratorFn(node);
                        if (typeof iteratorFn === 'function') {
                            // Entry iterators used to provide implicit keys,
                            // but now we print a separate warning for them later.
                            if (iteratorFn !== node.entries) {
                                var iterator = iteratorFn.call(node);
                                var step = void 0;
                                while (!(step = iterator.next()).done) {
                                    if (isValidElement(step.value)) {
                                        validateExplicitKey(step.value, parentType);
                                    }
                                }
                            }
                        }
                    }
                }
                /**
                 * Given an element, validate that its props follow the propTypes definition,
                 * provided by the type.
                 *
                 * @param {ReactElement} element
                 */
                function validatePropTypes(element) {
                    var type = element.type;
                    var name = void 0, propTypes = void 0;
                    if (typeof type === 'function') {
                        // Class or functional component
                        name = type.displayName || type.name;
                        propTypes = type.propTypes;
                    }
                    else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
                        // ForwardRef
                        var functionName = type.render.displayName || type.render.name || '';
                        name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
                        propTypes = type.propTypes;
                    }
                    else {
                        return;
                    }
                    if (propTypes) {
                        setCurrentlyValidatingElement(element);
                        checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
                        setCurrentlyValidatingElement(null);
                    }
                    else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
                        propTypesMisspellWarningShown = true;
                        warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
                    }
                    if (typeof type.getDefaultProps === 'function') {
                        !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
                    }
                }
                /**
                 * Given a fragment, validate that it can only be provided with fragment props
                 * @param {ReactElement} fragment
                 */
                function validateFragmentProps(fragment) {
                    setCurrentlyValidatingElement(fragment);
                    var keys = Object.keys(fragment.props);
                    for (var i = 0; i < keys.length; i++) {
                        var key = keys[i];
                        if (key !== 'children' && key !== 'key') {
                            warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
                            break;
                        }
                    }
                    if (fragment.ref !== null) {
                        warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
                    }
                    setCurrentlyValidatingElement(null);
                }
                function createElementWithValidation(type, props, children) {
                    var validType = isValidElementType(type);
                    // We warn in this case but don't throw. We expect the element creation to
                    // succeed and there will likely be errors in render.
                    if (!validType) {
                        var info = '';
                        if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
                            info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
                        }
                        var sourceInfo = getSourceInfoErrorAddendum(props);
                        if (sourceInfo) {
                            info += sourceInfo;
                        }
                        else {
                            info += getDeclarationErrorAddendum();
                        }
                        var typeString = void 0;
                        if (type === null) {
                            typeString = 'null';
                        }
                        else if (Array.isArray(type)) {
                            typeString = 'array';
                        }
                        else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
                            typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
                            info = ' Did you accidentally export a JSX literal instead of a component?';
                        }
                        else {
                            typeString = typeof type;
                        }
                        warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
                    }
                    var element = createElement.apply(this, arguments);
                    // The result can be nullish if a mock or a custom function is used.
                    // TODO: Drop this when these are no longer allowed as the type argument.
                    if (element == null) {
                        return element;
                    }
                    // Skip key warning if the type isn't valid since our key validation logic
                    // doesn't expect a non-string/function type and can throw confusing errors.
                    // We don't want exception behavior to differ between dev and prod.
                    // (Rendering will throw with a helpful message and as soon as the type is
                    // fixed, the key warnings will appear.)
                    if (validType) {
                        for (var i = 2; i < arguments.length; i++) {
                            validateChildKeys(arguments[i], type);
                        }
                    }
                    if (type === REACT_FRAGMENT_TYPE) {
                        validateFragmentProps(element);
                    }
                    else {
                        validatePropTypes(element);
                    }
                    return element;
                }
                function createFactoryWithValidation(type) {
                    var validatedFactory = createElementWithValidation.bind(null, type);
                    validatedFactory.type = type;
                    // Legacy hook: remove it
                    {
                        Object.defineProperty(validatedFactory, 'type', {
                            enumerable: false,
                            get: function () {
                                lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
                                Object.defineProperty(this, 'type', {
                                    value: type
                                });
                                return type;
                            }
                        });
                    }
                    return validatedFactory;
                }
                function cloneElementWithValidation(element, props, children) {
                    var newElement = cloneElement.apply(this, arguments);
                    for (var i = 2; i < arguments.length; i++) {
                        validateChildKeys(arguments[i], newElement.type);
                    }
                    validatePropTypes(newElement);
                    return newElement;
                }
                var React = {
                    Children: {
                        map: mapChildren,
                        forEach: forEachChildren,
                        count: countChildren,
                        toArray: toArray,
                        only: onlyChild
                    },
                    createRef: createRef,
                    Component: Component,
                    PureComponent: PureComponent,
                    createContext: createContext,
                    forwardRef: forwardRef,
                    Fragment: REACT_FRAGMENT_TYPE,
                    StrictMode: REACT_STRICT_MODE_TYPE,
                    unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
                    unstable_Profiler: REACT_PROFILER_TYPE,
                    createElement: createElementWithValidation,
                    cloneElement: cloneElementWithValidation,
                    createFactory: createFactoryWithValidation,
                    isValidElement: isValidElement,
                    version: ReactVersion,
                    __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
                };
                if (enableSuspense) {
                    React.Placeholder = REACT_PLACEHOLDER_TYPE;
                    React.lazy = lazy;
                }
                var React$2 = Object.freeze({
                    default: React
                });
                var React$3 = (React$2 && React) || React$2;
                // TODO: decide on the top-level export form.
                // This is hacky but makes it work with both Rollup and Jest.
                var react = React$3.default || React$3;
                module.exports = react;
            })();
        }
        /***/ 
    }),
    /* 11 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /*
        object-assign
        (c) Sindre Sorhus
        @license MIT
        */
        /* eslint-disable no-unused-vars */
        var getOwnPropertySymbols = Object.getOwnPropertySymbols;
        var hasOwnProperty = Object.prototype.hasOwnProperty;
        var propIsEnumerable = Object.prototype.propertyIsEnumerable;
        function toObject(val) {
            if (val === null || val === undefined) {
                throw new TypeError('Object.assign cannot be called with null or undefined');
            }
            return Object(val);
        }
        function shouldUseNative() {
            try {
                if (!Object.assign) {
                    return false;
                }
                // Detect buggy property enumeration order in older V8 versions.
                // https://bugs.chromium.org/p/v8/issues/detail?id=4118
                var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
                test1[5] = 'de';
                if (Object.getOwnPropertyNames(test1)[0] === '5') {
                    return false;
                }
                // https://bugs.chromium.org/p/v8/issues/detail?id=3056
                var test2 = {};
                for (var i = 0; i < 10; i++) {
                    test2['_' + String.fromCharCode(i)] = i;
                }
                var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
                    return test2[n];
                });
                if (order2.join('') !== '0123456789') {
                    return false;
                }
                // https://bugs.chromium.org/p/v8/issues/detail?id=3056
                var test3 = {};
                'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
                    test3[letter] = letter;
                });
                if (Object.keys(Object.assign({}, test3)).join('') !==
                    'abcdefghijklmnopqrst') {
                    return false;
                }
                return true;
            }
            catch (err) {
                // We don't expect any of the above to throw, but better to be safe.
                return false;
            }
        }
        module.exports = shouldUseNative() ? Object.assign : function (target, source) {
            var from;
            var to = toObject(target);
            var symbols;
            for (var s = 1; s < arguments.length; s++) {
                from = Object(arguments[s]);
                for (var key in from) {
                    if (hasOwnProperty.call(from, key)) {
                        to[key] = from[key];
                    }
                }
                if (getOwnPropertySymbols) {
                    symbols = getOwnPropertySymbols(from);
                    for (var i = 0; i < symbols.length; i++) {
                        if (propIsEnumerable.call(from, symbols[i])) {
                            to[symbols[i]] = from[symbols[i]];
                        }
                    }
                }
            }
            return to;
        };
        /***/ 
    }),
    /* 12 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        var printWarning = function () { };
        if (true) {
            var ReactPropTypesSecret = __webpack_require__(13);
            var loggedTypeFailures = {};
            printWarning = function (text) {
                var message = 'Warning: ' + text;
                if (typeof console !== 'undefined') {
                    console.error(message);
                }
                try {
                    // --- Welcome to debugging React ---
                    // This error was thrown as a convenience so that you can use this stack
                    // to find the callsite that caused this warning to fire.
                    throw new Error(message);
                }
                catch (x) { }
            };
        }
        /**
         * Assert that the values match with the type specs.
         * Error messages are memorized and will only be shown once.
         *
         * @param {object} typeSpecs Map of name to a ReactPropType
         * @param {object} values Runtime values that need to be type-checked
         * @param {string} location e.g. "prop", "context", "child context"
         * @param {string} componentName Name of the component for error messages.
         * @param {?Function} getStack Returns the component stack.
         * @private
         */
        function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
            if (true) {
                for (var typeSpecName in typeSpecs) {
                    if (typeSpecs.hasOwnProperty(typeSpecName)) {
                        var error;
                        // Prop type validation may throw. In case they do, we don't want to
                        // fail the render phase where it didn't fail before. So we log it.
                        // After these have been cleaned up, we'll let them throw.
                        try {
                            // This is intentionally an invariant that gets caught. It's the same
                            // behavior as without this statement except with a better message.
                            if (typeof typeSpecs[typeSpecName] !== 'function') {
                                var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
                                    'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.');
                                err.name = 'Invariant Violation';
                                throw err;
                            }
                            error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
                        }
                        catch (ex) {
                            error = ex;
                        }
                        if (error && !(error instanceof Error)) {
                            printWarning((componentName || 'React class') + ': type specification of ' +
                                location + ' `' + typeSpecName + '` is invalid; the type checker ' +
                                'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
                                'You may have forgotten to pass an argument to the type checker ' +
                                'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
                                'shape all require an argument).');
                        }
                        if (error instanceof Error && !(error.message in loggedTypeFailures)) {
                            // Only monitor this failure once because there tends to be a lot of the
                            // same error.
                            loggedTypeFailures[error.message] = true;
                            var stack = getStack ? getStack() : '';
                            printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
                        }
                    }
                }
            }
        }
        module.exports = checkPropTypes;
        /***/ 
    }),
    /* 13 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
        module.exports = ReactPropTypesSecret;
        /***/ 
    }),
    /* 14 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        if (false) { }
        else {
            module.exports = __webpack_require__(15);
        }
        /***/ 
    }),
    /* 15 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /** @license React v16.5.2
         * schedule.development.js
         *
         * Copyright (c) Facebook, Inc. and its affiliates.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        if (true) {
            (function () {
                'use strict';
                Object.defineProperty(exports, '__esModule', { value: true });
                /* eslint-disable no-var */
                // TODO: Currently there's only a single priority level, Deferred. Will add
                // additional priorities.
                var DEFERRED_TIMEOUT = 5000;
                // Callbacks are stored as a circular, doubly linked list.
                var firstCallbackNode = null;
                var isPerformingWork = false;
                var isHostCallbackScheduled = false;
                var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
                var timeRemaining;
                if (hasNativePerformanceNow) {
                    timeRemaining = function () {
                        // We assume that if we have a performance timer that the rAF callback
                        // gets a performance timer value. Not sure if this is always true.
                        var remaining = getFrameDeadline() - performance.now();
                        return remaining > 0 ? remaining : 0;
                    };
                }
                else {
                    timeRemaining = function () {
                        // Fallback to Date.now()
                        var remaining = getFrameDeadline() - Date.now();
                        return remaining > 0 ? remaining : 0;
                    };
                }
                var deadlineObject = {
                    timeRemaining: timeRemaining,
                    didTimeout: false
                };
                function ensureHostCallbackIsScheduled() {
                    if (isPerformingWork) {
                        // Don't schedule work yet; wait until the next time we yield.
                        return;
                    }
                    // Schedule the host callback using the earliest timeout in the list.
                    var timesOutAt = firstCallbackNode.timesOutAt;
                    if (!isHostCallbackScheduled) {
                        isHostCallbackScheduled = true;
                    }
                    else {
                        // Cancel the existing host callback.
                        cancelCallback();
                    }
                    requestCallback(flushWork, timesOutAt);
                }
                function flushFirstCallback(node) {
                    var flushedNode = firstCallbackNode;
                    // Remove the node from the list before calling the callback. That way the
                    // list is in a consistent state even if the callback throws.
                    var next = firstCallbackNode.next;
                    if (firstCallbackNode === next) {
                        // This is the last callback in the list.
                        firstCallbackNode = null;
                        next = null;
                    }
                    else {
                        var previous = firstCallbackNode.previous;
                        firstCallbackNode = previous.next = next;
                        next.previous = previous;
                    }
                    flushedNode.next = flushedNode.previous = null;
                    // Now it's safe to call the callback.
                    var callback = flushedNode.callback;
                    callback(deadlineObject);
                }
                function flushWork(didTimeout) {
                    isPerformingWork = true;
                    deadlineObject.didTimeout = didTimeout;
                    try {
                        if (didTimeout) {
                            // Flush all the timed out callbacks without yielding.
                            while (firstCallbackNode !== null) {
                                // Read the current time. Flush all the callbacks that expire at or
                                // earlier than that time. Then read the current time again and repeat.
                                // This optimizes for as few performance.now calls as possible.
                                var currentTime = exports.unstable_now();
                                if (firstCallbackNode.timesOutAt <= currentTime) {
                                    do {
                                        flushFirstCallback();
                                    } while (firstCallbackNode !== null && firstCallbackNode.timesOutAt <= currentTime);
                                    continue;
                                }
                                break;
                            }
                        }
                        else {
                            // Keep flushing callbacks until we run out of time in the frame.
                            if (firstCallbackNode !== null) {
                                do {
                                    flushFirstCallback();
                                } while (firstCallbackNode !== null && getFrameDeadline() - exports.unstable_now() > 0);
                            }
                        }
                    }
                    finally {
                        isPerformingWork = false;
                        if (firstCallbackNode !== null) {
                            // There's still work remaining. Request another callback.
                            ensureHostCallbackIsScheduled(firstCallbackNode);
                        }
                        else {
                            isHostCallbackScheduled = false;
                        }
                    }
                }
                function unstable_scheduleWork(callback, options) {
                    var currentTime = exports.unstable_now();
                    var timesOutAt;
                    if (options !== undefined && options !== null && options.timeout !== null && options.timeout !== undefined) {
                        // Check for an explicit timeout
                        timesOutAt = currentTime + options.timeout;
                    }
                    else {
                        // Compute an absolute timeout using the default constant.
                        timesOutAt = currentTime + DEFERRED_TIMEOUT;
                    }
                    var newNode = {
                        callback: callback,
                        timesOutAt: timesOutAt,
                        next: null,
                        previous: null
                    };
                    // Insert the new callback into the list, sorted by its timeout.
                    if (firstCallbackNode === null) {
                        // This is the first callback in the list.
                        firstCallbackNode = newNode.next = newNode.previous = newNode;
                        ensureHostCallbackIsScheduled(firstCallbackNode);
                    }
                    else {
                        var next = null;
                        var node = firstCallbackNode;
                        do {
                            if (node.timesOutAt > timesOutAt) {
                                // The new callback times out before this one.
                                next = node;
                                break;
                            }
                            node = node.next;
                        } while (node !== firstCallbackNode);
                        if (next === null) {
                            // No callback with a later timeout was found, which means the new
                            // callback has the latest timeout in the list.
                            next = firstCallbackNode;
                        }
                        else if (next === firstCallbackNode) {
                            // The new callback has the earliest timeout in the entire list.
                            firstCallbackNode = newNode;
                            ensureHostCallbackIsScheduled(firstCallbackNode);
                        }
                        var previous = next.previous;
                        previous.next = next.previous = newNode;
                        newNode.next = next;
                        newNode.previous = previous;
                    }
                    return newNode;
                }
                function unstable_cancelScheduledWork(callbackNode) {
                    var next = callbackNode.next;
                    if (next === null) {
                        // Already cancelled.
                        return;
                    }
                    if (next === callbackNode) {
                        // This is the only scheduled callback. Clear the list.
                        firstCallbackNode = null;
                    }
                    else {
                        // Remove the callback from its position in the list.
                        if (callbackNode === firstCallbackNode) {
                            firstCallbackNode = next;
                        }
                        var previous = callbackNode.previous;
                        previous.next = next;
                        next.previous = previous;
                    }
                    callbackNode.next = callbackNode.previous = null;
                }
                // The remaining code is essentially a polyfill for requestIdleCallback. It
                // works by scheduling a requestAnimationFrame, storing the time for the start
                // of the frame, then scheduling a postMessage which gets scheduled after paint.
                // Within the postMessage handler do as much work as possible until time + frame
                // rate. By separating the idle call into a separate event tick we ensure that
                // layout, paint and other browser work is counted against the available time.
                // The frame rate is dynamically adjusted.
                // We capture a local reference to any global, in case it gets polyfilled after
                // this module is initially evaluated. We want to be using a
                // consistent implementation.
                var localDate = Date;
                // This initialization code may run even on server environments if a component
                // just imports ReactDOM (e.g. for findDOMNode). Some environments might not
                // have setTimeout or clearTimeout. However, we always expect them to be defined
                // on the client. https://github.com/facebook/react/pull/13088
                var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
                var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
                // We don't expect either of these to necessarily be defined, but we will error
                // later if they are missing on the client.
                var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
                var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
                // requestAnimationFrame does not run when the tab is in the background. If
                // we're backgrounded we prefer for that work to happen so that the page
                // continues to load in the background. So we also schedule a 'setTimeout' as
                // a fallback.
                // TODO: Need a better heuristic for backgrounded work.
                var ANIMATION_FRAME_TIMEOUT = 100;
                var rAFID;
                var rAFTimeoutID;
                var requestAnimationFrameWithTimeout = function (callback) {
                    // schedule rAF and also a setTimeout
                    rAFID = localRequestAnimationFrame(function (timestamp) {
                        // cancel the setTimeout
                        localClearTimeout(rAFTimeoutID);
                        callback(timestamp);
                    });
                    rAFTimeoutID = localSetTimeout(function () {
                        // cancel the requestAnimationFrame
                        localCancelAnimationFrame(rAFID);
                        callback(exports.unstable_now());
                    }, ANIMATION_FRAME_TIMEOUT);
                };
                if (hasNativePerformanceNow) {
                    var Performance = performance;
                    exports.unstable_now = function () {
                        return Performance.now();
                    };
                }
                else {
                    exports.unstable_now = function () {
                        return localDate.now();
                    };
                }
                var requestCallback;
                var cancelCallback;
                var getFrameDeadline;
                if (typeof window === 'undefined') {
                    // If this accidentally gets imported in a non-browser environment, fallback
                    // to a naive implementation.
                    var timeoutID = -1;
                    requestCallback = function (callback, absoluteTimeout) {
                        timeoutID = setTimeout(callback, 0, true);
                    };
                    cancelCallback = function () {
                        clearTimeout(timeoutID);
                    };
                    getFrameDeadline = function () {
                        return 0;
                    };
                }
                else if (window._schedMock) {
                    // Dynamic injection, only for testing purposes.
                    var impl = window._schedMock;
                    requestCallback = impl[0];
                    cancelCallback = impl[1];
                    getFrameDeadline = impl[2];
                }
                else {
                    if (typeof console !== 'undefined') {
                        if (typeof localRequestAnimationFrame !== 'function') {
                            console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
                        }
                        if (typeof localCancelAnimationFrame !== 'function') {
                            console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
                        }
                    }
                    var scheduledCallback = null;
                    var isIdleScheduled = false;
                    var timeoutTime = -1;
                    var isAnimationFrameScheduled = false;
                    var isPerformingIdleWork = false;
                    var frameDeadline = 0;
                    // We start out assuming that we run at 30fps but then the heuristic tracking
                    // will adjust this value to a faster fps if we get more frequent animation
                    // frames.
                    var previousFrameTime = 33;
                    var activeFrameTime = 33;
                    getFrameDeadline = function () {
                        return frameDeadline;
                    };
                    // We use the postMessage trick to defer idle work until after the repaint.
                    var messageKey = '__reactIdleCallback$' + Math.random().toString(36).slice(2);
                    var idleTick = function (event) {
                        if (event.source !== window || event.data !== messageKey) {
                            return;
                        }
                        isIdleScheduled = false;
                        var currentTime = exports.unstable_now();
                        var didTimeout = false;
                        if (frameDeadline - currentTime <= 0) {
                            // There's no time left in this idle period. Check if the callback has
                            // a timeout and whether it's been exceeded.
                            if (timeoutTime !== -1 && timeoutTime <= currentTime) {
                                // Exceeded the timeout. Invoke the callback even though there's no
                                // time left.
                                didTimeout = true;
                            }
                            else {
                                // No timeout.
                                if (!isAnimationFrameScheduled) {
                                    // Schedule another animation callback so we retry later.
                                    isAnimationFrameScheduled = true;
                                    requestAnimationFrameWithTimeout(animationTick);
                                }
                                // Exit without invoking the callback.
                                return;
                            }
                        }
                        timeoutTime = -1;
                        var callback = scheduledCallback;
                        scheduledCallback = null;
                        if (callback !== null) {
                            isPerformingIdleWork = true;
                            try {
                                callback(didTimeout);
                            }
                            finally {
                                isPerformingIdleWork = false;
                            }
                        }
                    };
                    // Assumes that we have addEventListener in this environment. Might need
                    // something better for old IE.
                    window.addEventListener('message', idleTick, false);
                    var animationTick = function (rafTime) {
                        isAnimationFrameScheduled = false;
                        var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
                        if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
                            if (nextFrameTime < 8) {
                                // Defensive coding. We don't support higher frame rates than 120hz.
                                // If we get lower than that, it is probably a bug.
                                nextFrameTime = 8;
                            }
                            // If one frame goes long, then the next one can be short to catch up.
                            // If two frames are short in a row, then that's an indication that we
                            // actually have a higher frame rate than what we're currently optimizing.
                            // We adjust our heuristic dynamically accordingly. For example, if we're
                            // running on 120hz display or 90hz VR display.
                            // Take the max of the two in case one of them was an anomaly due to
                            // missed frame deadlines.
                            activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
                        }
                        else {
                            previousFrameTime = nextFrameTime;
                        }
                        frameDeadline = rafTime + activeFrameTime;
                        if (!isIdleScheduled) {
                            isIdleScheduled = true;
                            window.postMessage(messageKey, '*');
                        }
                    };
                    requestCallback = function (callback, absoluteTimeout) {
                        scheduledCallback = callback;
                        timeoutTime = absoluteTimeout;
                        if (isPerformingIdleWork) {
                            // If we're already performing idle work, an error must have been thrown.
                            // Don't wait for the next frame. Continue working ASAP, in a new event.
                            window.postMessage(messageKey, '*');
                        }
                        else if (!isAnimationFrameScheduled) {
                            // If rAF didn't already schedule one, we need to schedule a frame.
                            // TODO: If this rAF doesn't materialize because the browser throttles, we
                            // might want to still have setTimeout trigger rIC as a backup to ensure
                            // that we keep performing work.
                            isAnimationFrameScheduled = true;
                            requestAnimationFrameWithTimeout(animationTick);
                        }
                    };
                    cancelCallback = function () {
                        scheduledCallback = null;
                        isIdleScheduled = false;
                        timeoutTime = -1;
                    };
                }
                exports.unstable_scheduleWork = unstable_scheduleWork;
                exports.unstable_cancelScheduledWork = unstable_cancelScheduledWork;
            })();
        }
        /***/ 
    }),
    /* 16 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        if (false) { }
        else {
            module.exports = __webpack_require__(17);
        }
        /***/ 
    }),
    /* 17 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /** @license React v16.5.2
         * schedule-tracing.development.js
         *
         * Copyright (c) Facebook, Inc. and its affiliates.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        if (true) {
            (function () {
                'use strict';
                Object.defineProperty(exports, '__esModule', { value: true });
                // Exports ReactDOM.createRoot
                // Experimental error-boundary API that can recover from errors within a single
                // render phase
                // Suspense
                // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
                // In some cases, StrictMode should also double-render lifecycles.
                // This can be confusing for tests though,
                // And it can be bad for performance in production.
                // This feature flag can be used to control the behavior:
                // To preserve the "Pause on caught exceptions" behavior of the debugger, we
                // replay the begin phase of a failed component inside invokeGuardedCallback.
                // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
                // Warn about legacy context API
                // Gather advanced timing metrics for Profiler subtrees.
                // Trace which interactions trigger each commit.
                var enableSchedulerTracing = true;
                // Only used in www builds.
                // Only used in www builds.
                // React Fire: prevent the value and checked attributes from syncing
                // with their related DOM properties
                var DEFAULT_THREAD_ID = 0;
                // Counters used to generate unique IDs.
                var interactionIDCounter = 0;
                var threadIDCounter = 0;
                // Set of currently traced interactions.
                // Interactions "stack"–
                // Meaning that newly traced interactions are appended to the previously active set.
                // When an interaction goes out of scope, the previous set (if any) is restored.
                exports.__interactionsRef = null;
                // Listener(s) to notify when interactions begin and end.
                exports.__subscriberRef = null;
                if (enableSchedulerTracing) {
                    exports.__interactionsRef = {
                        current: new Set()
                    };
                    exports.__subscriberRef = {
                        current: null
                    };
                }
                function unstable_clear(callback) {
                    if (!enableSchedulerTracing) {
                        return callback();
                    }
                    var prevInteractions = exports.__interactionsRef.current;
                    exports.__interactionsRef.current = new Set();
                    try {
                        return callback();
                    }
                    finally {
                        exports.__interactionsRef.current = prevInteractions;
                    }
                }
                function unstable_getCurrent() {
                    if (!enableSchedulerTracing) {
                        return null;
                    }
                    else {
                        return exports.__interactionsRef.current;
                    }
                }
                function unstable_getThreadID() {
                    return ++threadIDCounter;
                }
                function unstable_trace(name, timestamp, callback) {
                    var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
                    if (!enableSchedulerTracing) {
                        return callback();
                    }
                    var interaction = {
                        __count: 1,
                        id: interactionIDCounter++,
                        name: name,
                        timestamp: timestamp
                    };
                    var prevInteractions = exports.__interactionsRef.current;
                    // Traced interactions should stack/accumulate.
                    // To do that, clone the current interactions.
                    // The previous set will be restored upon completion.
                    var interactions = new Set(prevInteractions);
                    interactions.add(interaction);
                    exports.__interactionsRef.current = interactions;
                    var subscriber = exports.__subscriberRef.current;
                    var returnValue = void 0;
                    try {
                        if (subscriber !== null) {
                            subscriber.onInteractionTraced(interaction);
                        }
                    }
                    finally {
                        try {
                            if (subscriber !== null) {
                                subscriber.onWorkStarted(interactions, threadID);
                            }
                        }
                        finally {
                            try {
                                returnValue = callback();
                            }
                            finally {
                                exports.__interactionsRef.current = prevInteractions;
                                try {
                                    if (subscriber !== null) {
                                        subscriber.onWorkStopped(interactions, threadID);
                                    }
                                }
                                finally {
                                    interaction.__count--;
                                    // If no async work was scheduled for this interaction,
                                    // Notify subscribers that it's completed.
                                    if (subscriber !== null && interaction.__count === 0) {
                                        subscriber.onInteractionScheduledWorkCompleted(interaction);
                                    }
                                }
                            }
                        }
                    }
                    return returnValue;
                }
                function unstable_wrap(callback) {
                    var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
                    if (!enableSchedulerTracing) {
                        return callback;
                    }
                    var wrappedInteractions = exports.__interactionsRef.current;
                    var subscriber = exports.__subscriberRef.current;
                    if (subscriber !== null) {
                        subscriber.onWorkScheduled(wrappedInteractions, threadID);
                    }
                    // Update the pending async work count for the current interactions.
                    // Update after calling subscribers in case of error.
                    wrappedInteractions.forEach(function (interaction) {
                        interaction.__count++;
                    });
                    var hasRun = false;
                    function wrapped() {
                        var prevInteractions = exports.__interactionsRef.current;
                        exports.__interactionsRef.current = wrappedInteractions;
                        subscriber = exports.__subscriberRef.current;
                        try {
                            var returnValue = void 0;
                            try {
                                if (subscriber !== null) {
                                    subscriber.onWorkStarted(wrappedInteractions, threadID);
                                }
                            }
                            finally {
                                try {
                                    returnValue = callback.apply(undefined, arguments);
                                }
                                finally {
                                    exports.__interactionsRef.current = prevInteractions;
                                    if (subscriber !== null) {
                                        subscriber.onWorkStopped(wrappedInteractions, threadID);
                                    }
                                }
                            }
                            return returnValue;
                        }
                        finally {
                            if (!hasRun) {
                                // We only expect a wrapped function to be executed once,
                                // But in the event that it's executed more than once–
                                // Only decrement the outstanding interaction counts once.
                                hasRun = true;
                                // Update pending async counts for all wrapped interactions.
                                // If this was the last scheduled async work for any of them,
                                // Mark them as completed.
                                wrappedInteractions.forEach(function (interaction) {
                                    interaction.__count--;
                                    if (subscriber !== null && interaction.__count === 0) {
                                        subscriber.onInteractionScheduledWorkCompleted(interaction);
                                    }
                                });
                            }
                        }
                    }
                    wrapped.cancel = function cancel() {
                        subscriber = exports.__subscriberRef.current;
                        try {
                            if (subscriber !== null) {
                                subscriber.onWorkCanceled(wrappedInteractions, threadID);
                            }
                        }
                        finally {
                            // Update pending async counts for all wrapped interactions.
                            // If this was the last scheduled async work for any of them,
                            // Mark them as completed.
                            wrappedInteractions.forEach(function (interaction) {
                                interaction.__count--;
                                if (subscriber && interaction.__count === 0) {
                                    subscriber.onInteractionScheduledWorkCompleted(interaction);
                                }
                            });
                        }
                    };
                    return wrapped;
                }
                var subscribers = null;
                if (enableSchedulerTracing) {
                    subscribers = new Set();
                }
                function unstable_subscribe(subscriber) {
                    if (enableSchedulerTracing) {
                        subscribers.add(subscriber);
                        if (subscribers.size === 1) {
                            exports.__subscriberRef.current = {
                                onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
                                onInteractionTraced: onInteractionTraced,
                                onWorkCanceled: onWorkCanceled,
                                onWorkScheduled: onWorkScheduled,
                                onWorkStarted: onWorkStarted,
                                onWorkStopped: onWorkStopped
                            };
                        }
                    }
                }
                function unstable_unsubscribe(subscriber) {
                    if (enableSchedulerTracing) {
                        subscribers.delete(subscriber);
                        if (subscribers.size === 0) {
                            exports.__subscriberRef.current = null;
                        }
                    }
                }
                function onInteractionTraced(interaction) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onInteractionTraced(interaction);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                function onInteractionScheduledWorkCompleted(interaction) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onInteractionScheduledWorkCompleted(interaction);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                function onWorkScheduled(interactions, threadID) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onWorkScheduled(interactions, threadID);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                function onWorkStarted(interactions, threadID) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onWorkStarted(interactions, threadID);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                function onWorkStopped(interactions, threadID) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onWorkStopped(interactions, threadID);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                function onWorkCanceled(interactions, threadID) {
                    var didCatchError = false;
                    var caughtError = null;
                    subscribers.forEach(function (subscriber) {
                        try {
                            subscriber.onWorkCanceled(interactions, threadID);
                        }
                        catch (error) {
                            if (!didCatchError) {
                                didCatchError = true;
                                caughtError = error;
                            }
                        }
                    });
                    if (didCatchError) {
                        throw caughtError;
                    }
                }
                exports.unstable_clear = unstable_clear;
                exports.unstable_getCurrent = unstable_getCurrent;
                exports.unstable_getThreadID = unstable_getThreadID;
                exports.unstable_trace = unstable_trace;
                exports.unstable_wrap = unstable_wrap;
                exports.unstable_subscribe = unstable_subscribe;
                exports.unstable_unsubscribe = unstable_unsubscribe;
            })();
        }
        /***/ 
    }),
    /* 18 */
    /***/ (function (module, exports, __webpack_require__) {
        var content = __webpack_require__(19);
        if (typeof content === 'string')
            content = [[module.i, content, '']];
        var transform;
        var insertInto;
        var options = { "hmr": true };
        options.transform = transform;
        options.insertInto = undefined;
        var update = __webpack_require__(4)(content, options);
        if (content.locals)
            module.exports = content.locals;
        if (false) { }
        /***/ 
    }),
    /* 19 */
    /***/ (function (module, exports, __webpack_require__) {
        exports = module.exports = __webpack_require__(3)(false);
        // imports
        // module
        exports.push([module.i, ".ui.secondary.inverted.pointing.menu .active.item {\r\n    border-color: #ffff !important;\r\n    color: #ffff !important;\r\n    font-family: Lora, 'Times New Roman', serif !important;\r\n    font-size: 18px !important;\r\n\r\n}\r\n\r\n.ui.secondary.inverted.pointing.menu .item {\r\n\r\n    color: #c6d4ff !important;\r\n    font-family: Lora, 'Times New Roman', serif !important;\r\n    font-size: 18px !important;\r\n\r\n}\r\n\r\n.ui.secondary.inverted.pointing.menu .item:hover {\r\n\r\n    color: #ffff !important;\r\n    font-family: Lora, 'Times New Roman', serif !important;\r\n    font-size: 18px !important;\r\n\r\n}\r\n\r\n.ui.secondary.inverted.pointing.menu {\r\n\r\n    background-color: #50607a !important;\r\n}\r\n\r\n.ui.card,\r\n.ui.cards>.card {\r\n    background-color: #50607a !important;\r\n}\r\n\r\n.catalog .ui.card {\r\n   min-height: 500px;\r\n}\r\n\r\n.ui.header {\r\n    color: #c6d4ff !important;\r\n}\r\n\r\n.ui.card>.content>.description,\r\n.ui.cards>.card>.content>.description,\r\n.ui.card>.content>.header,\r\n.ui.cards>.card>.content>.header,\r\n.ui.cards>.meta,\r\n.ui.card>.extra a:not(.ui),\r\n.ui.cards>.card>.extra a:not(.ui) {\r\n    color: #c6d4ff !important;\r\n}\r\n\r\n#map {\r\n    height: 780px;\r\n}\r\n\r\n.space {\r\n    background-image: url(\"/img/tile_small.png\") !important;\r\n    background-repeat: repeat !important;\r\n    overflow-x: scroll;\r\n}\r\n\r\n.bar {\r\n    position: relative;\r\n    margin: 1rem 0;\r\n    padding: 1em 1em;\r\n    background-color: #818ea5 !important;\r\n    color: #c6d4ff !important;\r\n}", ""]);
        // exports
        /***/ 
    }),
    /* 20 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
        /* harmony import */ var _Catalog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64);
        /* harmony import */ var _Map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(744);
        /* harmony import */ var _Chart__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(748);
        /* harmony import */ var _PlanetInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(986);
        /* harmony import */ var _Simulator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(987);
        /* harmony import */ var _Constellations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(990);
        /* harmony import */ var _StarInfo__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(991);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var Navigate = /** @class */ (function (_super) {
            __extends(Navigate, _super);
            function Navigate() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                _this.state = { activeItem: 'catalog' };
                _this.handleItemClick = function (e, _a) {
                    var name = _a.name;
                    return _this.setState({ activeItem: name });
                };
                return _this;
            }
            Navigate.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        this.setState({ activeItem: window.location.pathname });
                        return [2 /*return*/];
                    });
                });
            };
            Navigate.prototype.render = function () {
                var activeItem = this.state.activeItem;
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["BrowserRouter"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Menu"], { icon: "labeled", pointing: true, secondary: true, inverted: true, stackable: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("a", { className: "item", href: "/" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], { name: "home" }), 'Home'), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Menu"].Item, { name: "/catalog", active: activeItem === '/catalog', as: react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Link"], to: "/catalog", onClick: this.handleItemClick }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], { name: "book" }), 'Catalog'), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Menu"].Item, { name: "/map", active: activeItem === '/map', as: react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Link"], to: "/map", onClick: this.handleItemClick }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], { name: "map" }), 'Star map'), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Menu"].Item, { name: "/chart", active: activeItem === '/chart', as: react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Link"], to: "/chart", onClick: this.handleItemClick }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], { name: "chart line" }), 'Chart')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { exact: true, path: "/catalog", component: _Catalog__WEBPACK_IMPORTED_MODULE_2__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { exact: true, path: "/Map", component: _Map__WEBPACK_IMPORTED_MODULE_3__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { exact: true, path: "/chart", component: _Chart__WEBPACK_IMPORTED_MODULE_4__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { name: "planet", path: "/planet/:planetId", component: _PlanetInfo__WEBPACK_IMPORTED_MODULE_5__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { name: "star", path: "/star/:starId", component: _StarInfo__WEBPACK_IMPORTED_MODULE_8__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { name: "system", path: "/system/:starId", component: _Simulator__WEBPACK_IMPORTED_MODULE_6__["default"] }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_1__["Route"], { name: "constellation", path: "/constellation/:constellationId", component: _Constellations__WEBPACK_IMPORTED_MODULE_7__["default"] })))));
            };
            return Navigate;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Navigate);
        /***/ 
    }),
    /* 21 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _BrowserRouter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function () { return _BrowserRouter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /* harmony import */ var _HashRouter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function () { return _HashRouter__WEBPACK_IMPORTED_MODULE_1__["default"]; });
        /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Link", function () { return _Link__WEBPACK_IMPORTED_MODULE_2__["default"]; });
        /* harmony import */ var _MemoryRouter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function () { return _MemoryRouter__WEBPACK_IMPORTED_MODULE_3__["default"]; });
        /* harmony import */ var _NavLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLink", function () { return _NavLink__WEBPACK_IMPORTED_MODULE_4__["default"]; });
        /* harmony import */ var _Prompt__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Prompt", function () { return _Prompt__WEBPACK_IMPORTED_MODULE_5__["default"]; });
        /* harmony import */ var _Redirect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(52);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Redirect", function () { return _Redirect__WEBPACK_IMPORTED_MODULE_6__["default"]; });
        /* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Route", function () { return _Route__WEBPACK_IMPORTED_MODULE_7__["default"]; });
        /* harmony import */ var _Router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Router", function () { return _Router__WEBPACK_IMPORTED_MODULE_8__["default"]; });
        /* harmony import */ var _StaticRouter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function () { return _StaticRouter__WEBPACK_IMPORTED_MODULE_9__["default"]; });
        /* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function () { return _Switch__WEBPACK_IMPORTED_MODULE_10__["default"]; });
        /* harmony import */ var _generatePath__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(59);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "generatePath", function () { return _generatePath__WEBPACK_IMPORTED_MODULE_11__["default"]; });
        /* harmony import */ var _matchPath__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(60);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matchPath", function () { return _matchPath__WEBPACK_IMPORTED_MODULE_12__["default"]; });
        /* harmony import */ var _withRouter__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(61);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withRouter", function () { return _withRouter__WEBPACK_IMPORTED_MODULE_13__["default"]; });
        /***/ 
    }),
    /* 22 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
        /* harmony import */ var _Router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38);
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for a <Router> that uses HTML5 history.
         */
        var BrowserRouter = function (_React$Component) {
            _inherits(BrowserRouter, _React$Component);
            function BrowserRouter() {
                var _temp, _this, _ret;
                _classCallCheck(this, BrowserRouter);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__["createBrowserHistory"])(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
            }
            BrowserRouter.prototype.componentWillMount = function componentWillMount() {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.");
            };
            BrowserRouter.prototype.render = function render() {
                return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Router__WEBPACK_IMPORTED_MODULE_4__["default"], { history: this.history, children: this.props.children });
            };
            return BrowserRouter;
        }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
        BrowserRouter.propTypes = {
            basename: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            forceRefresh: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            getUserConfirmation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
            keyLength: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
        };
        /* harmony default export */ __webpack_exports__["default"] = (BrowserRouter);
        /***/ 
    }),
    /* 23 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        /**
         * Similar to invariant but only logs a warning if the condition is not met.
         * This can be used to log issues in development environments in critical
         * paths. Removing the logging code for production environments will keep the
         * same logic and follow the same code paths.
         */
        var __DEV__ = "none" !== 'production';
        var warning = function () { };
        if (__DEV__) {
            var printWarning = function printWarning(format, args) {
                var len = arguments.length;
                args = new Array(len > 2 ? len - 2 : 0);
                for (var key = 2; key < len; key++) {
                    args[key - 2] = arguments[key];
                }
                var argIndex = 0;
                var message = 'Warning: ' +
                    format.replace(/%s/g, function () {
                        return args[argIndex++];
                    });
                if (typeof console !== 'undefined') {
                    console.error(message);
                }
                try {
                    // --- Welcome to debugging React ---
                    // This error was thrown as a convenience so that you can use this stack
                    // to find the callsite that caused this warning to fire.
                    throw new Error(message);
                }
                catch (x) { }
            };
            warning = function (condition, format, args) {
                var len = arguments.length;
                args = new Array(len > 2 ? len - 2 : 0);
                for (var key = 2; key < len; key++) {
                    args[key - 2] = arguments[key];
                }
                if (format === undefined) {
                    throw new Error('`warning(condition, format, ...args)` requires a warning ' +
                        'message argument');
                }
                if (!condition) {
                    printWarning.apply(null, [format].concat(args));
                }
            };
        }
        module.exports = warning;
        /***/ 
    }),
    /* 24 */
    /***/ (function (module, exports, __webpack_require__) {
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        if (true) {
            var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
                Symbol.for &&
                Symbol.for('react.element')) ||
                0xeac7;
            var isValidElement = function (object) {
                return typeof object === 'object' &&
                    object !== null &&
                    object.$$typeof === REACT_ELEMENT_TYPE;
            };
            // By explicitly using `prop-types` you are opting into new development behavior.
            // http://fb.me/prop-types-in-prod
            var throwOnDirectAccess = true;
            module.exports = __webpack_require__(25)(isValidElement, throwOnDirectAccess);
        }
        else { }
        /***/ 
    }),
    /* 25 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        var assign = __webpack_require__(11);
        var ReactPropTypesSecret = __webpack_require__(13);
        var checkPropTypes = __webpack_require__(12);
        var printWarning = function () { };
        if (true) {
            printWarning = function (text) {
                var message = 'Warning: ' + text;
                if (typeof console !== 'undefined') {
                    console.error(message);
                }
                try {
                    // --- Welcome to debugging React ---
                    // This error was thrown as a convenience so that you can use this stack
                    // to find the callsite that caused this warning to fire.
                    throw new Error(message);
                }
                catch (x) { }
            };
        }
        function emptyFunctionThatReturnsNull() {
            return null;
        }
        module.exports = function (isValidElement, throwOnDirectAccess) {
            /* global Symbol */
            var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
            var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
            /**
             * Returns the iterator method function contained on the iterable object.
             *
             * Be sure to invoke the function with the iterable as context:
             *
             *     var iteratorFn = getIteratorFn(myIterable);
             *     if (iteratorFn) {
             *       var iterator = iteratorFn.call(myIterable);
             *       ...
             *     }
             *
             * @param {?object} maybeIterable
             * @return {?function}
             */
            function getIteratorFn(maybeIterable) {
                var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
                if (typeof iteratorFn === 'function') {
                    return iteratorFn;
                }
            }
            /**
             * Collection of methods that allow declaration and validation of props that are
             * supplied to React components. Example usage:
             *
             *   var Props = require('ReactPropTypes');
             *   var MyArticle = React.createClass({
             *     propTypes: {
             *       // An optional string prop named "description".
             *       description: Props.string,
             *
             *       // A required enum prop named "category".
             *       category: Props.oneOf(['News','Photos']).isRequired,
             *
             *       // A prop named "dialog" that requires an instance of Dialog.
             *       dialog: Props.instanceOf(Dialog).isRequired
             *     },
             *     render: function() { ... }
             *   });
             *
             * A more formal specification of how these methods are used:
             *
             *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
             *   decl := ReactPropTypes.{type}(.isRequired)?
             *
             * Each and every declaration produces a function with the same signature. This
             * allows the creation of custom validation functions. For example:
             *
             *  var MyLink = React.createClass({
             *    propTypes: {
             *      // An optional string or URI prop named "href".
             *      href: function(props, propName, componentName) {
             *        var propValue = props[propName];
             *        if (propValue != null && typeof propValue !== 'string' &&
             *            !(propValue instanceof URI)) {
             *          return new Error(
             *            'Expected a string or an URI for ' + propName + ' in ' +
             *            componentName
             *          );
             *        }
             *      }
             *    },
             *    render: function() {...}
             *  });
             *
             * @internal
             */
            var ANONYMOUS = '<<anonymous>>';
            // Important!
            // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
            var ReactPropTypes = {
                array: createPrimitiveTypeChecker('array'),
                bool: createPrimitiveTypeChecker('boolean'),
                func: createPrimitiveTypeChecker('function'),
                number: createPrimitiveTypeChecker('number'),
                object: createPrimitiveTypeChecker('object'),
                string: createPrimitiveTypeChecker('string'),
                symbol: createPrimitiveTypeChecker('symbol'),
                any: createAnyTypeChecker(),
                arrayOf: createArrayOfTypeChecker,
                element: createElementTypeChecker(),
                instanceOf: createInstanceTypeChecker,
                node: createNodeChecker(),
                objectOf: createObjectOfTypeChecker,
                oneOf: createEnumTypeChecker,
                oneOfType: createUnionTypeChecker,
                shape: createShapeTypeChecker,
                exact: createStrictShapeTypeChecker,
            };
            /**
             * inlined Object.is polyfill to avoid requiring consumers ship their own
             * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
             */
            /*eslint-disable no-self-compare*/
            function is(x, y) {
                // SameValue algorithm
                if (x === y) {
                    // Steps 1-5, 7-10
                    // Steps 6.b-6.e: +0 != -0
                    return x !== 0 || 1 / x === 1 / y;
                }
                else {
                    // Step 6.a: NaN == NaN
                    return x !== x && y !== y;
                }
            }
            /*eslint-enable no-self-compare*/
            /**
             * We use an Error-like object for backward compatibility as people may call
             * PropTypes directly and inspect their output. However, we don't use real
             * Errors anymore. We don't inspect their stack anyway, and creating them
             * is prohibitively expensive if they are created too often, such as what
             * happens in oneOfType() for any type before the one that matched.
             */
            function PropTypeError(message) {
                this.message = message;
                this.stack = '';
            }
            // Make `instanceof Error` still work for returned errors.
            PropTypeError.prototype = Error.prototype;
            function createChainableTypeChecker(validate) {
                if (true) {
                    var manualPropTypeCallCache = {};
                    var manualPropTypeWarningCount = 0;
                }
                function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
                    componentName = componentName || ANONYMOUS;
                    propFullName = propFullName || propName;
                    if (secret !== ReactPropTypesSecret) {
                        if (throwOnDirectAccess) {
                            // New behavior only for users of `prop-types` package
                            var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
                                'Use `PropTypes.checkPropTypes()` to call them. ' +
                                'Read more at http://fb.me/use-check-prop-types');
                            err.name = 'Invariant Violation';
                            throw err;
                        }
                        else if ("none" !== 'production' && typeof console !== 'undefined') {
                            // Old behavior for people using React.PropTypes
                            var cacheKey = componentName + ':' + propName;
                            if (!manualPropTypeCallCache[cacheKey] &&
                                // Avoid spamming the console because they are often not actionable except for lib authors
                                manualPropTypeWarningCount < 3) {
                                printWarning('You are manually calling a React.PropTypes validation ' +
                                    'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
                                    'and will throw in the standalone `prop-types` package. ' +
                                    'You may be seeing this warning due to a third-party PropTypes ' +
                                    'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
                                manualPropTypeCallCache[cacheKey] = true;
                                manualPropTypeWarningCount++;
                            }
                        }
                    }
                    if (props[propName] == null) {
                        if (isRequired) {
                            if (props[propName] === null) {
                                return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
                            }
                            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
                        }
                        return null;
                    }
                    else {
                        return validate(props, propName, componentName, location, propFullName);
                    }
                }
                var chainedCheckType = checkType.bind(null, false);
                chainedCheckType.isRequired = checkType.bind(null, true);
                return chainedCheckType;
            }
            function createPrimitiveTypeChecker(expectedType) {
                function validate(props, propName, componentName, location, propFullName, secret) {
                    var propValue = props[propName];
                    var propType = getPropType(propValue);
                    if (propType !== expectedType) {
                        // `propValue` being instance of, say, date/regexp, pass the 'object'
                        // check, but we can offer a more precise error message here rather than
                        // 'of type `object`'.
                        var preciseType = getPreciseType(propValue);
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createAnyTypeChecker() {
                return createChainableTypeChecker(emptyFunctionThatReturnsNull);
            }
            function createArrayOfTypeChecker(typeChecker) {
                function validate(props, propName, componentName, location, propFullName) {
                    if (typeof typeChecker !== 'function') {
                        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
                    }
                    var propValue = props[propName];
                    if (!Array.isArray(propValue)) {
                        var propType = getPropType(propValue);
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
                    }
                    for (var i = 0; i < propValue.length; i++) {
                        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
                        if (error instanceof Error) {
                            return error;
                        }
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createElementTypeChecker() {
                function validate(props, propName, componentName, location, propFullName) {
                    var propValue = props[propName];
                    if (!isValidElement(propValue)) {
                        var propType = getPropType(propValue);
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createInstanceTypeChecker(expectedClass) {
                function validate(props, propName, componentName, location, propFullName) {
                    if (!(props[propName] instanceof expectedClass)) {
                        var expectedClassName = expectedClass.name || ANONYMOUS;
                        var actualClassName = getClassName(props[propName]);
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createEnumTypeChecker(expectedValues) {
                if (!Array.isArray(expectedValues)) {
                    true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
                    return emptyFunctionThatReturnsNull;
                }
                function validate(props, propName, componentName, location, propFullName) {
                    var propValue = props[propName];
                    for (var i = 0; i < expectedValues.length; i++) {
                        if (is(propValue, expectedValues[i])) {
                            return null;
                        }
                    }
                    var valuesString = JSON.stringify(expectedValues);
                    return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
                }
                return createChainableTypeChecker(validate);
            }
            function createObjectOfTypeChecker(typeChecker) {
                function validate(props, propName, componentName, location, propFullName) {
                    if (typeof typeChecker !== 'function') {
                        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
                    }
                    var propValue = props[propName];
                    var propType = getPropType(propValue);
                    if (propType !== 'object') {
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
                    }
                    for (var key in propValue) {
                        if (propValue.hasOwnProperty(key)) {
                            var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
                            if (error instanceof Error) {
                                return error;
                            }
                        }
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createUnionTypeChecker(arrayOfTypeCheckers) {
                if (!Array.isArray(arrayOfTypeCheckers)) {
                    true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
                    return emptyFunctionThatReturnsNull;
                }
                for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
                    var checker = arrayOfTypeCheckers[i];
                    if (typeof checker !== 'function') {
                        printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
                            'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
                        return emptyFunctionThatReturnsNull;
                    }
                }
                function validate(props, propName, componentName, location, propFullName) {
                    for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
                        var checker = arrayOfTypeCheckers[i];
                        if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
                            return null;
                        }
                    }
                    return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
                }
                return createChainableTypeChecker(validate);
            }
            function createNodeChecker() {
                function validate(props, propName, componentName, location, propFullName) {
                    if (!isNode(props[propName])) {
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createShapeTypeChecker(shapeTypes) {
                function validate(props, propName, componentName, location, propFullName) {
                    var propValue = props[propName];
                    var propType = getPropType(propValue);
                    if (propType !== 'object') {
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
                    }
                    for (var key in shapeTypes) {
                        var checker = shapeTypes[key];
                        if (!checker) {
                            continue;
                        }
                        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
                        if (error) {
                            return error;
                        }
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function createStrictShapeTypeChecker(shapeTypes) {
                function validate(props, propName, componentName, location, propFullName) {
                    var propValue = props[propName];
                    var propType = getPropType(propValue);
                    if (propType !== 'object') {
                        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
                    }
                    // We need to check all keys in case some are required but missing from
                    // props.
                    var allKeys = assign({}, props[propName], shapeTypes);
                    for (var key in allKeys) {
                        var checker = shapeTypes[key];
                        if (!checker) {
                            return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
                                '\nBad object: ' + JSON.stringify(props[propName], null, '  ') +
                                '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, '  '));
                        }
                        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
                        if (error) {
                            return error;
                        }
                    }
                    return null;
                }
                return createChainableTypeChecker(validate);
            }
            function isNode(propValue) {
                switch (typeof propValue) {
                    case 'number':
                    case 'string':
                    case 'undefined':
                        return true;
                    case 'boolean':
                        return !propValue;
                    case 'object':
                        if (Array.isArray(propValue)) {
                            return propValue.every(isNode);
                        }
                        if (propValue === null || isValidElement(propValue)) {
                            return true;
                        }
                        var iteratorFn = getIteratorFn(propValue);
                        if (iteratorFn) {
                            var iterator = iteratorFn.call(propValue);
                            var step;
                            if (iteratorFn !== propValue.entries) {
                                while (!(step = iterator.next()).done) {
                                    if (!isNode(step.value)) {
                                        return false;
                                    }
                                }
                            }
                            else {
                                // Iterator will provide entry [k,v] tuples rather than values.
                                while (!(step = iterator.next()).done) {
                                    var entry = step.value;
                                    if (entry) {
                                        if (!isNode(entry[1])) {
                                            return false;
                                        }
                                    }
                                }
                            }
                        }
                        else {
                            return false;
                        }
                        return true;
                    default:
                        return false;
                }
            }
            function isSymbol(propType, propValue) {
                // Native Symbol.
                if (propType === 'symbol') {
                    return true;
                }
                // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
                if (propValue['@@toStringTag'] === 'Symbol') {
                    return true;
                }
                // Fallback for non-spec compliant Symbols which are polyfilled.
                if (typeof Symbol === 'function' && propValue instanceof Symbol) {
                    return true;
                }
                return false;
            }
            // Equivalent of `typeof` but with special handling for array and regexp.
            function getPropType(propValue) {
                var propType = typeof propValue;
                if (Array.isArray(propValue)) {
                    return 'array';
                }
                if (propValue instanceof RegExp) {
                    // Old webkits (at least until Android 4.0) return 'function' rather than
                    // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
                    // passes PropTypes.object.
                    return 'object';
                }
                if (isSymbol(propType, propValue)) {
                    return 'symbol';
                }
                return propType;
            }
            // This handles more types than `getPropType`. Only used for error messages.
            // See `createPrimitiveTypeChecker`.
            function getPreciseType(propValue) {
                if (typeof propValue === 'undefined' || propValue === null) {
                    return '' + propValue;
                }
                var propType = getPropType(propValue);
                if (propType === 'object') {
                    if (propValue instanceof Date) {
                        return 'date';
                    }
                    else if (propValue instanceof RegExp) {
                        return 'regexp';
                    }
                }
                return propType;
            }
            // Returns a string that is postfixed to a warning about an invalid type.
            // For example, "undefined" or "of type array"
            function getPostfixForTypeWarning(value) {
                var type = getPreciseType(value);
                switch (type) {
                    case 'array':
                    case 'object':
                        return 'an ' + type;
                    case 'boolean':
                    case 'date':
                    case 'regexp':
                        return 'a ' + type;
                    default:
                        return type;
                }
            }
            // Returns class name of the object, if any.
            function getClassName(propValue) {
                if (!propValue.constructor || !propValue.constructor.name) {
                    return ANONYMOUS;
                }
                return propValue.constructor.name;
            }
            ReactPropTypes.checkPropTypes = checkPropTypes;
            ReactPropTypes.PropTypes = ReactPropTypes;
            return ReactPropTypes;
        };
        /***/ 
    }),
    /* 26 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _createBrowserHistory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createBrowserHistory", function () { return _createBrowserHistory__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /* harmony import */ var _createHashHistory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHashHistory", function () { return _createHashHistory__WEBPACK_IMPORTED_MODULE_1__["default"]; });
        /* harmony import */ var _createMemoryHistory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createMemoryHistory", function () { return _createMemoryHistory__WEBPACK_IMPORTED_MODULE_2__["default"]; });
        /* harmony import */ var _LocationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createLocation", function () { return _LocationUtils__WEBPACK_IMPORTED_MODULE_3__["createLocation"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "locationsAreEqual", function () { return _LocationUtils__WEBPACK_IMPORTED_MODULE_3__["locationsAreEqual"]; });
        /* harmony import */ var _PathUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parsePath", function () { return _PathUtils__WEBPACK_IMPORTED_MODULE_4__["parsePath"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPath", function () { return _PathUtils__WEBPACK_IMPORTED_MODULE_4__["createPath"]; });
        /***/ 
    }),
    /* 27 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _LocationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
        /* harmony import */ var _PathUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
        /* harmony import */ var _createTransitionManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
        /* harmony import */ var _DOMUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
        var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
        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; };
        var PopStateEvent = 'popstate';
        var HashChangeEvent = 'hashchange';
        var getHistoryState = function getHistoryState() {
            try {
                return window.history.state || {};
            }
            catch (e) {
                // IE 11 sometimes throws when accessing window.history.state
                // See https://github.com/ReactTraining/history/pull/289
                return {};
            }
        };
        /**
         * Creates a history object that uses the HTML5 history API including
         * pushState, replaceState, and the popstate event.
         */
        var createBrowserHistory = function createBrowserHistory() {
            var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            invariant__WEBPACK_IMPORTED_MODULE_1___default()(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["canUseDOM"], 'Browser history needs a DOM');
            var globalHistory = window.history;
            var canUseHistory = Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["supportsHistory"])();
            var needsHashChangeListener = !Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["supportsPopStateOnHashChange"])();
            var _props$forceRefresh = props.forceRefresh, forceRefresh = _props$forceRefresh === undefined ? false : _props$forceRefresh, _props$getUserConfirm = props.getUserConfirmation, getUserConfirmation = _props$getUserConfirm === undefined ? _DOMUtils__WEBPACK_IMPORTED_MODULE_5__["getConfirmation"] : _props$getUserConfirm, _props$keyLength = props.keyLength, keyLength = _props$keyLength === undefined ? 6 : _props$keyLength;
            var basename = props.basename ? Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripTrailingSlash"])(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["addLeadingSlash"])(props.basename)) : '';
            var getDOMLocation = function getDOMLocation(historyState) {
                var _ref = historyState || {}, key = _ref.key, state = _ref.state;
                var _window$location = window.location, pathname = _window$location.pathname, search = _window$location.search, hash = _window$location.hash;
                var path = pathname + search + hash;
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!basename || Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["hasBasename"])(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
                if (basename)
                    path = Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripBasename"])(path, basename);
                return Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, state, key);
            };
            var createKey = function createKey() {
                return Math.random().toString(36).substr(2, keyLength);
            };
            var transitionManager = Object(_createTransitionManager__WEBPACK_IMPORTED_MODULE_4__["default"])();
            var setState = function setState(nextState) {
                _extends(history, nextState);
                history.length = globalHistory.length;
                transitionManager.notifyListeners(history.location, history.action);
            };
            var handlePopState = function handlePopState(event) {
                // Ignore extraneous popstate events in WebKit.
                if (Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["isExtraneousPopstateEvent"])(event))
                    return;
                handlePop(getDOMLocation(event.state));
            };
            var handleHashChange = function handleHashChange() {
                handlePop(getDOMLocation(getHistoryState()));
            };
            var forceNextPop = false;
            var handlePop = function handlePop(location) {
                if (forceNextPop) {
                    forceNextPop = false;
                    setState();
                }
                else {
                    var action = 'POP';
                    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                        if (ok) {
                            setState({ action: action, location: location });
                        }
                        else {
                            revertPop(location);
                        }
                    });
                }
            };
            var revertPop = function revertPop(fromLocation) {
                var toLocation = history.location;
                // TODO: We could probably make this more reliable by
                // keeping a list of keys we've seen in sessionStorage.
                // Instead, we just default to 0 for keys we don't know.
                var toIndex = allKeys.indexOf(toLocation.key);
                if (toIndex === -1)
                    toIndex = 0;
                var fromIndex = allKeys.indexOf(fromLocation.key);
                if (fromIndex === -1)
                    fromIndex = 0;
                var delta = toIndex - fromIndex;
                if (delta) {
                    forceNextPop = true;
                    go(delta);
                }
            };
            var initialLocation = getDOMLocation(getHistoryState());
            var allKeys = [initialLocation.key];
            // Public interface
            var createHref = function createHref(location) {
                return basename + Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(location);
            };
            var push = function push(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored');
                var action = 'PUSH';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, state, createKey(), history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    var href = createHref(location);
                    var key = location.key, state = location.state;
                    if (canUseHistory) {
                        globalHistory.pushState({ key: key, state: state }, null, href);
                        if (forceRefresh) {
                            window.location.href = href;
                        }
                        else {
                            var prevIndex = allKeys.indexOf(history.location.key);
                            var nextKeys = allKeys.slice(0, prevIndex === -1 ? 0 : prevIndex + 1);
                            nextKeys.push(location.key);
                            allKeys = nextKeys;
                            setState({ action: action, location: location });
                        }
                    }
                    else {
                        warning__WEBPACK_IMPORTED_MODULE_0___default()(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history');
                        window.location.href = href;
                    }
                });
            };
            var replace = function replace(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored');
                var action = 'REPLACE';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, state, createKey(), history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    var href = createHref(location);
                    var key = location.key, state = location.state;
                    if (canUseHistory) {
                        globalHistory.replaceState({ key: key, state: state }, null, href);
                        if (forceRefresh) {
                            window.location.replace(href);
                        }
                        else {
                            var prevIndex = allKeys.indexOf(history.location.key);
                            if (prevIndex !== -1)
                                allKeys[prevIndex] = location.key;
                            setState({ action: action, location: location });
                        }
                    }
                    else {
                        warning__WEBPACK_IMPORTED_MODULE_0___default()(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history');
                        window.location.replace(href);
                    }
                });
            };
            var go = function go(n) {
                globalHistory.go(n);
            };
            var goBack = function goBack() {
                return go(-1);
            };
            var goForward = function goForward() {
                return go(1);
            };
            var listenerCount = 0;
            var checkDOMListeners = function checkDOMListeners(delta) {
                listenerCount += delta;
                if (listenerCount === 1) {
                    Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["addEventListener"])(window, PopStateEvent, handlePopState);
                    if (needsHashChangeListener)
                        Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["addEventListener"])(window, HashChangeEvent, handleHashChange);
                }
                else if (listenerCount === 0) {
                    Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["removeEventListener"])(window, PopStateEvent, handlePopState);
                    if (needsHashChangeListener)
                        Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["removeEventListener"])(window, HashChangeEvent, handleHashChange);
                }
            };
            var isBlocked = false;
            var block = function block() {
                var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
                var unblock = transitionManager.setPrompt(prompt);
                if (!isBlocked) {
                    checkDOMListeners(1);
                    isBlocked = true;
                }
                return function () {
                    if (isBlocked) {
                        isBlocked = false;
                        checkDOMListeners(-1);
                    }
                    return unblock();
                };
            };
            var listen = function listen(listener) {
                var unlisten = transitionManager.appendListener(listener);
                checkDOMListeners(1);
                return function () {
                    checkDOMListeners(-1);
                    unlisten();
                };
            };
            var history = {
                length: globalHistory.length,
                action: 'POP',
                location: initialLocation,
                createHref: createHref,
                push: push,
                replace: replace,
                go: go,
                goBack: goBack,
                goForward: goForward,
                block: block,
                listen: listen
            };
            return history;
        };
        /* harmony default export */ __webpack_exports__["default"] = (createBrowserHistory);
        /***/ 
    }),
    /* 28 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright 2014-2015, Facebook, Inc.
         * All rights reserved.
         *
         * This source code is licensed under the BSD-style license found in the
         * LICENSE file in the root directory of this source tree. An additional grant
         * of patent rights can be found in the PATENTS file in the same directory.
         */
        /**
         * Similar to invariant but only logs a warning if the condition is not met.
         * This can be used to log issues in development environments in critical
         * paths. Removing the logging code for production environments will keep the
         * same logic and follow the same code paths.
         */
        var warning = function () { };
        if (true) {
            warning = function (condition, format, args) {
                var len = arguments.length;
                args = new Array(len > 2 ? len - 2 : 0);
                for (var key = 2; key < len; key++) {
                    args[key - 2] = arguments[key];
                }
                if (format === undefined) {
                    throw new Error('`warning(condition, format, ...args)` requires a warning ' +
                        'message argument');
                }
                if (format.length < 10 || (/^[s\W]*$/).test(format)) {
                    throw new Error('The warning format should be able to uniquely identify this ' +
                        'warning. Please, use a more descriptive format than: ' + format);
                }
                if (!condition) {
                    var argIndex = 0;
                    var message = 'Warning: ' +
                        format.replace(/%s/g, function () {
                            return args[argIndex++];
                        });
                    if (typeof console !== 'undefined') {
                        console.error(message);
                    }
                    try {
                        // This error was thrown as a convenience so that you can use this stack
                        // to find the callsite that caused this warning to fire.
                        throw new Error(message);
                    }
                    catch (x) { }
                }
            };
        }
        module.exports = warning;
        /***/ 
    }),
    /* 29 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        /**
         * Use invariant() to assert state which your program assumes to be true.
         *
         * Provide sprintf-style format (only %s is supported) and arguments
         * to provide information about what broke and what you were
         * expecting.
         *
         * The invariant message will be stripped in production, but the invariant
         * will remain to ensure logic does not differ in production.
         */
        var invariant = function (condition, format, a, b, c, d, e, f) {
            if (true) {
                if (format === undefined) {
                    throw new Error('invariant requires an error message argument');
                }
            }
            if (!condition) {
                var error;
                if (format === undefined) {
                    error = new Error('Minified exception occurred; use the non-minified dev environment ' +
                        'for the full error message and additional helpful warnings.');
                }
                else {
                    var args = [a, b, c, d, e, f];
                    var argIndex = 0;
                    error = new Error(format.replace(/%s/g, function () { return args[argIndex++]; }));
                    error.name = 'Invariant Violation';
                }
                error.framesToPop = 1; // we don't care about invariant's own frame
                throw error;
            }
        };
        module.exports = invariant;
        /***/ 
    }),
    /* 30 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLocation", function () { return createLocation; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "locationsAreEqual", function () { return locationsAreEqual; });
        /* harmony import */ var resolve_pathname__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
        /* harmony import */ var value_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
        /* harmony import */ var _PathUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
        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; };
        var createLocation = function createLocation(path, state, key, currentLocation) {
            var location = void 0;
            if (typeof path === 'string') {
                // Two-arg form: push(path, state)
                location = Object(_PathUtils__WEBPACK_IMPORTED_MODULE_2__["parsePath"])(path);
                location.state = state;
            }
            else {
                // One-arg form: push(location)
                location = _extends({}, path);
                if (location.pathname === undefined)
                    location.pathname = '';
                if (location.search) {
                    if (location.search.charAt(0) !== '?')
                        location.search = '?' + location.search;
                }
                else {
                    location.search = '';
                }
                if (location.hash) {
                    if (location.hash.charAt(0) !== '#')
                        location.hash = '#' + location.hash;
                }
                else {
                    location.hash = '';
                }
                if (state !== undefined && location.state === undefined)
                    location.state = state;
            }
            try {
                location.pathname = decodeURI(location.pathname);
            }
            catch (e) {
                if (e instanceof URIError) {
                    throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
                }
                else {
                    throw e;
                }
            }
            if (key)
                location.key = key;
            if (currentLocation) {
                // Resolve incomplete/relative pathname relative to current location.
                if (!location.pathname) {
                    location.pathname = currentLocation.pathname;
                }
                else if (location.pathname.charAt(0) !== '/') {
                    location.pathname = Object(resolve_pathname__WEBPACK_IMPORTED_MODULE_0__["default"])(location.pathname, currentLocation.pathname);
                }
            }
            else {
                // When there is no prior location and pathname is empty, set it to /
                if (!location.pathname) {
                    location.pathname = '/';
                }
            }
            return location;
        };
        var locationsAreEqual = function locationsAreEqual(a, b) {
            return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(value_equal__WEBPACK_IMPORTED_MODULE_1__["default"])(a.state, b.state);
        };
        /***/ 
    }),
    /* 31 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        function isAbsolute(pathname) {
            return pathname.charAt(0) === '/';
        }
        // About 1.5x faster than the two-arg version of Array#splice()
        function spliceOne(list, index) {
            for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
                list[i] = list[k];
            }
            list.pop();
        }
        // This implementation is based heavily on node's url.parse
        function resolvePathname(to) {
            var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var toParts = to && to.split('/') || [];
            var fromParts = from && from.split('/') || [];
            var isToAbs = to && isAbsolute(to);
            var isFromAbs = from && isAbsolute(from);
            var mustEndAbs = isToAbs || isFromAbs;
            if (to && isAbsolute(to)) {
                // to is absolute
                fromParts = toParts;
            }
            else if (toParts.length) {
                // to is relative, drop the filename
                fromParts.pop();
                fromParts = fromParts.concat(toParts);
            }
            if (!fromParts.length)
                return '/';
            var hasTrailingSlash = void 0;
            if (fromParts.length) {
                var last = fromParts[fromParts.length - 1];
                hasTrailingSlash = last === '.' || last === '..' || last === '';
            }
            else {
                hasTrailingSlash = false;
            }
            var up = 0;
            for (var i = fromParts.length; i >= 0; i--) {
                var part = fromParts[i];
                if (part === '.') {
                    spliceOne(fromParts, i);
                }
                else if (part === '..') {
                    spliceOne(fromParts, i);
                    up++;
                }
                else if (up) {
                    spliceOne(fromParts, i);
                    up--;
                }
            }
            if (!mustEndAbs)
                for (; up--; up) {
                    fromParts.unshift('..');
                }
            if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0])))
                fromParts.unshift('');
            var result = fromParts.join('/');
            if (hasTrailingSlash && result.substr(-1) !== '/')
                result += '/';
            return result;
        }
        /* harmony default export */ __webpack_exports__["default"] = (resolvePathname);
        /***/ 
    }),
    /* 32 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
        function valueEqual(a, b) {
            if (a === b)
                return true;
            if (a == null || b == null)
                return false;
            if (Array.isArray(a)) {
                return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
                    return valueEqual(item, b[index]);
                });
            }
            var aType = typeof a === 'undefined' ? 'undefined' : _typeof(a);
            var bType = typeof b === 'undefined' ? 'undefined' : _typeof(b);
            if (aType !== bType)
                return false;
            if (aType === 'object') {
                var aValue = a.valueOf();
                var bValue = b.valueOf();
                if (aValue !== a || bValue !== b)
                    return valueEqual(aValue, bValue);
                var aKeys = Object.keys(a);
                var bKeys = Object.keys(b);
                if (aKeys.length !== bKeys.length)
                    return false;
                return aKeys.every(function (key) {
                    return valueEqual(a[key], b[key]);
                });
            }
            return false;
        }
        /* harmony default export */ __webpack_exports__["default"] = (valueEqual);
        /***/ 
    }),
    /* 33 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addLeadingSlash", function () { return addLeadingSlash; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stripLeadingSlash", function () { return stripLeadingSlash; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasBasename", function () { return hasBasename; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stripBasename", function () { return stripBasename; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stripTrailingSlash", function () { return stripTrailingSlash; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parsePath", function () { return parsePath; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPath", function () { return createPath; });
        var addLeadingSlash = function addLeadingSlash(path) {
            return path.charAt(0) === '/' ? path : '/' + path;
        };
        var stripLeadingSlash = function stripLeadingSlash(path) {
            return path.charAt(0) === '/' ? path.substr(1) : path;
        };
        var hasBasename = function hasBasename(path, prefix) {
            return new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
        };
        var stripBasename = function stripBasename(path, prefix) {
            return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
        };
        var stripTrailingSlash = function stripTrailingSlash(path) {
            return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
        };
        var parsePath = function parsePath(path) {
            var pathname = path || '/';
            var search = '';
            var hash = '';
            var hashIndex = pathname.indexOf('#');
            if (hashIndex !== -1) {
                hash = pathname.substr(hashIndex);
                pathname = pathname.substr(0, hashIndex);
            }
            var searchIndex = pathname.indexOf('?');
            if (searchIndex !== -1) {
                search = pathname.substr(searchIndex);
                pathname = pathname.substr(0, searchIndex);
            }
            return {
                pathname: pathname,
                search: search === '?' ? '' : search,
                hash: hash === '#' ? '' : hash
            };
        };
        var createPath = function createPath(location) {
            var pathname = location.pathname, search = location.search, hash = location.hash;
            var path = pathname || '/';
            if (search && search !== '?')
                path += search.charAt(0) === '?' ? search : '?' + search;
            if (hash && hash !== '#')
                path += hash.charAt(0) === '#' ? hash : '#' + hash;
            return path;
        };
        /***/ 
    }),
    /* 34 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        var createTransitionManager = function createTransitionManager() {
            var prompt = null;
            var setPrompt = function setPrompt(nextPrompt) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(prompt == null, 'A history supports only one prompt at a time');
                prompt = nextPrompt;
                return function () {
                    if (prompt === nextPrompt)
                        prompt = null;
                };
            };
            var confirmTransitionTo = function confirmTransitionTo(location, action, getUserConfirmation, callback) {
                // TODO: If another transition starts while we're still confirming
                // the previous one, we may end up in a weird state. Figure out the
                // best way to handle this.
                if (prompt != null) {
                    var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
                    if (typeof result === 'string') {
                        if (typeof getUserConfirmation === 'function') {
                            getUserConfirmation(result, callback);
                        }
                        else {
                            warning__WEBPACK_IMPORTED_MODULE_0___default()(false, 'A history needs a getUserConfirmation function in order to use a prompt message');
                            callback(true);
                        }
                    }
                    else {
                        // Return false from a transition hook to cancel the transition.
                        callback(result !== false);
                    }
                }
                else {
                    callback(true);
                }
            };
            var listeners = [];
            var appendListener = function appendListener(fn) {
                var isActive = true;
                var listener = function listener() {
                    if (isActive)
                        fn.apply(undefined, arguments);
                };
                listeners.push(listener);
                return function () {
                    isActive = false;
                    listeners = listeners.filter(function (item) {
                        return item !== listener;
                    });
                };
            };
            var notifyListeners = function notifyListeners() {
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                listeners.forEach(function (listener) {
                    return listener.apply(undefined, args);
                });
            };
            return {
                setPrompt: setPrompt,
                confirmTransitionTo: confirmTransitionTo,
                appendListener: appendListener,
                notifyListeners: notifyListeners
            };
        };
        /* harmony default export */ __webpack_exports__["default"] = (createTransitionManager);
        /***/ 
    }),
    /* 35 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function () { return canUseDOM; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function () { return addEventListener; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeEventListener", function () { return removeEventListener; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfirmation", function () { return getConfirmation; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsHistory", function () { return supportsHistory; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsPopStateOnHashChange", function () { return supportsPopStateOnHashChange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsGoWithoutReloadUsingHash", function () { return supportsGoWithoutReloadUsingHash; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isExtraneousPopstateEvent", function () { return isExtraneousPopstateEvent; });
        var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
        var addEventListener = function addEventListener(node, event, listener) {
            return node.addEventListener ? node.addEventListener(event, listener, false) : node.attachEvent('on' + event, listener);
        };
        var removeEventListener = function removeEventListener(node, event, listener) {
            return node.removeEventListener ? node.removeEventListener(event, listener, false) : node.detachEvent('on' + event, listener);
        };
        var getConfirmation = function getConfirmation(message, callback) {
            return callback(window.confirm(message));
        }; // eslint-disable-line no-alert
        /**
         * Returns true if the HTML5 history API is supported. Taken from Modernizr.
         *
         * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
         * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
         * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
         */
        var supportsHistory = function supportsHistory() {
            var ua = window.navigator.userAgent;
            if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1)
                return false;
            return window.history && 'pushState' in window.history;
        };
        /**
         * Returns true if browser fires popstate on hash change.
         * IE10 and IE11 do not.
         */
        var supportsPopStateOnHashChange = function supportsPopStateOnHashChange() {
            return window.navigator.userAgent.indexOf('Trident') === -1;
        };
        /**
         * Returns false if using go(n) with hash history causes a full page reload.
         */
        var supportsGoWithoutReloadUsingHash = function supportsGoWithoutReloadUsingHash() {
            return window.navigator.userAgent.indexOf('Firefox') === -1;
        };
        /**
         * Returns true if a given popstate event is an extraneous WebKit event.
         * Accounts for the fact that Chrome on iOS fires real popstate events
         * containing undefined state when pressing the back button.
         */
        var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) {
            return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
        };
        /***/ 
    }),
    /* 36 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _LocationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
        /* harmony import */ var _PathUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
        /* harmony import */ var _createTransitionManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
        /* harmony import */ var _DOMUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
        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; };
        var HashChangeEvent = 'hashchange';
        var HashPathCoders = {
            hashbang: {
                encodePath: function encodePath(path) {
                    return path.charAt(0) === '!' ? path : '!/' + Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripLeadingSlash"])(path);
                },
                decodePath: function decodePath(path) {
                    return path.charAt(0) === '!' ? path.substr(1) : path;
                }
            },
            noslash: {
                encodePath: _PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripLeadingSlash"],
                decodePath: _PathUtils__WEBPACK_IMPORTED_MODULE_3__["addLeadingSlash"]
            },
            slash: {
                encodePath: _PathUtils__WEBPACK_IMPORTED_MODULE_3__["addLeadingSlash"],
                decodePath: _PathUtils__WEBPACK_IMPORTED_MODULE_3__["addLeadingSlash"]
            }
        };
        var getHashPath = function getHashPath() {
            // We can't use window.location.hash here because it's not
            // consistent across browsers - Firefox will pre-decode it!
            var href = window.location.href;
            var hashIndex = href.indexOf('#');
            return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
        };
        var pushHashPath = function pushHashPath(path) {
            return window.location.hash = path;
        };
        var replaceHashPath = function replaceHashPath(path) {
            var hashIndex = window.location.href.indexOf('#');
            window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path);
        };
        var createHashHistory = function createHashHistory() {
            var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            invariant__WEBPACK_IMPORTED_MODULE_1___default()(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["canUseDOM"], 'Hash history needs a DOM');
            var globalHistory = window.history;
            var canGoWithoutReload = Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["supportsGoWithoutReloadUsingHash"])();
            var _props$getUserConfirm = props.getUserConfirmation, getUserConfirmation = _props$getUserConfirm === undefined ? _DOMUtils__WEBPACK_IMPORTED_MODULE_5__["getConfirmation"] : _props$getUserConfirm, _props$hashType = props.hashType, hashType = _props$hashType === undefined ? 'slash' : _props$hashType;
            var basename = props.basename ? Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripTrailingSlash"])(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["addLeadingSlash"])(props.basename)) : '';
            var _HashPathCoders$hashT = HashPathCoders[hashType], encodePath = _HashPathCoders$hashT.encodePath, decodePath = _HashPathCoders$hashT.decodePath;
            var getDOMLocation = function getDOMLocation() {
                var path = decodePath(getHashPath());
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!basename || Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["hasBasename"])(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
                if (basename)
                    path = Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["stripBasename"])(path, basename);
                return Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path);
            };
            var transitionManager = Object(_createTransitionManager__WEBPACK_IMPORTED_MODULE_4__["default"])();
            var setState = function setState(nextState) {
                _extends(history, nextState);
                history.length = globalHistory.length;
                transitionManager.notifyListeners(history.location, history.action);
            };
            var forceNextPop = false;
            var ignorePath = null;
            var handleHashChange = function handleHashChange() {
                var path = getHashPath();
                var encodedPath = encodePath(path);
                if (path !== encodedPath) {
                    // Ensure we always have a properly-encoded hash.
                    replaceHashPath(encodedPath);
                }
                else {
                    var location = getDOMLocation();
                    var prevLocation = history.location;
                    if (!forceNextPop && Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["locationsAreEqual"])(prevLocation, location))
                        return; // A hashchange doesn't always == location change.
                    if (ignorePath === Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(location))
                        return; // Ignore this change; we already setState in push/replace.
                    ignorePath = null;
                    handlePop(location);
                }
            };
            var handlePop = function handlePop(location) {
                if (forceNextPop) {
                    forceNextPop = false;
                    setState();
                }
                else {
                    var action = 'POP';
                    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                        if (ok) {
                            setState({ action: action, location: location });
                        }
                        else {
                            revertPop(location);
                        }
                    });
                }
            };
            var revertPop = function revertPop(fromLocation) {
                var toLocation = history.location;
                // TODO: We could probably make this more reliable by
                // keeping a list of paths we've seen in sessionStorage.
                // Instead, we just default to 0 for paths we don't know.
                var toIndex = allPaths.lastIndexOf(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(toLocation));
                if (toIndex === -1)
                    toIndex = 0;
                var fromIndex = allPaths.lastIndexOf(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(fromLocation));
                if (fromIndex === -1)
                    fromIndex = 0;
                var delta = toIndex - fromIndex;
                if (delta) {
                    forceNextPop = true;
                    go(delta);
                }
            };
            // Ensure the hash is encoded properly before doing anything else.
            var path = getHashPath();
            var encodedPath = encodePath(path);
            if (path !== encodedPath)
                replaceHashPath(encodedPath);
            var initialLocation = getDOMLocation();
            var allPaths = [Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(initialLocation)];
            // Public interface
            var createHref = function createHref(location) {
                return '#' + encodePath(basename + Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(location));
            };
            var push = function push(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(state === undefined, 'Hash history cannot push state; it is ignored');
                var action = 'PUSH';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, undefined, undefined, history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    var path = Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(location);
                    var encodedPath = encodePath(basename + path);
                    var hashChanged = getHashPath() !== encodedPath;
                    if (hashChanged) {
                        // We cannot tell if a hashchange was caused by a PUSH, so we'd
                        // rather setState here and ignore the hashchange. The caveat here
                        // is that other hash histories in the page will consider it a POP.
                        ignorePath = path;
                        pushHashPath(encodedPath);
                        var prevIndex = allPaths.lastIndexOf(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(history.location));
                        var nextPaths = allPaths.slice(0, prevIndex === -1 ? 0 : prevIndex + 1);
                        nextPaths.push(path);
                        allPaths = nextPaths;
                        setState({ action: action, location: location });
                    }
                    else {
                        warning__WEBPACK_IMPORTED_MODULE_0___default()(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack');
                        setState();
                    }
                });
            };
            var replace = function replace(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(state === undefined, 'Hash history cannot replace state; it is ignored');
                var action = 'REPLACE';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, undefined, undefined, history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    var path = Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(location);
                    var encodedPath = encodePath(basename + path);
                    var hashChanged = getHashPath() !== encodedPath;
                    if (hashChanged) {
                        // We cannot tell if a hashchange was caused by a REPLACE, so we'd
                        // rather setState here and ignore the hashchange. The caveat here
                        // is that other hash histories in the page will consider it a POP.
                        ignorePath = path;
                        replaceHashPath(encodedPath);
                    }
                    var prevIndex = allPaths.indexOf(Object(_PathUtils__WEBPACK_IMPORTED_MODULE_3__["createPath"])(history.location));
                    if (prevIndex !== -1)
                        allPaths[prevIndex] = path;
                    setState({ action: action, location: location });
                });
            };
            var go = function go(n) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser');
                globalHistory.go(n);
            };
            var goBack = function goBack() {
                return go(-1);
            };
            var goForward = function goForward() {
                return go(1);
            };
            var listenerCount = 0;
            var checkDOMListeners = function checkDOMListeners(delta) {
                listenerCount += delta;
                if (listenerCount === 1) {
                    Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["addEventListener"])(window, HashChangeEvent, handleHashChange);
                }
                else if (listenerCount === 0) {
                    Object(_DOMUtils__WEBPACK_IMPORTED_MODULE_5__["removeEventListener"])(window, HashChangeEvent, handleHashChange);
                }
            };
            var isBlocked = false;
            var block = function block() {
                var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
                var unblock = transitionManager.setPrompt(prompt);
                if (!isBlocked) {
                    checkDOMListeners(1);
                    isBlocked = true;
                }
                return function () {
                    if (isBlocked) {
                        isBlocked = false;
                        checkDOMListeners(-1);
                    }
                    return unblock();
                };
            };
            var listen = function listen(listener) {
                var unlisten = transitionManager.appendListener(listener);
                checkDOMListeners(1);
                return function () {
                    checkDOMListeners(-1);
                    unlisten();
                };
            };
            var history = {
                length: globalHistory.length,
                action: 'POP',
                location: initialLocation,
                createHref: createHref,
                push: push,
                replace: replace,
                go: go,
                goBack: goBack,
                goForward: goForward,
                block: block,
                listen: listen
            };
            return history;
        };
        /* harmony default export */ __webpack_exports__["default"] = (createHashHistory);
        /***/ 
    }),
    /* 37 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _PathUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33);
        /* harmony import */ var _LocationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
        /* harmony import */ var _createTransitionManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34);
        var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
        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; };
        var clamp = function clamp(n, lowerBound, upperBound) {
            return Math.min(Math.max(n, lowerBound), upperBound);
        };
        /**
         * Creates a history object that stores locations in memory.
         */
        var createMemoryHistory = function createMemoryHistory() {
            var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var getUserConfirmation = props.getUserConfirmation, _props$initialEntries = props.initialEntries, initialEntries = _props$initialEntries === undefined ? ['/'] : _props$initialEntries, _props$initialIndex = props.initialIndex, initialIndex = _props$initialIndex === undefined ? 0 : _props$initialIndex, _props$keyLength = props.keyLength, keyLength = _props$keyLength === undefined ? 6 : _props$keyLength;
            var transitionManager = Object(_createTransitionManager__WEBPACK_IMPORTED_MODULE_3__["default"])();
            var setState = function setState(nextState) {
                _extends(history, nextState);
                history.length = history.entries.length;
                transitionManager.notifyListeners(history.location, history.action);
            };
            var createKey = function createKey() {
                return Math.random().toString(36).substr(2, keyLength);
            };
            var index = clamp(initialIndex, 0, initialEntries.length - 1);
            var entries = initialEntries.map(function (entry) {
                return typeof entry === 'string' ? Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(entry, undefined, createKey()) : Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(entry, undefined, entry.key || createKey());
            });
            // Public interface
            var createHref = _PathUtils__WEBPACK_IMPORTED_MODULE_1__["createPath"];
            var push = function push(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored');
                var action = 'PUSH';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, state, createKey(), history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    var prevIndex = history.index;
                    var nextIndex = prevIndex + 1;
                    var nextEntries = history.entries.slice(0);
                    if (nextEntries.length > nextIndex) {
                        nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
                    }
                    else {
                        nextEntries.push(location);
                    }
                    setState({
                        action: action,
                        location: location,
                        index: nextIndex,
                        entries: nextEntries
                    });
                });
            };
            var replace = function replace(path, state) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored');
                var action = 'REPLACE';
                var location = Object(_LocationUtils__WEBPACK_IMPORTED_MODULE_2__["createLocation"])(path, state, createKey(), history.location);
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (!ok)
                        return;
                    history.entries[history.index] = location;
                    setState({ action: action, location: location });
                });
            };
            var go = function go(n) {
                var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
                var action = 'POP';
                var location = history.entries[nextIndex];
                transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
                    if (ok) {
                        setState({
                            action: action,
                            location: location,
                            index: nextIndex
                        });
                    }
                    else {
                        // Mimic the behavior of DOM histories by
                        // causing a render after a cancelled POP.
                        setState();
                    }
                });
            };
            var goBack = function goBack() {
                return go(-1);
            };
            var goForward = function goForward() {
                return go(1);
            };
            var canGo = function canGo(n) {
                var nextIndex = history.index + n;
                return nextIndex >= 0 && nextIndex < history.entries.length;
            };
            var block = function block() {
                var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
                return transitionManager.setPrompt(prompt);
            };
            var listen = function listen(listener) {
                return transitionManager.appendListener(listener);
            };
            var history = {
                length: entries.length,
                action: 'POP',
                location: entries[index],
                index: index,
                entries: entries,
                createHref: createHref,
                push: push,
                replace: replace,
                go: go,
                goBack: goBack,
                goForward: goForward,
                canGo: canGo,
                block: block,
                listen: listen
            };
            return history;
        };
        /* harmony default export */ __webpack_exports__["default"] = (createMemoryHistory);
        /***/ 
    }),
    /* 38 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_Router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_Router__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 39 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        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; };
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for putting history on context.
         */
        var Router = function (_React$Component) {
            _inherits(Router, _React$Component);
            function Router() {
                var _temp, _this, _ret;
                _classCallCheck(this, Router);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
                    match: _this.computeMatch(_this.props.history.location.pathname)
                }, _temp), _possibleConstructorReturn(_this, _ret);
            }
            Router.prototype.getChildContext = function getChildContext() {
                return {
                    router: _extends({}, this.context.router, {
                        history: this.props.history,
                        route: {
                            location: this.props.history.location,
                            match: this.state.match
                        }
                    })
                };
            };
            Router.prototype.computeMatch = function computeMatch(pathname) {
                return {
                    path: "/",
                    url: "/",
                    params: {},
                    isExact: pathname === "/"
                };
            };
            Router.prototype.componentWillMount = function componentWillMount() {
                var _this2 = this;
                var _props = this.props, children = _props.children, history = _props.history;
                invariant__WEBPACK_IMPORTED_MODULE_1___default()(children == null || react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.count(children) === 1, "A <Router> may have only one child element");
                // Do this here so we can setState when a <Redirect> changes the
                // location in componentWillMount. This happens e.g. when doing
                // server rendering using a <StaticRouter>.
                this.unlisten = history.listen(function () {
                    _this2.setState({
                        match: _this2.computeMatch(history.location.pathname)
                    });
                });
            };
            Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(this.props.history === nextProps.history, "You cannot change <Router history>");
            };
            Router.prototype.componentWillUnmount = function componentWillUnmount() {
                this.unlisten();
            };
            Router.prototype.render = function render() {
                var children = this.props.children;
                return children ? react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children) : null;
            };
            return Router;
        }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);
        Router.propTypes = {
            history: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired,
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node
        };
        Router.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
        };
        Router.childContextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (Router);
        /***/ 
    }),
    /* 40 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
        /* harmony import */ var _Router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38);
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for a <Router> that uses window.location.hash.
         */
        var HashRouter = function (_React$Component) {
            _inherits(HashRouter, _React$Component);
            function HashRouter() {
                var _temp, _this, _ret;
                _classCallCheck(this, HashRouter);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__["createHashHistory"])(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
            }
            HashRouter.prototype.componentWillMount = function componentWillMount() {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.");
            };
            HashRouter.prototype.render = function render() {
                return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Router__WEBPACK_IMPORTED_MODULE_4__["default"], { history: this.history, children: this.props.children });
            };
            return HashRouter;
        }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
        HashRouter.propTypes = {
            basename: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            getUserConfirmation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
            hashType: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["hashbang", "noslash", "slash"]),
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
        };
        /* harmony default export */ __webpack_exports__["default"] = (HashRouter);
        /***/ 
    }),
    /* 41 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
        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; };
        function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) {
            if (keys.indexOf(i) >= 0)
                continue;
            if (!Object.prototype.hasOwnProperty.call(obj, i))
                continue;
            target[i] = obj[i];
        } return target; }
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        var isModifiedEvent = function isModifiedEvent(event) {
            return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
        };
        /**
         * The public API for rendering a history-aware <a>.
         */
        var Link = function (_React$Component) {
            _inherits(Link, _React$Component);
            function Link() {
                var _temp, _this, _ret;
                _classCallCheck(this, Link);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {
                    if (_this.props.onClick)
                        _this.props.onClick(event);
                    if (!event.defaultPrevented && // onClick prevented default
                        event.button === 0 && // ignore everything but left clicks
                        !_this.props.target && // let browser handle "target=_blank" etc.
                        !isModifiedEvent(event) // ignore clicks with modifier keys
                    ) {
                        event.preventDefault();
                        var history = _this.context.router.history;
                        var _this$props = _this.props, replace = _this$props.replace, to = _this$props.to;
                        if (replace) {
                            history.replace(to);
                        }
                        else {
                            history.push(to);
                        }
                    }
                }, _temp), _possibleConstructorReturn(_this, _ret);
            }
            Link.prototype.render = function render() {
                var _props = this.props, replace = _props.replace, to = _props.to, innerRef = _props.innerRef, props = _objectWithoutProperties(_props, ["replace", "to", "innerRef"]); // eslint-disable-line no-unused-vars
                invariant__WEBPACK_IMPORTED_MODULE_2___default()(this.context.router, "You should not use <Link> outside a <Router>");
                invariant__WEBPACK_IMPORTED_MODULE_2___default()(to !== undefined, 'You must specify the "to" property');
                var history = this.context.router.history;
                var location = typeof to === "string" ? Object(history__WEBPACK_IMPORTED_MODULE_3__["createLocation"])(to, null, null, history.location) : to;
                var href = history.createHref(location);
                return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));
            };
            return Link;
        }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
        Link.propTypes = {
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
            target: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
            replace: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
            to: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]).isRequired,
            innerRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func])
        };
        Link.defaultProps = {
            replace: false
        };
        Link.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                history: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                    push: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
                    replace: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
                    createHref: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
                }).isRequired
            }).isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (Link);
        /***/ 
    }),
    /* 42 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_MemoryRouter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_MemoryRouter__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 43 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
        /* harmony import */ var _Router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39);
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for a <Router> that stores location in memory.
         */
        var MemoryRouter = function (_React$Component) {
            _inherits(MemoryRouter, _React$Component);
            function MemoryRouter() {
                var _temp, _this, _ret;
                _classCallCheck(this, MemoryRouter);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__["createMemoryHistory"])(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
            }
            MemoryRouter.prototype.componentWillMount = function componentWillMount() {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.");
            };
            MemoryRouter.prototype.render = function render() {
                return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Router__WEBPACK_IMPORTED_MODULE_4__["default"], { history: this.history, children: this.props.children });
            };
            return MemoryRouter;
        }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
        MemoryRouter.propTypes = {
            initialEntries: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
            initialIndex: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
            getUserConfirmation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
            keyLength: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
        };
        /* harmony default export */ __webpack_exports__["default"] = (MemoryRouter);
        /***/ 
    }),
    /* 44 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45);
        /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
        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; };
        var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
        function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) {
            if (keys.indexOf(i) >= 0)
                continue;
            if (!Object.prototype.hasOwnProperty.call(obj, i))
                continue;
            target[i] = obj[i];
        } return target; }
        /**
         * A <Link> wrapper that knows if it's "active" or not.
         */
        var NavLink = function NavLink(_ref) {
            var to = _ref.to, exact = _ref.exact, strict = _ref.strict, location = _ref.location, activeClassName = _ref.activeClassName, className = _ref.className, activeStyle = _ref.activeStyle, style = _ref.style, getIsActive = _ref.isActive, ariaCurrent = _ref["aria-current"], rest = _objectWithoutProperties(_ref, ["to", "exact", "strict", "location", "activeClassName", "className", "activeStyle", "style", "isActive", "aria-current"]);
            var path = (typeof to === "undefined" ? "undefined" : _typeof(to)) === "object" ? to.pathname : to;
            // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
            var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Route__WEBPACK_IMPORTED_MODULE_2__["default"], {
                path: escapedPath,
                exact: exact,
                strict: strict,
                location: location,
                children: function children(_ref2) {
                    var location = _ref2.location, match = _ref2.match;
                    var isActive = !!(getIsActive ? getIsActive(match, location) : match);
                    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Link__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
                        to: to,
                        className: isActive ? [className, activeClassName].filter(function (i) {
                            return i;
                        }).join(" ") : className,
                        style: isActive ? _extends({}, style, activeStyle) : style,
                        "aria-current": isActive && ariaCurrent || null
                    }, rest));
                }
            });
        };
        NavLink.propTypes = {
            to: _Link__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.to,
            exact: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
            strict: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
            location: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
            activeClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
            className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
            activeStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
            style: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
            isActive: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
            "aria-current": prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["page", "step", "location", "date", "time", "true"])
        };
        NavLink.defaultProps = {
            activeClassName: "active",
            "aria-current": "page"
        };
        /* harmony default export */ __webpack_exports__["default"] = (NavLink);
        /***/ 
    }),
    /* 45 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_Route__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_Route__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 46 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _matchPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47);
        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; };
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        var isEmptyChildren = function isEmptyChildren(children) {
            return react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.count(children) === 0;
        };
        /**
         * The public API for matching a single path and rendering.
         */
        var Route = function (_React$Component) {
            _inherits(Route, _React$Component);
            function Route() {
                var _temp, _this, _ret;
                _classCallCheck(this, Route);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
                    match: _this.computeMatch(_this.props, _this.context.router)
                }, _temp), _possibleConstructorReturn(_this, _ret);
            }
            Route.prototype.getChildContext = function getChildContext() {
                return {
                    router: _extends({}, this.context.router, {
                        route: {
                            location: this.props.location || this.context.router.route.location,
                            match: this.state.match
                        }
                    })
                };
            };
            Route.prototype.computeMatch = function computeMatch(_ref, router) {
                var computedMatch = _ref.computedMatch, location = _ref.location, path = _ref.path, strict = _ref.strict, exact = _ref.exact, sensitive = _ref.sensitive;
                if (computedMatch)
                    return computedMatch; // <Switch> already computed the match for us
                invariant__WEBPACK_IMPORTED_MODULE_1___default()(router, "You should not use <Route> or withRouter() outside a <Router>");
                var route = router.route;
                var pathname = (location || route.location).pathname;
                return Object(_matchPath__WEBPACK_IMPORTED_MODULE_4__["default"])(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match);
            };
            Route.prototype.componentWillMount = function componentWillMount() {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!(this.props.component && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored");
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!(this.props.render && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored");
            };
            Route.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextContext) {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!(nextProps.location && !this.props.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.');
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!(!nextProps.location && this.props.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
                this.setState({
                    match: this.computeMatch(nextProps, nextContext.router)
                });
            };
            Route.prototype.render = function render() {
                var match = this.state.match;
                var _props = this.props, children = _props.children, component = _props.component, render = _props.render;
                var _context$router = this.context.router, history = _context$router.history, route = _context$router.route, staticContext = _context$router.staticContext;
                var location = this.props.location || route.location;
                var props = { match: match, location: location, history: history, staticContext: staticContext };
                if (component)
                    return match ? react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(component, props) : null;
                if (render)
                    return match ? render(props) : null;
                if (typeof children === "function")
                    return children(props);
                if (children && !isEmptyChildren(children))
                    return react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children);
                return null;
            };
            return Route;
        }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);
        Route.propTypes = {
            computedMatch: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,
            path: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            exact: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            strict: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            sensitive: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            component: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
            render: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node]),
            location: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
        };
        Route.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({
                history: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired,
                route: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired,
                staticContext: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
            })
        };
        Route.childContextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (Route);
        /***/ 
    }),
    /* 47 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48);
        /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_0__);
        var patternCache = {};
        var cacheLimit = 10000;
        var cacheCount = 0;
        var compilePath = function compilePath(pattern, options) {
            var cacheKey = "" + options.end + options.strict + options.sensitive;
            var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
            if (cache[pattern])
                return cache[pattern];
            var keys = [];
            var re = path_to_regexp__WEBPACK_IMPORTED_MODULE_0___default()(pattern, keys, options);
            var compiledPattern = { re: re, keys: keys };
            if (cacheCount < cacheLimit) {
                cache[pattern] = compiledPattern;
                cacheCount++;
            }
            return compiledPattern;
        };
        /**
         * Public API for matching a URL pathname to a path pattern.
         */
        var matchPath = function matchPath(pathname) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            var parent = arguments[2];
            if (typeof options === "string")
                options = { path: options };
            var _options = options, path = _options.path, _options$exact = _options.exact, exact = _options$exact === undefined ? false : _options$exact, _options$strict = _options.strict, strict = _options$strict === undefined ? false : _options$strict, _options$sensitive = _options.sensitive, sensitive = _options$sensitive === undefined ? false : _options$sensitive;
            if (path == null)
                return parent;
            var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }), re = _compilePath.re, keys = _compilePath.keys;
            var match = re.exec(pathname);
            if (!match)
                return null;
            var url = match[0], values = match.slice(1);
            var isExact = pathname === url;
            if (exact && !isExact)
                return null;
            return {
                path: path,
                url: path === "/" && url === "" ? "/" : url,
                isExact: isExact,
                params: keys.reduce(function (memo, key, index) {
                    memo[key.name] = values[index];
                    return memo;
                }, {})
            };
        };
        /* harmony default export */ __webpack_exports__["default"] = (matchPath);
        /***/ 
    }),
    /* 48 */
    /***/ (function (module, exports, __webpack_require__) {
        var isarray = __webpack_require__(49);
        /**
         * Expose `pathToRegexp`.
         */
        module.exports = pathToRegexp;
        module.exports.parse = parse;
        module.exports.compile = compile;
        module.exports.tokensToFunction = tokensToFunction;
        module.exports.tokensToRegExp = tokensToRegExp;
        /**
         * The main path matching regexp utility.
         *
         * @type {RegExp}
         */
        var PATH_REGEXP = new RegExp([
            // Match escaped characters that would otherwise appear in future matches.
            // This allows the user to escape special characters that won't transform.
            '(\\\\.)',
            // Match Express-style parameters and un-named parameters with a prefix
            // and optional suffixes. Matches appear as:
            //
            // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
            // "/route(\\d+)"  => [undefined, undefined, undefined, "\d+", undefined, undefined]
            // "/*"            => ["/", undefined, undefined, undefined, undefined, "*"]
            '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
        ].join('|'), 'g');
        /**
         * Parse a string for the raw tokens.
         *
         * @param  {string}  str
         * @param  {Object=} options
         * @return {!Array}
         */
        function parse(str, options) {
            var tokens = [];
            var key = 0;
            var index = 0;
            var path = '';
            var defaultDelimiter = options && options.delimiter || '/';
            var res;
            while ((res = PATH_REGEXP.exec(str)) != null) {
                var m = res[0];
                var escaped = res[1];
                var offset = res.index;
                path += str.slice(index, offset);
                index = offset + m.length;
                // Ignore already escaped sequences.
                if (escaped) {
                    path += escaped[1];
                    continue;
                }
                var next = str[index];
                var prefix = res[2];
                var name = res[3];
                var capture = res[4];
                var group = res[5];
                var modifier = res[6];
                var asterisk = res[7];
                // Push the current path onto the tokens.
                if (path) {
                    tokens.push(path);
                    path = '';
                }
                var partial = prefix != null && next != null && next !== prefix;
                var repeat = modifier === '+' || modifier === '*';
                var optional = modifier === '?' || modifier === '*';
                var delimiter = res[2] || defaultDelimiter;
                var pattern = capture || group;
                tokens.push({
                    name: name || key++,
                    prefix: prefix || '',
                    delimiter: delimiter,
                    optional: optional,
                    repeat: repeat,
                    partial: partial,
                    asterisk: !!asterisk,
                    pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
                });
            }
            // Match any characters still remaining.
            if (index < str.length) {
                path += str.substr(index);
            }
            // If the path exists, push it onto the end.
            if (path) {
                tokens.push(path);
            }
            return tokens;
        }
        /**
         * Compile a string to a template function for the path.
         *
         * @param  {string}             str
         * @param  {Object=}            options
         * @return {!function(Object=, Object=)}
         */
        function compile(str, options) {
            return tokensToFunction(parse(str, options));
        }
        /**
         * Prettier encoding of URI path segments.
         *
         * @param  {string}
         * @return {string}
         */
        function encodeURIComponentPretty(str) {
            return encodeURI(str).replace(/[\/?#]/g, function (c) {
                return '%' + c.charCodeAt(0).toString(16).toUpperCase();
            });
        }
        /**
         * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
         *
         * @param  {string}
         * @return {string}
         */
        function encodeAsterisk(str) {
            return encodeURI(str).replace(/[?#]/g, function (c) {
                return '%' + c.charCodeAt(0).toString(16).toUpperCase();
            });
        }
        /**
         * Expose a method for transforming tokens into the path function.
         */
        function tokensToFunction(tokens) {
            // Compile all the tokens into regexps.
            var matches = new Array(tokens.length);
            // Compile all the patterns before compilation.
            for (var i = 0; i < tokens.length; i++) {
                if (typeof tokens[i] === 'object') {
                    matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$');
                }
            }
            return function (obj, opts) {
                var path = '';
                var data = obj || {};
                var options = opts || {};
                var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
                for (var i = 0; i < tokens.length; i++) {
                    var token = tokens[i];
                    if (typeof token === 'string') {
                        path += token;
                        continue;
                    }
                    var value = data[token.name];
                    var segment;
                    if (value == null) {
                        if (token.optional) {
                            // Prepend partial segment prefixes.
                            if (token.partial) {
                                path += token.prefix;
                            }
                            continue;
                        }
                        else {
                            throw new TypeError('Expected "' + token.name + '" to be defined');
                        }
                    }
                    if (isarray(value)) {
                        if (!token.repeat) {
                            throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`');
                        }
                        if (value.length === 0) {
                            if (token.optional) {
                                continue;
                            }
                            else {
                                throw new TypeError('Expected "' + token.name + '" to not be empty');
                            }
                        }
                        for (var j = 0; j < value.length; j++) {
                            segment = encode(value[j]);
                            if (!matches[i].test(segment)) {
                                throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`');
                            }
                            path += (j === 0 ? token.prefix : token.delimiter) + segment;
                        }
                        continue;
                    }
                    segment = token.asterisk ? encodeAsterisk(value) : encode(value);
                    if (!matches[i].test(segment)) {
                        throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
                    }
                    path += token.prefix + segment;
                }
                return path;
            };
        }
        /**
         * Escape a regular expression string.
         *
         * @param  {string} str
         * @return {string}
         */
        function escapeString(str) {
            return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1');
        }
        /**
         * Escape the capturing group by escaping special characters and meaning.
         *
         * @param  {string} group
         * @return {string}
         */
        function escapeGroup(group) {
            return group.replace(/([=!:$\/()])/g, '\\$1');
        }
        /**
         * Attach the keys as a property of the regexp.
         *
         * @param  {!RegExp} re
         * @param  {Array}   keys
         * @return {!RegExp}
         */
        function attachKeys(re, keys) {
            re.keys = keys;
            return re;
        }
        /**
         * Get the flags for a regexp from the options.
         *
         * @param  {Object} options
         * @return {string}
         */
        function flags(options) {
            return options.sensitive ? '' : 'i';
        }
        /**
         * Pull out keys from a regexp.
         *
         * @param  {!RegExp} path
         * @param  {!Array}  keys
         * @return {!RegExp}
         */
        function regexpToRegexp(path, keys) {
            // Use a negative lookahead to match only capturing groups.
            var groups = path.source.match(/\((?!\?)/g);
            if (groups) {
                for (var i = 0; i < groups.length; i++) {
                    keys.push({
                        name: i,
                        prefix: null,
                        delimiter: null,
                        optional: false,
                        repeat: false,
                        partial: false,
                        asterisk: false,
                        pattern: null
                    });
                }
            }
            return attachKeys(path, keys);
        }
        /**
         * Transform an array into a regexp.
         *
         * @param  {!Array}  path
         * @param  {Array}   keys
         * @param  {!Object} options
         * @return {!RegExp}
         */
        function arrayToRegexp(path, keys, options) {
            var parts = [];
            for (var i = 0; i < path.length; i++) {
                parts.push(pathToRegexp(path[i], keys, options).source);
            }
            var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
            return attachKeys(regexp, keys);
        }
        /**
         * Create a path regexp from string input.
         *
         * @param  {string}  path
         * @param  {!Array}  keys
         * @param  {!Object} options
         * @return {!RegExp}
         */
        function stringToRegexp(path, keys, options) {
            return tokensToRegExp(parse(path, options), keys, options);
        }
        /**
         * Expose a function for taking tokens and returning a RegExp.
         *
         * @param  {!Array}          tokens
         * @param  {(Array|Object)=} keys
         * @param  {Object=}         options
         * @return {!RegExp}
         */
        function tokensToRegExp(tokens, keys, options) {
            if (!isarray(keys)) {
                options = /** @type {!Object} */ (keys || options);
                keys = [];
            }
            options = options || {};
            var strict = options.strict;
            var end = options.end !== false;
            var route = '';
            // Iterate over the tokens and create our regexp string.
            for (var i = 0; i < tokens.length; i++) {
                var token = tokens[i];
                if (typeof token === 'string') {
                    route += escapeString(token);
                }
                else {
                    var prefix = escapeString(token.prefix);
                    var capture = '(?:' + token.pattern + ')';
                    keys.push(token);
                    if (token.repeat) {
                        capture += '(?:' + prefix + capture + ')*';
                    }
                    if (token.optional) {
                        if (!token.partial) {
                            capture = '(?:' + prefix + '(' + capture + '))?';
                        }
                        else {
                            capture = prefix + '(' + capture + ')?';
                        }
                    }
                    else {
                        capture = prefix + '(' + capture + ')';
                    }
                    route += capture;
                }
            }
            var delimiter = escapeString(options.delimiter || '/');
            var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
            // In non-strict mode we allow a slash at the end of match. If the path to
            // match already ends with a slash, we remove it for consistency. The slash
            // is valid at the end of a path match, not in the middle. This is important
            // in non-ending mode, where "/test/" shouldn't match "/test//route".
            if (!strict) {
                route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
            }
            if (end) {
                route += '$';
            }
            else {
                // In non-ending mode, we need the capturing groups to match as much as
                // possible by using a positive lookahead to the end or next path segment.
                route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
            }
            return attachKeys(new RegExp('^' + route, flags(options)), keys);
        }
        /**
         * Normalize the given path string, returning a regular expression.
         *
         * An empty array can be passed in for the keys, which will hold the
         * placeholder key descriptions. For example, using `/user/:id`, `keys` will
         * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
         *
         * @param  {(string|RegExp|Array)} path
         * @param  {(Array|Object)=}       keys
         * @param  {Object=}               options
         * @return {!RegExp}
         */
        function pathToRegexp(path, keys, options) {
            if (!isarray(keys)) {
                options = /** @type {!Object} */ (keys || options);
                keys = [];
            }
            options = options || {};
            if (path instanceof RegExp) {
                return regexpToRegexp(path, /** @type {!Array} */ (keys));
            }
            if (isarray(path)) {
                return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options);
            }
            return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options);
        }
        /***/ 
    }),
    /* 49 */
    /***/ (function (module, exports) {
        module.exports = Array.isArray || function (arr) {
            return Object.prototype.toString.call(arr) == '[object Array]';
        };
        /***/ 
    }),
    /* 50 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_Prompt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_Prompt__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 51 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for prompting the user before navigating away
         * from a screen with a component.
         */
        var Prompt = function (_React$Component) {
            _inherits(Prompt, _React$Component);
            function Prompt() {
                _classCallCheck(this, Prompt);
                return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
            }
            Prompt.prototype.enable = function enable(message) {
                if (this.unblock)
                    this.unblock();
                this.unblock = this.context.router.history.block(message);
            };
            Prompt.prototype.disable = function disable() {
                if (this.unblock) {
                    this.unblock();
                    this.unblock = null;
                }
            };
            Prompt.prototype.componentWillMount = function componentWillMount() {
                invariant__WEBPACK_IMPORTED_MODULE_2___default()(this.context.router, "You should not use <Prompt> outside a <Router>");
                if (this.props.when)
                    this.enable(this.props.message);
            };
            Prompt.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
                if (nextProps.when) {
                    if (!this.props.when || this.props.message !== nextProps.message)
                        this.enable(nextProps.message);
                }
                else {
                    this.disable();
                }
            };
            Prompt.prototype.componentWillUnmount = function componentWillUnmount() {
                this.disable();
            };
            Prompt.prototype.render = function render() {
                return null;
            };
            return Prompt;
        }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
        Prompt.propTypes = {
            when: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
            message: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired
        };
        Prompt.defaultProps = {
            when: true
        };
        Prompt.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                history: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                    block: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
                }).isRequired
            }).isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (Prompt);
        /***/ 
    }),
    /* 52 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_Redirect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_Redirect__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 53 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26);
        /* harmony import */ var _generatePath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54);
        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; };
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for updating the location programmatically
         * with a component.
         */
        var Redirect = function (_React$Component) {
            _inherits(Redirect, _React$Component);
            function Redirect() {
                _classCallCheck(this, Redirect);
                return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
            }
            Redirect.prototype.isStatic = function isStatic() {
                return this.context.router && this.context.router.staticContext;
            };
            Redirect.prototype.componentWillMount = function componentWillMount() {
                invariant__WEBPACK_IMPORTED_MODULE_3___default()(this.context.router, "You should not use <Redirect> outside a <Router>");
                if (this.isStatic())
                    this.perform();
            };
            Redirect.prototype.componentDidMount = function componentDidMount() {
                if (!this.isStatic())
                    this.perform();
            };
            Redirect.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
                var prevTo = Object(history__WEBPACK_IMPORTED_MODULE_4__["createLocation"])(prevProps.to);
                var nextTo = Object(history__WEBPACK_IMPORTED_MODULE_4__["createLocation"])(this.props.to);
                if (Object(history__WEBPACK_IMPORTED_MODULE_4__["locationsAreEqual"])(prevTo, nextTo)) {
                    warning__WEBPACK_IMPORTED_MODULE_2___default()(false, "You tried to redirect to the same route you're currently on: " + ("\"" + nextTo.pathname + nextTo.search + "\""));
                    return;
                }
                this.perform();
            };
            Redirect.prototype.computeTo = function computeTo(_ref) {
                var computedMatch = _ref.computedMatch, to = _ref.to;
                if (computedMatch) {
                    if (typeof to === "string") {
                        return Object(_generatePath__WEBPACK_IMPORTED_MODULE_5__["default"])(to, computedMatch.params);
                    }
                    else {
                        return _extends({}, to, {
                            pathname: Object(_generatePath__WEBPACK_IMPORTED_MODULE_5__["default"])(to.pathname, computedMatch.params)
                        });
                    }
                }
                return to;
            };
            Redirect.prototype.perform = function perform() {
                var history = this.context.router.history;
                var push = this.props.push;
                var to = this.computeTo(this.props);
                if (push) {
                    history.push(to);
                }
                else {
                    history.replace(to);
                }
            };
            Redirect.prototype.render = function render() {
                return null;
            };
            return Redirect;
        }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
        Redirect.propTypes = {
            computedMatch: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
            push: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
            from: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
            to: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]).isRequired
        };
        Redirect.defaultProps = {
            push: false
        };
        Redirect.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                history: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                    push: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
                    replace: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
                }).isRequired,
                staticContext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
            }).isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (Redirect);
        /***/ 
    }),
    /* 54 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48);
        /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_0__);
        var patternCache = {};
        var cacheLimit = 10000;
        var cacheCount = 0;
        var compileGenerator = function compileGenerator(pattern) {
            var cacheKey = pattern;
            var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
            if (cache[pattern])
                return cache[pattern];
            var compiledGenerator = path_to_regexp__WEBPACK_IMPORTED_MODULE_0___default.a.compile(pattern);
            if (cacheCount < cacheLimit) {
                cache[pattern] = compiledGenerator;
                cacheCount++;
            }
            return compiledGenerator;
        };
        /**
         * Public API for generating a URL pathname from a pattern and parameters.
         */
        var generatePath = function generatePath() {
            var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/";
            var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            if (pattern === "/") {
                return pattern;
            }
            var generator = compileGenerator(pattern);
            return generator(params, { pretty: true });
        };
        /* harmony default export */ __webpack_exports__["default"] = (generatePath);
        /***/ 
    }),
    /* 55 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_StaticRouter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_StaticRouter__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 56 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26);
        /* harmony import */ var _Router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39);
        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; };
        function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) {
            if (keys.indexOf(i) >= 0)
                continue;
            if (!Object.prototype.hasOwnProperty.call(obj, i))
                continue;
            target[i] = obj[i];
        } return target; }
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        var addLeadingSlash = function addLeadingSlash(path) {
            return path.charAt(0) === "/" ? path : "/" + path;
        };
        var addBasename = function addBasename(basename, location) {
            if (!basename)
                return location;
            return _extends({}, location, {
                pathname: addLeadingSlash(basename) + location.pathname
            });
        };
        var stripBasename = function stripBasename(basename, location) {
            if (!basename)
                return location;
            var base = addLeadingSlash(basename);
            if (location.pathname.indexOf(base) !== 0)
                return location;
            return _extends({}, location, {
                pathname: location.pathname.substr(base.length)
            });
        };
        var createURL = function createURL(location) {
            return typeof location === "string" ? location : Object(history__WEBPACK_IMPORTED_MODULE_4__["createPath"])(location);
        };
        var staticHandler = function staticHandler(methodName) {
            return function () {
                invariant__WEBPACK_IMPORTED_MODULE_1___default()(false, "You cannot %s with <StaticRouter>", methodName);
            };
        };
        var noop = function noop() { };
        /**
         * The public top-level API for a "static" <Router>, so-called because it
         * can't actually change the current location. Instead, it just records
         * location changes in a context object. Useful mainly in testing and
         * server-rendering scenarios.
         */
        var StaticRouter = function (_React$Component) {
            _inherits(StaticRouter, _React$Component);
            function StaticRouter() {
                var _temp, _this, _ret;
                _classCallCheck(this, StaticRouter);
                for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.createHref = function (path) {
                    return addLeadingSlash(_this.props.basename + createURL(path));
                }, _this.handlePush = function (location) {
                    var _this$props = _this.props, basename = _this$props.basename, context = _this$props.context;
                    context.action = "PUSH";
                    context.location = addBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_4__["createLocation"])(location));
                    context.url = createURL(context.location);
                }, _this.handleReplace = function (location) {
                    var _this$props2 = _this.props, basename = _this$props2.basename, context = _this$props2.context;
                    context.action = "REPLACE";
                    context.location = addBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_4__["createLocation"])(location));
                    context.url = createURL(context.location);
                }, _this.handleListen = function () {
                    return noop;
                }, _this.handleBlock = function () {
                    return noop;
                }, _temp), _possibleConstructorReturn(_this, _ret);
            }
            StaticRouter.prototype.getChildContext = function getChildContext() {
                return {
                    router: {
                        staticContext: this.props.context
                    }
                };
            };
            StaticRouter.prototype.componentWillMount = function componentWillMount() {
                warning__WEBPACK_IMPORTED_MODULE_0___default()(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.");
            };
            StaticRouter.prototype.render = function render() {
                var _props = this.props, basename = _props.basename, context = _props.context, location = _props.location, props = _objectWithoutProperties(_props, ["basename", "context", "location"]);
                var history = {
                    createHref: this.createHref,
                    action: "POP",
                    location: stripBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_4__["createLocation"])(location)),
                    push: this.handlePush,
                    replace: this.handleReplace,
                    go: staticHandler("go"),
                    goBack: staticHandler("goBack"),
                    goForward: staticHandler("goForward"),
                    listen: this.handleListen,
                    block: this.handleBlock
                };
                return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Router__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, props, { history: history }));
            };
            return StaticRouter;
        }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);
        StaticRouter.propTypes = {
            basename: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            context: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired,
            location: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object])
        };
        StaticRouter.defaultProps = {
            basename: "",
            location: "/"
        };
        StaticRouter.childContextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object.isRequired
        };
        /* harmony default export */ __webpack_exports__["default"] = (StaticRouter);
        /***/ 
    }),
    /* 57 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_Switch__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 58 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
        /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
        /* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _matchPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47);
        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a function");
        } }
        function _possibleConstructorReturn(self, call) { if (!self) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
        function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
        } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass)
            Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
        /**
         * The public API for rendering the first <Route> that matches.
         */
        var Switch = function (_React$Component) {
            _inherits(Switch, _React$Component);
            function Switch() {
                _classCallCheck(this, Switch);
                return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
            }
            Switch.prototype.componentWillMount = function componentWillMount() {
                invariant__WEBPACK_IMPORTED_MODULE_3___default()(this.context.router, "You should not use <Switch> outside a <Router>");
            };
            Switch.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
                warning__WEBPACK_IMPORTED_MODULE_2___default()(!(nextProps.location && !this.props.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.');
                warning__WEBPACK_IMPORTED_MODULE_2___default()(!(!nextProps.location && this.props.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
            };
            Switch.prototype.render = function render() {
                var route = this.context.router.route;
                var children = this.props.children;
                var location = this.props.location || route.location;
                var match = void 0, child = void 0;
                react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (element) {
                    if (match == null && react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(element)) {
                        var _element$props = element.props, pathProp = _element$props.path, exact = _element$props.exact, strict = _element$props.strict, sensitive = _element$props.sensitive, from = _element$props.from;
                        var path = pathProp || from;
                        child = element;
                        match = Object(_matchPath__WEBPACK_IMPORTED_MODULE_4__["default"])(location.pathname, { path: path, exact: exact, strict: strict, sensitive: sensitive }, route.match);
                    }
                });
                return match ? react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, { location: location, computedMatch: match }) : null;
            };
            return Switch;
        }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
        Switch.contextTypes = {
            router: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
                route: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object.isRequired
            }).isRequired
        };
        Switch.propTypes = {
            children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
            location: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
        };
        /* harmony default export */ __webpack_exports__["default"] = (Switch);
        /***/ 
    }),
    /* 59 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_generatePath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_generatePath__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 60 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_matchPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_matchPath__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 61 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react_router_es_withRouter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62);
        // Written in this round about way for babel-transform-imports
        /* harmony default export */ __webpack_exports__["default"] = (react_router_es_withRouter__WEBPACK_IMPORTED_MODULE_0__["default"]);
        /***/ 
    }),
    /* 62 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63);
        /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(46);
        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; };
        function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) {
            if (keys.indexOf(i) >= 0)
                continue;
            if (!Object.prototype.hasOwnProperty.call(obj, i))
                continue;
            target[i] = obj[i];
        } return target; }
        /**
         * A public higher-order component to access the imperative API
         */
        var withRouter = function withRouter(Component) {
            var C = function C(props) {
                var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutProperties(props, ["wrappedComponentRef"]);
                return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Route__WEBPACK_IMPORTED_MODULE_3__["default"], {
                    children: function children(routeComponentProps) {
                        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Component, _extends({}, remainingProps, routeComponentProps, {
                            ref: wrappedComponentRef
                        }));
                    }
                });
            };
            C.displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
            C.WrappedComponent = Component;
            C.propTypes = {
                wrappedComponentRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
            };
            return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(C, Component);
        };
        /* harmony default export */ __webpack_exports__["default"] = (withRouter);
        /***/ 
    }),
    /* 63 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright 2015, Yahoo! Inc.
         * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
         */
        var REACT_STATICS = {
            childContextTypes: true,
            contextTypes: true,
            defaultProps: true,
            displayName: true,
            getDefaultProps: true,
            getDerivedStateFromProps: true,
            mixins: true,
            propTypes: true,
            type: true
        };
        var KNOWN_STATICS = {
            name: true,
            length: true,
            prototype: true,
            caller: true,
            callee: true,
            arguments: true,
            arity: true
        };
        var defineProperty = Object.defineProperty;
        var getOwnPropertyNames = Object.getOwnPropertyNames;
        var getOwnPropertySymbols = Object.getOwnPropertySymbols;
        var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
        var getPrototypeOf = Object.getPrototypeOf;
        var objectPrototype = getPrototypeOf && getPrototypeOf(Object);
        function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
            if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
                if (objectPrototype) {
                    var inheritedComponent = getPrototypeOf(sourceComponent);
                    if (inheritedComponent && inheritedComponent !== objectPrototype) {
                        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
                    }
                }
                var keys = getOwnPropertyNames(sourceComponent);
                if (getOwnPropertySymbols) {
                    keys = keys.concat(getOwnPropertySymbols(sourceComponent));
                }
                for (var i = 0; i < keys.length; ++i) {
                    var key = keys[i];
                    if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
                        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
                        try { // Avoid failures from read-only properties
                            defineProperty(targetComponent, key, descriptor);
                        }
                        catch (e) { }
                    }
                }
                return targetComponent;
            }
            return targetComponent;
        }
        module.exports = hoistNonReactStatics;
        /***/ 
    }),
    /* 64 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getGroupedItems", function () { return getGroupedItems; });
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _service_getPlanets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(704);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(material_icons_react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
        /* harmony import */ var _styles_radialgradients__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(743);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var getGroupedItems = function (posts) {
            var groupeditems = groupBy(posts, 3);
            var groupedposts = [];
            for (var _i = 0, groupeditems_1 = groupeditems; _i < groupeditems_1.length; _i++) {
                var items = groupeditems_1[_i];
                groupedposts.push(row(items));
            }
            return groupedposts;
        };
        var groupBy = function (arr, n) {
            var group = [];
            for (var i = 0, end = arr.length / n; i < end; ++i)
                group.push(arr.slice(i * n, (i + 1) * n));
            return group;
        };
        var row = function (post) { return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Grid"].Row, { centered: true, columns: 4 }, post)); };
        var options = [
            { key: 'all', text: 'All Planets', value: 'all' },
            { key: 'hab', text: 'Habitable Planets', value: 'hab' }
        ];
        var Catalog = /** @class */ (function (_super) {
            __extends(Catalog, _super);
            function Catalog(props) {
                var _this = _super.call(this, props) || this;
                _this.mainPost = function () {
                    var planets = _this.state.planets;
                    var posts = [];
                    for (var _i = 0, _a = planets; _i < _a.length; _i++) {
                        var item = _a[_i];
                        posts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"], { className: 'post-preview' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_5__["Link"], { to: {
                                pathname: "planet/" + item.name,
                                state: { planet: item }
                            } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3___default.a, { height: "190", width: "180" }, ' ', Object(_styles_radialgradients__WEBPACK_IMPORTED_MODULE_6__["Gradient"])(), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["G"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Defs"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["ClipPath"], { id: "clip" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Circle"], { cx: "100", cy: "100", r: "65" }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Image"], { width: "180", height: "190", href: "../img/" + item.img.uri + ".jpg", clipPath: "url(#clip)" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Circle"], { cx: "100", cy: "100", r: "65", fillOpacity: 0.4, fill: "url(#" + item.img.uri }))), ' '), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Content, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Header, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_5__["Link"], { to: {
                                pathname: "planet/" + item.name,
                                state: { planet: item }
                            } }, item.name)), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Description, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, "Discovered:" + item.discYear)), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Description, null, "" + (item.type && item.type !== null ? item.type : ''), ' ', item.distance !== 0
                            ? Math.round(item.distance) + " lightyears from earth."
                            : ''), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Rating"], { icon: "star", defaultRating: Math.round(item.esi * 10), maxRating: 10, size: "large", disabled: true })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Content, { extra: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_5__["Link"], { to: {
                                pathname: "star/" + item.star.name,
                                state: { star: item.star }
                            } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { icon: true, inverted: true, basic: true, color: "grey", height: "25" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_4___default.a, { icon: "wb_sunny", color: "#c6d4ff", size: 25 }), 'Visit Star', ' ')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_5__["Link"], { to: {
                                pathname: "system/" + item.star.name,
                                state: { star: item.star }
                            } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { icon: true, inverted: true, basic: true, color: "grey", height: "25" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_4___default.a, { icon: "3d_rotation", color: "#c6d4ff", size: 25 }), item.star.noPlanets + " Planets"))))));
                    }
                    return getGroupedItems(posts);
                };
                _this.handleSearchChange = function (e) {
                    return __awaiter(_this, void 0, void 0, function () {
                        var searchValue;
                        return __generator(this, function (_a) {
                            searchValue = this.state.searchValue;
                            searchValue = e.target.value;
                            this.setState({ searchValue: searchValue });
                            return [2 /*return*/];
                        });
                    });
                };
                _this.handleSearchClick = function () {
                    return __awaiter(_this, void 0, void 0, function () {
                        var filter, planets;
                        return __generator(this, function (_a) {
                            switch (_a.label) {
                                case 0:
                                    filter = this.setSearchFilter();
                                    return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_1__["GetPlanetListAsync"])(filter, {}, 30)];
                                case 1:
                                    planets = _a.sent();
                                    this.setState({ planets: planets, loading: false });
                                    return [2 /*return*/];
                            }
                        });
                    });
                };
                _this.handleHabClick = function () {
                    return __awaiter(_this, void 0, void 0, function () {
                        var habactive, planets;
                        return __generator(this, function (_a) {
                            switch (_a.label) {
                                case 0:
                                    habactive = this.state.habactive;
                                    habactive = !habactive;
                                    planets = [];
                                    if (!habactive)
                                        return [3 /*break*/, 2];
                                    return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_1__["GetPlanetListAsync"])({ Key: 'Hab' }, {}, 30)];
                                case 1:
                                    planets = _a.sent();
                                    _a.label = 2;
                                case 2:
                                    if (!!habactive)
                                        return [3 /*break*/, 4];
                                    return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_1__["GetPlanetListAsync"])({}, {}, 30)];
                                case 3:
                                    planets = _a.sent();
                                    _a.label = 4;
                                case 4:
                                    this.setState({ planets: planets, loading: false, habactive: habactive });
                                    return [2 /*return*/];
                            }
                        });
                    });
                };
                _this.handlePaginate = function (top) {
                    return __awaiter(_this, void 0, void 0, function () {
                        var filter, planets;
                        return __generator(this, function (_a) {
                            switch (_a.label) {
                                case 0:
                                    filter = this.setSearchFilter();
                                    return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_1__["GetPlanetListAsync"])(filter, {}, top)];
                                case 1:
                                    planets = _a.sent();
                                    this.setState({ planets: planets, loading: false, top: top });
                                    return [2 /*return*/];
                            }
                        });
                    });
                };
                _this.setSearchFilter = function () {
                    var _a = _this.state, habactive = _a.habactive, searchValue = _a.searchValue;
                    if (habactive && searchValue !== '') {
                        return { Key: 'Hab', Name: searchValue };
                    }
                    if (!habactive && searchValue !== '') {
                        return { Name: searchValue };
                    }
                    if (habactive && searchValue === '') {
                        return { Key: 'Hab' };
                    }
                    return {};
                };
                _this.state = {
                    loading: true,
                    top: 30,
                    color: '',
                    habactive: false,
                    searchValue: '',
                    planets: []
                };
                return _this;
            }
            Catalog.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    var planets;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_1__["GetPlanetListAsync"])(null, {}, 30)];
                            case 1:
                                planets = _a.sent();
                                this.setState({ planets: planets, loading: false });
                                return [2 /*return*/];
                        }
                    });
                });
            };
            Catalog.prototype.render = function () {
                var _this = this;
                var _a = this.state, loading = _a.loading, searchValue = _a.searchValue, top = _a.top, planets = _a.planets;
                var main = this.mainPost();
                return loading ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null)) : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: 'bar' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Input"], { type: 'text', size: "large", value: searchValue, onChange: function (e) { return _this.handleSearchChange(e); }, placeholder: 'Search...', action: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", null), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { type: 'submit', onClick: function () { return _this.handleSearchClick(); } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], { name: "search" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Dropdown"], { button: true, basic: true, floating: true, onChange: function () { return _this.handleHabClick(); }, options: options, defaultValue: "all" }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "catalog" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Grid"], { stackable: true, centered: true, columns: 2 }, main), "  "), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: 'bar' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"].Group, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { labelPosition: "left", icon: "left chevron", content: "Previous", color: top <= 30 ? 'grey' : 'black', disabled: top <= 30, onClick: function () { return _this.handlePaginate(top - 30); } }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { labelPosition: "right", icon: "right chevron", content: "Next", color: planets.length <= 29 ? 'grey' : 'black', disabled: planets.length <= 29, onClick: function () { return _this.handlePaginate(top + 30); } })))));
            };
            return Catalog;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Catalog);
        /***/ 
    }),
    /* 65 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetStatisticsAsync", function () { return GetStatisticsAsync; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPlanetListAsync", function () { return GetPlanetListAsync; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPlanetAsync", function () { return GetPlanetAsync; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetHabitablePlanets", function () { return GetHabitablePlanets; });
        /* harmony import */ var _config_Resource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66);
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var _this = undefined;
        var GetStatisticsAsync = function () {
            return __awaiter(_this, void 0, Promise, function () {
                var stat;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, fetch("../api/Statistics")
                                .then(function (response) {
                                return response.json();
                            })
                                .then(function (myJson) {
                                return myJson;
                            })];
                        case 1:
                            stat = _a.sent();
                            return [2 /*return*/, stat];
                    }
                });
            });
        };
        var GetPlanetListAsync = function (filter, filterstate, top) {
            var skip = top - 30;
            var filterstring = '%24filter=Message eq null';
            var orderby = 'DiscYear%20desc';
            if (filter != null) {
                if (filter.Key === 'Hab' || filter.Key === 'Moons') {
                    filterstring = filterstring + " and " + filter.Key + "%20eq%20true";
                }
                if (filter.Key === 'Temp' || filter.Key === 'Esi' || filter.Key === 'Sph') {
                    filterstring = filterstring + " and " + filter.Key + " gt " + filter.MinValue + " and " + filter.Key + " lt  " + filter.MaxValue;
                }
                if (filter.Name != null) {
                    skip = 0;
                    top = 10;
                    filterstring = filterstring + " and indexof(Name, '" + encodeURIComponent(filter.Name) + "') gt -1";
                }
            }
            if (filterstate.filter !== undefined) {
                var currentfilter = filterstate.filter.filter;
                var compindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].compsearch.indexOf(currentfilter.comp);
                var massindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].masssearch.indexOf(currentfilter.mass);
                var atmosindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].atmossearch.indexOf(currentfilter.atmos);
                var discindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].discsearch.indexOf(currentfilter.disc);
                var tempindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].tempsearch.indexOf(currentfilter.temp);
                var orderindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].sortsearch.indexOf(currentfilter.sort);
                var lightyearsindex = _config_Resource__WEBPACK_IMPORTED_MODULE_0__["resource"].lightyearsearch.indexOf(currentfilter.lightyears);
                if (compindex > -1) {
                    filterstring = filterstring + " and Comp eq " + compindex;
                }
                if (massindex > -1) {
                    filterstring = filterstring + " and MassType eq " + massindex;
                }
                if (atmosindex > -1) {
                    filterstring = filterstring + " and Atmosphere eq " + atmosindex;
                }
                if (tempindex > -1) {
                    filterstring = filterstring + " and TempZone eq " + tempindex;
                }
                switch (lightyearsindex) {
                    case 0:
                        filterstring = filterstring + " and Distance lt " + 20;
                        break;
                    case 1:
                        filterstring = filterstring + " and Distance lt " + 200;
                        break;
                    case 2:
                        filterstring = filterstring + " and Distance lt " + 2000;
                        break;
                    case 3:
                        filterstring = filterstring + " and Distance lt " + 20000;
                        break;
                }
                if (orderindex > -1) {
                    var order = currentfilter.order ? 'desc' : 'asc';
                    if (orderindex === 0) {
                        orderby = 'Distance';
                    }
                    if (orderindex === 1) {
                        orderby = 'Esi';
                    }
                    if (orderindex === 2) {
                        orderby = 'Mass';
                    }
                    if (orderindex === 3) {
                        orderby = 'DiscYear';
                    }
                    orderby = orderby + "%20" + order;
                }
            }
            var planetList = fetch("../api/ExoSolarSystems/ExoPlanets?" + filterstring + "&%24top=" + top + "&%24skip=" + skip + "&%24orderby=" + orderby)
                .then(function (response) {
                return response.json();
            })
                .then(function (myJson) {
                return myJson;
            });
            return planetList;
        };
        var GetPlanetAsync = function (name) {
            var planetList = fetch("../api/ExoSolarSystems/ExoPlanets?%24filter=Name eq '" + encodeURIComponent(name) + "'")
                .then(function (response) {
                return response.json();
            })
                .then(function (myJson) {
                return myJson[0];
            });
            return planetList;
        };
        var GetHabitablePlanets = function () {
            return __awaiter(_this, void 0, void 0, function () {
                var planetList;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, fetch("../api/ExoSolarSystems/GetHabitablePlanets")
                                .then(function (response) {
                                return response.json();
                            })
                                .then(function (myJson) {
                                return myJson;
                            })];
                        case 1:
                            planetList = _a.sent();
                            return [2 /*return*/, planetList];
                    }
                });
            });
        };
        /***/ 
    }),
    /* 66 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resource", function () { return resource; });
        var resource = {
            message: "ExoPlanetHunter",
            planetlist: "Planetlist",
            habplanets: "Earth-like planets",
            con: "Constellations",
            starmap: "Starmap",
            from: "lightyears from Earth",
            hotJovian: "Hot jovian",
            superEarth: "Superterran",
            at: "is located at a distance of",
            PlanetInfo: "StarInfo",
            orange: "Orange Dwarf",
            red: "Red Dwarf",
            habmenu: ["Habitable Planets", "Cold(–50-0°C)", "Normal Temperature(0–50°C)", "Hot(50–100°C)", "Earth similarity index", "Suitability for vegetation", "Candidate for habitable moon"],
            const: ["Andromeda", "Antlia", "Apus", "Aquarius", "Aquila", "Ara", "Aries", "Auriga", "Boötes", "Caelum", "Camelopardalis", "Cancer", "Canes Venatici", "Canis Major", "Canis Minor", "Capricornus", "Carina", "Cassiopeia", "Centaurus", "Cepheus", "Cetus", "Chamaeleon", "Circinus", "Columba", "Coma Berenices", "Corona Australis", "Corona Borealis", "Corvus", "Crater", "Crux", "Cygnus", "Delphinus", "Dorado", "Draco", "Equuleus", "Eridanus", "Fornax", "Gemini", "Grus", "Hercules", "Horologium", "Hydra", "Hydrus", "Indus", "Lacerta", "Leo", "Leo Minor", "Lepus", "Libra", "Lupus", "Lynx", "Lyra", "Mensa", "Microscopium", "Monoceros", "Musca", "Norma", "Octans", "Ophiuchus", "Orion", "Pavo", "Pegasus", "Perseus", "Phoenix", "Pictor", "Pisces", "Piscis Austrinus", "Puppis", "Pyxis", "Reticulum", "Sagitta", "Sagittarius", "Scorpius", "Sculptor", "Scutum", "Serpens", "Sextans", "Taurus", "Telescopium", "Triangulum", "Triangulum Australe", "Tucana", "Ursa Major", "Ursa Minor", "Vela", "Virgo", "Volans", "Vulpecula"],
            sensorstart: "Starting Sensor..",
            sensorstop: "Deactivating Sensor",
            search: "Search",
            clear: "Clear",
            dashboard: "Dashboard",
            number: "Confirmed planets",
            sorttordertitle: "Sort",
            sortsearch: ["Distance", "Habitable", "Mass", "Discovery year"],
            masssearch: ["Jovian", "Neptunian", "Super-Earth", "Earth", "Mercurian"],
            masstitle: "Mass class",
            comptitle: "Composition",
            compsearch: ["Gas", "Gas-water", "Rocky-water", "Rocky-iron", "Iron"],
            atmostitle: "Atmosphere",
            atmossearch: ["Hydrogen-rich", "Metal-rich", "None"],
            temptitle: "Temperature zon",
            tempsearch: ["Hot", "Varm", "Cold"],
            disctitle: "Discovery-method",
            discsearch: ["Radial velocity", "Transiting", "Micro lensing", "Astrometry", "Pulsar timing", "Imaging"],
            lightyearsearch: ["less than  20 light years", "less than  200 light years", "less than  2000 light years", "less than  20000 light years"],
            lightyeartitle: "Distance",
            planetname: ["The planet is called", "and is orbiting the star", "that is located in the constellation"],
            decFormatdist: ["at a distance of ", "lightyears from Earth."],
            massInfo: [
                "The planet is of the type Jovian, which means that the planet is a giant like Jupiter or Saturn. ",
                "The planet is of the type Neptunian, which means that it has a similar mass like our solar systems smaller gas giants Uranus and Neptune.",
                "The planet is of the type Super-terrestrial, which means that its mass is larger than Earth, but is considerably smaller than our solar systems smaller gas giants Uranus and Neptune.",
                "The planet is of the type terrestrial, which means that it has a similar mass like our solar systems inner planets Mars, Venus and Earth.",
                "The planet is of the type Mercurian, which means that it has a similar mass like our solar systems smallests planets e.g Mercury.",
            ],
            compInfo: ["The planet consists of gas.", "The planet is composed mostly of gaseous or liquid matter.", "The planet has a solid stone surface, where even liquid water may be present.", "The planet has a solid stone surface, which is rich in iron.", "The planet surface is solid and the core is made of iron."],
            orbit: ["It takes", "days for the planet to complete an entire revolution around its star."],
            decMean: ["The planet is located at a distance from it star that correspond to ", "times the distance between our Earth and Sun."],
            hzd: ["The planet is within the its solar system habitable zone, where alien could exist.", "The planet is too close to its sun, no alien could exist here.", "The planet is too far away from its sun, no alien could exist here."],
            hza: ["The planet has an atmosphere that could be suitable for life.", "The planet has no atmosphere.", "The planet has an atmosphere, but it is not suitable for life."],
            atmosinfo: ["", "The planet has a hydrogen-rich atmosphere.", "The planet has a metal-rich atmosphere.", ""],
            meantemp: ["The mean temperature of the planet is", "A hot day at", "the mean temperature is", "C and on a cold day at it is"],
            moon: "It is possible that the planet can have a habitable moon.",
            disc: "Discovered year ",
            discinfo: ["It was first detected by radial velocity, that is done by recording variations in the color of light from the host star.", "It was first detected by the transit method, that is based on the observation of a stars small drop in brightness, that occurs when the planet orbit the star", "It was first detected by microlensing, that is based on the observation of the bending of light due to the gravitational field.", "It was first detected by astrometry, that involves precise measurements of the positions and movements of stars.", "The planet is orbiting a neutron star and was detected by pulsar timing.", "It was first detected by a telescope.", "It was first detected by the transit method, that is based on the observation of a stars small drop in brightness, that occurs when the planet orbit the star"],
            esiratings: "Earth similarity index:",
            sphratings: "Suitability for vegetation",
            planetinfo: ["Mass", "Radius", "Density", "Gravity", "Surface pressure", "Escape velocity"],
            earth: "Earth",
            starname: ["The star is called", "and is located in the constellation"],
            startype: ["The star has exploded and the only thing that remains are small, heavy and very rapidly rotating celestial objects known as pulsars.", "The star has", "and is of the type"],
            color: ["blue", "blue to white", "orange to red", "red"],
            lum: ["very luminous supergiant", "luminous supergiant", "less luminous supergiant", "luminous giant", "giant", "subgiant", "dwarf", "subdwarf", "white dwarf", "pulsar"],
            mag: ["The star is visible from Earth with the naked eye.", "The star can not be seen from Earth without a telescope."],
            sortorder: ["Distance", "Dicsovery year"],
            habzone: ["The stars habitable zone is located at a distance between", "and", "times the distance between Earth and the Sun"],
            numberplanet: ["a known planet that is located in the habitable zone", "The star has", "known planets and has", "planets located in the habitable zone.", "known planets, but has no known planets that are located in the habitable zone.", "The star has a known planet, but it is not in the habitable zone."],
            starinfo: ["Mass", "Radius", "Age", "Temperature"],
            order: ["Ascending", "Descending"],
            oursun: "Sun",
            typecolor: "color",
            foundplanets: "Found planets: ",
            foundhabitableplanets: "Found habitable planets: ",
        };
        /***/ 
    }),
    /* 67 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _addons_Confirm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Confirm", function () { return _addons_Confirm__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /* harmony import */ var _addons_MountNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(463);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MountNode", function () { return _addons_MountNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
        /* harmony import */ var _addons_Pagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(486);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function () { return _addons_Pagination__WEBPACK_IMPORTED_MODULE_2__["default"]; });
        /* harmony import */ var _addons_Pagination_PaginationItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(504);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationItem", function () { return _addons_Pagination_PaginationItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });
        /* harmony import */ var _addons_Portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(443);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Portal", function () { return _addons_Portal__WEBPACK_IMPORTED_MODULE_4__["default"]; });
        /* harmony import */ var _addons_Portal_PortalInner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(448);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PortalInner", function () { return _addons_Portal_PortalInner__WEBPACK_IMPORTED_MODULE_5__["default"]; });
        /* harmony import */ var _addons_Radio__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(505);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function () { return _addons_Radio__WEBPACK_IMPORTED_MODULE_6__["default"]; });
        /* harmony import */ var _addons_Ref__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(446);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ref", function () { return _addons_Ref__WEBPACK_IMPORTED_MODULE_7__["default"]; });
        /* harmony import */ var _addons_Responsive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(509);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Responsive", function () { return _addons_Responsive__WEBPACK_IMPORTED_MODULE_8__["default"]; });
        /* harmony import */ var _addons_Select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(511);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function () { return _addons_Select__WEBPACK_IMPORTED_MODULE_9__["default"]; });
        /* harmony import */ var _addons_TextArea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(536);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextArea", function () { return _addons_TextArea__WEBPACK_IMPORTED_MODULE_10__["default"]; });
        /* harmony import */ var _addons_TransitionablePortal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(538);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TransitionablePortal", function () { return _addons_TransitionablePortal__WEBPACK_IMPORTED_MODULE_11__["default"]; });
        /* harmony import */ var _behaviors_Visibility__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(544);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Visibility", function () { return _behaviors_Visibility__WEBPACK_IMPORTED_MODULE_12__["default"]; });
        /* harmony import */ var _collections_Breadcrumb__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(546);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function () { return _collections_Breadcrumb__WEBPACK_IMPORTED_MODULE_13__["default"]; });
        /* harmony import */ var _collections_Breadcrumb_BreadcrumbDivider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(548);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbDivider", function () { return _collections_Breadcrumb_BreadcrumbDivider__WEBPACK_IMPORTED_MODULE_14__["default"]; });
        /* harmony import */ var _collections_Breadcrumb_BreadcrumbSection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(549);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbSection", function () { return _collections_Breadcrumb_BreadcrumbSection__WEBPACK_IMPORTED_MODULE_15__["default"]; });
        /* harmony import */ var _collections_Form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(550);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function () { return _collections_Form__WEBPACK_IMPORTED_MODULE_16__["default"]; });
        /* harmony import */ var _collections_Form_FormButton__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(552);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormButton", function () { return _collections_Form_FormButton__WEBPACK_IMPORTED_MODULE_17__["default"]; });
        /* harmony import */ var _collections_Form_FormCheckbox__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(554);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormCheckbox", function () { return _collections_Form_FormCheckbox__WEBPACK_IMPORTED_MODULE_18__["default"]; });
        /* harmony import */ var _collections_Form_FormDropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(555);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormDropdown", function () { return _collections_Form_FormDropdown__WEBPACK_IMPORTED_MODULE_19__["default"]; });
        /* harmony import */ var _collections_Form_FormField__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(553);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormField", function () { return _collections_Form_FormField__WEBPACK_IMPORTED_MODULE_20__["default"]; });
        /* harmony import */ var _collections_Form_FormGroup__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(556);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function () { return _collections_Form_FormGroup__WEBPACK_IMPORTED_MODULE_21__["default"]; });
        /* harmony import */ var _collections_Form_FormInput__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(557);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormInput", function () { return _collections_Form_FormInput__WEBPACK_IMPORTED_MODULE_22__["default"]; });
        /* harmony import */ var _collections_Form_FormRadio__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(560);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormRadio", function () { return _collections_Form_FormRadio__WEBPACK_IMPORTED_MODULE_23__["default"]; });
        /* harmony import */ var _collections_Form_FormSelect__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(561);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormSelect", function () { return _collections_Form_FormSelect__WEBPACK_IMPORTED_MODULE_24__["default"]; });
        /* harmony import */ var _collections_Form_FormTextArea__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(562);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormTextArea", function () { return _collections_Form_FormTextArea__WEBPACK_IMPORTED_MODULE_25__["default"]; });
        /* harmony import */ var _collections_Grid__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(563);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function () { return _collections_Grid__WEBPACK_IMPORTED_MODULE_26__["default"]; });
        /* harmony import */ var _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(565);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GridColumn", function () { return _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_27__["default"]; });
        /* harmony import */ var _collections_Grid_GridRow__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(566);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GridRow", function () { return _collections_Grid_GridRow__WEBPACK_IMPORTED_MODULE_28__["default"]; });
        /* harmony import */ var _collections_Menu__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(488);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Menu", function () { return _collections_Menu__WEBPACK_IMPORTED_MODULE_29__["default"]; });
        /* harmony import */ var _collections_Menu_MenuHeader__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(490);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuHeader", function () { return _collections_Menu_MenuHeader__WEBPACK_IMPORTED_MODULE_30__["default"]; });
        /* harmony import */ var _collections_Menu_MenuItem__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(491);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function () { return _collections_Menu_MenuItem__WEBPACK_IMPORTED_MODULE_31__["default"]; });
        /* harmony import */ var _collections_Menu_MenuMenu__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(503);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuMenu", function () { return _collections_Menu_MenuMenu__WEBPACK_IMPORTED_MODULE_32__["default"]; });
        /* harmony import */ var _collections_Message__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(567);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function () { return _collections_Message__WEBPACK_IMPORTED_MODULE_33__["default"]; });
        /* harmony import */ var _collections_Message_MessageContent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(569);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageContent", function () { return _collections_Message_MessageContent__WEBPACK_IMPORTED_MODULE_34__["default"]; });
        /* harmony import */ var _collections_Message_MessageHeader__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(570);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageHeader", function () { return _collections_Message_MessageHeader__WEBPACK_IMPORTED_MODULE_35__["default"]; });
        /* harmony import */ var _collections_Message_MessageItem__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(572);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageItem", function () { return _collections_Message_MessageItem__WEBPACK_IMPORTED_MODULE_36__["default"]; });
        /* harmony import */ var _collections_Message_MessageList__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(571);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageList", function () { return _collections_Message_MessageList__WEBPACK_IMPORTED_MODULE_37__["default"]; });
        /* harmony import */ var _collections_Table__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(573);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function () { return _collections_Table__WEBPACK_IMPORTED_MODULE_38__["default"]; });
        /* harmony import */ var _collections_Table_TableBody__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(575);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableBody", function () { return _collections_Table_TableBody__WEBPACK_IMPORTED_MODULE_39__["default"]; });
        /* harmony import */ var _collections_Table_TableCell__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(576);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCell", function () { return _collections_Table_TableCell__WEBPACK_IMPORTED_MODULE_40__["default"]; });
        /* harmony import */ var _collections_Table_TableFooter__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(577);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableFooter", function () { return _collections_Table_TableFooter__WEBPACK_IMPORTED_MODULE_41__["default"]; });
        /* harmony import */ var _collections_Table_TableHeader__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(578);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeader", function () { return _collections_Table_TableHeader__WEBPACK_IMPORTED_MODULE_42__["default"]; });
        /* harmony import */ var _collections_Table_TableHeaderCell__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(579);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeaderCell", function () { return _collections_Table_TableHeaderCell__WEBPACK_IMPORTED_MODULE_43__["default"]; });
        /* harmony import */ var _collections_Table_TableRow__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(580);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableRow", function () { return _collections_Table_TableRow__WEBPACK_IMPORTED_MODULE_44__["default"]; });
        /* harmony import */ var _elements_Button_Button__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(435);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function () { return _elements_Button_Button__WEBPACK_IMPORTED_MODULE_45__["default"]; });
        /* harmony import */ var _elements_Button_ButtonContent__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(454);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonContent", function () { return _elements_Button_ButtonContent__WEBPACK_IMPORTED_MODULE_46__["default"]; });
        /* harmony import */ var _elements_Button_ButtonGroup__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(455);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function () { return _elements_Button_ButtonGroup__WEBPACK_IMPORTED_MODULE_47__["default"]; });
        /* harmony import */ var _elements_Button_ButtonOr__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(456);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonOr", function () { return _elements_Button_ButtonOr__WEBPACK_IMPORTED_MODULE_48__["default"]; });
        /* harmony import */ var _elements_Container__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(581);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Container", function () { return _elements_Container__WEBPACK_IMPORTED_MODULE_49__["default"]; });
        /* harmony import */ var _elements_Divider__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(583);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function () { return _elements_Divider__WEBPACK_IMPORTED_MODULE_50__["default"]; });
        /* harmony import */ var _elements_Flag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(530);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Flag", function () { return _elements_Flag__WEBPACK_IMPORTED_MODULE_51__["default"]; });
        /* harmony import */ var _elements_Header__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(585);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function () { return _elements_Header__WEBPACK_IMPORTED_MODULE_52__["default"]; });
        /* harmony import */ var _elements_Header_HeaderContent__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(588);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderContent", function () { return _elements_Header_HeaderContent__WEBPACK_IMPORTED_MODULE_53__["default"]; });
        /* harmony import */ var _elements_Header_HeaderSubheader__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(587);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderSubheader", function () { return _elements_Header_HeaderSubheader__WEBPACK_IMPORTED_MODULE_54__["default"]; });
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(462);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function () { return _elements_Icon__WEBPACK_IMPORTED_MODULE_55__["default"]; });
        /* harmony import */ var _elements_Icon_IconGroup__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(438);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconGroup", function () { return _elements_Icon_IconGroup__WEBPACK_IMPORTED_MODULE_56__["default"]; });
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(532);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function () { return _elements_Image__WEBPACK_IMPORTED_MODULE_57__["default"]; });
        /* harmony import */ var _elements_Image_ImageGroup__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(451);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageGroup", function () { return _elements_Image_ImageGroup__WEBPACK_IMPORTED_MODULE_58__["default"]; });
        /* harmony import */ var _elements_Input__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(558);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Input", function () { return _elements_Input__WEBPACK_IMPORTED_MODULE_59__["default"]; });
        /* harmony import */ var _elements_Label__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(527);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function () { return _elements_Label__WEBPACK_IMPORTED_MODULE_60__["default"]; });
        /* harmony import */ var _elements_Label_LabelDetail__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(452);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelDetail", function () { return _elements_Label_LabelDetail__WEBPACK_IMPORTED_MODULE_61__["default"]; });
        /* harmony import */ var _elements_Label_LabelGroup__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(453);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelGroup", function () { return _elements_Label_LabelGroup__WEBPACK_IMPORTED_MODULE_62__["default"]; });
        /* harmony import */ var _elements_List__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(589);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function () { return _elements_List__WEBPACK_IMPORTED_MODULE_63__["default"]; });
        /* harmony import */ var _elements_List_ListContent__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(591);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListContent", function () { return _elements_List_ListContent__WEBPACK_IMPORTED_MODULE_64__["default"]; });
        /* harmony import */ var _elements_List_ListDescription__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(592);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDescription", function () { return _elements_List_ListDescription__WEBPACK_IMPORTED_MODULE_65__["default"]; });
        /* harmony import */ var _elements_List_ListHeader__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(593);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListHeader", function () { return _elements_List_ListHeader__WEBPACK_IMPORTED_MODULE_66__["default"]; });
        /* harmony import */ var _elements_List_ListIcon__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(594);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIcon", function () { return _elements_List_ListIcon__WEBPACK_IMPORTED_MODULE_67__["default"]; });
        /* harmony import */ var _elements_List_ListItem__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(595);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItem", function () { return _elements_List_ListItem__WEBPACK_IMPORTED_MODULE_68__["default"]; });
        /* harmony import */ var _elements_List_ListList__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(596);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListList", function () { return _elements_List_ListList__WEBPACK_IMPORTED_MODULE_69__["default"]; });
        /* harmony import */ var _elements_Loader__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(597);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Loader", function () { return _elements_Loader__WEBPACK_IMPORTED_MODULE_70__["default"]; });
        /* harmony import */ var _elements_Placeholder__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(599);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Placeholder", function () { return _elements_Placeholder__WEBPACK_IMPORTED_MODULE_71__["default"]; });
        /* harmony import */ var _elements_Placeholder_PlaceholderHeader__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(601);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaceholderHeader", function () { return _elements_Placeholder_PlaceholderHeader__WEBPACK_IMPORTED_MODULE_72__["default"]; });
        /* harmony import */ var _elements_Placeholder_PlaceholderImage__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(602);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaceholderImage", function () { return _elements_Placeholder_PlaceholderImage__WEBPACK_IMPORTED_MODULE_73__["default"]; });
        /* harmony import */ var _elements_Placeholder_PlaceholderLine__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(603);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaceholderLine", function () { return _elements_Placeholder_PlaceholderLine__WEBPACK_IMPORTED_MODULE_74__["default"]; });
        /* harmony import */ var _elements_Placeholder_PlaceholderParagraph__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(604);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaceholderParagraph", function () { return _elements_Placeholder_PlaceholderParagraph__WEBPACK_IMPORTED_MODULE_75__["default"]; });
        /* harmony import */ var _elements_Rail__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(605);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rail", function () { return _elements_Rail__WEBPACK_IMPORTED_MODULE_76__["default"]; });
        /* harmony import */ var _elements_Reveal__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(607);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Reveal", function () { return _elements_Reveal__WEBPACK_IMPORTED_MODULE_77__["default"]; });
        /* harmony import */ var _elements_Reveal_RevealContent__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(609);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RevealContent", function () { return _elements_Reveal_RevealContent__WEBPACK_IMPORTED_MODULE_78__["default"]; });
        /* harmony import */ var _elements_Segment__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(610);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Segment", function () { return _elements_Segment__WEBPACK_IMPORTED_MODULE_79__["default"]; });
        /* harmony import */ var _elements_Segment_SegmentGroup__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(612);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function () { return _elements_Segment_SegmentGroup__WEBPACK_IMPORTED_MODULE_80__["default"]; });
        /* harmony import */ var _elements_Segment_SegmentInline__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(613);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentInline", function () { return _elements_Segment_SegmentInline__WEBPACK_IMPORTED_MODULE_81__["default"]; });
        /* harmony import */ var _elements_Step__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(614);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Step", function () { return _elements_Step__WEBPACK_IMPORTED_MODULE_82__["default"]; });
        /* harmony import */ var _elements_Step_StepContent__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(616);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepContent", function () { return _elements_Step_StepContent__WEBPACK_IMPORTED_MODULE_83__["default"]; });
        /* harmony import */ var _elements_Step_StepDescription__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(617);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepDescription", function () { return _elements_Step_StepDescription__WEBPACK_IMPORTED_MODULE_84__["default"]; });
        /* harmony import */ var _elements_Step_StepGroup__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(619);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepGroup", function () { return _elements_Step_StepGroup__WEBPACK_IMPORTED_MODULE_85__["default"]; });
        /* harmony import */ var _elements_Step_StepTitle__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(618);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepTitle", function () { return _elements_Step_StepTitle__WEBPACK_IMPORTED_MODULE_86__["default"]; });
        /* harmony import */ var _modules_Accordion_Accordion__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(621);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Accordion", function () { return _modules_Accordion_Accordion__WEBPACK_IMPORTED_MODULE_87__["default"]; });
        /* harmony import */ var _modules_Accordion_AccordionAccordion__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(622);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionAccordion", function () { return _modules_Accordion_AccordionAccordion__WEBPACK_IMPORTED_MODULE_88__["default"]; });
        /* harmony import */ var _modules_Accordion_AccordionContent__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(625);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionContent", function () { return _modules_Accordion_AccordionContent__WEBPACK_IMPORTED_MODULE_89__["default"]; });
        /* harmony import */ var _modules_Accordion_AccordionPanel__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(623);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionPanel", function () { return _modules_Accordion_AccordionPanel__WEBPACK_IMPORTED_MODULE_90__["default"]; });
        /* harmony import */ var _modules_Accordion_AccordionTitle__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(624);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionTitle", function () { return _modules_Accordion_AccordionTitle__WEBPACK_IMPORTED_MODULE_91__["default"]; });
        /* harmony import */ var _modules_Checkbox__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(507);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function () { return _modules_Checkbox__WEBPACK_IMPORTED_MODULE_92__["default"]; });
        /* harmony import */ var _modules_Dimmer__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(441);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dimmer", function () { return _modules_Dimmer__WEBPACK_IMPORTED_MODULE_93__["default"]; });
        /* harmony import */ var _modules_Dimmer_DimmerDimmable__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(449);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimmerDimmable", function () { return _modules_Dimmer_DimmerDimmable__WEBPACK_IMPORTED_MODULE_94__["default"]; });
        /* harmony import */ var _modules_Dimmer_DimmerInner__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(450);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimmerInner", function () { return _modules_Dimmer_DimmerInner__WEBPACK_IMPORTED_MODULE_95__["default"]; });
        /* harmony import */ var _modules_Dropdown__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(513);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function () { return _modules_Dropdown__WEBPACK_IMPORTED_MODULE_96__["default"]; });
        /* harmony import */ var _modules_Dropdown_DropdownDivider__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(528);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownDivider", function () { return _modules_Dropdown_DropdownDivider__WEBPACK_IMPORTED_MODULE_97__["default"]; });
        /* harmony import */ var _modules_Dropdown_DropdownHeader__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(533);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownHeader", function () { return _modules_Dropdown_DropdownHeader__WEBPACK_IMPORTED_MODULE_98__["default"]; });
        /* harmony import */ var _modules_Dropdown_DropdownItem__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(529);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownItem", function () { return _modules_Dropdown_DropdownItem__WEBPACK_IMPORTED_MODULE_99__["default"]; });
        /* harmony import */ var _modules_Dropdown_DropdownMenu__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(534);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMenu", function () { return _modules_Dropdown_DropdownMenu__WEBPACK_IMPORTED_MODULE_100__["default"]; });
        /* harmony import */ var _modules_Dropdown_DropdownSearchInput__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(535);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownSearchInput", function () { return _modules_Dropdown_DropdownSearchInput__WEBPACK_IMPORTED_MODULE_101__["default"]; });
        /* harmony import */ var _modules_Embed__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(626);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Embed", function () { return _modules_Embed__WEBPACK_IMPORTED_MODULE_102__["default"]; });
        /* harmony import */ var _modules_Modal__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(457);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function () { return _modules_Modal__WEBPACK_IMPORTED_MODULE_103__["default"]; });
        /* harmony import */ var _modules_Modal_ModalActions__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(484);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalActions", function () { return _modules_Modal_ModalActions__WEBPACK_IMPORTED_MODULE_104__["default"]; });
        /* harmony import */ var _modules_Modal_ModalContent__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(483);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalContent", function () { return _modules_Modal_ModalContent__WEBPACK_IMPORTED_MODULE_105__["default"]; });
        /* harmony import */ var _modules_Modal_ModalDescription__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(485);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalDescription", function () { return _modules_Modal_ModalDescription__WEBPACK_IMPORTED_MODULE_106__["default"]; });
        /* harmony import */ var _modules_Modal_ModalHeader__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(482);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalHeader", function () { return _modules_Modal_ModalHeader__WEBPACK_IMPORTED_MODULE_107__["default"]; });
        /* harmony import */ var _modules_Popup__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(628);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function () { return _modules_Popup__WEBPACK_IMPORTED_MODULE_108__["default"]; });
        /* harmony import */ var _modules_Popup_PopupContent__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(632);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupContent", function () { return _modules_Popup_PopupContent__WEBPACK_IMPORTED_MODULE_109__["default"]; });
        /* harmony import */ var _modules_Popup_PopupHeader__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(633);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupHeader", function () { return _modules_Popup_PopupHeader__WEBPACK_IMPORTED_MODULE_110__["default"]; });
        /* harmony import */ var _modules_Progress__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(634);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function () { return _modules_Progress__WEBPACK_IMPORTED_MODULE_111__["default"]; });
        /* harmony import */ var _modules_Rating__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(639);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rating", function () { return _modules_Rating__WEBPACK_IMPORTED_MODULE_112__["default"]; });
        /* harmony import */ var _modules_Rating_RatingIcon__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(642);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingIcon", function () { return _modules_Rating_RatingIcon__WEBPACK_IMPORTED_MODULE_113__["default"]; });
        /* harmony import */ var _modules_Search__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(643);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Search", function () { return _modules_Search__WEBPACK_IMPORTED_MODULE_114__["default"]; });
        /* harmony import */ var _modules_Search_SearchCategory__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(648);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchCategory", function () { return _modules_Search_SearchCategory__WEBPACK_IMPORTED_MODULE_115__["default"]; });
        /* harmony import */ var _modules_Search_SearchResult__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(649);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchResult", function () { return _modules_Search_SearchResult__WEBPACK_IMPORTED_MODULE_116__["default"]; });
        /* harmony import */ var _modules_Search_SearchResults__WEBPACK_IMPORTED_MODULE_117__ = __webpack_require__(650);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchResults", function () { return _modules_Search_SearchResults__WEBPACK_IMPORTED_MODULE_117__["default"]; });
        /* harmony import */ var _modules_Sidebar__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(651);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sidebar", function () { return _modules_Sidebar__WEBPACK_IMPORTED_MODULE_118__["default"]; });
        /* harmony import */ var _modules_Sidebar_SidebarPushable__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(653);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarPushable", function () { return _modules_Sidebar_SidebarPushable__WEBPACK_IMPORTED_MODULE_119__["default"]; });
        /* harmony import */ var _modules_Sidebar_SidebarPusher__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(654);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarPusher", function () { return _modules_Sidebar_SidebarPusher__WEBPACK_IMPORTED_MODULE_120__["default"]; });
        /* harmony import */ var _modules_Sticky__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(655);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sticky", function () { return _modules_Sticky__WEBPACK_IMPORTED_MODULE_121__["default"]; });
        /* harmony import */ var _modules_Tab__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(657);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function () { return _modules_Tab__WEBPACK_IMPORTED_MODULE_122__["default"]; });
        /* harmony import */ var _modules_Tab_TabPane__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(659);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function () { return _modules_Tab_TabPane__WEBPACK_IMPORTED_MODULE_123__["default"]; });
        /* harmony import */ var _modules_Transition__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(540);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transition", function () { return _modules_Transition__WEBPACK_IMPORTED_MODULE_124__["default"]; });
        /* harmony import */ var _modules_Transition_TransitionGroup__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(542);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TransitionGroup", function () { return _modules_Transition_TransitionGroup__WEBPACK_IMPORTED_MODULE_125__["default"]; });
        /* harmony import */ var _views_Advertisement__WEBPACK_IMPORTED_MODULE_126__ = __webpack_require__(660);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Advertisement", function () { return _views_Advertisement__WEBPACK_IMPORTED_MODULE_126__["default"]; });
        /* harmony import */ var _views_Card_Card__WEBPACK_IMPORTED_MODULE_127__ = __webpack_require__(662);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function () { return _views_Card_Card__WEBPACK_IMPORTED_MODULE_127__["default"]; });
        /* harmony import */ var _views_Card_CardContent__WEBPACK_IMPORTED_MODULE_128__ = __webpack_require__(663);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardContent", function () { return _views_Card_CardContent__WEBPACK_IMPORTED_MODULE_128__["default"]; });
        /* harmony import */ var _views_Card_CardDescription__WEBPACK_IMPORTED_MODULE_129__ = __webpack_require__(664);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDescription", function () { return _views_Card_CardDescription__WEBPACK_IMPORTED_MODULE_129__["default"]; });
        /* harmony import */ var _views_Card_CardGroup__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(667);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGroup", function () { return _views_Card_CardGroup__WEBPACK_IMPORTED_MODULE_130__["default"]; });
        /* harmony import */ var _views_Card_CardHeader__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(665);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeader", function () { return _views_Card_CardHeader__WEBPACK_IMPORTED_MODULE_131__["default"]; });
        /* harmony import */ var _views_Card_CardMeta__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(666);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardMeta", function () { return _views_Card_CardMeta__WEBPACK_IMPORTED_MODULE_132__["default"]; });
        /* harmony import */ var _views_Comment__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(668);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Comment", function () { return _views_Comment__WEBPACK_IMPORTED_MODULE_133__["default"]; });
        /* harmony import */ var _views_Comment_CommentAction__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(670);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentAction", function () { return _views_Comment_CommentAction__WEBPACK_IMPORTED_MODULE_134__["default"]; });
        /* harmony import */ var _views_Comment_CommentActions__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(671);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentActions", function () { return _views_Comment_CommentActions__WEBPACK_IMPORTED_MODULE_135__["default"]; });
        /* harmony import */ var _views_Comment_CommentAuthor__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(672);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentAuthor", function () { return _views_Comment_CommentAuthor__WEBPACK_IMPORTED_MODULE_136__["default"]; });
        /* harmony import */ var _views_Comment_CommentAvatar__WEBPACK_IMPORTED_MODULE_137__ = __webpack_require__(673);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentAvatar", function () { return _views_Comment_CommentAvatar__WEBPACK_IMPORTED_MODULE_137__["default"]; });
        /* harmony import */ var _views_Comment_CommentContent__WEBPACK_IMPORTED_MODULE_138__ = __webpack_require__(674);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentContent", function () { return _views_Comment_CommentContent__WEBPACK_IMPORTED_MODULE_138__["default"]; });
        /* harmony import */ var _views_Comment_CommentGroup__WEBPACK_IMPORTED_MODULE_139__ = __webpack_require__(675);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentGroup", function () { return _views_Comment_CommentGroup__WEBPACK_IMPORTED_MODULE_139__["default"]; });
        /* harmony import */ var _views_Comment_CommentMetadata__WEBPACK_IMPORTED_MODULE_140__ = __webpack_require__(676);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentMetadata", function () { return _views_Comment_CommentMetadata__WEBPACK_IMPORTED_MODULE_140__["default"]; });
        /* harmony import */ var _views_Comment_CommentText__WEBPACK_IMPORTED_MODULE_141__ = __webpack_require__(677);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommentText", function () { return _views_Comment_CommentText__WEBPACK_IMPORTED_MODULE_141__["default"]; });
        /* harmony import */ var _views_Feed__WEBPACK_IMPORTED_MODULE_142__ = __webpack_require__(678);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Feed", function () { return _views_Feed__WEBPACK_IMPORTED_MODULE_142__["default"]; });
        /* harmony import */ var _views_Feed_FeedContent__WEBPACK_IMPORTED_MODULE_143__ = __webpack_require__(680);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedContent", function () { return _views_Feed_FeedContent__WEBPACK_IMPORTED_MODULE_143__["default"]; });
        /* harmony import */ var _views_Feed_FeedDate__WEBPACK_IMPORTED_MODULE_144__ = __webpack_require__(681);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedDate", function () { return _views_Feed_FeedDate__WEBPACK_IMPORTED_MODULE_144__["default"]; });
        /* harmony import */ var _views_Feed_FeedEvent__WEBPACK_IMPORTED_MODULE_145__ = __webpack_require__(687);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedEvent", function () { return _views_Feed_FeedEvent__WEBPACK_IMPORTED_MODULE_145__["default"]; });
        /* harmony import */ var _views_Feed_FeedExtra__WEBPACK_IMPORTED_MODULE_146__ = __webpack_require__(682);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedExtra", function () { return _views_Feed_FeedExtra__WEBPACK_IMPORTED_MODULE_146__["default"]; });
        /* harmony import */ var _views_Feed_FeedLabel__WEBPACK_IMPORTED_MODULE_147__ = __webpack_require__(688);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedLabel", function () { return _views_Feed_FeedLabel__WEBPACK_IMPORTED_MODULE_147__["default"]; });
        /* harmony import */ var _views_Feed_FeedLike__WEBPACK_IMPORTED_MODULE_148__ = __webpack_require__(684);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedLike", function () { return _views_Feed_FeedLike__WEBPACK_IMPORTED_MODULE_148__["default"]; });
        /* harmony import */ var _views_Feed_FeedMeta__WEBPACK_IMPORTED_MODULE_149__ = __webpack_require__(683);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedMeta", function () { return _views_Feed_FeedMeta__WEBPACK_IMPORTED_MODULE_149__["default"]; });
        /* harmony import */ var _views_Feed_FeedSummary__WEBPACK_IMPORTED_MODULE_150__ = __webpack_require__(685);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedSummary", function () { return _views_Feed_FeedSummary__WEBPACK_IMPORTED_MODULE_150__["default"]; });
        /* harmony import */ var _views_Feed_FeedUser__WEBPACK_IMPORTED_MODULE_151__ = __webpack_require__(686);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeedUser", function () { return _views_Feed_FeedUser__WEBPACK_IMPORTED_MODULE_151__["default"]; });
        /* harmony import */ var _views_Item__WEBPACK_IMPORTED_MODULE_152__ = __webpack_require__(689);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function () { return _views_Item__WEBPACK_IMPORTED_MODULE_152__["default"]; });
        /* harmony import */ var _views_Item_ItemContent__WEBPACK_IMPORTED_MODULE_153__ = __webpack_require__(691);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemContent", function () { return _views_Item_ItemContent__WEBPACK_IMPORTED_MODULE_153__["default"]; });
        /* harmony import */ var _views_Item_ItemDescription__WEBPACK_IMPORTED_MODULE_154__ = __webpack_require__(693);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemDescription", function () { return _views_Item_ItemDescription__WEBPACK_IMPORTED_MODULE_154__["default"]; });
        /* harmony import */ var _views_Item_ItemExtra__WEBPACK_IMPORTED_MODULE_155__ = __webpack_require__(694);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemExtra", function () { return _views_Item_ItemExtra__WEBPACK_IMPORTED_MODULE_155__["default"]; });
        /* harmony import */ var _views_Item_ItemGroup__WEBPACK_IMPORTED_MODULE_156__ = __webpack_require__(696);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function () { return _views_Item_ItemGroup__WEBPACK_IMPORTED_MODULE_156__["default"]; });
        /* harmony import */ var _views_Item_ItemHeader__WEBPACK_IMPORTED_MODULE_157__ = __webpack_require__(692);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemHeader", function () { return _views_Item_ItemHeader__WEBPACK_IMPORTED_MODULE_157__["default"]; });
        /* harmony import */ var _views_Item_ItemImage__WEBPACK_IMPORTED_MODULE_158__ = __webpack_require__(697);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemImage", function () { return _views_Item_ItemImage__WEBPACK_IMPORTED_MODULE_158__["default"]; });
        /* harmony import */ var _views_Item_ItemMeta__WEBPACK_IMPORTED_MODULE_159__ = __webpack_require__(695);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemMeta", function () { return _views_Item_ItemMeta__WEBPACK_IMPORTED_MODULE_159__["default"]; });
        /* harmony import */ var _views_Statistic__WEBPACK_IMPORTED_MODULE_160__ = __webpack_require__(698);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Statistic", function () { return _views_Statistic__WEBPACK_IMPORTED_MODULE_160__["default"]; });
        /* harmony import */ var _views_Statistic_StatisticGroup__WEBPACK_IMPORTED_MODULE_161__ = __webpack_require__(700);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatisticGroup", function () { return _views_Statistic_StatisticGroup__WEBPACK_IMPORTED_MODULE_161__["default"]; });
        /* harmony import */ var _views_Statistic_StatisticLabel__WEBPACK_IMPORTED_MODULE_162__ = __webpack_require__(701);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatisticLabel", function () { return _views_Statistic_StatisticLabel__WEBPACK_IMPORTED_MODULE_162__["default"]; });
        /* harmony import */ var _views_Statistic_StatisticValue__WEBPACK_IMPORTED_MODULE_163__ = __webpack_require__(702);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatisticValue", function () { return _views_Statistic_StatisticValue__WEBPACK_IMPORTED_MODULE_163__["default"]; });
        // Addons
        // Behaviors
        // Collections
        // Elements
        // Modules
        // Views
        /***/ 
    }),
    /* 68 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Confirm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Confirm__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 69 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _elements_Button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(434);
        /* harmony import */ var _modules_Modal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(457);
        /**
         * A Confirm modal gives the user a choice to confirm or cancel an action/
         * @see Modal
         */
        var Confirm = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Confirm, _Component);
            function Confirm() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Confirm);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Confirm)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleCancel", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onCancel', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleCancelOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, buttonProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e, buttonProps);
                            _this.handleCancel(e);
                        }
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleConfirmOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, buttonProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e, buttonProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onConfirm', e, _this.props);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Confirm, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, cancelButton = _this$props.cancelButton, confirmButton = _this$props.confirmButton, content = _this$props.content, header = _this$props.header, open = _this$props.open, size = _this$props.size;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Confirm, this.props); // `open` is auto controlled by the Modal
                        // It cannot be present (even undefined) with `defaultOpen`
                        // only apply it if the user provided an open prop
                        var openProp = {};
                        if (lodash_has__WEBPACK_IMPORTED_MODULE_8___default()(this.props, 'open'))
                            openProp.open = open;
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_modules_Modal__WEBPACK_IMPORTED_MODULE_14__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, openProp, {
                            size: size,
                            onClose: this.handleCancel
                        }), _modules_Modal__WEBPACK_IMPORTED_MODULE_14__["default"].Header.create(header, {
                            autoGenerateKey: false
                        }), _modules_Modal__WEBPACK_IMPORTED_MODULE_14__["default"].Content.create(content, {
                            autoGenerateKey: false
                        }), react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_modules_Modal__WEBPACK_IMPORTED_MODULE_14__["default"].Actions, null, _elements_Button__WEBPACK_IMPORTED_MODULE_13__["default"].create(cancelButton, {
                            autoGenerateKey: false,
                            overrideProps: this.handleCancelOverrides
                        }), _elements_Button__WEBPACK_IMPORTED_MODULE_13__["default"].create(confirmButton, {
                            autoGenerateKey: false,
                            defaultProps: {
                                primary: true
                            },
                            overrideProps: this.handleConfirmOverrides
                        })));
                    }
                }]);
            return Confirm;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Confirm, "defaultProps", {
            cancelButton: 'Cancel',
            confirmButton: 'OK',
            content: 'Are you sure?',
            size: 'small'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Confirm, "handledProps", ["cancelButton", "confirmButton", "content", "header", "onCancel", "onConfirm", "open", "size"]);
        Confirm.propTypes = true ? {
            /** The cancel button text. */
            cancelButton: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** The OK button text. */
            confirmButton: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** The ModalContent text. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** The ModalHeader text. */
            header: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /**
             * Called when the Modal is closed without clicking confirm.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onCancel: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Called when the OK button is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** Whether or not the modal is visible. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** A Confirm can vary in size */
            size: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['fullscreen', 'large', 'mini', 'small', 'tiny'])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Confirm);
        /***/ 
    }),
    /* 70 */
    /***/ (function (module, exports) {
        function _extends() {
            module.exports = _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;
            };
            return _extends.apply(this, arguments);
        }
        module.exports = _extends;
        /***/ 
    }),
    /* 71 */
    /***/ (function (module, exports) {
        function _classCallCheck(instance, Constructor) {
            if (!(instance instanceof Constructor)) {
                throw new TypeError("Cannot call a class as a function");
            }
        }
        module.exports = _classCallCheck;
        /***/ 
    }),
    /* 72 */
    /***/ (function (module, exports) {
        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;
        }
        module.exports = _createClass;
        /***/ 
    }),
    /* 73 */
    /***/ (function (module, exports, __webpack_require__) {
        var _typeof = __webpack_require__(74);
        var assertThisInitialized = __webpack_require__(75);
        function _possibleConstructorReturn(self, call) {
            if (call && (_typeof(call) === "object" || typeof call === "function")) {
                return call;
            }
            return assertThisInitialized(self);
        }
        module.exports = _possibleConstructorReturn;
        /***/ 
    }),
    /* 74 */
    /***/ (function (module, exports) {
        function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
            _typeof2 = function _typeof2(obj) { return typeof obj; };
        }
        else {
            _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
        } return _typeof2(obj); }
        function _typeof(obj) {
            if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
                module.exports = _typeof = function _typeof(obj) {
                    return _typeof2(obj);
                };
            }
            else {
                module.exports = _typeof = function _typeof(obj) {
                    return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
                };
            }
            return _typeof(obj);
        }
        module.exports = _typeof;
        /***/ 
    }),
    /* 75 */
    /***/ (function (module, exports) {
        function _assertThisInitialized(self) {
            if (self === void 0) {
                throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            }
            return self;
        }
        module.exports = _assertThisInitialized;
        /***/ 
    }),
    /* 76 */
    /***/ (function (module, exports) {
        function _getPrototypeOf(o) {
            module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
                return o.__proto__ || Object.getPrototypeOf(o);
            };
            return _getPrototypeOf(o);
        }
        module.exports = _getPrototypeOf;
        /***/ 
    }),
    /* 77 */
    /***/ (function (module, exports, __webpack_require__) {
        var setPrototypeOf = __webpack_require__(78);
        function _inherits(subClass, superClass) {
            if (typeof superClass !== "function" && superClass !== null) {
                throw new TypeError("Super expression must either be null or a function");
            }
            subClass.prototype = Object.create(superClass && superClass.prototype, {
                constructor: {
                    value: subClass,
                    writable: true,
                    configurable: true
                }
            });
            if (superClass)
                setPrototypeOf(subClass, superClass);
        }
        module.exports = _inherits;
        /***/ 
    }),
    /* 78 */
    /***/ (function (module, exports) {
        function _setPrototypeOf(o, p) {
            module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
                o.__proto__ = p;
                return o;
            };
            return _setPrototypeOf(o, p);
        }
        module.exports = _setPrototypeOf;
        /***/ 
    }),
    /* 79 */
    /***/ (function (module, exports) {
        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;
            }
            return obj;
        }
        module.exports = _defineProperty;
        /***/ 
    }),
    /* 80 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseHas = __webpack_require__(81), hasPath = __webpack_require__(82);
        /**
         * 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;
        /***/ 
    }),
    /* 81 */
    /***/ (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;
        /***/ 
    }),
    /* 82 */
    /***/ (function (module, exports, __webpack_require__) {
        var castPath = __webpack_require__(83), isArguments = __webpack_require__(133), isArray = __webpack_require__(84), isIndex = __webpack_require__(135), isLength = __webpack_require__(136), toKey = __webpack_require__(137);
        /**
         * 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;
        /***/ 
    }),
    /* 83 */
    /***/ (function (module, exports, __webpack_require__) {
        var isArray = __webpack_require__(84), isKey = __webpack_require__(85), stringToPath = __webpack_require__(95), toString = __webpack_require__(130);
        /**
         * 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;
        /***/ 
    }),
    /* 84 */
    /***/ (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;
        /***/ 
    }),
    /* 85 */
    /***/ (function (module, exports, __webpack_require__) {
        var isArray = __webpack_require__(84), isSymbol = __webpack_require__(86);
        /** 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;
        /***/ 
    }),
    /* 86 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 87 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88), getRawTag = __webpack_require__(92), objectToString = __webpack_require__(93);
        /** `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;
        /***/ 
    }),
    /* 88 */
    /***/ (function (module, exports, __webpack_require__) {
        var root = __webpack_require__(89);
        /** Built-in value references. */
        var Symbol = root.Symbol;
        module.exports = Symbol;
        /***/ 
    }),
    /* 89 */
    /***/ (function (module, exports, __webpack_require__) {
        var freeGlobal = __webpack_require__(90);
        /** 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;
        /***/ 
    }),
    /* 90 */
    /***/ (function (module, exports, __webpack_require__) {
        /* WEBPACK VAR INJECTION */ (function (global) {
            var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
            module.exports = freeGlobal;
            /* WEBPACK VAR INJECTION */ 
        }.call(this, __webpack_require__(91)));
        /***/ 
    }),
    /* 91 */
    /***/ (function (module, exports) {
        var g;
        // This works in non-strict mode
        g = (function () {
            return this;
        })();
        try {
            // This works if eval is allowed (see CSP)
            g = g || Function("return this")() || (1, eval)("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;
        /***/ 
    }),
    /* 92 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88);
        /** 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;
        /***/ 
    }),
    /* 93 */
    /***/ (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;
        /***/ 
    }),
    /* 94 */
    /***/ (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;
        /***/ 
    }),
    /* 95 */
    /***/ (function (module, exports, __webpack_require__) {
        var memoizeCapped = __webpack_require__(96);
        /** 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;
        /***/ 
    }),
    /* 96 */
    /***/ (function (module, exports, __webpack_require__) {
        var memoize = __webpack_require__(97);
        /** 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;
        /***/ 
    }),
    /* 97 */
    /***/ (function (module, exports, __webpack_require__) {
        var MapCache = __webpack_require__(98);
        /** 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;
        module.exports = memoize;
        /***/ 
    }),
    /* 98 */
    /***/ (function (module, exports, __webpack_require__) {
        var mapCacheClear = __webpack_require__(99), mapCacheDelete = __webpack_require__(124), mapCacheGet = __webpack_require__(127), mapCacheHas = __webpack_require__(128), mapCacheSet = __webpack_require__(129);
        /**
         * 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;
        /***/ 
    }),
    /* 99 */
    /***/ (function (module, exports, __webpack_require__) {
        var Hash = __webpack_require__(100), ListCache = __webpack_require__(115), Map = __webpack_require__(123);
        /**
         * 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;
        /***/ 
    }),
    /* 100 */
    /***/ (function (module, exports, __webpack_require__) {
        var hashClear = __webpack_require__(101), hashDelete = __webpack_require__(111), hashGet = __webpack_require__(112), hashHas = __webpack_require__(113), hashSet = __webpack_require__(114);
        /**
         * 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;
        /***/ 
    }),
    /* 101 */
    /***/ (function (module, exports, __webpack_require__) {
        var nativeCreate = __webpack_require__(102);
        /**
         * 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;
        /***/ 
    }),
    /* 102 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103);
        /* Built-in method references that are verified to be native. */
        var nativeCreate = getNative(Object, 'create');
        module.exports = nativeCreate;
        /***/ 
    }),
    /* 103 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsNative = __webpack_require__(104), getValue = __webpack_require__(110);
        /**
         * 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;
        /***/ 
    }),
    /* 104 */
    /***/ (function (module, exports, __webpack_require__) {
        var isFunction = __webpack_require__(105), isMasked = __webpack_require__(107), isObject = __webpack_require__(106), toSource = __webpack_require__(109);
        /**
         * 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;
        /***/ 
    }),
    /* 105 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObject = __webpack_require__(106);
        /** `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;
        /***/ 
    }),
    /* 106 */
    /***/ (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;
        /***/ 
    }),
    /* 107 */
    /***/ (function (module, exports, __webpack_require__) {
        var coreJsData = __webpack_require__(108);
        /** 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;
        /***/ 
    }),
    /* 108 */
    /***/ (function (module, exports, __webpack_require__) {
        var root = __webpack_require__(89);
        /** Used to detect overreaching core-js shims. */
        var coreJsData = root['__core-js_shared__'];
        module.exports = coreJsData;
        /***/ 
    }),
    /* 109 */
    /***/ (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;
        /***/ 
    }),
    /* 110 */
    /***/ (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;
        /***/ 
    }),
    /* 111 */
    /***/ (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;
        /***/ 
    }),
    /* 112 */
    /***/ (function (module, exports, __webpack_require__) {
        var nativeCreate = __webpack_require__(102);
        /** 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;
        /***/ 
    }),
    /* 113 */
    /***/ (function (module, exports, __webpack_require__) {
        var nativeCreate = __webpack_require__(102);
        /** 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;
        /***/ 
    }),
    /* 114 */
    /***/ (function (module, exports, __webpack_require__) {
        var nativeCreate = __webpack_require__(102);
        /** 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;
        /***/ 
    }),
    /* 115 */
    /***/ (function (module, exports, __webpack_require__) {
        var listCacheClear = __webpack_require__(116), listCacheDelete = __webpack_require__(117), listCacheGet = __webpack_require__(120), listCacheHas = __webpack_require__(121), listCacheSet = __webpack_require__(122);
        /**
         * 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;
        /***/ 
    }),
    /* 116 */
    /***/ (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;
        /***/ 
    }),
    /* 117 */
    /***/ (function (module, exports, __webpack_require__) {
        var assocIndexOf = __webpack_require__(118);
        /** 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;
        /***/ 
    }),
    /* 118 */
    /***/ (function (module, exports, __webpack_require__) {
        var eq = __webpack_require__(119);
        /**
         * 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;
        /***/ 
    }),
    /* 119 */
    /***/ (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;
        /***/ 
    }),
    /* 120 */
    /***/ (function (module, exports, __webpack_require__) {
        var assocIndexOf = __webpack_require__(118);
        /**
         * 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;
        /***/ 
    }),
    /* 121 */
    /***/ (function (module, exports, __webpack_require__) {
        var assocIndexOf = __webpack_require__(118);
        /**
         * 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;
        /***/ 
    }),
    /* 122 */
    /***/ (function (module, exports, __webpack_require__) {
        var assocIndexOf = __webpack_require__(118);
        /**
         * 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;
        /***/ 
    }),
    /* 123 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103), root = __webpack_require__(89);
        /* Built-in method references that are verified to be native. */
        var Map = getNative(root, 'Map');
        module.exports = Map;
        /***/ 
    }),
    /* 124 */
    /***/ (function (module, exports, __webpack_require__) {
        var getMapData = __webpack_require__(125);
        /**
         * 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;
        /***/ 
    }),
    /* 125 */
    /***/ (function (module, exports, __webpack_require__) {
        var isKeyable = __webpack_require__(126);
        /**
         * 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;
        /***/ 
    }),
    /* 126 */
    /***/ (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;
        /***/ 
    }),
    /* 127 */
    /***/ (function (module, exports, __webpack_require__) {
        var getMapData = __webpack_require__(125);
        /**
         * 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;
        /***/ 
    }),
    /* 128 */
    /***/ (function (module, exports, __webpack_require__) {
        var getMapData = __webpack_require__(125);
        /**
         * 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;
        /***/ 
    }),
    /* 129 */
    /***/ (function (module, exports, __webpack_require__) {
        var getMapData = __webpack_require__(125);
        /**
         * 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;
        /***/ 
    }),
    /* 130 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseToString = __webpack_require__(131);
        /**
         * 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;
        /***/ 
    }),
    /* 131 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88), arrayMap = __webpack_require__(132), isArray = __webpack_require__(84), isSymbol = __webpack_require__(86);
        /** 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;
        /***/ 
    }),
    /* 132 */
    /***/ (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;
        /***/ 
    }),
    /* 133 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsArguments = __webpack_require__(134), isObjectLike = __webpack_require__(94);
        /** 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;
        /***/ 
    }),
    /* 134 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 135 */
    /***/ (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;
        /***/ 
    }),
    /* 136 */
    /***/ (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;
        /***/ 
    }),
    /* 137 */
    /***/ (function (module, exports, __webpack_require__) {
        var isSymbol = __webpack_require__(86);
        /** 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;
        /***/ 
    }),
    /* 138 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseInvoke = __webpack_require__(139), baseRest = __webpack_require__(145);
        /**
         * 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);
        module.exports = invoke;
        /***/ 
    }),
    /* 139 */
    /***/ (function (module, exports, __webpack_require__) {
        var apply = __webpack_require__(140), castPath = __webpack_require__(83), last = __webpack_require__(141), parent = __webpack_require__(142), toKey = __webpack_require__(137);
        /**
         * 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);
        }
        module.exports = baseInvoke;
        /***/ 
    }),
    /* 140 */
    /***/ (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;
        /***/ 
    }),
    /* 141 */
    /***/ (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;
        /***/ 
    }),
    /* 142 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGet = __webpack_require__(143), baseSlice = __webpack_require__(144);
        /**
         * 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));
        }
        module.exports = parent;
        /***/ 
    }),
    /* 143 */
    /***/ (function (module, exports, __webpack_require__) {
        var castPath = __webpack_require__(83), toKey = __webpack_require__(137);
        /**
         * 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;
        /***/ 
    }),
    /* 144 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = baseSlice;
        /***/ 
    }),
    /* 145 */
    /***/ (function (module, exports, __webpack_require__) {
        var identity = __webpack_require__(146), overRest = __webpack_require__(147), setToString = __webpack_require__(148);
        /**
         * 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;
        /***/ 
    }),
    /* 146 */
    /***/ (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;
        /***/ 
    }),
    /* 147 */
    /***/ (function (module, exports, __webpack_require__) {
        var apply = __webpack_require__(140);
        /* 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;
        /***/ 
    }),
    /* 148 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSetToString = __webpack_require__(149), shortOut = __webpack_require__(152);
        /**
         * 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;
        /***/ 
    }),
    /* 149 */
    /***/ (function (module, exports, __webpack_require__) {
        var constant = __webpack_require__(150), defineProperty = __webpack_require__(151), identity = __webpack_require__(146);
        /**
         * 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;
        /***/ 
    }),
    /* 150 */
    /***/ (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;
        /***/ 
    }),
    /* 151 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103);
        var defineProperty = (function () {
            try {
                var func = getNative(Object, 'defineProperty');
                func({}, '', {});
                return func;
            }
            catch (e) { }
        }());
        module.exports = defineProperty;
        /***/ 
    }),
    /* 152 */
    /***/ (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;
        /***/ 
    }),
    /* 153 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _AutoControlledComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(154);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AutoControlledComponent", function () { return _AutoControlledComponent__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /* harmony import */ var _childMapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(246);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getChildMapping", function () { return _childMapping__WEBPACK_IMPORTED_MODULE_1__["getChildMapping"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeChildMappings", function () { return _childMapping__WEBPACK_IMPORTED_MODULE_1__["mergeChildMappings"]; });
        /* harmony import */ var _childrenUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(256);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "childrenUtils", function () { return _childrenUtils__WEBPACK_IMPORTED_MODULE_2__; });
        /* harmony import */ var _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(263);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useKeyOnly", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useKeyOnly"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useKeyOrValueAndKey", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useKeyOrValueAndKey"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useValueAndKey", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useValueAndKey"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useMultipleProp", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useMultipleProp"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useTextAlignProp", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useTextAlignProp"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useVerticalAlignProp", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useVerticalAlignProp"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useWidthProp", function () { return _classNameBuilders__WEBPACK_IMPORTED_MODULE_3__["useWidthProp"]; });
        /* harmony import */ var _customPropTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(265);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "customPropTypes", function () { return _customPropTypes__WEBPACK_IMPORTED_MODULE_4__; });
        /* harmony import */ var _debug__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(392);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debug", function () { return _debug__WEBPACK_IMPORTED_MODULE_5__["debug"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeDebugger", function () { return _debug__WEBPACK_IMPORTED_MODULE_5__["makeDebugger"]; });
        /* harmony import */ var _eventStack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(394);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStack", function () { return _eventStack__WEBPACK_IMPORTED_MODULE_6__["default"]; });
        /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(398);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createShorthand", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createShorthand"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createShorthandFactory", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createShorthandFactory"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLDivision", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLDivision"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLIframe", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLIframe"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLImage", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLImage"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLInput", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLInput"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLLabel", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLLabel"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHTMLParagraph", function () { return _factories__WEBPACK_IMPORTED_MODULE_7__["createHTMLParagraph"]; });
        /* harmony import */ var _getUnhandledProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(406);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUnhandledProps", function () { return _getUnhandledProps__WEBPACK_IMPORTED_MODULE_8__["default"]; });
        /* harmony import */ var _getElementType__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(407);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getElementType", function () { return _getElementType__WEBPACK_IMPORTED_MODULE_9__["default"]; });
        /* harmony import */ var _htmlPropsUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(408);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "htmlInputAttrs", function () { return _htmlPropsUtils__WEBPACK_IMPORTED_MODULE_10__["htmlInputAttrs"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "htmlInputEvents", function () { return _htmlPropsUtils__WEBPACK_IMPORTED_MODULE_10__["htmlInputEvents"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "htmlInputProps", function () { return _htmlPropsUtils__WEBPACK_IMPORTED_MODULE_10__["htmlInputProps"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partitionHTMLProps", function () { return _htmlPropsUtils__WEBPACK_IMPORTED_MODULE_10__["partitionHTMLProps"]; });
        /* harmony import */ var _isBrowser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(393);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBrowser", function () { return _isBrowser__WEBPACK_IMPORTED_MODULE_11__["default"]; });
        /* harmony import */ var _doesNodeContainClick__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(412);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doesNodeContainClick", function () { return _doesNodeContainClick__WEBPACK_IMPORTED_MODULE_12__["default"]; });
        /* harmony import */ var _leven__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(391);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "leven", function () { return _leven__WEBPACK_IMPORTED_MODULE_13__["default"]; });
        /* harmony import */ var _createPaginationItems__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(417);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPaginationItems", function () { return _createPaginationItems__WEBPACK_IMPORTED_MODULE_14__["default"]; });
        /* harmony import */ var _SUI__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(426);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "SUI", function () { return _SUI__WEBPACK_IMPORTED_MODULE_15__; });
        /* harmony import */ var _numberToWord__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(264);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "numberToWordMap", function () { return _numberToWord__WEBPACK_IMPORTED_MODULE_16__["numberToWordMap"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "numberToWord", function () { return _numberToWord__WEBPACK_IMPORTED_MODULE_16__["numberToWord"]; });
        /* harmony import */ var _normalizeOffset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(427);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "normalizeOffset", function () { return _normalizeOffset__WEBPACK_IMPORTED_MODULE_17__["default"]; });
        /* harmony import */ var _normalizeTransitionDuration__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(428);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "normalizeTransitionDuration", function () { return _normalizeTransitionDuration__WEBPACK_IMPORTED_MODULE_18__["default"]; });
        /* harmony import */ var _objectDiff__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(429);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "objectDiff", function () { return _objectDiff__WEBPACK_IMPORTED_MODULE_19__["default"]; });
        /* harmony import */ var _shallowEqual__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(432);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shallowEqual", function () { return _shallowEqual__WEBPACK_IMPORTED_MODULE_20__["default"]; });
        /***/ 
    }),
    /* 154 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAutoControlledStateValue", function () { return getAutoControlledStateValue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return AutoControlledComponent; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(156);
        /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(174);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_startsWith__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(175);
        /* harmony import */ var lodash_startsWith__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_startsWith__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(180);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(238);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(187);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_intersection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(239);
        /* harmony import */ var lodash_intersection__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_intersection__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(242);
        /* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(lodash_each__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_18__);
        var getDefaultPropName = function getDefaultPropName(prop) {
            return "default".concat(prop[0].toUpperCase() + prop.slice(1));
        };
        /**
         * Return the auto controlled state value for a give prop. The initial value is chosen in this order:
         *  - regular props
         *  - then, default props
         *  - then, initial state
         *  - then, `checked` defaults to false
         *  - then, `value` defaults to '' or [] if props.multiple
         *  - else, undefined
         *
         *  @param {string} propName A prop name
         *  @param {object} [props] A props object
         *  @param {object} [state] A state object
         *  @param {boolean} [includeDefaults=false] Whether or not to heed the default props or initial state
         */
        var getAutoControlledStateValue = function getAutoControlledStateValue(propName, props, state) {
            var includeDefaults = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
            // regular props
            var propValue = props[propName];
            if (propValue !== undefined)
                return propValue;
            if (includeDefaults) {
                // defaultProps
                var defaultProp = props[getDefaultPropName(propName)];
                if (defaultProp !== undefined)
                    return defaultProp; // initial state - state may be null or undefined
                if (state) {
                    var initialState = state[propName];
                    if (initialState !== undefined)
                        return initialState;
                }
            } // React doesn't allow changing from uncontrolled to controlled components,
            // default checked/value if they were not present.
            if (propName === 'checked')
                return false;
            if (propName === 'value')
                return props.multiple ? [] : ''; // otherwise, undefined
        };
        var AutoControlledComponent = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(AutoControlledComponent, _Component);
            function AutoControlledComponent() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AutoControlledComponent);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(AutoControlledComponent)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "trySetState", function (maybeState, state) {
                    var autoControlledProps = _this.constructor.autoControlledProps;
                    if (true) {
                        var name = _this.constructor.name; // warn about failed attempts to setState for keys not listed in autoControlledProps
                        var illegalKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_8___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_13___default()(maybeState), autoControlledProps);
                        if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default()(illegalKeys)) {
                            console.error(["".concat(name, " called trySetState() with controlled props: \"").concat(illegalKeys, "\"."), 'State will not be set.', 'Only props in static autoControlledProps will be set on state.'].join(' '));
                        }
                    }
                    var newState = Object.keys(maybeState).reduce(function (acc, prop) {
                        // ignore props defined by the parent
                        if (_this.props[prop] !== undefined)
                            return acc; // ignore props not listed in auto controlled props
                        if (autoControlledProps.indexOf(prop) === -1)
                            return acc;
                        acc[prop] = maybeState[prop];
                        return acc;
                    }, {});
                    if (state)
                        newState = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, newState, state);
                    if (Object.keys(newState).length > 0)
                        _this.setState(newState);
                });
                var _autoControlledProps = _this.constructor.autoControlledProps;
                var _state = lodash_invoke__WEBPACK_IMPORTED_MODULE_17___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), 'getInitialAutoControlledState', _this.props) || {};
                if (true) {
                    var _this$constructor = _this.constructor, defaultProps = _this$constructor.defaultProps, name = _this$constructor.name, propTypes = _this$constructor.propTypes; // require static autoControlledProps
                    if (!_autoControlledProps) {
                        console.error("Auto controlled ".concat(name, " must specify a static autoControlledProps array."));
                    } // require propTypes
                    lodash_each__WEBPACK_IMPORTED_MODULE_16___default()(_autoControlledProps, function (prop) {
                        var defaultProp = getDefaultPropName(prop); // regular prop
                        if (!lodash_has__WEBPACK_IMPORTED_MODULE_15___default()(propTypes, defaultProp)) {
                            console.error("".concat(name, " is missing \"").concat(defaultProp, "\" propTypes validation for auto controlled prop \"").concat(prop, "\"."));
                        } // its default prop
                        if (!lodash_has__WEBPACK_IMPORTED_MODULE_15___default()(propTypes, prop)) {
                            console.error("".concat(name, " is missing propTypes validation for auto controlled prop \"").concat(prop, "\"."));
                        }
                    }); // prevent autoControlledProps in defaultProps
                    //
                    // When setting state, auto controlled props values always win (so the parent can manage them).
                    // It is not reasonable to decipher the difference between props from the parent and defaultProps.
                    // Allowing defaultProps results in trySetState always deferring to the defaultProp value.
                    // Auto controlled props also listed in defaultProps can never be updated.
                    //
                    // To set defaults for an AutoControlled prop, you can set the initial state in the
                    // constructor or by using an ES7 property initializer:
                    // https://babeljs.io/blog/2015/06/07/react-on-es6-plus#property-initializers
                    var illegalDefaults = lodash_intersection__WEBPACK_IMPORTED_MODULE_14___default()(_autoControlledProps, lodash_keys__WEBPACK_IMPORTED_MODULE_13___default()(defaultProps));
                    if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default()(illegalDefaults)) {
                        console.error(['Do not set defaultProps for autoControlledProps. You can set defaults by', 'setting state in the constructor or using an ES7 property initializer', '(https://babeljs.io/blog/2015/06/07/react-on-es6-plus#property-initializers)', "See ".concat(name, " props: \"").concat(illegalDefaults, "\".")].join(' '));
                    } // prevent listing defaultProps in autoControlledProps
                    //
                    // Default props are automatically handled.
                    // Listing defaults in autoControlledProps would result in allowing defaultDefaultValue props.
                    var illegalAutoControlled = lodash_filter__WEBPACK_IMPORTED_MODULE_11___default()(_autoControlledProps, function (prop) {
                        return lodash_startsWith__WEBPACK_IMPORTED_MODULE_10___default()(prop, 'default');
                    });
                    if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default()(illegalAutoControlled)) {
                        console.error(['Do not add default props to autoControlledProps.', 'Default props are automatically handled.', "See ".concat(name, " autoControlledProps: \"").concat(illegalAutoControlled, "\".")].join(' '));
                    }
                } // Auto controlled props are copied to state.
                // Set initial state by copying auto controlled props to state.
                // Also look for the default prop for any auto controlled props (foo => defaultFoo)
                // so we can set initial values from defaults.
                var initialAutoControlledState = _autoControlledProps.reduce(function (acc, prop) {
                    acc[prop] = getAutoControlledStateValue(prop, _this.props, _state, true);
                    if (true) {
                        var defaultPropName = getDefaultPropName(prop);
                        var _name = _this.constructor.name; // prevent defaultFoo={} along side foo={}
                        if (!lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9___default()(_this.props[defaultPropName]) && !lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9___default()(_this.props[prop])) {
                            console.error("".concat(_name, " prop \"").concat(prop, "\" is auto controlled. Specify either ").concat(defaultPropName, " or ").concat(prop, ", but not both."));
                        }
                    }
                    return acc;
                }, {});
                _this.state = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, _state, initialAutoControlledState);
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(AutoControlledComponent, [{
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        var _this2 = this;
                        var autoControlledProps = this.constructor.autoControlledProps; // Solve the next state for autoControlledProps
                        var newState = autoControlledProps.reduce(function (acc, prop) {
                            var isNextUndefined = lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9___default()(nextProps[prop]);
                            var propWasRemoved = !lodash_isUndefined__WEBPACK_IMPORTED_MODULE_9___default()(_this2.props[prop]) && isNextUndefined; // if next is defined then use its value
                            if (!isNextUndefined)
                                acc[prop] = nextProps[prop]; // reinitialize state for props just removed / set undefined
                            else if (propWasRemoved)
                                acc[prop] = getAutoControlledStateValue(prop, nextProps);
                            return acc;
                        }, {});
                        if (Object.keys(newState).length > 0)
                            this.setState(newState);
                    }
                    /**
                     * Safely attempt to set state for props that might be controlled by the user.
                     * Second argument is a state object that is always passed to setState.
                     * @param {object} maybeState State that corresponds to controlled props.
                     * @param {object} [state] Actual state, useful when you also need to setState.
                     */
                }]);
            return AutoControlledComponent;
        }(react__WEBPACK_IMPORTED_MODULE_18__["Component"]);
        /***/ 
    }),
    /* 155 */
    /***/ (function (module, exports, __webpack_require__) {
        var defineProperty = __webpack_require__(79);
        function _objectSpread(target) {
            for (var i = 1; i < arguments.length; i++) {
                var source = arguments[i] != null ? arguments[i] : {};
                var ownKeys = Object.keys(source);
                if (typeof Object.getOwnPropertySymbols === 'function') {
                    ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
                        return Object.getOwnPropertyDescriptor(source, sym).enumerable;
                    }));
                }
                ownKeys.forEach(function (key) {
                    defineProperty(target, key, source[key]);
                });
            }
            return target;
        }
        module.exports = _objectSpread;
        /***/ 
    }),
    /* 156 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseDifference = __webpack_require__(157), baseFlatten = __webpack_require__(169), baseRest = __webpack_require__(145), isArrayLikeObject = __webpack_require__(172);
        /**
         * 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))
                : [];
        });
        module.exports = difference;
        /***/ 
    }),
    /* 157 */
    /***/ (function (module, exports, __webpack_require__) {
        var SetCache = __webpack_require__(158), arrayIncludes = __webpack_require__(161), arrayIncludesWith = __webpack_require__(166), arrayMap = __webpack_require__(132), baseUnary = __webpack_require__(167), cacheHas = __webpack_require__(168);
        /** Used as the size to enable large array optimizations. */
        var LARGE_ARRAY_SIZE = 200;
        /**
         * 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;
        }
        module.exports = baseDifference;
        /***/ 
    }),
    /* 158 */
    /***/ (function (module, exports, __webpack_require__) {
        var MapCache = __webpack_require__(98), setCacheAdd = __webpack_require__(159), setCacheHas = __webpack_require__(160);
        /**
         *
         * 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;
        /***/ 
    }),
    /* 159 */
    /***/ (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;
        /***/ 
    }),
    /* 160 */
    /***/ (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;
        /***/ 
    }),
    /* 161 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIndexOf = __webpack_require__(162);
        /**
         * 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;
        /***/ 
    }),
    /* 162 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFindIndex = __webpack_require__(163), baseIsNaN = __webpack_require__(164), strictIndexOf = __webpack_require__(165);
        /**
         * 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;
        /***/ 
    }),
    /* 163 */
    /***/ (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;
        /***/ 
    }),
    /* 164 */
    /***/ (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;
        /***/ 
    }),
    /* 165 */
    /***/ (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;
        /***/ 
    }),
    /* 166 */
    /***/ (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;
        /***/ 
    }),
    /* 167 */
    /***/ (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;
        /***/ 
    }),
    /* 168 */
    /***/ (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;
        /***/ 
    }),
    /* 169 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayPush = __webpack_require__(170), isFlattenable = __webpack_require__(171);
        /**
         * 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;
        /***/ 
    }),
    /* 170 */
    /***/ (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;
        /***/ 
    }),
    /* 171 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88), isArguments = __webpack_require__(133), isArray = __webpack_require__(84);
        /** 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;
        /***/ 
    }),
    /* 172 */
    /***/ (function (module, exports, __webpack_require__) {
        var isArrayLike = __webpack_require__(173), isObjectLike = __webpack_require__(94);
        /**
         * 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;
        /***/ 
    }),
    /* 173 */
    /***/ (function (module, exports, __webpack_require__) {
        var isFunction = __webpack_require__(105), isLength = __webpack_require__(136);
        /**
         * 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;
        /***/ 
    }),
    /* 174 */
    /***/ (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;
        /***/ 
    }),
    /* 175 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseClamp = __webpack_require__(176), baseToString = __webpack_require__(131), toInteger = __webpack_require__(177), toString = __webpack_require__(130);
        /**
         * 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;
        }
        module.exports = startsWith;
        /***/ 
    }),
    /* 176 */
    /***/ (function (module, exports) {
        /**
         * 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 = baseClamp;
        /***/ 
    }),
    /* 177 */
    /***/ (function (module, exports, __webpack_require__) {
        var toFinite = __webpack_require__(178);
        /**
         * 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;
        /***/ 
    }),
    /* 178 */
    /***/ (function (module, exports, __webpack_require__) {
        var toNumber = __webpack_require__(179);
        /** 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;
        /***/ 
    }),
    /* 179 */
    /***/ (function (module, exports, __webpack_require__) {
        var isObject = __webpack_require__(106), isSymbol = __webpack_require__(86);
        /** 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;
        /***/ 
    }),
    /* 180 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayFilter = __webpack_require__(181), baseFilter = __webpack_require__(182), baseIteratee = __webpack_require__(201), isArray = __webpack_require__(84);
        /**
         * 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']
         */
        function filter(collection, predicate) {
            var func = isArray(collection) ? arrayFilter : baseFilter;
            return func(collection, baseIteratee(predicate, 3));
        }
        module.exports = filter;
        /***/ 
    }),
    /* 181 */
    /***/ (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;
        /***/ 
    }),
    /* 182 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseEach = __webpack_require__(183);
        /**
         * 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;
        /***/ 
    }),
    /* 183 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseForOwn = __webpack_require__(184), createBaseEach = __webpack_require__(200);
        /**
         * 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;
        /***/ 
    }),
    /* 184 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFor = __webpack_require__(185), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 185 */
    /***/ (function (module, exports, __webpack_require__) {
        var createBaseFor = __webpack_require__(186);
        /**
         * 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;
        /***/ 
    }),
    /* 186 */
    /***/ (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;
        /***/ 
    }),
    /* 187 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayLikeKeys = __webpack_require__(188), baseKeys = __webpack_require__(196), isArrayLike = __webpack_require__(173);
        /**
         * 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;
        /***/ 
    }),
    /* 188 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseTimes = __webpack_require__(189), isArguments = __webpack_require__(133), isArray = __webpack_require__(84), isBuffer = __webpack_require__(190), isIndex = __webpack_require__(135), isTypedArray = __webpack_require__(193);
        /** 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;
        /***/ 
    }),
    /* 189 */
    /***/ (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;
        /***/ 
    }),
    /* 190 */
    /***/ (function (module, exports, __webpack_require__) {
        /* WEBPACK VAR INJECTION */ (function (module) {
            var root = __webpack_require__(89), stubFalse = __webpack_require__(192);
            /** Detect free variable `exports`. */
            var freeExports = typeof exports == 'object' && 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__(191)(module)));
        /***/ 
    }),
    /* 191 */
    /***/ (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;
        };
        /***/ 
    }),
    /* 192 */
    /***/ (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;
        /***/ 
    }),
    /* 193 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsTypedArray = __webpack_require__(194), baseUnary = __webpack_require__(167), nodeUtil = __webpack_require__(195);
        /* 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;
        /***/ 
    }),
    /* 194 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isLength = __webpack_require__(136), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 195 */
    /***/ (function (module, exports, __webpack_require__) {
        /* WEBPACK VAR INJECTION */ (function (module) {
            var freeGlobal = __webpack_require__(90);
            /** Detect free variable `exports`. */
            var freeExports = typeof exports == 'object' && 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__(191)(module)));
        /***/ 
    }),
    /* 196 */
    /***/ (function (module, exports, __webpack_require__) {
        var isPrototype = __webpack_require__(197), nativeKeys = __webpack_require__(198);
        /** 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;
        /***/ 
    }),
    /* 197 */
    /***/ (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;
        /***/ 
    }),
    /* 198 */
    /***/ (function (module, exports, __webpack_require__) {
        var overArg = __webpack_require__(199);
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeKeys = overArg(Object.keys, Object);
        module.exports = nativeKeys;
        /***/ 
    }),
    /* 199 */
    /***/ (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;
        /***/ 
    }),
    /* 200 */
    /***/ (function (module, exports, __webpack_require__) {
        var isArrayLike = __webpack_require__(173);
        /**
         * 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;
        /***/ 
    }),
    /* 201 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseMatches = __webpack_require__(202), baseMatchesProperty = __webpack_require__(231), identity = __webpack_require__(146), isArray = __webpack_require__(84), property = __webpack_require__(235);
        /**
         * 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;
        /***/ 
    }),
    /* 202 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsMatch = __webpack_require__(203), getMatchData = __webpack_require__(228), matchesStrictComparable = __webpack_require__(230);
        /**
         * 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;
        /***/ 
    }),
    /* 203 */
    /***/ (function (module, exports, __webpack_require__) {
        var Stack = __webpack_require__(204), baseIsEqual = __webpack_require__(210);
        /** 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;
        /***/ 
    }),
    /* 204 */
    /***/ (function (module, exports, __webpack_require__) {
        var ListCache = __webpack_require__(115), stackClear = __webpack_require__(205), stackDelete = __webpack_require__(206), stackGet = __webpack_require__(207), stackHas = __webpack_require__(208), stackSet = __webpack_require__(209);
        /**
         * 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;
        /***/ 
    }),
    /* 205 */
    /***/ (function (module, exports, __webpack_require__) {
        var ListCache = __webpack_require__(115);
        /**
         * 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;
        /***/ 
    }),
    /* 206 */
    /***/ (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;
        /***/ 
    }),
    /* 207 */
    /***/ (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;
        /***/ 
    }),
    /* 208 */
    /***/ (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;
        /***/ 
    }),
    /* 209 */
    /***/ (function (module, exports, __webpack_require__) {
        var ListCache = __webpack_require__(115), Map = __webpack_require__(123), MapCache = __webpack_require__(98);
        /** 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;
        /***/ 
    }),
    /* 210 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsEqualDeep = __webpack_require__(211), isObjectLike = __webpack_require__(94);
        /**
         * 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;
        /***/ 
    }),
    /* 211 */
    /***/ (function (module, exports, __webpack_require__) {
        var Stack = __webpack_require__(204), equalArrays = __webpack_require__(212), equalByTag = __webpack_require__(214), equalObjects = __webpack_require__(218), getTag = __webpack_require__(223), isArray = __webpack_require__(84), isBuffer = __webpack_require__(190), isTypedArray = __webpack_require__(193);
        /** 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;
        /***/ 
    }),
    /* 212 */
    /***/ (function (module, exports, __webpack_require__) {
        var SetCache = __webpack_require__(158), arraySome = __webpack_require__(213), cacheHas = __webpack_require__(168);
        /** 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;
            }
            // Assume cyclic values are equal.
            var stacked = stack.get(array);
            if (stacked && stack.get(other)) {
                return stacked == other;
            }
            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;
        /***/ 
    }),
    /* 213 */
    /***/ (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;
        /***/ 
    }),
    /* 214 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88), Uint8Array = __webpack_require__(215), eq = __webpack_require__(119), equalArrays = __webpack_require__(212), mapToArray = __webpack_require__(216), setToArray = __webpack_require__(217);
        /** 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;
        /***/ 
    }),
    /* 215 */
    /***/ (function (module, exports, __webpack_require__) {
        var root = __webpack_require__(89);
        /** Built-in value references. */
        var Uint8Array = root.Uint8Array;
        module.exports = Uint8Array;
        /***/ 
    }),
    /* 216 */
    /***/ (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;
        /***/ 
    }),
    /* 217 */
    /***/ (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;
        /***/ 
    }),
    /* 218 */
    /***/ (function (module, exports, __webpack_require__) {
        var getAllKeys = __webpack_require__(219);
        /** 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;
                }
            }
            // Assume cyclic values are equal.
            var stacked = stack.get(object);
            if (stacked && stack.get(other)) {
                return stacked == other;
            }
            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;
        /***/ 
    }),
    /* 219 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetAllKeys = __webpack_require__(220), getSymbols = __webpack_require__(221), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 220 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayPush = __webpack_require__(170), isArray = __webpack_require__(84);
        /**
         * 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;
        /***/ 
    }),
    /* 221 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayFilter = __webpack_require__(181), stubArray = __webpack_require__(222);
        /** 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;
        /***/ 
    }),
    /* 222 */
    /***/ (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;
        /***/ 
    }),
    /* 223 */
    /***/ (function (module, exports, __webpack_require__) {
        var DataView = __webpack_require__(224), Map = __webpack_require__(123), Promise = __webpack_require__(225), Set = __webpack_require__(226), WeakMap = __webpack_require__(227), baseGetTag = __webpack_require__(87), toSource = __webpack_require__(109);
        /** `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;
        /***/ 
    }),
    /* 224 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103), root = __webpack_require__(89);
        /* Built-in method references that are verified to be native. */
        var DataView = getNative(root, 'DataView');
        module.exports = DataView;
        /***/ 
    }),
    /* 225 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103), root = __webpack_require__(89);
        /* Built-in method references that are verified to be native. */
        var Promise = getNative(root, 'Promise');
        module.exports = Promise;
        /***/ 
    }),
    /* 226 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103), root = __webpack_require__(89);
        /* Built-in method references that are verified to be native. */
        var Set = getNative(root, 'Set');
        module.exports = Set;
        /***/ 
    }),
    /* 227 */
    /***/ (function (module, exports, __webpack_require__) {
        var getNative = __webpack_require__(103), root = __webpack_require__(89);
        /* Built-in method references that are verified to be native. */
        var WeakMap = getNative(root, 'WeakMap');
        module.exports = WeakMap;
        /***/ 
    }),
    /* 228 */
    /***/ (function (module, exports, __webpack_require__) {
        var isStrictComparable = __webpack_require__(229), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 229 */
    /***/ (function (module, exports, __webpack_require__) {
        var isObject = __webpack_require__(106);
        /**
         * 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;
        /***/ 
    }),
    /* 230 */
    /***/ (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;
        /***/ 
    }),
    /* 231 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsEqual = __webpack_require__(210), get = __webpack_require__(232), hasIn = __webpack_require__(233), isKey = __webpack_require__(85), isStrictComparable = __webpack_require__(229), matchesStrictComparable = __webpack_require__(230), toKey = __webpack_require__(137);
        /** 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;
        /***/ 
    }),
    /* 232 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGet = __webpack_require__(143);
        /**
         * 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;
        /***/ 
    }),
    /* 233 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseHasIn = __webpack_require__(234), hasPath = __webpack_require__(82);
        /**
         * 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;
        /***/ 
    }),
    /* 234 */
    /***/ (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;
        /***/ 
    }),
    /* 235 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseProperty = __webpack_require__(236), basePropertyDeep = __webpack_require__(237), isKey = __webpack_require__(85), toKey = __webpack_require__(137);
        /**
         * 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;
        /***/ 
    }),
    /* 236 */
    /***/ (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;
        /***/ 
    }),
    /* 237 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGet = __webpack_require__(143);
        /**
         * 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;
        /***/ 
    }),
    /* 238 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseKeys = __webpack_require__(196), getTag = __webpack_require__(223), isArguments = __webpack_require__(133), isArray = __webpack_require__(84), isArrayLike = __webpack_require__(173), isBuffer = __webpack_require__(190), isPrototype = __webpack_require__(197), isTypedArray = __webpack_require__(193);
        /** `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;
        /***/ 
    }),
    /* 239 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132), baseIntersection = __webpack_require__(240), baseRest = __webpack_require__(145), castArrayLikeObject = __webpack_require__(241);
        /**
         * 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)
                : [];
        });
        module.exports = intersection;
        /***/ 
    }),
    /* 240 */
    /***/ (function (module, exports, __webpack_require__) {
        var SetCache = __webpack_require__(158), arrayIncludes = __webpack_require__(161), arrayIncludesWith = __webpack_require__(166), arrayMap = __webpack_require__(132), baseUnary = __webpack_require__(167), cacheHas = __webpack_require__(168);
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMin = Math.min;
        /**
         * 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;
        }
        module.exports = baseIntersection;
        /***/ 
    }),
    /* 241 */
    /***/ (function (module, exports, __webpack_require__) {
        var isArrayLikeObject = __webpack_require__(172);
        /**
         * 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 : [];
        }
        module.exports = castArrayLikeObject;
        /***/ 
    }),
    /* 242 */
    /***/ (function (module, exports, __webpack_require__) {
        module.exports = __webpack_require__(243);
        /***/ 
    }),
    /* 243 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayEach = __webpack_require__(244), baseEach = __webpack_require__(183), castFunction = __webpack_require__(245), isArray = __webpack_require__(84);
        /**
         * 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;
        /***/ 
    }),
    /* 244 */
    /***/ (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;
        /***/ 
    }),
    /* 245 */
    /***/ (function (module, exports, __webpack_require__) {
        var identity = __webpack_require__(146);
        /**
         * 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;
        /***/ 
    }),
    /* 246 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildMapping", function () { return getChildMapping; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeChildMappings", function () { return mergeChildMappings; });
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(187);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(180);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var lodash_keyBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(251);
        /* harmony import */ var lodash_keyBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_keyBy__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
        /**
         * Given `this.props.children`, return an object mapping key to child.
         *
         * @param {object} children Element's children
         * @return {object} Mapping of key to child
         */
        var getChildMapping = function getChildMapping(children) {
            return lodash_keyBy__WEBPACK_IMPORTED_MODULE_5___default()(lodash_filter__WEBPACK_IMPORTED_MODULE_4___default()(react__WEBPACK_IMPORTED_MODULE_6__["Children"].toArray(children), react__WEBPACK_IMPORTED_MODULE_6__["isValidElement"]), 'key');
        };
        var getPendingKeys = function getPendingKeys(prev, next) {
            var nextKeysPending = {};
            var pendingKeys = [];
            lodash_forEach__WEBPACK_IMPORTED_MODULE_3___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(prev), function (prevKey) {
                if (!lodash_has__WEBPACK_IMPORTED_MODULE_1___default()(next, prevKey)) {
                    pendingKeys.push(prevKey);
                    return;
                }
                if (pendingKeys.length) {
                    nextKeysPending[prevKey] = pendingKeys;
                    pendingKeys = [];
                }
            });
            return [nextKeysPending, pendingKeys];
        };
        var getValue = function getValue(key, prev, next) {
            return lodash_has__WEBPACK_IMPORTED_MODULE_1___default()(next, key) ? next[key] : prev[key];
        };
        /**
         * When you're adding or removing children some may be added or removed in the same render pass. We want to show *both*
         * since we want to simultaneously animate elements in and out. This function takes a previous set of keys and a new set
         * of keys and merges them with its best guess of the correct ordering.
         *
         * @param {object} prev Prev children as returned from `getChildMapping()`
         * @param {object} next Next children as returned from `getChildMapping()`
         * @return {object} A key set that contains all keys in `prev` and all keys in `next` in a reasonable order
         */
        var mergeChildMappings = function mergeChildMappings() {
            var prev = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var next = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            var childMapping = {};
            var _getPendingKeys = getPendingKeys(prev, next), _getPendingKeys2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_getPendingKeys, 2), nextKeysPending = _getPendingKeys2[0], pendingKeys = _getPendingKeys2[1];
            lodash_forEach__WEBPACK_IMPORTED_MODULE_3___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(next), function (nextKey) {
                if (lodash_has__WEBPACK_IMPORTED_MODULE_1___default()(nextKeysPending, nextKey)) {
                    lodash_forEach__WEBPACK_IMPORTED_MODULE_3___default()(nextKeysPending[nextKey], function (pendingKey) {
                        childMapping[pendingKey] = getValue(pendingKey, prev, next);
                    });
                }
                childMapping[nextKey] = getValue(nextKey, prev, next);
            });
            lodash_forEach__WEBPACK_IMPORTED_MODULE_3___default()(pendingKeys, function (pendingKey) {
                childMapping[pendingKey] = getValue(pendingKey, prev, next);
            });
            return childMapping;
        };
        /***/ 
    }),
    /* 247 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayWithHoles = __webpack_require__(248);
        var iterableToArrayLimit = __webpack_require__(249);
        var nonIterableRest = __webpack_require__(250);
        function _slicedToArray(arr, i) {
            return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
        }
        module.exports = _slicedToArray;
        /***/ 
    }),
    /* 248 */
    /***/ (function (module, exports) {
        function _arrayWithHoles(arr) {
            if (Array.isArray(arr))
                return arr;
        }
        module.exports = _arrayWithHoles;
        /***/ 
    }),
    /* 249 */
    /***/ (function (module, exports) {
        function _iterableToArrayLimit(arr, i) {
            var _arr = [];
            var _n = true;
            var _d = false;
            var _e = undefined;
            try {
                for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
                    _arr.push(_s.value);
                    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;
                }
            }
            return _arr;
        }
        module.exports = _iterableToArrayLimit;
        /***/ 
    }),
    /* 250 */
    /***/ (function (module, exports) {
        function _nonIterableRest() {
            throw new TypeError("Invalid attempt to destructure non-iterable instance");
        }
        module.exports = _nonIterableRest;
        /***/ 
    }),
    /* 251 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseAssignValue = __webpack_require__(252), createAggregator = __webpack_require__(253);
        /**
         * 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);
        });
        module.exports = keyBy;
        /***/ 
    }),
    /* 252 */
    /***/ (function (module, exports, __webpack_require__) {
        var defineProperty = __webpack_require__(151);
        /**
         * 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;
        /***/ 
    }),
    /* 253 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayAggregator = __webpack_require__(254), baseAggregator = __webpack_require__(255), baseIteratee = __webpack_require__(201), isArray = __webpack_require__(84);
        /**
         * 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, baseIteratee(iteratee, 2), accumulator);
            };
        }
        module.exports = createAggregator;
        /***/ 
    }),
    /* 254 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = arrayAggregator;
        /***/ 
    }),
    /* 255 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseEach = __webpack_require__(183);
        /**
         * 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;
        }
        module.exports = baseAggregator;
        /***/ 
    }),
    /* 256 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "someByType", function () { return someByType; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findByType", function () { return findByType; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNil", function () { return isNil; });
        /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(257);
        /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(260);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_some__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /**
         * Determine if child by type exists in children.
         * @param {Object} children The children prop of a component.
         * @param {string|Function} type An html tag name string or React component.
         * @returns {Boolean}
         */
        var someByType = function someByType(children, type) {
            return lodash_some__WEBPACK_IMPORTED_MODULE_1___default()(react__WEBPACK_IMPORTED_MODULE_2__["Children"].toArray(children), {
                type: type
            });
        };
        /**
         * Find child by type.
         * @param {Object} children The children prop of a component.
         * @param {string|Function} type An html tag name string or React component.
         * @returns {undefined|Object}
         */
        var findByType = function findByType(children, type) {
            return lodash_find__WEBPACK_IMPORTED_MODULE_0___default()(react__WEBPACK_IMPORTED_MODULE_2__["Children"].toArray(children), {
                type: type
            });
        };
        /**
         * Tests if children are nil in React and Preact.
         * @param {Object} children The children prop of a component.
         * @returns {Boolean}
         */
        var isNil = function isNil(children) {
            return children === null || children === undefined || Array.isArray(children) && children.length === 0;
        };
        /***/ 
    }),
    /* 257 */
    /***/ (function (module, exports, __webpack_require__) {
        var createFind = __webpack_require__(258), findIndex = __webpack_require__(259);
        /**
         * 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;
        /***/ 
    }),
    /* 258 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIteratee = __webpack_require__(201), isArrayLike = __webpack_require__(173), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 259 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFindIndex = __webpack_require__(163), baseIteratee = __webpack_require__(201), toInteger = __webpack_require__(177);
        /* 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;
        /***/ 
    }),
    /* 260 */
    /***/ (function (module, exports, __webpack_require__) {
        var arraySome = __webpack_require__(213), baseIteratee = __webpack_require__(201), baseSome = __webpack_require__(261), isArray = __webpack_require__(84), isIterateeCall = __webpack_require__(262);
        /**
         * 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, baseIteratee(predicate, 3));
        }
        module.exports = some;
        /***/ 
    }),
    /* 261 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseEach = __webpack_require__(183);
        /**
         * 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;
        }
        module.exports = baseSome;
        /***/ 
    }),
    /* 262 */
    /***/ (function (module, exports, __webpack_require__) {
        var eq = __webpack_require__(119), isArrayLike = __webpack_require__(173), isIndex = __webpack_require__(135), isObject = __webpack_require__(106);
        /**
         * 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;
        /***/ 
    }),
    /* 263 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useKeyOnly", function () { return useKeyOnly; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useValueAndKey", function () { return useValueAndKey; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useKeyOrValueAndKey", function () { return useKeyOrValueAndKey; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useMultipleProp", function () { return useMultipleProp; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTextAlignProp", function () { return useTextAlignProp; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useVerticalAlignProp", function () { return useVerticalAlignProp; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useWidthProp", function () { return useWidthProp; });
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _numberToWord__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(264);
        /*
         * There are 3 prop patterns used to build up the className for a component.
         * Each utility here is meant for use in a classnames() argument.
         *
         * There is no util for valueOnly() because it would simply return val.
         * Use the prop value inline instead.
         *   <Label size='big' />
         *   <div class="ui big label"></div>
         */
        /**
         * Props where only the prop key is used in the className.
         * @param {*} val A props value
         * @param {string} key A props key
         *
         * @example
         * <Label tag />
         * <div class="ui tag label"></div>
         */
        var useKeyOnly = function useKeyOnly(val, key) {
            return val && key;
        };
        /**
         * Props that require both a key and value to create a className.
         * @param {*} val A props value
         * @param {string} key A props key
         *
         * @example
         * <Label corner='left' />
         * <div class="ui left corner label"></div>
         */
        var useValueAndKey = function useValueAndKey(val, key) {
            return val && val !== true && "".concat(val, " ").concat(key);
        };
        /**
         * Props whose key will be used in className, or value and key.
         * @param {*} val A props value
         * @param {string} key A props key
         *
         * @example Key Only
         * <Label pointing />
         * <div class="ui pointing label"></div>
         *
         * @example Key and Value
         * <Label pointing='left' />
         * <div class="ui left pointing label"></div>
         */
        var useKeyOrValueAndKey = function useKeyOrValueAndKey(val, key) {
            return val && (val === true ? key : "".concat(val, " ").concat(key));
        }; //
        // Prop to className exceptions
        //
        /**
         * The "multiple" prop implements control of visibility and reserved classes for Grid subcomponents.
         *
         * @param {*} val The value of the "multiple" prop
         * @param {*} key A props key
         *
         * @example
         * <Grid.Row only='mobile' />
         * <Grid.Row only='mobile tablet' />
         * <div class="mobile only row"></div>
         * <div class="mobile only tablet only row"></div>
         */
        var useMultipleProp = function useMultipleProp(val, key) {
            if (!val || val === true)
                return null;
            return val.replace('large screen', 'large-screen').replace(/ vertically/g, '-vertically').split(' ').map(function (prop) {
                return "".concat(prop.replace('-', ' '), " ").concat(key);
            }).join(' ');
        };
        /**
         * The "textAlign" prop follows the useValueAndKey except when the value is "justified'.
         * In this case, only the class "justified" is used, ignoring the "aligned" class.
         * @param {*} val The value of the "textAlign" prop
         *
         * @example
         * <Container textAlign='justified' />
         * <div class="ui justified container"></div>
         *
         * @example
         * <Container textAlign='left' />
         * <div class="ui left aligned container"></div>
         */
        var useTextAlignProp = function useTextAlignProp(val) {
            return val === 'justified' ? 'justified' : useValueAndKey(val, 'aligned');
        };
        /**
         * The "verticalAlign" prop follows the useValueAndKey.
         *
         * @param {*} val The value of the "verticalAlign" prop
         *
         * @example
         * <Grid verticalAlign='middle' />
         * <div class="ui middle aligned grid"></div>
         */
        var useVerticalAlignProp = function useVerticalAlignProp(val) {
            return useValueAndKey(val, 'aligned');
        };
        /**
         * Create "X", "X wide" and "equal width" classNames.
         * "X" is a numberToWord value and "wide" is configurable.
         * @param {*} val The prop value
         * @param {string} [widthClass=''] The class
         * @param {boolean} [canEqual=false] Flag that indicates possibility of "equal" value
         *
         * @example
         * <Grid columns='equal' />
         * <div class="ui equal width grid"></div>
         *
         * <Form widths='equal' />
         * <div class="ui equal width form"></div>
         *
         * <FieldGroup widths='equal' />
         * <div class="equal width fields"></div>
         *
         * @example
         * <Grid columns={4} />
         * <div class="ui four column grid"></div>
         */
        var useWidthProp = function useWidthProp(val) {
            var widthClass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var canEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
            if (canEqual && val === 'equal') {
                return 'equal width';
            }
            var valType = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val);
            if ((valType === 'string' || valType === 'number') && widthClass) {
                return "".concat(Object(_numberToWord__WEBPACK_IMPORTED_MODULE_1__["numberToWord"])(val), " ").concat(widthClass);
            }
            return Object(_numberToWord__WEBPACK_IMPORTED_MODULE_1__["numberToWord"])(val);
        };
        /***/ 
    }),
    /* 264 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numberToWordMap", function () { return numberToWordMap; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numberToWord", function () { return numberToWord; });
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
        var numberToWordMap = {
            1: 'one',
            2: 'two',
            3: 'three',
            4: 'four',
            5: 'five',
            6: 'six',
            7: 'seven',
            8: 'eight',
            9: 'nine',
            10: 'ten',
            11: 'eleven',
            12: 'twelve',
            13: 'thirteen',
            14: 'fourteen',
            15: 'fifteen',
            16: 'sixteen'
            /**
             * Return the number word for numbers 1-16.
             * Returns strings or numbers as is if there is no corresponding word.
             * Returns an empty string if value is not a string or number.
             * @param {string|number} value The value to convert to a word.
             * @returns {string}
             */
        };
        function numberToWord(value) {
            var type = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value);
            if (type === 'string' || type === 'number') {
                return numberToWordMap[value] || value;
            }
            return '';
        }
        /***/ 
    }),
    /* 265 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "as", function () { return as; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "domNode", function () { return domNode; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggest", function () { return suggest; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disallow", function () { return disallow; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "every", function () { return every; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "some", function () { return some; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "givenProps", function () { return givenProps; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "demand", function () { return demand; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "multipleProp", function () { return multipleProp; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contentShorthand", function () { return contentShorthand; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemShorthand", function () { return itemShorthand; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collectionShorthand", function () { return collectionShorthand; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deprecate", function () { return deprecate; });
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_fp_difference__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(270);
        /* harmony import */ var lodash_fp_difference__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_difference__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_fp_trim__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(346);
        /* harmony import */ var lodash_fp_trim__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_trim__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_fp_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(355);
        /* harmony import */ var lodash_fp_isObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_isObject__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_fp_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(357);
        /* harmony import */ var lodash_fp_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_pick__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(362);
        /* harmony import */ var lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var lodash_fp_isPlainObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(363);
        /* harmony import */ var lodash_fp_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_fp_isFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(364);
        /* harmony import */ var lodash_fp_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_isFunction__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_fp_compact__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(365);
        /* harmony import */ var lodash_fp_compact__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_compact__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(367);
        /* harmony import */ var lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_fp_take__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(369);
        /* harmony import */ var lodash_fp_take__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_take__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_fp_sortBy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(371);
        /* harmony import */ var lodash_fp_sortBy__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_sortBy__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_fp_sum__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(378);
        /* harmony import */ var lodash_fp_sum__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_sum__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_fp_min__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(381);
        /* harmony import */ var lodash_fp_min__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_min__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_fp_map__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(385);
        /* harmony import */ var lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(387);
        /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var lodash_fp_memoize__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(390);
        /* harmony import */ var lodash_fp_memoize__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_memoize__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var _leven__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(391);
        var typeOf = function typeOf() {
            var _Object$prototype$toS;
            return (_Object$prototype$toS = Object.prototype.toString).call.apply(_Object$prototype$toS, arguments);
        };
        /**
         * Ensure a component can render as a give prop value.
         */
        var as = function as() {
            return prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.symbol]).apply(void 0, arguments);
        };
        /**
         * Ensure a prop is a valid DOM node.
         */
        var domNode = function domNode(props, propName) {
            // skip if prop is undefined
            if (props[propName] === undefined)
                return; // skip if prop is valid
            if (props[propName] instanceof Element)
                return;
            throw new Error("Invalid prop \"".concat(propName, "\" supplied, expected a DOM node."));
        };
        /**
         * Similar to PropTypes.oneOf but shows closest matches.
         * Word order is ignored allowing `left chevron` to match `chevron left`.
         * Useful for very large lists of options (e.g. Icon name, Flag name, etc.)
         * @param {string[]} suggestions An array of allowed values.
         */
        var suggest = function suggest(suggestions) {
            if (!Array.isArray(suggestions)) {
                throw new Error('Invalid argument supplied to suggest, expected an instance of array.');
            }
            /* eslint-disable max-nested-callbacks */
            var findBestSuggestions = lodash_fp_memoize__WEBPACK_IMPORTED_MODULE_16___default()(function (str) {
                var propValueWords = str.split(' ');
                return lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15___default()(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (suggestion) {
                    var suggestionWords = suggestion.split(' ');
                    var propValueScore = lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15___default()(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (x) {
                        return lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (y) {
                            return Object(_leven__WEBPACK_IMPORTED_MODULE_18__["default"])(x, y);
                        }, suggestionWords);
                    }), lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(lodash_fp_min__WEBPACK_IMPORTED_MODULE_13___default.a), lodash_fp_sum__WEBPACK_IMPORTED_MODULE_12___default.a)(propValueWords);
                    var suggestionScore = lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15___default()(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (x) {
                        return lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (y) {
                            return Object(_leven__WEBPACK_IMPORTED_MODULE_18__["default"])(x, y);
                        }, propValueWords);
                    }), lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(lodash_fp_min__WEBPACK_IMPORTED_MODULE_13___default.a), lodash_fp_sum__WEBPACK_IMPORTED_MODULE_12___default.a)(suggestionWords);
                    return {
                        suggestion: suggestion,
                        score: propValueScore + suggestionScore
                    };
                }), lodash_fp_sortBy__WEBPACK_IMPORTED_MODULE_11___default()(['score', 'suggestion']), lodash_fp_take__WEBPACK_IMPORTED_MODULE_10___default()(3))(suggestions);
            });
            /* eslint-enable max-nested-callbacks */
            // Convert the suggestions list into a hash map for O(n) lookup times. Ensure
            // the words in each key are sorted alphabetically so that we have a consistent
            // way of looking up a value in the map, i.e. we can sort the words in the
            // incoming propValue and look that up without having to check all permutations.
            var suggestionsLookup = suggestions.reduce(function (acc, key) {
                acc[key.split(' ').sort().join(' ')] = true;
                return acc;
            }, {});
            return function (props, propName, componentName) {
                var propValue = props[propName]; // skip if prop is undefined or is included in the suggestions
                if (!propValue || suggestionsLookup[propValue])
                    return; // check if the words were correct but ordered differently.
                // Since we're matching for classNames we need to allow any word order
                // to pass validation, e.g. `left chevron` vs `chevron left`.
                var propValueSorted = propValue.split(' ').sort().join(' ');
                if (suggestionsLookup[propValueSorted])
                    return; // find best suggestions
                var bestMatches = findBestSuggestions(propValue); // skip if a match scored 0
                if (bestMatches.some(function (x) {
                    return x.score === 0;
                }))
                    return;
                return new Error(["Invalid prop `".concat(propName, "` of value `").concat(propValue, "` supplied to `").concat(componentName, "`."), "\n\nInstead of `".concat(propValue, "`, did you mean:"), bestMatches.map(function (x) {
                        return "\n  - ".concat(x.suggestion);
                    }).join(''), '\n'].join(''));
            };
        };
        /**
         * Disallow other props from being defined with this prop.
         * @param {string[]} disallowedProps An array of props that cannot be used with this prop.
         */
        var disallow = function disallow(disallowedProps) {
            return function (props, propName, componentName) {
                if (!Array.isArray(disallowedProps)) {
                    throw new Error(['Invalid argument supplied to disallow, expected an instance of array.', " See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(''));
                } // skip if prop is undefined
                if (lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9___default()(props[propName]) || props[propName] === false)
                    return; // find disallowed props with values
                var disallowed = disallowedProps.reduce(function (acc, disallowedProp) {
                    if (!lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9___default()(props[disallowedProp]) && props[disallowedProp] !== false) {
                        return _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc).concat([disallowedProp]);
                    }
                    return acc;
                }, []);
                if (disallowed.length > 0) {
                    return new Error(["Prop `".concat(propName, "` in `").concat(componentName, "` conflicts with props: `").concat(disallowed.join('`, `'), "`."), 'They cannot be defined together, choose one or the other.'].join(' '));
                }
            };
        };
        /**
         * Ensure a prop adherers to multiple prop type validators.
         * @param {function[]} validators An array of propType functions.
         */
        var every = function every(validators) {
            return function (props, propName, componentName) {
                for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
                    rest[_key - 3] = arguments[_key];
                }
                if (!Array.isArray(validators)) {
                    throw new Error(['Invalid argument supplied to every, expected an instance of array.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                }
                var errors = lodash_fp_flow__WEBPACK_IMPORTED_MODULE_15___default()(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(function (validator) {
                    if (typeof validator !== 'function') {
                        throw new Error("every() argument \"validators\" should contain functions, found: ".concat(typeOf(validator), "."));
                    }
                    return validator.apply(void 0, [props, propName, componentName].concat(rest));
                }), lodash_fp_compact__WEBPACK_IMPORTED_MODULE_8___default.a)(validators); // we can only return one error at a time
                return errors[0];
            };
        };
        /**
         * Ensure a prop adherers to at least one of the given prop type validators.
         * @param {function[]} validators An array of propType functions.
         */
        var some = function some(validators) {
            return function (props, propName, componentName) {
                for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
                    rest[_key2 - 3] = arguments[_key2];
                }
                if (!Array.isArray(validators)) {
                    throw new Error(['Invalid argument supplied to some, expected an instance of array.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                }
                var errors = lodash_fp_compact__WEBPACK_IMPORTED_MODULE_8___default()(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(validators, function (validator) {
                    if (!lodash_fp_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(validator)) {
                        throw new Error("some() argument \"validators\" should contain functions, found: ".concat(typeOf(validator), "."));
                    }
                    return validator.apply(void 0, [props, propName, componentName].concat(rest));
                })); // fail only if all validators failed
                if (errors.length === validators.length) {
                    var error = new Error('One of these validators must pass:');
                    error.message += "\n".concat(lodash_fp_map__WEBPACK_IMPORTED_MODULE_14___default()(errors, function (err, i) {
                        return "[".concat(i + 1, "]: ").concat(err.message);
                    }).join('\n'));
                    return error;
                }
            };
        };
        /**
         * Ensure a validator passes only when a component has a given propsShape.
         * @param {object} propsShape An object describing the prop shape.
         * @param {function} validator A propType function.
         */
        var givenProps = function givenProps(propsShape, validator) {
            return function (props, propName, componentName) {
                for (var _len3 = arguments.length, rest = new Array(_len3 > 3 ? _len3 - 3 : 0), _key3 = 3; _key3 < _len3; _key3++) {
                    rest[_key3 - 3] = arguments[_key3];
                }
                if (!lodash_fp_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(propsShape)) {
                    throw new Error(['Invalid argument supplied to givenProps, expected an object.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                }
                if (typeof validator !== 'function') {
                    throw new Error(['Invalid argument supplied to givenProps, expected a function.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                }
                var shouldValidate = lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5___default()(propsShape).every(function (key) {
                    var val = propsShape[key]; // require propShape validators to pass or prop values to match
                    return typeof val === 'function' ? !val.apply(void 0, [props, key, componentName].concat(rest)) : val === props[propName];
                });
                if (!shouldValidate)
                    return;
                var error = validator.apply(void 0, [props, propName, componentName].concat(rest));
                if (error) {
                    // poor mans shallow pretty print, prevents JSON circular reference errors
                    var prettyProps = "{ ".concat(lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5___default()(lodash_fp_pick__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_keys__WEBPACK_IMPORTED_MODULE_5___default()(propsShape), props)).map(function (key) {
                        var val = props[key];
                        var renderedValue = val;
                        if (typeof val === 'string')
                            renderedValue = "\"".concat(val, "\"");
                        else if (Array.isArray(val))
                            renderedValue = "[".concat(val.join(', '), "]");
                        else if (lodash_fp_isObject__WEBPACK_IMPORTED_MODULE_3___default()(val))
                            renderedValue = '{...}';
                        return "".concat(key, ": ").concat(renderedValue);
                    }).join(', '), " }");
                    error.message = "Given props ".concat(prettyProps, ": ").concat(error.message);
                    return error;
                }
            };
        };
        /**
         * Define prop dependencies by requiring other props.
         * @param {string[]} requiredProps An array of required prop names.
         */
        var demand = function demand(requiredProps) {
            return function (props, propName, componentName) {
                if (!Array.isArray(requiredProps)) {
                    throw new Error(['Invalid `requiredProps` argument supplied to require, expected an instance of array.', " See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(''));
                } // skip if prop is undefined
                if (props[propName] === undefined)
                    return;
                var missingRequired = requiredProps.filter(function (requiredProp) {
                    return props[requiredProp] === undefined;
                });
                if (missingRequired.length > 0) {
                    return new Error("`".concat(propName, "` prop in `").concat(componentName, "` requires props: `").concat(missingRequired.join('`, `'), "`."));
                }
            };
        };
        /**
         * Ensure an multiple prop contains a string with only possible values.
         * @param {string[]} possible An array of possible values to prop.
         */
        var multipleProp = function multipleProp(possible) {
            return function (props, propName, componentName) {
                if (!Array.isArray(possible)) {
                    throw new Error(['Invalid argument supplied to some, expected an instance of array.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                }
                var propValue = props[propName]; // skip if prop is undefined
                if (lodash_fp_isNil__WEBPACK_IMPORTED_MODULE_9___default()(propValue) || propValue === false)
                    return;
                var values = propValue.replace('large screen', 'large-screen').replace(/ vertically/g, '-vertically').split(' ').map(function (val) {
                    return lodash_fp_trim__WEBPACK_IMPORTED_MODULE_2___default()(val).replace('-', ' ');
                });
                var invalid = lodash_fp_difference__WEBPACK_IMPORTED_MODULE_1___default()(values, possible); // fail only if there are invalid values
                if (invalid.length > 0) {
                    return new Error("`".concat(propName, "` prop in `").concat(componentName, "` has invalid values: `").concat(invalid.join('`, `'), "`."));
                }
            };
        };
        /**
         * Ensure a component can render as a node passed as a prop value in place of children.
         */
        var contentShorthand = function contentShorthand() {
            return every([disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.node]).apply(void 0, arguments);
        };
        /**
         * Item shorthand is a description of a component that can be a literal,
         * a props object, or an element.
         */
        var itemShorthand = function itemShorthand() {
            return every([disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.object]))])]).apply(void 0, arguments);
        };
        /**
         * Collection shorthand ensures a prop is an array of item shorthand.
         */
        var collectionShorthand = function collectionShorthand() {
            return every([disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_17___default.a.arrayOf(itemShorthand)]).apply(void 0, arguments);
        };
        /**
         * Show a deprecated warning for component props with a help message and optional validator.
         * @param {string} help A help message to display with the deprecation warning.
         * @param {function} [validator] A propType function.
         */
        var deprecate = function deprecate(help, validator) {
            return function (props, propName, componentName) {
                if (typeof help !== 'string') {
                    throw new Error(['Invalid `help` argument supplied to deprecate, expected a string.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                } // skip if prop is undefined
                if (props[propName] === undefined)
                    return; // deprecation error and help
                var error = new Error("The `".concat(propName, "` prop in `").concat(componentName, "` is deprecated."));
                if (help)
                    error.message += " ".concat(help); // add optional validation error message
                if (validator) {
                    if (typeof validator === 'function') {
                        for (var _len4 = arguments.length, args = new Array(_len4 > 3 ? _len4 - 3 : 0), _key4 = 3; _key4 < _len4; _key4++) {
                            args[_key4 - 3] = arguments[_key4];
                        }
                        var validationError = validator.apply(void 0, [props, propName, componentName].concat(args));
                        if (validationError) {
                            error.message = "".concat(error.message, " ").concat(validationError.message);
                        }
                    }
                    else {
                        throw new Error(['Invalid argument supplied to deprecate, expected a function.', "See `".concat(propName, "` prop in `").concat(componentName, "`.")].join(' '));
                    }
                }
                return error;
            };
        };
        /***/ 
    }),
    /* 266 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayWithoutHoles = __webpack_require__(267);
        var iterableToArray = __webpack_require__(268);
        var nonIterableSpread = __webpack_require__(269);
        function _toConsumableArray(arr) {
            return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
        }
        module.exports = _toConsumableArray;
        /***/ 
    }),
    /* 267 */
    /***/ (function (module, exports) {
        function _arrayWithoutHoles(arr) {
            if (Array.isArray(arr)) {
                for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
                    arr2[i] = arr[i];
                }
                return arr2;
            }
        }
        module.exports = _arrayWithoutHoles;
        /***/ 
    }),
    /* 268 */
    /***/ (function (module, exports) {
        function _iterableToArray(iter) {
            if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]")
                return Array.from(iter);
        }
        module.exports = _iterableToArray;
        /***/ 
    }),
    /* 269 */
    /***/ (function (module, exports) {
        function _nonIterableSpread() {
            throw new TypeError("Invalid attempt to spread non-iterable instance");
        }
        module.exports = _nonIterableSpread;
        /***/ 
    }),
    /* 270 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('difference', __webpack_require__(156));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 271 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseConvert = __webpack_require__(272), util = __webpack_require__(275);
        /**
         * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
         * version with conversion `options` applied. If `name` is an object its methods
         * will be converted.
         *
         * @param {string} name The name of the function to wrap.
         * @param {Function} [func] The function to wrap.
         * @param {Object} [options] The options object. See `baseConvert` for more details.
         * @returns {Function|Object} Returns the converted function or object.
         */
        function convert(name, func, options) {
            return baseConvert(util, name, func, options);
        }
        module.exports = convert;
        /***/ 
    }),
    /* 272 */
    /***/ (function (module, exports, __webpack_require__) {
        var mapping = __webpack_require__(273), fallbackHolder = __webpack_require__(274);
        /** Built-in value reference. */
        var push = Array.prototype.push;
        /**
         * Creates a function, with an arity of `n`, that invokes `func` with the
         * arguments it receives.
         *
         * @private
         * @param {Function} func The function to wrap.
         * @param {number} n The arity of the new function.
         * @returns {Function} Returns the new function.
         */
        function baseArity(func, n) {
            return n == 2
                ? function (a, b) { return func.apply(undefined, arguments); }
                : function (a) { return func.apply(undefined, arguments); };
        }
        /**
         * Creates a function that invokes `func`, with up to `n` arguments, ignoring
         * any additional arguments.
         *
         * @private
         * @param {Function} func The function to cap arguments for.
         * @param {number} n The arity cap.
         * @returns {Function} Returns the new function.
         */
        function baseAry(func, n) {
            return n == 2
                ? function (a, b) { return func(a, b); }
                : function (a) { return func(a); };
        }
        /**
         * Creates a clone of `array`.
         *
         * @private
         * @param {Array} array The array to clone.
         * @returns {Array} Returns the cloned array.
         */
        function cloneArray(array) {
            var length = array ? array.length : 0, result = Array(length);
            while (length--) {
                result[length] = array[length];
            }
            return result;
        }
        /**
         * Creates a function that clones a given object using the assignment `func`.
         *
         * @private
         * @param {Function} func The assignment function.
         * @returns {Function} Returns the new cloner function.
         */
        function createCloner(func) {
            return function (object) {
                return func({}, object);
            };
        }
        /**
         * A specialized version of `_.spread` which flattens the spread array into
         * the arguments of the invoked `func`.
         *
         * @private
         * @param {Function} func The function to spread arguments over.
         * @param {number} start The start position of the spread.
         * @returns {Function} Returns the new function.
         */
        function flatSpread(func, start) {
            return function () {
                var length = arguments.length, lastIndex = length - 1, args = Array(length);
                while (length--) {
                    args[length] = arguments[length];
                }
                var array = args[start], otherArgs = args.slice(0, start);
                if (array) {
                    push.apply(otherArgs, array);
                }
                if (start != lastIndex) {
                    push.apply(otherArgs, args.slice(start + 1));
                }
                return func.apply(this, otherArgs);
            };
        }
        /**
         * Creates a function that wraps `func` and uses `cloner` to clone the first
         * argument it receives.
         *
         * @private
         * @param {Function} func The function to wrap.
         * @param {Function} cloner The function to clone arguments.
         * @returns {Function} Returns the new immutable function.
         */
        function wrapImmutable(func, cloner) {
            return function () {
                var length = arguments.length;
                if (!length) {
                    return;
                }
                var args = Array(length);
                while (length--) {
                    args[length] = arguments[length];
                }
                var result = args[0] = cloner.apply(undefined, args);
                func.apply(undefined, args);
                return result;
            };
        }
        /**
         * The base implementation of `convert` which accepts a `util` object of methods
         * required to perform conversions.
         *
         * @param {Object} util The util object.
         * @param {string} name The name of the function to convert.
         * @param {Function} func The function to convert.
         * @param {Object} [options] The options object.
         * @param {boolean} [options.cap=true] Specify capping iteratee arguments.
         * @param {boolean} [options.curry=true] Specify currying.
         * @param {boolean} [options.fixed=true] Specify fixed arity.
         * @param {boolean} [options.immutable=true] Specify immutable operations.
         * @param {boolean} [options.rearg=true] Specify rearranging arguments.
         * @returns {Function|Object} Returns the converted function or object.
         */
        function baseConvert(util, name, func, options) {
            var setPlaceholder, isLib = typeof name == 'function', isObj = name === Object(name);
            if (isObj) {
                options = func;
                func = name;
                name = undefined;
            }
            if (func == null) {
                throw new TypeError;
            }
            options || (options = {});
            var config = {
                'cap': 'cap' in options ? options.cap : true,
                'curry': 'curry' in options ? options.curry : true,
                'fixed': 'fixed' in options ? options.fixed : true,
                'immutable': 'immutable' in options ? options.immutable : true,
                'rearg': 'rearg' in options ? options.rearg : true
            };
            var forceCurry = ('curry' in options) && options.curry, forceFixed = ('fixed' in options) && options.fixed, forceRearg = ('rearg' in options) && options.rearg, placeholder = isLib ? func : fallbackHolder, pristine = isLib ? func.runInContext() : undefined;
            var helpers = isLib ? func : {
                'ary': util.ary,
                'assign': util.assign,
                'clone': util.clone,
                'curry': util.curry,
                'forEach': util.forEach,
                'isArray': util.isArray,
                'isError': util.isError,
                'isFunction': util.isFunction,
                'isWeakMap': util.isWeakMap,
                'iteratee': util.iteratee,
                'keys': util.keys,
                'rearg': util.rearg,
                'toInteger': util.toInteger,
                'toPath': util.toPath
            };
            var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray = helpers.isArray, isError = helpers.isError, isFunction = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
            var aryMethodKeys = keys(mapping.aryMethod);
            var wrappers = {
                'castArray': function (castArray) {
                    return function () {
                        var value = arguments[0];
                        return isArray(value)
                            ? castArray(cloneArray(value))
                            : castArray.apply(undefined, arguments);
                    };
                },
                'iteratee': function (iteratee) {
                    return function () {
                        var func = arguments[0], arity = arguments[1], result = iteratee(func, arity), length = result.length;
                        if (config.cap && typeof arity == 'number') {
                            arity = arity > 2 ? (arity - 2) : 1;
                            return (length && length <= arity) ? result : baseAry(result, arity);
                        }
                        return result;
                    };
                },
                'mixin': function (mixin) {
                    return function (source) {
                        var func = this;
                        if (!isFunction(func)) {
                            return mixin(func, Object(source));
                        }
                        var pairs = [];
                        each(keys(source), function (key) {
                            if (isFunction(source[key])) {
                                pairs.push([key, func.prototype[key]]);
                            }
                        });
                        mixin(func, Object(source));
                        each(pairs, function (pair) {
                            var value = pair[1];
                            if (isFunction(value)) {
                                func.prototype[pair[0]] = value;
                            }
                            else {
                                delete func.prototype[pair[0]];
                            }
                        });
                        return func;
                    };
                },
                'nthArg': function (nthArg) {
                    return function (n) {
                        var arity = n < 0 ? 1 : (toInteger(n) + 1);
                        return curry(nthArg(n), arity);
                    };
                },
                'rearg': function (rearg) {
                    return function (func, indexes) {
                        var arity = indexes ? indexes.length : 0;
                        return curry(rearg(func, indexes), arity);
                    };
                },
                'runInContext': function (runInContext) {
                    return function (context) {
                        return baseConvert(util, runInContext(context), options);
                    };
                }
            };
            /*--------------------------------------------------------------------------*/
            /**
             * Casts `func` to a function with an arity capped iteratee if needed.
             *
             * @private
             * @param {string} name The name of the function to inspect.
             * @param {Function} func The function to inspect.
             * @returns {Function} Returns the cast function.
             */
            function castCap(name, func) {
                if (config.cap) {
                    var indexes = mapping.iterateeRearg[name];
                    if (indexes) {
                        return iterateeRearg(func, indexes);
                    }
                    var n = !isLib && mapping.iterateeAry[name];
                    if (n) {
                        return iterateeAry(func, n);
                    }
                }
                return func;
            }
            /**
             * Casts `func` to a curried function if needed.
             *
             * @private
             * @param {string} name The name of the function to inspect.
             * @param {Function} func The function to inspect.
             * @param {number} n The arity of `func`.
             * @returns {Function} Returns the cast function.
             */
            function castCurry(name, func, n) {
                return (forceCurry || (config.curry && n > 1))
                    ? curry(func, n)
                    : func;
            }
            /**
             * Casts `func` to a fixed arity function if needed.
             *
             * @private
             * @param {string} name The name of the function to inspect.
             * @param {Function} func The function to inspect.
             * @param {number} n The arity cap.
             * @returns {Function} Returns the cast function.
             */
            function castFixed(name, func, n) {
                if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
                    var data = mapping.methodSpread[name], start = data && data.start;
                    return start === undefined ? ary(func, n) : flatSpread(func, start);
                }
                return func;
            }
            /**
             * Casts `func` to an rearged function if needed.
             *
             * @private
             * @param {string} name The name of the function to inspect.
             * @param {Function} func The function to inspect.
             * @param {number} n The arity of `func`.
             * @returns {Function} Returns the cast function.
             */
            function castRearg(name, func, n) {
                return (config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name]))
                    ? rearg(func, mapping.methodRearg[name] || mapping.aryRearg[n])
                    : func;
            }
            /**
             * Creates a clone of `object` by `path`.
             *
             * @private
             * @param {Object} object The object to clone.
             * @param {Array|string} path The path to clone by.
             * @returns {Object} Returns the cloned object.
             */
            function cloneByPath(object, path) {
                path = toPath(path);
                var index = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result;
                while (nested != null && ++index < length) {
                    var key = path[index], value = nested[key];
                    if (value != null &&
                        !(isFunction(value) || isError(value) || isWeakMap(value))) {
                        nested[key] = clone(index == lastIndex ? value : Object(value));
                    }
                    nested = nested[key];
                }
                return result;
            }
            /**
             * Converts `lodash` to an immutable auto-curried iteratee-first data-last
             * version with conversion `options` applied.
             *
             * @param {Object} [options] The options object. See `baseConvert` for more details.
             * @returns {Function} Returns the converted `lodash`.
             */
            function convertLib(options) {
                return _.runInContext.convert(options)(undefined);
            }
            /**
             * Create a converter function for `func` of `name`.
             *
             * @param {string} name The name of the function to convert.
             * @param {Function} func The function to convert.
             * @returns {Function} Returns the new converter function.
             */
            function createConverter(name, func) {
                var realName = mapping.aliasToReal[name] || name, methodName = mapping.remap[realName] || realName, oldOptions = options;
                return function (options) {
                    var newUtil = isLib ? pristine : helpers, newFunc = isLib ? pristine[methodName] : func, newOptions = assign(assign({}, oldOptions), options);
                    return baseConvert(newUtil, realName, newFunc, newOptions);
                };
            }
            /**
             * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
             * arguments, ignoring any additional arguments.
             *
             * @private
             * @param {Function} func The function to cap iteratee arguments for.
             * @param {number} n The arity cap.
             * @returns {Function} Returns the new function.
             */
            function iterateeAry(func, n) {
                return overArg(func, function (func) {
                    return typeof func == 'function' ? baseAry(func, n) : func;
                });
            }
            /**
             * Creates a function that wraps `func` to invoke its iteratee 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.
             *
             * @private
             * @param {Function} func The function to rearrange iteratee arguments for.
             * @param {number[]} indexes The arranged argument indexes.
             * @returns {Function} Returns the new function.
             */
            function iterateeRearg(func, indexes) {
                return overArg(func, function (func) {
                    var n = indexes.length;
                    return baseArity(rearg(baseAry(func, n), indexes), n);
                });
            }
            /**
             * Creates a function that invokes `func` with its first 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 () {
                    var length = arguments.length;
                    if (!length) {
                        return func();
                    }
                    var args = Array(length);
                    while (length--) {
                        args[length] = arguments[length];
                    }
                    var index = config.rearg ? 0 : (length - 1);
                    args[index] = transform(args[index]);
                    return func.apply(undefined, args);
                };
            }
            /**
             * Creates a function that wraps `func` and applys the conversions
             * rules by `name`.
             *
             * @private
             * @param {string} name The name of the function to wrap.
             * @param {Function} func The function to wrap.
             * @returns {Function} Returns the converted function.
             */
            function wrap(name, func) {
                var result, realName = mapping.aliasToReal[name] || name, wrapped = func, wrapper = wrappers[realName];
                if (wrapper) {
                    wrapped = wrapper(func);
                }
                else if (config.immutable) {
                    if (mapping.mutate.array[realName]) {
                        wrapped = wrapImmutable(func, cloneArray);
                    }
                    else if (mapping.mutate.object[realName]) {
                        wrapped = wrapImmutable(func, createCloner(func));
                    }
                    else if (mapping.mutate.set[realName]) {
                        wrapped = wrapImmutable(func, cloneByPath);
                    }
                }
                each(aryMethodKeys, function (aryKey) {
                    each(mapping.aryMethod[aryKey], function (otherName) {
                        if (realName == otherName) {
                            var data = mapping.methodSpread[realName], afterRearg = data && data.afterRearg;
                            result = afterRearg
                                ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey)
                                : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
                            result = castCap(realName, result);
                            result = castCurry(realName, result, aryKey);
                            return false;
                        }
                    });
                    return !result;
                });
                result || (result = wrapped);
                if (result == func) {
                    result = forceCurry ? curry(result, 1) : function () {
                        return func.apply(this, arguments);
                    };
                }
                result.convert = createConverter(realName, func);
                if (mapping.placeholder[realName]) {
                    setPlaceholder = true;
                    result.placeholder = func.placeholder = placeholder;
                }
                return result;
            }
            /*--------------------------------------------------------------------------*/
            if (!isObj) {
                return wrap(name, func);
            }
            var _ = func;
            // Convert methods by ary cap.
            var pairs = [];
            each(aryMethodKeys, function (aryKey) {
                each(mapping.aryMethod[aryKey], function (key) {
                    var func = _[mapping.remap[key] || key];
                    if (func) {
                        pairs.push([key, wrap(key, func)]);
                    }
                });
            });
            // Convert remaining methods.
            each(keys(_), function (key) {
                var func = _[key];
                if (typeof func == 'function') {
                    var length = pairs.length;
                    while (length--) {
                        if (pairs[length][0] == key) {
                            return;
                        }
                    }
                    func.convert = createConverter(key, func);
                    pairs.push([key, func]);
                }
            });
            // Assign to `_` leaving `_.prototype` unchanged to allow chaining.
            each(pairs, function (pair) {
                _[pair[0]] = pair[1];
            });
            _.convert = convertLib;
            if (setPlaceholder) {
                _.placeholder = placeholder;
            }
            // Assign aliases.
            each(keys(_), function (key) {
                each(mapping.realToAlias[key] || [], function (alias) {
                    _[alias] = _[key];
                });
            });
            return _;
        }
        module.exports = baseConvert;
        /***/ 
    }),
    /* 273 */
    /***/ (function (module, exports) {
        /** Used to map aliases to their real names. */
        exports.aliasToReal = {
            // Lodash aliases.
            'each': 'forEach',
            'eachRight': 'forEachRight',
            'entries': 'toPairs',
            'entriesIn': 'toPairsIn',
            'extend': 'assignIn',
            'extendAll': 'assignInAll',
            'extendAllWith': 'assignInAllWith',
            'extendWith': 'assignInWith',
            'first': 'head',
            // Methods that are curried variants of others.
            'conforms': 'conformsTo',
            'matches': 'isMatch',
            'property': 'get',
            // Ramda aliases.
            '__': 'placeholder',
            'F': 'stubFalse',
            'T': 'stubTrue',
            'all': 'every',
            'allPass': 'overEvery',
            'always': 'constant',
            'any': 'some',
            'anyPass': 'overSome',
            'apply': 'spread',
            'assoc': 'set',
            'assocPath': 'set',
            'complement': 'negate',
            'compose': 'flowRight',
            'contains': 'includes',
            'dissoc': 'unset',
            'dissocPath': 'unset',
            'dropLast': 'dropRight',
            'dropLastWhile': 'dropRightWhile',
            'equals': 'isEqual',
            'identical': 'eq',
            'indexBy': 'keyBy',
            'init': 'initial',
            'invertObj': 'invert',
            'juxt': 'over',
            'omitAll': 'omit',
            'nAry': 'ary',
            'path': 'get',
            'pathEq': 'matchesProperty',
            'pathOr': 'getOr',
            'paths': 'at',
            'pickAll': 'pick',
            'pipe': 'flow',
            'pluck': 'map',
            'prop': 'get',
            'propEq': 'matchesProperty',
            'propOr': 'getOr',
            'props': 'at',
            'symmetricDifference': 'xor',
            'symmetricDifferenceBy': 'xorBy',
            'symmetricDifferenceWith': 'xorWith',
            'takeLast': 'takeRight',
            'takeLastWhile': 'takeRightWhile',
            'unapply': 'rest',
            'unnest': 'flatten',
            'useWith': 'overArgs',
            'where': 'conformsTo',
            'whereEq': 'isMatch',
            'zipObj': 'zipObject'
        };
        /** Used to map ary to method names. */
        exports.aryMethod = {
            '1': [
                'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
                'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
                'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
                'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
                'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
                'uniqueId', 'words', 'zipAll'
            ],
            '2': [
                'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
                'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
                'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
                'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
                'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
                'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
                'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
                'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
                'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
                'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
                'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
                'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
                'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
                'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
                'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
                'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
                'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
                'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
                'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
                'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
                'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
                'zipObjectDeep'
            ],
            '3': [
                'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
                'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
                'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
                'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
                'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
                'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight',
                'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy',
                'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy',
                'xorWith', 'zipWith'
            ],
            '4': [
                'fill', 'setWith', 'updateWith'
            ]
        };
        /** Used to map ary to rearg configs. */
        exports.aryRearg = {
            '2': [1, 0],
            '3': [2, 0, 1],
            '4': [3, 2, 0, 1]
        };
        /** Used to map method names to their iteratee ary. */
        exports.iterateeAry = {
            'dropRightWhile': 1,
            'dropWhile': 1,
            'every': 1,
            'filter': 1,
            'find': 1,
            'findFrom': 1,
            'findIndex': 1,
            'findIndexFrom': 1,
            'findKey': 1,
            'findLast': 1,
            'findLastFrom': 1,
            'findLastIndex': 1,
            'findLastIndexFrom': 1,
            'findLastKey': 1,
            'flatMap': 1,
            'flatMapDeep': 1,
            'flatMapDepth': 1,
            'forEach': 1,
            'forEachRight': 1,
            'forIn': 1,
            'forInRight': 1,
            'forOwn': 1,
            'forOwnRight': 1,
            'map': 1,
            'mapKeys': 1,
            'mapValues': 1,
            'partition': 1,
            'reduce': 2,
            'reduceRight': 2,
            'reject': 1,
            'remove': 1,
            'some': 1,
            'takeRightWhile': 1,
            'takeWhile': 1,
            'times': 1,
            'transform': 2
        };
        /** Used to map method names to iteratee rearg configs. */
        exports.iterateeRearg = {
            'mapKeys': [1],
            'reduceRight': [1, 0]
        };
        /** Used to map method names to rearg configs. */
        exports.methodRearg = {
            'assignInAllWith': [1, 0],
            'assignInWith': [1, 2, 0],
            'assignAllWith': [1, 0],
            'assignWith': [1, 2, 0],
            'differenceBy': [1, 2, 0],
            'differenceWith': [1, 2, 0],
            'getOr': [2, 1, 0],
            'intersectionBy': [1, 2, 0],
            'intersectionWith': [1, 2, 0],
            'isEqualWith': [1, 2, 0],
            'isMatchWith': [2, 1, 0],
            'mergeAllWith': [1, 0],
            'mergeWith': [1, 2, 0],
            'padChars': [2, 1, 0],
            'padCharsEnd': [2, 1, 0],
            'padCharsStart': [2, 1, 0],
            'pullAllBy': [2, 1, 0],
            'pullAllWith': [2, 1, 0],
            'rangeStep': [1, 2, 0],
            'rangeStepRight': [1, 2, 0],
            'setWith': [3, 1, 2, 0],
            'sortedIndexBy': [2, 1, 0],
            'sortedLastIndexBy': [2, 1, 0],
            'unionBy': [1, 2, 0],
            'unionWith': [1, 2, 0],
            'updateWith': [3, 1, 2, 0],
            'xorBy': [1, 2, 0],
            'xorWith': [1, 2, 0],
            'zipWith': [1, 2, 0]
        };
        /** Used to map method names to spread configs. */
        exports.methodSpread = {
            'assignAll': { 'start': 0 },
            'assignAllWith': { 'start': 0 },
            'assignInAll': { 'start': 0 },
            'assignInAllWith': { 'start': 0 },
            'defaultsAll': { 'start': 0 },
            'defaultsDeepAll': { 'start': 0 },
            'invokeArgs': { 'start': 2 },
            'invokeArgsMap': { 'start': 2 },
            'mergeAll': { 'start': 0 },
            'mergeAllWith': { 'start': 0 },
            'partial': { 'start': 1 },
            'partialRight': { 'start': 1 },
            'without': { 'start': 1 },
            'zipAll': { 'start': 0 }
        };
        /** Used to identify methods which mutate arrays or objects. */
        exports.mutate = {
            'array': {
                'fill': true,
                'pull': true,
                'pullAll': true,
                'pullAllBy': true,
                'pullAllWith': true,
                'pullAt': true,
                'remove': true,
                'reverse': true
            },
            'object': {
                'assign': true,
                'assignAll': true,
                'assignAllWith': true,
                'assignIn': true,
                'assignInAll': true,
                'assignInAllWith': true,
                'assignInWith': true,
                'assignWith': true,
                'defaults': true,
                'defaultsAll': true,
                'defaultsDeep': true,
                'defaultsDeepAll': true,
                'merge': true,
                'mergeAll': true,
                'mergeAllWith': true,
                'mergeWith': true,
            },
            'set': {
                'set': true,
                'setWith': true,
                'unset': true,
                'update': true,
                'updateWith': true
            }
        };
        /** Used to track methods with placeholder support */
        exports.placeholder = {
            'bind': true,
            'bindKey': true,
            'curry': true,
            'curryRight': true,
            'partial': true,
            'partialRight': true
        };
        /** Used to map real names to their aliases. */
        exports.realToAlias = (function () {
            var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {};
            for (var key in object) {
                var value = object[key];
                if (hasOwnProperty.call(result, value)) {
                    result[value].push(key);
                }
                else {
                    result[value] = [key];
                }
            }
            return result;
        }());
        /** Used to map method names to other names. */
        exports.remap = {
            'assignAll': 'assign',
            'assignAllWith': 'assignWith',
            'assignInAll': 'assignIn',
            'assignInAllWith': 'assignInWith',
            'curryN': 'curry',
            'curryRightN': 'curryRight',
            'defaultsAll': 'defaults',
            'defaultsDeepAll': 'defaultsDeep',
            'findFrom': 'find',
            'findIndexFrom': 'findIndex',
            'findLastFrom': 'findLast',
            'findLastIndexFrom': 'findLastIndex',
            'getOr': 'get',
            'includesFrom': 'includes',
            'indexOfFrom': 'indexOf',
            'invokeArgs': 'invoke',
            'invokeArgsMap': 'invokeMap',
            'lastIndexOfFrom': 'lastIndexOf',
            'mergeAll': 'merge',
            'mergeAllWith': 'mergeWith',
            'padChars': 'pad',
            'padCharsEnd': 'padEnd',
            'padCharsStart': 'padStart',
            'propertyOf': 'get',
            'rangeStep': 'range',
            'rangeStepRight': 'rangeRight',
            'restFrom': 'rest',
            'spreadFrom': 'spread',
            'trimChars': 'trim',
            'trimCharsEnd': 'trimEnd',
            'trimCharsStart': 'trimStart',
            'zipAll': 'zip'
        };
        /** Used to track methods that skip fixing their arity. */
        exports.skipFixed = {
            'castArray': true,
            'flow': true,
            'flowRight': true,
            'iteratee': true,
            'mixin': true,
            'rearg': true,
            'runInContext': true
        };
        /** Used to track methods that skip rearranging arguments. */
        exports.skipRearg = {
            'add': true,
            'assign': true,
            'assignIn': true,
            'bind': true,
            'bindKey': true,
            'concat': true,
            'difference': true,
            'divide': true,
            'eq': true,
            'gt': true,
            'gte': true,
            'isEqual': true,
            'lt': true,
            'lte': true,
            'matchesProperty': true,
            'merge': true,
            'multiply': true,
            'overArgs': true,
            'partial': true,
            'partialRight': true,
            'propertyOf': true,
            'random': true,
            'range': true,
            'rangeRight': true,
            'subtract': true,
            'zip': true,
            'zipObject': true,
            'zipObjectDeep': true
        };
        /***/ 
    }),
    /* 274 */
    /***/ (function (module, exports) {
        /**
         * The default argument placeholder value for methods.
         *
         * @type {Object}
         */
        module.exports = {};
        /***/ 
    }),
    /* 275 */
    /***/ (function (module, exports, __webpack_require__) {
        module.exports = {
            'ary': __webpack_require__(276),
            'assign': __webpack_require__(310),
            'clone': __webpack_require__(313),
            'curry': __webpack_require__(337),
            'forEach': __webpack_require__(244),
            'isArray': __webpack_require__(84),
            'isError': __webpack_require__(338),
            'isFunction': __webpack_require__(105),
            'isWeakMap': __webpack_require__(340),
            'iteratee': __webpack_require__(341),
            'keys': __webpack_require__(196),
            'rearg': __webpack_require__(342),
            'toInteger': __webpack_require__(177),
            'toPath': __webpack_require__(345)
        };
        /***/ 
    }),
    /* 276 */
    /***/ (function (module, exports, __webpack_require__) {
        var createWrap = __webpack_require__(277);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_ARY_FLAG = 128;
        /**
         * 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);
        }
        module.exports = ary;
        /***/ 
    }),
    /* 277 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSetData = __webpack_require__(278), createBind = __webpack_require__(280), createCurry = __webpack_require__(283), createHybrid = __webpack_require__(284), createPartial = __webpack_require__(308), getData = __webpack_require__(292), mergeData = __webpack_require__(309), setData = __webpack_require__(300), setWrapToString = __webpack_require__(301), toInteger = __webpack_require__(177);
        /** Error message constants. */
        var FUNC_ERROR_TEXT = 'Expected a function';
        /** Used to compose bitmasks for function metadata. */
        var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64;
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMax = Math.max;
        /**
         * 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);
        }
        module.exports = createWrap;
        /***/ 
    }),
    /* 278 */
    /***/ (function (module, exports, __webpack_require__) {
        var identity = __webpack_require__(146), metaMap = __webpack_require__(279);
        /**
         * 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;
        };
        module.exports = baseSetData;
        /***/ 
    }),
    /* 279 */
    /***/ (function (module, exports, __webpack_require__) {
        var WeakMap = __webpack_require__(227);
        /** Used to store function metadata. */
        var metaMap = WeakMap && new WeakMap;
        module.exports = metaMap;
        /***/ 
    }),
    /* 280 */
    /***/ (function (module, exports, __webpack_require__) {
        var createCtor = __webpack_require__(281), root = __webpack_require__(89);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_BIND_FLAG = 1;
        /**
         * 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;
        }
        module.exports = createBind;
        /***/ 
    }),
    /* 281 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseCreate = __webpack_require__(282), isObject = __webpack_require__(106);
        /**
         * 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;
            };
        }
        module.exports = createCtor;
        /***/ 
    }),
    /* 282 */
    /***/ (function (module, exports, __webpack_require__) {
        var isObject = __webpack_require__(106);
        /** 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;
        /***/ 
    }),
    /* 283 */
    /***/ (function (module, exports, __webpack_require__) {
        var apply = __webpack_require__(140), createCtor = __webpack_require__(281), createHybrid = __webpack_require__(284), createRecurry = __webpack_require__(288), getHolder = __webpack_require__(305), replaceHolders = __webpack_require__(307), root = __webpack_require__(89);
        /**
         * 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;
        }
        module.exports = createCurry;
        /***/ 
    }),
    /* 284 */
    /***/ (function (module, exports, __webpack_require__) {
        var composeArgs = __webpack_require__(285), composeArgsRight = __webpack_require__(286), countHolders = __webpack_require__(287), createCtor = __webpack_require__(281), createRecurry = __webpack_require__(288), getHolder = __webpack_require__(305), reorder = __webpack_require__(306), replaceHolders = __webpack_require__(307), root = __webpack_require__(89);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_ARY_FLAG = 128, WRAP_FLIP_FLAG = 512;
        /**
         * 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;
        }
        module.exports = createHybrid;
        /***/ 
    }),
    /* 285 */
    /***/ (function (module, exports) {
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMax = Math.max;
        /**
         * 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;
        }
        module.exports = composeArgs;
        /***/ 
    }),
    /* 286 */
    /***/ (function (module, exports) {
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMax = Math.max;
        /**
         * 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;
        }
        module.exports = composeArgsRight;
        /***/ 
    }),
    /* 287 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = countHolders;
        /***/ 
    }),
    /* 288 */
    /***/ (function (module, exports, __webpack_require__) {
        var isLaziable = __webpack_require__(289), setData = __webpack_require__(300), setWrapToString = __webpack_require__(301);
        /** 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_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64;
        /**
         * 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);
        }
        module.exports = createRecurry;
        /***/ 
    }),
    /* 289 */
    /***/ (function (module, exports, __webpack_require__) {
        var LazyWrapper = __webpack_require__(290), getData = __webpack_require__(292), getFuncName = __webpack_require__(294), lodash = __webpack_require__(296);
        /**
         * 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];
        }
        module.exports = isLaziable;
        /***/ 
    }),
    /* 290 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseCreate = __webpack_require__(282), baseLodash = __webpack_require__(291);
        /** Used as references for the maximum length and index of an array. */
        var MAX_ARRAY_LENGTH = 4294967295;
        /**
         * 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__ = [];
        }
        // Ensure `LazyWrapper` is an instance of `baseLodash`.
        LazyWrapper.prototype = baseCreate(baseLodash.prototype);
        LazyWrapper.prototype.constructor = LazyWrapper;
        module.exports = LazyWrapper;
        /***/ 
    }),
    /* 291 */
    /***/ (function (module, exports) {
        /**
         * The function whose prototype chain sequence wrappers inherit from.
         *
         * @private
         */
        function baseLodash() {
            // No operation performed.
        }
        module.exports = baseLodash;
        /***/ 
    }),
    /* 292 */
    /***/ (function (module, exports, __webpack_require__) {
        var metaMap = __webpack_require__(279), noop = __webpack_require__(293);
        /**
         * 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);
        };
        module.exports = getData;
        /***/ 
    }),
    /* 293 */
    /***/ (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;
        /***/ 
    }),
    /* 294 */
    /***/ (function (module, exports, __webpack_require__) {
        var realNames = __webpack_require__(295);
        /** Used for built-in method references. */
        var objectProto = Object.prototype;
        /** Used to check objects for own properties. */
        var hasOwnProperty = objectProto.hasOwnProperty;
        /**
         * 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;
        }
        module.exports = getFuncName;
        /***/ 
    }),
    /* 295 */
    /***/ (function (module, exports) {
        /** Used to lookup unminified function names. */
        var realNames = {};
        module.exports = realNames;
        /***/ 
    }),
    /* 296 */
    /***/ (function (module, exports, __webpack_require__) {
        var LazyWrapper = __webpack_require__(290), LodashWrapper = __webpack_require__(297), baseLodash = __webpack_require__(291), isArray = __webpack_require__(84), isObjectLike = __webpack_require__(94), wrapperClone = __webpack_require__(298);
        /** Used for built-in method references. */
        var objectProto = Object.prototype;
        /** Used to check objects for own properties. */
        var hasOwnProperty = objectProto.hasOwnProperty;
        /**
         * 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);
        }
        // Ensure wrappers are instances of `baseLodash`.
        lodash.prototype = baseLodash.prototype;
        lodash.prototype.constructor = lodash;
        module.exports = lodash;
        /***/ 
    }),
    /* 297 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseCreate = __webpack_require__(282), baseLodash = __webpack_require__(291);
        /**
         * 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;
        }
        LodashWrapper.prototype = baseCreate(baseLodash.prototype);
        LodashWrapper.prototype.constructor = LodashWrapper;
        module.exports = LodashWrapper;
        /***/ 
    }),
    /* 298 */
    /***/ (function (module, exports, __webpack_require__) {
        var LazyWrapper = __webpack_require__(290), LodashWrapper = __webpack_require__(297), copyArray = __webpack_require__(299);
        /**
         * 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;
        }
        module.exports = wrapperClone;
        /***/ 
    }),
    /* 299 */
    /***/ (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;
        /***/ 
    }),
    /* 300 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSetData = __webpack_require__(278), shortOut = __webpack_require__(152);
        /**
         * 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);
        module.exports = setData;
        /***/ 
    }),
    /* 301 */
    /***/ (function (module, exports, __webpack_require__) {
        var getWrapDetails = __webpack_require__(302), insertWrapDetails = __webpack_require__(303), setToString = __webpack_require__(148), updateWrapDetails = __webpack_require__(304);
        /**
         * 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)));
        }
        module.exports = setWrapToString;
        /***/ 
    }),
    /* 302 */
    /***/ (function (module, exports) {
        /** Used to match wrap detail comments. */
        var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /;
        /**
         * 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) : [];
        }
        module.exports = getWrapDetails;
        /***/ 
    }),
    /* 303 */
    /***/ (function (module, exports) {
        /** Used to match wrap detail comments. */
        var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;
        /**
         * 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');
        }
        module.exports = insertWrapDetails;
        /***/ 
    }),
    /* 304 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayEach = __webpack_require__(244), arrayIncludes = __webpack_require__(161);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, 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 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]
        ];
        /**
         * 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();
        }
        module.exports = updateWrapDetails;
        /***/ 
    }),
    /* 305 */
    /***/ (function (module, exports) {
        /**
         * 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 = func;
            return object.placeholder;
        }
        module.exports = getHolder;
        /***/ 
    }),
    /* 306 */
    /***/ (function (module, exports, __webpack_require__) {
        var copyArray = __webpack_require__(299), isIndex = __webpack_require__(135);
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMin = Math.min;
        /**
         * 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;
        }
        module.exports = reorder;
        /***/ 
    }),
    /* 307 */
    /***/ (function (module, exports) {
        /** Used as the internal argument placeholder. */
        var PLACEHOLDER = '__lodash_placeholder__';
        /**
         * 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;
        }
        module.exports = replaceHolders;
        /***/ 
    }),
    /* 308 */
    /***/ (function (module, exports, __webpack_require__) {
        var apply = __webpack_require__(140), createCtor = __webpack_require__(281), root = __webpack_require__(89);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_BIND_FLAG = 1;
        /**
         * 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;
        }
        module.exports = createPartial;
        /***/ 
    }),
    /* 309 */
    /***/ (function (module, exports, __webpack_require__) {
        var composeArgs = __webpack_require__(285), composeArgsRight = __webpack_require__(286), replaceHolders = __webpack_require__(307);
        /** Used as the internal argument placeholder. */
        var PLACEHOLDER = '__lodash_placeholder__';
        /** 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_ARY_FLAG = 128, WRAP_REARG_FLAG = 256;
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMin = Math.min;
        /**
         * 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;
        }
        module.exports = mergeData;
        /***/ 
    }),
    /* 310 */
    /***/ (function (module, exports, __webpack_require__) {
        var copyObject = __webpack_require__(311), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 311 */
    /***/ (function (module, exports, __webpack_require__) {
        var assignValue = __webpack_require__(312), baseAssignValue = __webpack_require__(252);
        /**
         * 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;
        /***/ 
    }),
    /* 312 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseAssignValue = __webpack_require__(252), eq = __webpack_require__(119);
        /** 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;
        /***/ 
    }),
    /* 313 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseClone = __webpack_require__(314);
        /** 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;
        /***/ 
    }),
    /* 314 */
    /***/ (function (module, exports, __webpack_require__) {
        var Stack = __webpack_require__(204), arrayEach = __webpack_require__(244), assignValue = __webpack_require__(312), baseAssign = __webpack_require__(310), baseAssignIn = __webpack_require__(315), cloneBuffer = __webpack_require__(319), copyArray = __webpack_require__(299), copySymbols = __webpack_require__(320), copySymbolsIn = __webpack_require__(321), getAllKeys = __webpack_require__(219), getAllKeysIn = __webpack_require__(324), getTag = __webpack_require__(223), initCloneArray = __webpack_require__(325), initCloneByTag = __webpack_require__(326), initCloneObject = __webpack_require__(332), isArray = __webpack_require__(84), isBuffer = __webpack_require__(190), isMap = __webpack_require__(333), isObject = __webpack_require__(106), isSet = __webpack_require__(335), keys = __webpack_require__(187);
        /** 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));
                });
                return result;
            }
            if (isMap(value)) {
                value.forEach(function (subValue, key) {
                    result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
                });
                return result;
            }
            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;
        /***/ 
    }),
    /* 315 */
    /***/ (function (module, exports, __webpack_require__) {
        var copyObject = __webpack_require__(311), keysIn = __webpack_require__(316);
        /**
         * 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;
        /***/ 
    }),
    /* 316 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayLikeKeys = __webpack_require__(188), baseKeysIn = __webpack_require__(317), isArrayLike = __webpack_require__(173);
        /**
         * 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;
        /***/ 
    }),
    /* 317 */
    /***/ (function (module, exports, __webpack_require__) {
        var isObject = __webpack_require__(106), isPrototype = __webpack_require__(197), nativeKeysIn = __webpack_require__(318);
        /** 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;
        /***/ 
    }),
    /* 318 */
    /***/ (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;
        /***/ 
    }),
    /* 319 */
    /***/ (function (module, exports, __webpack_require__) {
        /* WEBPACK VAR INJECTION */ (function (module) {
            var root = __webpack_require__(89);
            /** Detect free variable `exports`. */
            var freeExports = typeof exports == 'object' && 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__(191)(module)));
        /***/ 
    }),
    /* 320 */
    /***/ (function (module, exports, __webpack_require__) {
        var copyObject = __webpack_require__(311), getSymbols = __webpack_require__(221);
        /**
         * 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;
        /***/ 
    }),
    /* 321 */
    /***/ (function (module, exports, __webpack_require__) {
        var copyObject = __webpack_require__(311), getSymbolsIn = __webpack_require__(322);
        /**
         * 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;
        /***/ 
    }),
    /* 322 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayPush = __webpack_require__(170), getPrototype = __webpack_require__(323), getSymbols = __webpack_require__(221), stubArray = __webpack_require__(222);
        /* 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;
        /***/ 
    }),
    /* 323 */
    /***/ (function (module, exports, __webpack_require__) {
        var overArg = __webpack_require__(199);
        /** Built-in value references. */
        var getPrototype = overArg(Object.getPrototypeOf, Object);
        module.exports = getPrototype;
        /***/ 
    }),
    /* 324 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetAllKeys = __webpack_require__(220), getSymbolsIn = __webpack_require__(322), keysIn = __webpack_require__(316);
        /**
         * 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;
        /***/ 
    }),
    /* 325 */
    /***/ (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;
        /***/ 
    }),
    /* 326 */
    /***/ (function (module, exports, __webpack_require__) {
        var cloneArrayBuffer = __webpack_require__(327), cloneDataView = __webpack_require__(328), cloneRegExp = __webpack_require__(329), cloneSymbol = __webpack_require__(330), cloneTypedArray = __webpack_require__(331);
        /** `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;
        /***/ 
    }),
    /* 327 */
    /***/ (function (module, exports, __webpack_require__) {
        var Uint8Array = __webpack_require__(215);
        /**
         * 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;
        /***/ 
    }),
    /* 328 */
    /***/ (function (module, exports, __webpack_require__) {
        var cloneArrayBuffer = __webpack_require__(327);
        /**
         * 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;
        /***/ 
    }),
    /* 329 */
    /***/ (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;
        /***/ 
    }),
    /* 330 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88);
        /** 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;
        /***/ 
    }),
    /* 331 */
    /***/ (function (module, exports, __webpack_require__) {
        var cloneArrayBuffer = __webpack_require__(327);
        /**
         * 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;
        /***/ 
    }),
    /* 332 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseCreate = __webpack_require__(282), getPrototype = __webpack_require__(323), isPrototype = __webpack_require__(197);
        /**
         * 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;
        /***/ 
    }),
    /* 333 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsMap = __webpack_require__(334), baseUnary = __webpack_require__(167), nodeUtil = __webpack_require__(195);
        /* 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;
        /***/ 
    }),
    /* 334 */
    /***/ (function (module, exports, __webpack_require__) {
        var getTag = __webpack_require__(223), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 335 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsSet = __webpack_require__(336), baseUnary = __webpack_require__(167), nodeUtil = __webpack_require__(195);
        /* 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;
        /***/ 
    }),
    /* 336 */
    /***/ (function (module, exports, __webpack_require__) {
        var getTag = __webpack_require__(223), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 337 */
    /***/ (function (module, exports, __webpack_require__) {
        var createWrap = __webpack_require__(277);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_CURRY_FLAG = 8;
        /**
         * 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;
        }
        // Assign default placeholders.
        curry.placeholder = {};
        module.exports = curry;
        /***/ 
    }),
    /* 338 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94), isPlainObject = __webpack_require__(339);
        /** `Object#toString` result references. */
        var domExcTag = '[object DOMException]', errorTag = '[object Error]';
        /**
         * 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));
        }
        module.exports = isError;
        /***/ 
    }),
    /* 339 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), getPrototype = __webpack_require__(323), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 340 */
    /***/ (function (module, exports, __webpack_require__) {
        var getTag = __webpack_require__(223), isObjectLike = __webpack_require__(94);
        /** `Object#toString` result references. */
        var weakMapTag = '[object WeakMap]';
        /**
         * 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;
        }
        module.exports = isWeakMap;
        /***/ 
    }),
    /* 341 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseClone = __webpack_require__(314), baseIteratee = __webpack_require__(201);
        /** Used to compose bitmasks for cloning. */
        var CLONE_DEEP_FLAG = 1;
        /**
         * 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));
        }
        module.exports = iteratee;
        /***/ 
    }),
    /* 342 */
    /***/ (function (module, exports, __webpack_require__) {
        var createWrap = __webpack_require__(277), flatRest = __webpack_require__(343);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_REARG_FLAG = 256;
        /**
         * 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);
        });
        module.exports = rearg;
        /***/ 
    }),
    /* 343 */
    /***/ (function (module, exports, __webpack_require__) {
        var flatten = __webpack_require__(344), overRest = __webpack_require__(147), setToString = __webpack_require__(148);
        /**
         * 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;
        /***/ 
    }),
    /* 344 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFlatten = __webpack_require__(169);
        /**
         * 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;
        /***/ 
    }),
    /* 345 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132), copyArray = __webpack_require__(299), isArray = __webpack_require__(84), isSymbol = __webpack_require__(86), stringToPath = __webpack_require__(95), toKey = __webpack_require__(137), toString = __webpack_require__(130);
        /**
         * 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)));
        }
        module.exports = toPath;
        /***/ 
    }),
    /* 346 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('trim', __webpack_require__(347));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 347 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseToString = __webpack_require__(131), castSlice = __webpack_require__(348), charsEndIndex = __webpack_require__(349), charsStartIndex = __webpack_require__(350), stringToArray = __webpack_require__(351), toString = __webpack_require__(130);
        /** Used to match leading and trailing whitespace. */
        var reTrim = /^\s+|\s+$/g;
        /**
         * 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('');
        }
        module.exports = trim;
        /***/ 
    }),
    /* 348 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSlice = __webpack_require__(144);
        /**
         * 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);
        }
        module.exports = castSlice;
        /***/ 
    }),
    /* 349 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIndexOf = __webpack_require__(162);
        /**
         * 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;
        }
        module.exports = charsEndIndex;
        /***/ 
    }),
    /* 350 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIndexOf = __webpack_require__(162);
        /**
         * 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;
        }
        module.exports = charsStartIndex;
        /***/ 
    }),
    /* 351 */
    /***/ (function (module, exports, __webpack_require__) {
        var asciiToArray = __webpack_require__(352), hasUnicode = __webpack_require__(353), unicodeToArray = __webpack_require__(354);
        /**
         * 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);
        }
        module.exports = stringToArray;
        /***/ 
    }),
    /* 352 */
    /***/ (function (module, exports) {
        /**
         * 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('');
        }
        module.exports = asciiToArray;
        /***/ 
    }),
    /* 353 */
    /***/ (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;
        /***/ 
    }),
    /* 354 */
    /***/ (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');
        /**
         * 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) || [];
        }
        module.exports = unicodeToArray;
        /***/ 
    }),
    /* 355 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('isObject', __webpack_require__(106), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 356 */
    /***/ (function (module, exports) {
        module.exports = {
            'cap': false,
            'curry': false,
            'fixed': false,
            'immutable': false,
            'rearg': false
        };
        /***/ 
    }),
    /* 357 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('pick', __webpack_require__(358));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 358 */
    /***/ (function (module, exports, __webpack_require__) {
        var basePick = __webpack_require__(359), flatRest = __webpack_require__(343);
        /**
         * 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;
        /***/ 
    }),
    /* 359 */
    /***/ (function (module, exports, __webpack_require__) {
        var basePickBy = __webpack_require__(360), hasIn = __webpack_require__(233);
        /**
         * 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;
        /***/ 
    }),
    /* 360 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGet = __webpack_require__(143), baseSet = __webpack_require__(361), castPath = __webpack_require__(83);
        /**
         * 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;
        /***/ 
    }),
    /* 361 */
    /***/ (function (module, exports, __webpack_require__) {
        var assignValue = __webpack_require__(312), castPath = __webpack_require__(83), isIndex = __webpack_require__(135), isObject = __webpack_require__(106), toKey = __webpack_require__(137);
        /**
         * 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 (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;
        /***/ 
    }),
    /* 362 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('keys', __webpack_require__(187), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 363 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('isPlainObject', __webpack_require__(339), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 364 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('isFunction', __webpack_require__(105), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 365 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('compact', __webpack_require__(366), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 366 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = compact;
        /***/ 
    }),
    /* 367 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('isNil', __webpack_require__(368), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 368 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = isNil;
        /***/ 
    }),
    /* 369 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('take', __webpack_require__(370));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 370 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSlice = __webpack_require__(144), toInteger = __webpack_require__(177);
        /**
         * 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);
        }
        module.exports = take;
        /***/ 
    }),
    /* 371 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('sortBy', __webpack_require__(372));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 372 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFlatten = __webpack_require__(169), baseOrderBy = __webpack_require__(373), baseRest = __webpack_require__(145), isIterateeCall = __webpack_require__(262);
        /**
         * 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': 40 },
         *   { 'user': 'barney', 'age': 34 }
         * ];
         *
         * _.sortBy(users, [function(o) { return o.user; }]);
         * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
         *
         * _.sortBy(users, ['user', 'age']);
         * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['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;
        /***/ 
    }),
    /* 373 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132), baseIteratee = __webpack_require__(201), baseMap = __webpack_require__(374), baseSortBy = __webpack_require__(375), baseUnary = __webpack_require__(167), compareMultiple = __webpack_require__(376), identity = __webpack_require__(146);
        /**
         * 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) {
            var index = -1;
            iteratees = arrayMap(iteratees.length ? iteratees : [identity], 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;
        /***/ 
    }),
    /* 374 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseEach = __webpack_require__(183), isArrayLike = __webpack_require__(173);
        /**
         * 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;
        /***/ 
    }),
    /* 375 */
    /***/ (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;
        /***/ 
    }),
    /* 376 */
    /***/ (function (module, exports, __webpack_require__) {
        var compareAscending = __webpack_require__(377);
        /**
         * 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;
        /***/ 
    }),
    /* 377 */
    /***/ (function (module, exports, __webpack_require__) {
        var isSymbol = __webpack_require__(86);
        /**
         * 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;
        /***/ 
    }),
    /* 378 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('sum', __webpack_require__(379), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 379 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSum = __webpack_require__(380), identity = __webpack_require__(146);
        /**
         * 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;
        }
        module.exports = sum;
        /***/ 
    }),
    /* 380 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = baseSum;
        /***/ 
    }),
    /* 381 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('min', __webpack_require__(382), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 382 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseExtremum = __webpack_require__(383), baseLt = __webpack_require__(384), identity = __webpack_require__(146);
        /**
         * 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;
        /***/ 
    }),
    /* 383 */
    /***/ (function (module, exports, __webpack_require__) {
        var isSymbol = __webpack_require__(86);
        /**
         * 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;
        /***/ 
    }),
    /* 384 */
    /***/ (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;
        /***/ 
    }),
    /* 385 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('map', __webpack_require__(386));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 386 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132), baseIteratee = __webpack_require__(201), baseMap = __webpack_require__(374), isArray = __webpack_require__(84);
        /**
         * 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;
        /***/ 
    }),
    /* 387 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('flow', __webpack_require__(388));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 388 */
    /***/ (function (module, exports, __webpack_require__) {
        var createFlow = __webpack_require__(389);
        /**
         * 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();
        module.exports = flow;
        /***/ 
    }),
    /* 389 */
    /***/ (function (module, exports, __webpack_require__) {
        var LodashWrapper = __webpack_require__(297), flatRest = __webpack_require__(343), getData = __webpack_require__(292), getFuncName = __webpack_require__(294), isArray = __webpack_require__(84), isLaziable = __webpack_require__(289);
        /** Error message constants. */
        var FUNC_ERROR_TEXT = 'Expected a function';
        /** Used to compose bitmasks for function metadata. */
        var WRAP_CURRY_FLAG = 8, WRAP_PARTIAL_FLAG = 32, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256;
        /**
         * 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;
                };
            });
        }
        module.exports = createFlow;
        /***/ 
    }),
    /* 390 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('memoize', __webpack_require__(97));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 391 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        // Copy of sindre's leven, wrapped in dead code elimination for production
        // https://github.com/sindresorhus/leven/blob/master/index.js
        /* eslint-disable complexity, import/no-mutable-exports, no-multi-assign, no-nested-ternary, no-plusplus */
        var leven = function leven() {
            return 0;
        };
        if (true) {
            var arr = [];
            var charCodeCache = [];
            leven = function leven(a, b) {
                if (a === b)
                    return 0;
                var aLen = a.length;
                var bLen = b.length;
                if (aLen === 0)
                    return bLen;
                if (bLen === 0)
                    return aLen;
                var bCharCode;
                var ret;
                var tmp;
                var tmp2;
                var i = 0;
                var j = 0;
                while (i < aLen) {
                    charCodeCache[i] = a.charCodeAt(i);
                    arr[i] = ++i;
                }
                while (j < bLen) {
                    bCharCode = b.charCodeAt(j);
                    tmp = j++;
                    ret = j;
                    for (i = 0; i < aLen; i++) {
                        tmp2 = bCharCode === charCodeCache[i] ? tmp : tmp + 1;
                        tmp = arr[i];
                        ret = arr[i] = tmp > ret ? tmp2 > ret ? ret + 1 : tmp2 : tmp2 > tmp ? tmp + 1 : tmp2;
                    }
                }
                return ret;
            };
        }
        /* harmony default export */ __webpack_exports__["default"] = (leven);
        /***/ 
    }),
    /* 392 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeDebugger", function () { return makeDebugger; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debug", function () { return debug; });
        /* harmony import */ var _isBrowser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(393);
        if (Object(_isBrowser__WEBPACK_IMPORTED_MODULE_0__["default"])() && "none" !== 'production' && "none" !== 'test') {
            // Heads Up!
            // https://github.com/visionmedia/debug/pull/331
            //
            // debug now clears storage on load, grab the debug settings before require('debug').
            // We try/catch here as Safari throws on localStorage access in private mode or with cookies disabled.
            var DEBUG;
            try {
                DEBUG = window.localStorage.debug;
            }
            catch (e) {
                /* eslint-disable no-console */
                console.error('Semantic-UI-React could not enable debug.');
                console.error(e);
                /* eslint-enable no-console */
            } // enable what ever settings we got from storage
        }
        /**
         * Create a namespaced debug function.
         * @param {String} namespace Usually a component name.
         * @example
         * import { makeDebugger } from 'src/lib'
         * const debug = makeDebugger('namespace')
         *
         * debug('Some message')
         * @returns {Function}
         */
        var makeDebugger = function makeDebugger(namespace) { };
        /**
         * Default debugger, simple log.
         * @example
         * import { debug } from 'src/lib'
         * debug('Some message')
         */
        var debug = makeDebugger('log');
        /***/ 
    }),
    /* 393 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
        var hasDocument = (typeof document === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(document)) === 'object' && document !== null;
        var hasWindow = (typeof window === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(window)) === 'object' && window !== null && window.self === window; // eslint-disable-next-line no-confusing-arrow
        var isBrowser = function isBrowser() {
            return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(isBrowser.override) ? isBrowser.override : hasDocument && hasWindow;
        };
        /* harmony default export */ __webpack_exports__["default"] = (isBrowser);
        /***/ 
    }),
    /* 394 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(395);
        /* harmony import */ var _semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony default export */ __webpack_exports__["default"] = (_semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_0__["instance"]);
        /***/ 
    }),
    /* 395 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        if (false) { }
        else {
            module.exports = __webpack_require__(396);
        }
        /***/ 
    }),
    /* 396 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        Object.defineProperty(exports, '__esModule', { value: true });
        var env = __webpack_require__(397);
        var PropTypes = __webpack_require__(24);
        var React = __webpack_require__(9);
        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;
            }
            return obj;
        }
        function _inherits(subClass, superClass) {
            if (typeof superClass !== "function" && superClass !== null) {
                throw new TypeError("Super expression must either be null or a function");
            }
            subClass.prototype = Object.create(superClass && superClass.prototype, {
                constructor: {
                    value: subClass,
                    writable: true,
                    configurable: true
                }
            });
            if (superClass)
                _setPrototypeOf(subClass, superClass);
        }
        function _getPrototypeOf(o) {
            _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
                return o.__proto__ || Object.getPrototypeOf(o);
            };
            return _getPrototypeOf(o);
        }
        function _setPrototypeOf(o, p) {
            _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
                o.__proto__ = p;
                return o;
            };
            return _setPrototypeOf(o, p);
        }
        function _assertThisInitialized(self) {
            if (self === void 0) {
                throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            }
            return self;
        }
        function _possibleConstructorReturn(self, call) {
            if (call && (typeof call === "object" || typeof call === "function")) {
                return call;
            }
            return _assertThisInitialized(self);
        }
        /**
         * The current implementation was chosen by performance and compatibility reasons, feel free to play
         * with benchmarks and submit PR with faster alternative. Each method contains links to benchmarks.
         */
        var EventSet = 
        /*#__PURE__*/
        function () {
            /**
             * @see https://jsperf.com/suir-eventset-constructor
             */
            function EventSet(eventHandlers) {
                _classCallCheck(this, EventSet);
                _defineProperty(this, "handlers", void 0);
                this.handlers = eventHandlers.slice(0);
            }
            /**
             * @see https://jsperf.com/suir-eventset-addhandlers
             */
            _createClass(EventSet, [{
                    key: "addHandlers",
                    value: function addHandlers(additionalHandlers) {
                        var newHandlers = this.handlers.slice(0);
                        var length = additionalHandlers.length; // Heads up!
                        // Previously we use Set there, it granted uniqueness of handlers, now dispatchEvent() is
                        // responsible for this.
                        for (var i = 0; i < length; i += 1) {
                            newHandlers.push(additionalHandlers[i]);
                        }
                        return new EventSet(newHandlers);
                    }
                    /**
                     * @see https://jsperf.com/suir-eventset-dispatchsingle
                     * @see https://jsperf.com/suir-eventset-dispatchmultiple2
                     */
                }, {
                    key: "dispatchEvent",
                    value: function dispatchEvent(event, dispatchAll) {
                        var count = this.handlers.length - 1;
                        if (!dispatchAll) {
                            // Heads up!
                            // We don't use .pop() there because it will mutate the array.
                            var recentHandler = this.handlers[count];
                            recentHandler(event);
                            return;
                        }
                        for (var i = count; i >= 0; i -= 1) {
                            if (!this.handlers[i].called) {
                                this.handlers[i].called = true;
                                this.handlers[i](event);
                            }
                        }
                        for (var _i = count; _i >= 0; _i -= 1) {
                            this.handlers[_i].called = false;
                        }
                    }
                }, {
                    key: "hasHandlers",
                    value: function hasHandlers() {
                        return this.handlers.length > 0;
                    }
                    /**
                     * @see https://jsperf.com/suir-eventset-removehandlers
                     */
                }, {
                    key: "removeHandlers",
                    value: function removeHandlers(removalHandlers) {
                        var newHandlers = [];
                        var length = this.handlers.length;
                        for (var i = 0; i < length; i += 1) {
                            var handler = this.handlers[i];
                            if (removalHandlers.indexOf(handler) === -1) {
                                newHandlers.push(handler);
                            }
                        }
                        return new EventSet(newHandlers);
                    }
                }]);
            return EventSet;
        }();
        /**
         * An IE11-compatible function.
         *
         * @see https://jsperf.com/suir-clone-map
         */
        function cloneMap(map) {
            var newMap = new Map();
            map.forEach(function (value, key) {
                newMap.set(key, value);
            });
            return newMap;
        }
        function normalizeHandlers(handlers) {
            return Array.isArray(handlers) ? handlers : [handlers];
        }
        /**
         * Normalizes `target` for EventStack, because `target` can be passed as `boolean` or `string`.
         *
         * @see https://jsperf.com/suir-normalize-target
         */
        function normalizeTarget(target) {
            if (target === 'document')
                return document;
            if (target === 'window')
                return window;
            return target || document;
        }
        var EventPool = 
        /*#__PURE__*/
        function () {
            function EventPool(poolName, handlerSets) {
                _classCallCheck(this, EventPool);
                _defineProperty(this, "handlerSets", void 0);
                _defineProperty(this, "poolName", void 0);
                this.handlerSets = handlerSets;
                this.poolName = poolName;
            }
            _createClass(EventPool, [{
                    key: "addHandlers",
                    value: function addHandlers(eventType, eventHandlers) {
                        var handlerSets = cloneMap(this.handlerSets);
                        if (handlerSets.has(eventType)) {
                            var eventSet = handlerSets.get(eventType);
                            handlerSets.set(eventType, eventSet.addHandlers(eventHandlers));
                        }
                        else {
                            handlerSets.set(eventType, new EventSet(eventHandlers));
                        }
                        return new EventPool(this.poolName, handlerSets);
                    }
                }, {
                    key: "dispatchEvent",
                    value: function dispatchEvent(eventType, event) {
                        var handlerSet = this.handlerSets.get(eventType);
                        var shouldDispatchAll = this.poolName === 'default';
                        if (handlerSet) {
                            handlerSet.dispatchEvent(event, shouldDispatchAll);
                        }
                    }
                }, {
                    key: "hasHandlers",
                    value: function hasHandlers() {
                        return this.handlerSets.size > 0;
                    }
                }, {
                    key: "removeHandlers",
                    value: function removeHandlers(eventType, eventHandlers) {
                        var handlerSets = cloneMap(this.handlerSets);
                        if (!handlerSets.has(eventType)) {
                            return new EventPool(this.poolName, handlerSets);
                        }
                        var currentSet = handlerSets.get(eventType);
                        var nextSet = currentSet.removeHandlers(eventHandlers);
                        if (nextSet.hasHandlers()) {
                            handlerSets.set(eventType, nextSet);
                        }
                        else {
                            handlerSets.delete(eventType);
                        }
                        return new EventPool(this.poolName, handlerSets);
                    }
                }]);
            return EventPool;
        }();
        _defineProperty(EventPool, "createByType", function (poolName, eventType, eventHandlers) {
            var handlerSets = new Map();
            handlerSets.set(eventType, new EventSet(eventHandlers));
            return new EventPool(poolName, handlerSets);
        });
        var EventTarget = 
        /*#__PURE__*/
        function () {
            function EventTarget(target) {
                var _this = this;
                _classCallCheck(this, EventTarget);
                _defineProperty(this, "handlers", new Map());
                _defineProperty(this, "pools", new Map());
                _defineProperty(this, "target", void 0);
                _defineProperty(this, "createEmitter", function (eventType) {
                    return function (event) {
                        _this.pools.forEach(function (pool) {
                            pool.dispatchEvent(eventType, event);
                        });
                    };
                });
                this.target = target;
            }
            _createClass(EventTarget, [{
                    key: "addHandlers",
                    value: function addHandlers(poolName, eventType, eventHandlers) {
                        if (this.pools.has(poolName)) {
                            var eventPool = this.pools.get(poolName);
                            this.pools.set(poolName, eventPool.addHandlers(eventType, eventHandlers));
                        }
                        else {
                            this.pools.set(poolName, EventPool.createByType(poolName, eventType, eventHandlers));
                        }
                        if (!this.handlers.has(eventType)) {
                            this.addTargetHandler(eventType);
                        }
                    }
                }, {
                    key: "hasHandlers",
                    value: function hasHandlers() {
                        return this.handlers.size > 0;
                    }
                }, {
                    key: "removeHandlers",
                    value: function removeHandlers(poolName, eventType, eventHandlers) {
                        if (!this.pools.has(poolName)) {
                            return;
                        }
                        var pool = this.pools.get(poolName);
                        var newPool = pool.removeHandlers(eventType, eventHandlers);
                        if (newPool.hasHandlers()) {
                            this.pools.set(poolName, newPool);
                        }
                        else {
                            this.pools.delete(poolName);
                        }
                        if (this.pools.size === 0) {
                            this.removeTargetHandler(eventType);
                        }
                    }
                }, {
                    key: "addTargetHandler",
                    value: function addTargetHandler(eventType) {
                        var handler = this.createEmitter(eventType);
                        this.handlers.set(eventType, handler);
                        this.target.addEventListener(eventType, handler, true);
                    }
                }, {
                    key: "removeTargetHandler",
                    value: function removeTargetHandler(eventType) {
                        if (this.handlers.has(eventType)) {
                            this.target.removeEventListener(eventType, this.handlers.get(eventType), true);
                            this.handlers.delete(eventType);
                        }
                    }
                }]);
            return EventTarget;
        }();
        var EventStack = 
        /*#__PURE__*/
        function () {
            function EventStack() {
                var _this = this;
                _classCallCheck(this, EventStack);
                _defineProperty(this, "targets", new Map());
                _defineProperty(this, "getTarget", function (target) {
                    var autoCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
                    var normalized = normalizeTarget(target);
                    if (_this.targets.has(normalized)) {
                        return _this.targets.get(normalized);
                    }
                    if (!autoCreate)
                        return null;
                    var eventTarget = new EventTarget(normalized);
                    _this.targets.set(normalized, eventTarget);
                    return eventTarget;
                });
                _defineProperty(this, "removeTarget", function (target) {
                    _this.targets.delete(normalizeTarget(target));
                });
            }
            _createClass(EventStack, [{
                    key: "sub",
                    value: function sub(eventName, eventHandlers) {
                        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
                        if (!env.canUseDOM)
                            return;
                        var _options$target = options.target, target = _options$target === void 0 ? document : _options$target, _options$pool = options.pool, pool = _options$pool === void 0 ? 'default' : _options$pool;
                        var eventTarget = this.getTarget(target);
                        eventTarget.addHandlers(pool, eventName, normalizeHandlers(eventHandlers));
                    }
                }, {
                    key: "unsub",
                    value: function unsub(eventName, eventHandlers) {
                        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
                        if (!env.canUseDOM)
                            return;
                        var _options$target2 = options.target, target = _options$target2 === void 0 ? document : _options$target2, _options$pool2 = options.pool, pool = _options$pool2 === void 0 ? 'default' : _options$pool2;
                        var eventTarget = this.getTarget(target, false);
                        if (eventTarget) {
                            eventTarget.removeHandlers(pool, eventName, normalizeHandlers(eventHandlers));
                            if (!eventTarget.hasHandlers())
                                this.removeTarget(target);
                        }
                    }
                }]);
            return EventStack;
        }();
        var instance = new EventStack();
        /**
         * This component exposes the EventStack API as public and provides a declarative way to manage it.
         */
        var EventStack$1 = 
        /*#__PURE__*/
        function (_React$PureComponent) {
            _inherits(EventStack, _React$PureComponent);
            function EventStack() {
                _classCallCheck(this, EventStack);
                return _possibleConstructorReturn(this, _getPrototypeOf(EventStack).apply(this, arguments));
            }
            _createClass(EventStack, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.subscribe(this.props);
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps) {
                        this.unsubscribe(prevProps);
                        this.subscribe(this.props);
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        this.unsubscribe(this.props);
                    }
                }, {
                    key: "subscribe",
                    value: function subscribe(props) {
                        var name = props.name, on = props.on, pool = props.pool, target = props.target;
                        instance.sub(name, on, {
                            pool: pool,
                            target: target
                        });
                    }
                }, {
                    key: "unsubscribe",
                    value: function unsubscribe(props) {
                        var name = props.name, on = props.on, pool = props.pool, target = props.target;
                        instance.unsub(name, on, {
                            pool: pool,
                            target: target
                        });
                    }
                }, {
                    key: "render",
                    value: function render() {
                        return null;
                    }
                }]);
            return EventStack;
        }(React.PureComponent);
        _defineProperty(EventStack$1, "defaultProps", {
            pool: 'default',
            target: 'document'
        });
        EventStack$1.propTypes = {
            /** An event name on which we will subscribe. */
            name: PropTypes.string.isRequired,
            /** An event handler or array of event handlers. */
            on: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]).isRequired,
            /** A name of pool. */
            pool: PropTypes.string,
            /** A DOM element on which we will subscribe. */
            target: PropTypes.oneOfType([PropTypes.oneOf(['document', 'window']),
                // This condition for SSR safety.
                PropTypes.instanceOf(env.canUseDOM ? HTMLElement : Object)])
        };
        exports.instance = instance;
        exports.default = EventStack$1;
        /***/ 
    }),
    /* 397 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_RESULT__; /*!
          Copyright (c) 2015 Jed Watson.
          Based on code that is Copyright 2013-2015, Facebook, Inc.
          All rights reserved.
        */
        /* global define */
        (function () {
            'use strict';
            var canUseDOM = !!(typeof window !== 'undefined' &&
                window.document &&
                window.document.createElement);
            var ExecutionEnvironment = {
                canUseDOM: canUseDOM,
                canUseWorkers: typeof Worker !== 'undefined',
                canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
                canUseViewport: canUseDOM && !!window.screen
            };
            if (true) {
                !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
                    return ExecutionEnvironment;
                }).call(exports, __webpack_require__, exports, module),
                    __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
            }
            else { }
        }());
        /***/ 
    }),
    /* 398 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createShorthand", function () { return createShorthand; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createShorthandFactory", function () { return createShorthandFactory; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLDivision", function () { return createHTMLDivision; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLIframe", function () { return createHTMLIframe; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLImage", function () { return createHTMLImage; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLInput", function () { return createHTMLInput; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLLabel", function () { return createHTMLLabel; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHTMLParagraph", function () { return createHTMLParagraph; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74);
        /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(399);
        /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84);
        /* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(339);
        /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(105);
        /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(402);
        /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNumber__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(403);
        /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(404);
        /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        // ============================================================
        // Factories
        // ============================================================
        /**
         * A more robust React.createElement. It can create elements from primitive values.
         *
         * @param {function|string} Component A ReactClass or string
         * @param {function} mapValueToProps A function that maps a primitive value to the Component props
         * @param {string|object|function} val The value to create a ReactElement from
         * @param {Object} [options={}]
         * @param {object} [options.defaultProps={}] Default props object
         * @param {object|function} [options.overrideProps={}] Override props object or function (called with regular props)
         * @param {boolean} [options.autoGenerateKey=true] Whether or not automatic key generation is allowed
         * @returns {object|null}
         */
        function createShorthand(Component, mapValueToProps, val) {
            var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
            if (typeof Component !== 'function' && typeof Component !== 'string') {
                throw new Error('createShorthand() Component must be a string or function.');
            } // short circuit noop values
            if (lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(val) || lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8___default()(val))
                return null;
            var valIsString = lodash_isString__WEBPACK_IMPORTED_MODULE_7___default()(val);
            var valIsNumber = lodash_isNumber__WEBPACK_IMPORTED_MODULE_6___default()(val);
            var valIsFunction = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(val);
            var valIsReactElement = Object(react__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(val);
            var valIsPropsObject = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(val);
            var valIsPrimitiveValue = valIsString || valIsNumber || lodash_isArray__WEBPACK_IMPORTED_MODULE_3___default()(val); // unhandled type return null
            /* eslint-disable no-console */
            if (!valIsFunction && !valIsReactElement && !valIsPropsObject && !valIsPrimitiveValue) {
                if (true) {
                    console.error(['Shorthand value must be a string|number|array|object|ReactElement|function.', ' Use null|undefined|boolean for none', " Received ".concat(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(val), ".")].join(''));
                }
                return null;
            }
            /* eslint-enable no-console */
            // ----------------------------------------
            // Build up props
            // ----------------------------------------
            var _options$defaultProps = options.defaultProps, defaultProps = _options$defaultProps === void 0 ? {} : _options$defaultProps; // User's props
            var usersProps = valIsReactElement && val.props || valIsPropsObject && val || valIsPrimitiveValue && mapValueToProps(val); // Override props
            var _options$overrideProp = options.overrideProps, overrideProps = _options$overrideProp === void 0 ? {} : _options$overrideProp;
            overrideProps = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(overrideProps) ? overrideProps(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultProps, usersProps)) : overrideProps; // Merge props
            /* eslint-disable react/prop-types */
            var props = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultProps, usersProps, overrideProps); // Merge className
            if (defaultProps.className || overrideProps.className || usersProps.className) {
                var mergedClassesNames = classnames__WEBPACK_IMPORTED_MODULE_10___default()(defaultProps.className, overrideProps.className, usersProps.className);
                props.className = lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default()(mergedClassesNames.split(' ')).join(' ');
            } // Merge style
            if (defaultProps.style || overrideProps.style || usersProps.style) {
                props.style = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultProps.style, usersProps.style, overrideProps.style);
            } // ----------------------------------------
            // Get key
            // ----------------------------------------
            // Use key, childKey, or generate key
            if (lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(props.key)) {
                var childKey = props.childKey;
                var _options$autoGenerate = options.autoGenerateKey, autoGenerateKey = _options$autoGenerate === void 0 ? true : _options$autoGenerate;
                if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(childKey)) {
                    // apply and consume the childKey
                    props.key = typeof childKey === 'function' ? childKey(props) : childKey;
                    delete props.childKey;
                }
                else if (autoGenerateKey && (valIsString || valIsNumber)) {
                    // use string/number shorthand values as the key
                    props.key = val;
                }
            } // ----------------------------------------
            // Create Element
            // ----------------------------------------
            // Clone ReactElements
            if (valIsReactElement)
                return Object(react__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(val, props); // Create ReactElements from built up props
            if (valIsPrimitiveValue || valIsPropsObject)
                return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(Component, props); // Call functions with args similar to createElement()
            if (valIsFunction)
                return val(Component, props, props.children);
            /* eslint-enable react/prop-types */
        } // ============================================================
        // Factory Creators
        // ============================================================
        /**
         * Creates a `createShorthand` function that is waiting for a value and options.
         *
         * @param {function|string} Component A ReactClass or string
         * @param {function} mapValueToProps A function that maps a primitive value to the Component props
         * @returns {function} A shorthand factory function waiting for `val` and `defaultProps`.
         */
        createShorthand.handledProps = [];
        function createShorthandFactory(Component, mapValueToProps) {
            if (typeof Component !== 'function' && typeof Component !== 'string') {
                throw new Error('createShorthandFactory() Component must be a string or function.');
            }
            return function (val, options) {
                return createShorthand(Component, mapValueToProps, val, options);
            };
        } // ============================================================
        // HTML Factories
        // ============================================================
        var createHTMLDivision = createShorthandFactory('div', function (val) {
            return {
                children: val
            };
        });
        var createHTMLIframe = createShorthandFactory('iframe', function (src) {
            return {
                src: src
            };
        });
        var createHTMLImage = createShorthandFactory('img', function (val) {
            return {
                src: val
            };
        });
        var createHTMLInput = createShorthandFactory('input', function (val) {
            return {
                type: val
            };
        });
        var createHTMLLabel = createShorthandFactory('label', function (val) {
            return {
                children: val
            };
        });
        var createHTMLParagraph = createShorthandFactory('p', function (val) {
            return {
                children: val
            };
        });
        /***/ 
    }),
    /* 399 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseUniq = __webpack_require__(400);
        /**
         * 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) : [];
        }
        module.exports = uniq;
        /***/ 
    }),
    /* 400 */
    /***/ (function (module, exports, __webpack_require__) {
        var SetCache = __webpack_require__(158), arrayIncludes = __webpack_require__(161), arrayIncludesWith = __webpack_require__(166), cacheHas = __webpack_require__(168), createSet = __webpack_require__(401), setToArray = __webpack_require__(217);
        /** 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;
        /***/ 
    }),
    /* 401 */
    /***/ (function (module, exports, __webpack_require__) {
        var Set = __webpack_require__(226), noop = __webpack_require__(293), setToArray = __webpack_require__(217);
        /** 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;
        /***/ 
    }),
    /* 402 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94);
        /** `Object#toString` result references. */
        var numberTag = '[object Number]';
        /**
         * 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);
        }
        module.exports = isNumber;
        /***/ 
    }),
    /* 403 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isArray = __webpack_require__(84), isObjectLike = __webpack_require__(94);
        /** `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;
        /***/ 
    }),
    /* 404 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94);
        /** `Object#toString` result references. */
        var boolTag = '[object Boolean]';
        /**
         * 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);
        }
        module.exports = isBoolean;
        /***/ 
    }),
    /* 405 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; /*!
          Copyright (c) 2017 Jed Watson.
          Licensed under the MIT License (MIT), see
          http://jedwatson.github.io/classnames
        */
        /* global define */
        (function () {
            'use strict';
            var hasOwn = {}.hasOwnProperty;
            function classNames() {
                var classes = [];
                for (var i = 0; i < arguments.length; i++) {
                    var arg = arguments[i];
                    if (!arg)
                        continue;
                    var argType = typeof arg;
                    if (argType === 'string' || argType === 'number') {
                        classes.push(arg);
                    }
                    else if (Array.isArray(arg) && arg.length) {
                        var inner = classNames.apply(null, arg);
                        if (inner) {
                            classes.push(inner);
                        }
                    }
                    else if (argType === 'object') {
                        for (var key in arg) {
                            if (hasOwn.call(arg, key) && arg[key]) {
                                classes.push(key);
                            }
                        }
                    }
                }
                return classes.join(' ');
            }
            if (typeof module !== 'undefined' && module.exports) {
                classNames.default = classNames;
                module.exports = classNames;
            }
            else if (true) {
                // register as 'classnames', consistent with npm package name
                !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
                    return classNames;
                }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
                    __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
            }
            else { }
        }());
        /***/ 
    }),
    /* 406 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /**
         * Returns an object consisting of props beyond the scope of the Component.
         * Useful for getting and spreading unknown props from the user.
         * @param {function} Component A function or ReactClass.
         * @param {object} props A ReactElement props object
         * @returns {{}} A shallow copy of the prop object
         */
        var getUnhandledProps = function getUnhandledProps(Component, props) {
            // Note that `handledProps` are generated automatically during build with `babel-plugin-transform-react-handled-props`
            var _Component$handledPro = Component.handledProps, handledProps = _Component$handledPro === void 0 ? [] : _Component$handledPro;
            return Object.keys(props).reduce(function (acc, prop) {
                if (prop === 'childKey')
                    return acc;
                if (handledProps.indexOf(prop) === -1)
                    acc[prop] = props[prop];
                return acc;
            }, {});
        };
        /* harmony default export */ __webpack_exports__["default"] = (getUnhandledProps);
        /***/ 
    }),
    /* 407 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /**
         * Returns a createElement() type based on the props of the Component.
         * Useful for calculating what type a component should render as.
         *
         * @param {function} Component A function or ReactClass.
         * @param {object} props A ReactElement props object
         * @param {function} [getDefault] A function that returns a default element type.
         * @returns {string|function} A ReactElement type
         */
        function getElementType(Component, props, getDefault) {
            var _Component$defaultPro = Component.defaultProps, defaultProps = _Component$defaultPro === void 0 ? {} : _Component$defaultPro; // ----------------------------------------
            // user defined "as" element type
            if (props.as && props.as !== defaultProps.as)
                return props.as; // ----------------------------------------
            // computed default element type
            if (getDefault) {
                var computedDefault = getDefault();
                if (computedDefault)
                    return computedDefault;
            } // ----------------------------------------
            // infer anchor links
            if (props.href)
                return 'a'; // ----------------------------------------
            // use defaultProp or 'div'
            return defaultProps.as || 'div';
        }
        /* harmony default export */ __webpack_exports__["default"] = (getElementType);
        /***/ 
    }),
    /* 408 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "htmlInputAttrs", function () { return htmlInputAttrs; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "htmlInputEvents", function () { return htmlInputEvents; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "htmlInputProps", function () { return htmlInputProps; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partitionHTMLProps", function () { return partitionHTMLProps; });
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(243);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_1__);
        var htmlInputAttrs = [
            'selected', 'defaultValue', 'defaultChecked',
            'accept', 'autoCapitalize', 'autoComplete', 'autoCorrect', 'autoFocus', 'checked', 'disabled', 'form', 'id', 'lang', 'list', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'step', 'title', 'type', 'value'
        ];
        var htmlInputEvents = [
            // keyboard
            'onKeyDown', 'onKeyPress', 'onKeyUp',
            'onFocus', 'onBlur',
            'onChange', 'onInput',
            'onClick', 'onContextMenu', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp',
            'onSelect',
            'onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart'
        ];
        var htmlInputProps = htmlInputAttrs.concat(htmlInputEvents);
        /**
         * Returns an array of objects consisting of: props of html input element and rest.
         * @param {object} props A ReactElement props object
         * @param {Object} [options={}]
         * @param {Array} [options.htmlProps] An array of html input props
         * @param {boolean} [options.includeAria] Includes all input props that starts with "aria-"
         * @returns {[{}, {}]} An array of objects
         */
        var partitionHTMLProps = function partitionHTMLProps(props) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            var _options$htmlProps = options.htmlProps, htmlProps = _options$htmlProps === void 0 ? htmlInputProps : _options$htmlProps, _options$includeAria = options.includeAria, includeAria = _options$includeAria === void 0 ? true : _options$includeAria;
            var inputProps = {};
            var rest = {};
            lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default()(props, function (val, prop) {
                var possibleAria = includeAria && (/^aria-.*$/.test(prop) || prop === 'role');
                var target = lodash_includes__WEBPACK_IMPORTED_MODULE_0___default()(htmlProps, prop) || possibleAria ? inputProps : rest;
                target[prop] = val;
            });
            return [inputProps, rest];
        };
        /***/ 
    }),
    /* 409 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIndexOf = __webpack_require__(162), isArrayLike = __webpack_require__(173), isString = __webpack_require__(403), toInteger = __webpack_require__(177), values = __webpack_require__(410);
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMax = Math.max;
        /**
         * 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);
        }
        module.exports = includes;
        /***/ 
    }),
    /* 410 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseValues = __webpack_require__(411), keys = __webpack_require__(187);
        /**
         * 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;
        /***/ 
    }),
    /* 411 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132);
        /**
         * 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;
        /***/ 
    }),
    /* 412 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var lodash_inRange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(413);
        /* harmony import */ var lodash_inRange__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_inRange__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(415);
        /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_first__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(260);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_some__WEBPACK_IMPORTED_MODULE_4__);
        /**
         * Determines if a click's coordinates are within the bounds of a node.
         *
         * @see https://github.com/Semantic-Org/Semantic-UI-React/pull/2384
         *
         * @param {object} node - A DOM node.
         * @param {object} e - A SyntheticEvent or DOM Event.
         * @returns {boolean}
         */
        var doesNodeContainClick = function doesNodeContainClick(node, e) {
            if (lodash_some__WEBPACK_IMPORTED_MODULE_4___default()([e, node], lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default.a))
                return false; // if there is an e.target and it is in the document, use a simple node.contains() check
            if (e.target) {
                lodash_invoke__WEBPACK_IMPORTED_MODULE_2___default()(e.target, 'setAttribute', 'data-suir-click-target', true);
                if (document.querySelector('[data-suir-click-target=true]')) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_2___default()(e.target, 'removeAttribute', 'data-suir-click-target');
                    return node.contains(e.target);
                }
            } // Below logic handles cases where the e.target is no longer in the document.
            // The result of the click likely has removed the e.target node.
            // Instead of node.contains(), we'll identify the click by X/Y position.
            // return early if the event properties aren't available
            // prevent measuring the node and repainting if we don't need to
            var clientX = e.clientX, clientY = e.clientY;
            if (lodash_some__WEBPACK_IMPORTED_MODULE_4___default()([clientX, clientY], lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default.a))
                return false; // false if the node is not visible
            var clientRects = node.getClientRects(); // Heads Up!
            // getClientRects returns a DOMRectList, not an array nor a plain object
            // We explicitly avoid _.isEmpty and check .length to cover all possible shapes
            if (!node.offsetWidth || !node.offsetHeight || !clientRects || !clientRects.length)
                return false; // false if the node doesn't have a valid bounding rect
            var _first2 = lodash_first__WEBPACK_IMPORTED_MODULE_1___default()(clientRects), top = _first2.top, bottom = _first2.bottom, left = _first2.left, right = _first2.right;
            if (lodash_some__WEBPACK_IMPORTED_MODULE_4___default()([top, bottom, left, right], lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default.a))
                return false; // we add a small decimal to the upper bound just to make it inclusive
            // don't add an whole pixel (1) as the event/node values may be decimal sensitive
            return lodash_inRange__WEBPACK_IMPORTED_MODULE_0___default()(clientY, top, bottom + 0.001) && lodash_inRange__WEBPACK_IMPORTED_MODULE_0___default()(clientX, left, right + 0.001);
        };
        /* harmony default export */ __webpack_exports__["default"] = (doesNodeContainClick);
        /***/ 
    }),
    /* 413 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseInRange = __webpack_require__(414), toFinite = __webpack_require__(178), toNumber = __webpack_require__(179);
        /**
         * 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);
        }
        module.exports = inRange;
        /***/ 
    }),
    /* 414 */
    /***/ (function (module, exports) {
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMax = Math.max, nativeMin = Math.min;
        /**
         * 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);
        }
        module.exports = baseInRange;
        /***/ 
    }),
    /* 415 */
    /***/ (function (module, exports, __webpack_require__) {
        module.exports = __webpack_require__(416);
        /***/ 
    }),
    /* 416 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = head;
        /***/ 
    }),
    /* 417 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _createPaginationItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(418);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _createPaginationItems__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 418 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _itemFactories__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(419);
        /* harmony import */ var _rangeFactories__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(420);
        /* harmony import */ var _paginationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(425);
        /**
         * @param {object} rawOptions
         * @param {number} rawOptions.activePage
         * @param {number} rawOptions.boundaryRange Number of always visible pages at the beginning and end.
         * @param {number} rawOptions.siblingRange Number of always visible pages before and after the current one.
         * @param {number} rawOptions.totalPages Total number of pages.
         */
        var createPaginationItems = function createPaginationItems(rawOptions) {
            var options = Object(_paginationUtils__WEBPACK_IMPORTED_MODULE_3__["typifyOptions"])(rawOptions);
            var activePage = options.activePage, totalPages = options.totalPages;
            var pageFactory = Object(_itemFactories__WEBPACK_IMPORTED_MODULE_1__["createPageFactory"])(activePage);
            var innerRange = Object(_paginationUtils__WEBPACK_IMPORTED_MODULE_3__["isSimplePagination"])(options) ? Object(_rangeFactories__WEBPACK_IMPORTED_MODULE_2__["createSimpleRange"])(1, totalPages, pageFactory) : Object(_rangeFactories__WEBPACK_IMPORTED_MODULE_2__["createComplexRange"])(options, pageFactory);
            return [Object(_itemFactories__WEBPACK_IMPORTED_MODULE_1__["createFirstPage"])(), Object(_itemFactories__WEBPACK_IMPORTED_MODULE_1__["createPrevItem"])(activePage)].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(innerRange), [Object(_itemFactories__WEBPACK_IMPORTED_MODULE_1__["createNextItem"])(activePage, totalPages), Object(_itemFactories__WEBPACK_IMPORTED_MODULE_1__["createLastItem"])(totalPages)]);
        };
        /* harmony default export */ __webpack_exports__["default"] = (createPaginationItems);
        /***/ 
    }),
    /* 419 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEllipsisItem", function () { return createEllipsisItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFirstPage", function () { return createFirstPage; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPrevItem", function () { return createPrevItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPageFactory", function () { return createPageFactory; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNextItem", function () { return createNextItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLastItem", function () { return createLastItem; });
        /**
         * @param {number} pageNumber
         * @return {Object}
         */
        var createEllipsisItem = function createEllipsisItem(pageNumber) {
            return {
                active: false,
                type: 'ellipsisItem',
                value: pageNumber
            };
        };
        /**
         * @return {Object}
         */
        var createFirstPage = function createFirstPage() {
            return {
                active: false,
                type: 'firstItem',
                value: 1
            };
        };
        /**
         * @param {number} activePage
         * @return {Object}
         */
        var createPrevItem = function createPrevItem(activePage) {
            return {
                active: false,
                type: 'prevItem',
                value: Math.max(1, activePage - 1)
            };
        };
        /**
         * @param {number} activePage
         * @return {function}
         */
        var createPageFactory = function createPageFactory(activePage) {
            return function (pageNumber) {
                return {
                    active: activePage === pageNumber,
                    type: 'pageItem',
                    value: pageNumber
                };
            };
        };
        /**
         * @param {number} activePage
         * @param {number} totalPages
         * @return {Object}
         */
        var createNextItem = function createNextItem(activePage, totalPages) {
            return {
                active: false,
                type: 'nextItem',
                value: Math.min(activePage + 1, totalPages)
            };
        };
        /**
         * @param {number} totalPages
         * @return {Object}
         */
        var createLastItem = function createLastItem(totalPages) {
            return {
                active: false,
                type: 'lastItem',
                value: totalPages
            };
        };
        /***/ 
    }),
    /* 420 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSimpleRange", function () { return createSimpleRange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createComplexRange", function () { return createComplexRange; });
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421);
        /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _suffixFactories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(424);
        var createSimpleRange = function createSimpleRange(start, end, pageFactory) {
            return lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(start, end + 1), pageFactory);
        };
        var createComplexRange = function createComplexRange(options, pageFactory) {
            var activePage = options.activePage, boundaryRange = options.boundaryRange, siblingRange = options.siblingRange, totalPages = options.totalPages;
            var firstGroupEnd = boundaryRange;
            var firstGroup = createSimpleRange(1, firstGroupEnd, pageFactory);
            var lastGroupStart = totalPages + 1 - boundaryRange;
            var lastGroup = createSimpleRange(lastGroupStart, totalPages, pageFactory);
            var innerGroupStart = Math.min(Math.max(activePage - siblingRange, firstGroupEnd + 2), lastGroupStart - 1 - 2 * siblingRange - 1);
            var innerGroupEnd = innerGroupStart + 2 * siblingRange;
            var innerGroup = createSimpleRange(innerGroupStart, innerGroupEnd, pageFactory);
            return _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(firstGroup).concat([Object(_suffixFactories__WEBPACK_IMPORTED_MODULE_3__["createInnerPrefix"])(firstGroupEnd, innerGroupStart, pageFactory)], _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(innerGroup), [Object(_suffixFactories__WEBPACK_IMPORTED_MODULE_3__["createInnerSuffix"])(innerGroupEnd, lastGroupStart, pageFactory)], _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lastGroup)).filter(Boolean);
        };
        /***/ 
    }),
    /* 421 */
    /***/ (function (module, exports, __webpack_require__) {
        var createRange = __webpack_require__(422);
        /**
         * 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;
        /***/ 
    }),
    /* 422 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseRange = __webpack_require__(423), isIterateeCall = __webpack_require__(262), toFinite = __webpack_require__(178);
        /**
         * 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;
        /***/ 
    }),
    /* 423 */
    /***/ (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;
        /***/ 
    }),
    /* 424 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createInnerPrefix", function () { return createInnerPrefix; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createInnerSuffix", function () { return createInnerSuffix; });
        /* harmony import */ var _itemFactories__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(419);
        var createInnerPrefix = function createInnerPrefix(firstGroupEnd, innerGroupStart, pageFactory) {
            var prefixPage = innerGroupStart - 1;
            var showEllipsis = prefixPage !== firstGroupEnd + 1;
            var prefixFactory = showEllipsis ? _itemFactories__WEBPACK_IMPORTED_MODULE_0__["createEllipsisItem"] : pageFactory;
            return prefixFactory(prefixPage);
        };
        var createInnerSuffix = function createInnerSuffix(innerGroupEnd, lastGroupStart, pageFactory) {
            var suffixPage = innerGroupEnd + 1;
            var showEllipsis = suffixPage !== lastGroupStart - 1;
            var suffixFactory = showEllipsis ? _itemFactories__WEBPACK_IMPORTED_MODULE_0__["createEllipsisItem"] : pageFactory;
            return suffixFactory(suffixPage);
        };
        /***/ 
    }),
    /* 425 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSimplePagination", function () { return isSimplePagination; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "typifyOptions", function () { return typifyOptions; });
        /**
         * Checks the possibility of using simple range generation, if number of generated pages is equal
         * or greater than total pages to show.
         *
         * @param {object} options
         * @param {number} options.boundaryRange Number of always visible pages at the beginning and end.
         * @param {number} options.siblingRange Number of always visible pages before and after the current one.
         * @param {number} options.totalPages Total number of pages.
         * @return {boolean}
         */
        var isSimplePagination = function isSimplePagination(_ref) {
            var boundaryRange = _ref.boundaryRange, siblingRange = _ref.siblingRange, totalPages = _ref.totalPages;
            var boundaryRangeSize = 2 * boundaryRange;
            var ellipsisSize = 2;
            var siblingRangeSize = 2 * siblingRange;
            return 1 + ellipsisSize + siblingRangeSize + boundaryRangeSize >= totalPages;
        };
        var typifyOptions = function typifyOptions(_ref2) {
            var activePage = _ref2.activePage, boundaryRange = _ref2.boundaryRange, siblingRange = _ref2.siblingRange, totalPages = _ref2.totalPages;
            return {
                activePage: +activePage,
                boundaryRange: +boundaryRange,
                siblingRange: +siblingRange,
                totalPages: +totalPages
            };
        };
        /***/ 
    }),
    /* 426 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COLORS", function () { return COLORS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FLOATS", function () { return FLOATS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIZES", function () { return SIZES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEXT_ALIGNMENTS", function () { return TEXT_ALIGNMENTS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERTICAL_ALIGNMENTS", function () { return VERTICAL_ALIGNMENTS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VISIBILITY", function () { return VISIBILITY; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WIDTHS", function () { return WIDTHS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIRECTIONAL_TRANSITIONS", function () { return DIRECTIONAL_TRANSITIONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATIC_TRANSITIONS", function () { return STATIC_TRANSITIONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSITIONS", function () { return TRANSITIONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ACCESSIBILITY", function () { return ACCESSIBILITY; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ARROWS", function () { return ARROWS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUDIO_VIDEO", function () { return AUDIO_VIDEO; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BUSINESS", function () { return BUSINESS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHESS", function () { return CHESS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CODE", function () { return CODE; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMUNICATION", function () { return COMMUNICATION; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPUTERS", function () { return COMPUTERS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CURRENCY", function () { return CURRENCY; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATE_TIME", function () { return DATE_TIME; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DESIGN", function () { return DESIGN; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EDITORS", function () { return EDITORS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FILES", function () { return FILES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GENDERS", function () { return GENDERS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HANDS_GESTURES", function () { return HANDS_GESTURES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HEALTH", function () { return HEALTH; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IMAGES", function () { return IMAGES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERFACES", function () { return INTERFACES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOGISTICS", function () { return LOGISTICS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAPS", function () { return MAPS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MEDICAL", function () { return MEDICAL; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OBJECTS", function () { return OBJECTS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAYMENTS_SHOPPING", function () { return PAYMENTS_SHOPPING; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHAPES", function () { return SHAPES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPINNERS", function () { return SPINNERS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPORTS", function () { return SPORTS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS", function () { return STATUS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USERS_PEOPLE", function () { return USERS_PEOPLE; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VEHICLES", function () { return VEHICLES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WRITING", function () { return WRITING; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BRANDS", function () { return BRANDS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ICONS", function () { return ICONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ICON_ALIASES", function () { return ICON_ALIASES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ICONS_AND_ALIASES", function () { return ICONS_AND_ALIASES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_CONTEXT_SPECIFIC_ICONS", function () { return COMPONENT_CONTEXT_SPECIFIC_ICONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALL_ICONS_IN_ALL_CONTEXTS", function () { return ALL_ICONS_IN_ALL_CONTEXTS; });
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(399);
        /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(410);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(187);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _numberToWord__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(264);
        var COLORS = ['red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black'];
        var FLOATS = ['left', 'right'];
        var SIZES = ['mini', 'tiny', 'small', 'medium', 'large', 'big', 'huge', 'massive'];
        var TEXT_ALIGNMENTS = ['left', 'center', 'right', 'justified'];
        var VERTICAL_ALIGNMENTS = ['bottom', 'middle', 'top'];
        var VISIBILITY = ['mobile', 'tablet', 'computer', 'large screen', 'widescreen'];
        var WIDTHS = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(_numberToWord__WEBPACK_IMPORTED_MODULE_4__["numberToWordMap"])).concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(_numberToWord__WEBPACK_IMPORTED_MODULE_4__["numberToWordMap"]).map(Number)), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(_numberToWord__WEBPACK_IMPORTED_MODULE_4__["numberToWordMap"])));
        var DIRECTIONAL_TRANSITIONS = ['browse', 'browse right', 'drop', 'fade', 'fade up', 'fade down', 'fade left', 'fade right', 'fly up', 'fly down', 'fly left', 'fly right', 'horizontal flip', 'vertical flip', 'scale', 'slide up', 'slide down', 'slide left', 'slide right', 'swing up', 'swing down', 'swing left', 'swing right', 'zoom'];
        var STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce', 'glow'];
        var TRANSITIONS = DIRECTIONAL_TRANSITIONS.concat(STATIC_TRANSITIONS); // Generated from:
        // https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/components/icon.css
        var ACCESSIBILITY = ['american sign language interpreting', 'assistive listening systems', 'audio description', 'blind', 'braille', 'closed captioning', 'closed captioning outline', 'deaf', 'low vision', 'phone volume', 'question circle', 'question circle outline', 'sign language', 'tty', 'universal access', 'wheelchair'];
        var ARROWS = ['angle double down', 'angle double left', 'angle double right', 'angle double up', 'angle down', 'angle left', 'angle right', 'angle up', 'arrow alternate circle down', 'arrow alternate circle down outline', 'arrow alternate circle left', 'arrow alternate circle left outline', 'arrow alternate circle right', 'arrow alternate circle right outline', 'arrow alternate circle up', 'arrow alternate circle up outline', 'arrow circle down', 'arrow circle left', 'arrow circle right', 'arrow circle up', 'arrow down', 'arrow left', 'arrow right', 'arrow up', 'arrows alternate', 'arrows alternate horizontal', 'arrows alternate vertical', 'caret down', 'caret left', 'caret right', 'caret square down', 'caret square down outline', 'caret square left', 'caret square left outline', 'caret square right', 'caret square right outline', 'caret square up', 'caret square up outline', 'caret up', 'cart arrow down', 'chart line', 'chevron circle down', 'chevron circle left', 'chevron circle right', 'chevron circle up', 'chevron down', 'chevron left', 'chevron right', 'chevron up', 'cloud download', 'cloud upload', 'download', 'exchange', 'expand arrows alternate', 'external alternate', 'external square alternate', 'hand point down', 'hand point down outline', 'hand point left', 'hand point left outline', 'hand point right', 'hand point right outline', 'hand point up', 'hand point up outline', 'hand pointer', 'hand pointer outline', 'history', 'level down alternate', 'level up alternate', 'location arrow', 'long arrow alternate down', 'long arrow alternate left', 'long arrow alternate right', 'long arrow alternate up', 'mouse pointer', 'play', 'random', 'recycle', 'redo', 'redo alternate', 'reply', 'reply all', 'retweet', 'share', 'share square', 'share square outline', 'sign-in', 'sign-out', 'sign-in alternate', 'sign-out alternate', 'sort', 'sort alphabet down', 'sort alphabet up', 'sort amount down', 'sort amount up', 'sort down', 'sort numeric down', 'sort numeric up', 'sort up', 'sync', 'sync alternate', 'text height', 'text width', 'undo', 'undo alternate', 'upload', 'zoom-in', 'zoom-out'];
        var AUDIO_VIDEO = ['audio description', 'backward', 'circle', 'circle outline', 'closed captioning', 'closed captioning outline', 'compress', 'eject', 'expand', 'expand arrows alternate', 'fast backward', 'fast forward', 'file audio', 'file audio outline', 'file video', 'file video outline', 'film', 'forward', 'headphones', 'microphone', 'microphone slash', 'music', 'pause', 'pause circle', 'pause circle outline', 'phone volume', 'play', 'play circle', 'play circle outline', 'podcast', 'random', 'redo', 'redo alternate', 'rss', 'rss square', 'step backward', 'step forward', 'stop', 'stop circle', 'stop circle outline', 'sync', 'sync alternate', 'undo', 'undo alternate', 'video', 'volume down', 'volume off', 'volume up'];
        var BUSINESS = ['address book', 'address book outline', 'address card', 'address card outline', 'archive', 'balance scale', 'birthday cake', 'book', 'briefcase', 'building', 'building outline', 'bullhorn', 'bullseye', 'calculator', 'calendar', 'calendar outline', 'calendar alternate', 'calendar alternate outline', 'certificate', 'chart area', 'chart bar', 'chart bar outline', 'chart line', 'chart pie', 'clipboard', 'clipboard outline', 'coffee', 'columns', 'compass', 'compass outline', 'copy', 'copy outline', 'copyright', 'copyright outline', 'cut', 'edit', 'edit outline', 'envelope', 'envelope outline', 'envelope open', 'envelope open outline', 'envelope square', 'eraser', 'fax', 'file', 'file outline', 'file alternate', 'file alternate outline', 'folder', 'folder outline', 'folder open', 'folder open outline', 'globe', 'industry', 'paperclip', 'paste', 'pen square', 'pencil alternate', 'percent', 'phone', 'phone square', 'phone volume', 'registered', 'registered outline', 'save', 'save outline', 'sitemap', 'sticky note', 'sticky note outline', 'suitcase', 'table', 'tag', 'tags', 'tasks', 'thumbtack', 'trademark'];
        var CHESS = ['chess', 'chess bishop', 'chess board', 'chess king', 'chess knight', 'chess pawn', 'chess queen', 'chess rook', 'square full'];
        var CODE = ['archive', 'barcode', 'bath', 'bug', 'code', 'code branch', 'coffee', 'file', 'file outline', 'file alternate', 'file alternate outline', 'file code', 'file code outline', 'filter', 'fire extinguisher', 'folder', 'folder outline', 'folder open', 'folder open outline', 'keyboard', 'keyboard outline', 'microchip', 'qrcode', 'shield alternate', 'sitemap', 'terminal', 'user secret', 'window close', 'window close outline', 'window maximize', 'window maximize outline', 'window minimize', 'window minimize outline', 'window restore', 'window restore outline'];
        var COMMUNICATION = ['address book', 'address book outline', 'address card', 'address card outline', 'american sign language interpreting', 'assistive listening systems', 'at', 'bell', 'bell outline', 'bell slash', 'bell slash outline', 'bullhorn', 'comment', 'comment outline', 'comment alternate', 'comment alternate outline', 'comments', 'comments outline', 'envelope', 'envelope outline', 'envelope open', 'envelope open outline', 'envelope square', 'fax', 'inbox', 'language', 'microphone', 'microphone slash', 'mobile', 'mobile alternate', 'paper plane', 'paper plane outline', 'phone', 'phone square', 'phone volume', 'rss', 'rss square', 'tty', 'wifi'];
        var COMPUTERS = ['desktop', 'download', 'hdd', 'hdd outline', 'headphones', 'keyboard', 'keyboard outline', 'laptop', 'microchip', 'mobile', 'mobile alternate', 'plug', 'power off', 'print', 'save', 'save outline', 'server', 'tablet', 'tablet alternate', 'tv', 'upload'];
        var CURRENCY = ['dollar sign', 'euro sign', 'lira sign', 'money bill alternate', 'money bill alternate outline', 'pound sign', 'ruble sign', 'rupee sign', 'shekel sign', 'won sign', 'yen sign'];
        var DATE_TIME = ['bell', 'bell outline', 'bell slash', 'bell slash outline', 'calendar', 'calendar outline', 'calendar alternate', 'calendar alternate outline', 'calendar check', 'calendar check outline', 'calendar minus', 'calendar minus outline', 'calendar plus', 'calendar plus outline', 'calendar times', 'calendar times outline', 'clock', 'clock outline', 'hourglass', 'hourglass outline', 'hourglass end', 'hourglass half', 'hourglass start', 'stopwatch'];
        var DESIGN = ['adjust', 'clone', 'clone outline', 'copy', 'copy outline', 'crop', 'crosshairs', 'cut', 'edit', 'edit outline', 'eraser', 'eye', 'eye dropper', 'eye slash', 'eye slash outline', 'object group', 'object group outline', 'object ungroup', 'object ungroup outline', 'paint brush', 'paste', 'pencil alternate', 'save', 'save outline', 'tint'];
        var EDITORS = ['align center', 'align justify', 'align left', 'align right', 'bold', 'clipboard', 'clipboard outline', 'clone', 'clone outline', 'columns', 'copy', 'copy outline', 'cut', 'edit', 'edit outline', 'eraser', 'file', 'file outline', 'file alternate', 'file alternate outline', 'font', 'heading', 'i cursor', 'indent', 'italic', 'linkify', 'list', 'list alternate', 'list alternate outline', 'list ol', 'list ul', 'outdent', 'paper plane', 'paper plane outline', 'paperclip', 'paragraph', 'paste', 'pencil alternate', 'print', 'quote left', 'quote right', 'redo', 'redo alternate', 'reply', 'reply all', 'share', 'strikethrough', 'subscript', 'superscript', 'sync', 'sync alternate', 'table', 'tasks', 'text height', 'text width', 'th', 'th large', 'th list', 'trash', 'trash alternate', 'trash alternate outline', 'underline', 'undo', 'undo alternate', 'unlink'];
        var FILES = ['archive', 'clone', 'clone outline', 'copy', 'copy outline', 'cut', 'file', 'file outline', 'file alternate', 'file alternate outline', 'file archive', 'file archive outline', 'file audio', 'file audio outline', 'file code', 'file code outline', 'file excel', 'file excel outline', 'file image', 'file image outline', 'file pdf', 'file pdf outline', 'file powerpoint', 'file powerpoint outline', 'file video', 'file video outline', 'file word', 'file word outline', 'folder', 'folder outline', 'folder open', 'folder open outline', 'paste', 'save', 'save outline', 'sticky note', 'sticky note outline'];
        var GENDERS = ['genderless', 'mars', 'mars double', 'mars stroke', 'mars stroke horizontal', 'mars stroke vertical', 'mercury', 'neuter', 'transgender', 'transgender alternate', 'venus', 'venus double', 'venus mars'];
        var HANDS_GESTURES = ['hand lizard', 'hand lizard outline', 'hand paper', 'hand paper outline', 'hand peace', 'hand peace outline', 'hand point down', 'hand point down outline', 'hand point left', 'hand point left outline', 'hand point right', 'hand point right outline', 'hand point up', 'hand point up outline', 'hand pointer', 'hand pointer outline', 'hand rock', 'hand rock outline', 'hand scissors', 'hand scissors outline', 'hand spock', 'hand spock outline', 'handshake', 'handshake outline', 'thumbs down', 'thumbs down outline', 'thumbs up', 'thumbs up outline'];
        var HEALTH = ['ambulance', 'h square', 'heart', 'heart outline', 'heartbeat', 'hospital', 'hospital outline', 'medkit', 'plus square', 'plus square outline', 'stethoscope', 'user md', 'wheelchair'];
        var IMAGES = ['adjust', 'bolt', 'camera', 'camera retro', 'clone', 'clone outline', 'compress', 'expand', 'eye', 'eye dropper', 'eye slash', 'eye slash outline', 'file image', 'file image outline', 'film', 'id badge', 'id badge outline', 'id card', 'id card outline', 'image', 'image outline', 'images', 'images outline', 'sliders horizontal', 'tint'];
        var INTERFACES = ['ban', 'barcode', 'bars', 'beer', 'bell', 'bell outline', 'bell slash', 'bell slash outline', 'bug', 'bullhorn', 'bullseye', 'calculator', 'calendar', 'calendar outline', 'calendar alternate', 'calendar alternate outline', 'calendar check', 'calendar check outline', 'calendar minus', 'calendar minus outline', 'calendar plus', 'calendar plus outline', 'calendar times', 'calendar times outline', 'certificate', 'check', 'check circle', 'check circle outline', 'check square', 'check square outline', 'circle', 'circle outline', 'clipboard', 'clipboard outline', 'clone', 'clone outline', 'cloud', 'cloud download', 'cloud upload', 'coffee', 'cog', 'cogs', 'copy', 'copy outline', 'cut', 'database', 'dot circle', 'dot circle outline', 'download', 'edit', 'edit outline', 'ellipsis horizontal', 'ellipsis vertical', 'envelope', 'envelope outline', 'envelope open', 'envelope open outline', 'eraser', 'exclamation', 'exclamation circle', 'exclamation triangle', 'external alternate', 'external square alternate', 'eye', 'eye slash', 'eye slash outline', 'file', 'file outline', 'file alternate', 'file alternate outline', 'filter', 'flag', 'flag outline', 'flag checkered', 'folder', 'folder outline', 'folder open', 'folder open outline', 'frown', 'frown outline', 'hashtag', 'heart', 'heart outline', 'history', 'home', 'i cursor', 'info', 'info circle', 'language', 'magic', 'meh', 'meh outline', 'microphone', 'microphone slash', 'minus', 'minus circle', 'minus square', 'minus square outline', 'paste', 'pencil alternate', 'plus', 'plus circle', 'plus square', 'plus square outline', 'qrcode', 'question', 'question circle', 'question circle outline', 'quote left', 'quote right', 'redo', 'redo alternate', 'reply', 'reply all', 'rss', 'rss square', 'save', 'save outline', 'search', 'search minus', 'search plus', 'share', 'share alternate', 'share alternate square', 'share square', 'share square outline', 'shield alternate', 'sign-in', 'sign-out', 'signal', 'sitemap', 'sliders horizontal', 'smile', 'smile outline', 'sort', 'sort alphabet down', 'sort alphabet up', 'sort amount down', 'sort amount up', 'sort down', 'sort numeric down', 'sort numeric up', 'sort up', 'star', 'star outline', 'star half', 'star half outline', 'sync', 'sync alternate', 'thumbs down', 'thumbs down outline', 'thumbs up', 'thumbs up outline', 'times', 'times circle', 'times circle outline', 'toggle off', 'toggle on', 'trash', 'trash alternate', 'trash alternate outline', 'trophy', 'undo', 'undo alternate', 'upload', 'user', 'user outline', 'user circle', 'user circle outline', 'wifi'];
        var LOGISTICS = ['box', 'boxes', 'clipboard check', 'clipboard list', 'dolly', 'dolly flatbed', 'pallet', 'shipping fast', 'truck', 'warehouse'];
        var MAPS = ['ambulance', 'anchor', 'balance scale', 'bath', 'bed', 'beer', 'bell', 'bell outline', 'bell slash', 'bell slash outline', 'bicycle', 'binoculars', 'birthday cake', 'blind', 'bomb', 'book', 'bookmark', 'bookmark outline', 'briefcase', 'building', 'building outline', 'car', 'coffee', 'crosshairs', 'dollar sign', 'eye', 'eye slash', 'eye slash outline', 'fighter jet', 'fire', 'fire extinguisher', 'flag', 'flag outline', 'flag checkered', 'flask', 'gamepad', 'gavel', 'gift', 'glass martini', 'globe', 'graduation cap', 'h square', 'heart', 'heart outline', 'heartbeat', 'home', 'hospital', 'hospital outline', 'image', 'image outline', 'images', 'images outline', 'industry', 'info', 'info circle', 'key', 'leaf', 'lemon', 'lemon outline', 'life ring', 'life ring outline', 'lightbulb', 'lightbulb outline', 'location arrow', 'low vision', 'magnet', 'male', 'map', 'map outline', 'map marker', 'map marker alternate', 'map pin', 'map signs', 'medkit', 'money bill alternate', 'money bill alternate outline', 'motorcycle', 'music', 'newspaper', 'newspaper outline', 'paw', 'phone', 'phone square', 'phone volume', 'plane', 'plug', 'plus', 'plus square', 'plus square outline', 'print', 'recycle', 'road', 'rocket', 'search', 'search minus', 'search plus', 'ship', 'shopping bag', 'shopping basket', 'shopping cart', 'shower', 'street view', 'subway', 'suitcase', 'tag', 'tags', 'taxi', 'thumbtack', 'ticket alternate', 'tint', 'train', 'tree', 'trophy', 'truck', 'tty', 'umbrella', 'university', 'utensil spoon', 'utensils', 'wheelchair', 'wifi', 'wrench'];
        var MEDICAL = ['ambulance', 'band aid', 'dna', 'first aid', 'heart', 'heart outline', 'heartbeat', 'hospital', 'hospital outline', 'hospital symbol', 'pills', 'plus', 'stethoscope', 'syringe', 'thermometer', 'user md', 'weight'];
        var OBJECTS = ['ambulance', 'anchor', 'archive', 'balance scale', 'bath', 'bed', 'beer', 'bell', 'bell outline', 'bicycle', 'binoculars', 'birthday cake', 'bomb', 'book', 'bookmark', 'bookmark outline', 'briefcase', 'bug', 'building', 'building outline', 'bullhorn', 'bullseye', 'bus', 'calculator', 'calendar', 'calendar outline', 'calendar alternate', 'calendar alternate outline', 'camera', 'camera retro', 'car', 'clipboard', 'clipboard outline', 'cloud', 'coffee', 'cog', 'cogs', 'compass', 'compass outline', 'copy', 'copy outline', 'cube', 'cubes', 'cut', 'envelope', 'envelope outline', 'envelope open', 'envelope open outline', 'eraser', 'eye', 'eye dropper', 'fax', 'fighter jet', 'file', 'file outline', 'file alternate', 'file alternate outline', 'film', 'fire', 'fire extinguisher', 'flag', 'flag outline', 'flag checkered', 'flask', 'futbol', 'futbol outline', 'gamepad', 'gavel', 'gem', 'gem outline', 'gift', 'glass martini', 'globe', 'graduation cap', 'hdd', 'hdd outline', 'headphones', 'heart', 'heart outline', 'home', 'hospital', 'hospital outline', 'hourglass', 'hourglass outline', 'image', 'image outline', 'images', 'images outline', 'industry', 'key', 'keyboard', 'keyboard outline', 'laptop', 'leaf', 'lemon', 'lemon outline', 'life ring', 'life ring outline', 'lightbulb', 'lightbulb outline', 'lock', 'lock open', 'magic', 'magnet', 'map', 'map outline', 'map marker', 'map marker alternate', 'map pin', 'map signs', 'medkit', 'microchip', 'microphone', 'mobile', 'mobile alternate', 'money bill alternate', 'money bill alternate outline', 'moon', 'moon outline', 'motorcycle', 'newspaper', 'newspaper outline', 'paint brush', 'paper plane', 'paper plane outline', 'paperclip', 'paste', 'paw', 'pencil alternate', 'phone', 'plane', 'plug', 'print', 'puzzle piece', 'road', 'rocket', 'save', 'save outline', 'search', 'shield alternate', 'shopping bag', 'shopping basket', 'shopping cart', 'shower', 'snowflake', 'snowflake outline', 'space shuttle', 'star', 'star outline', 'sticky note', 'sticky note outline', 'stopwatch', 'subway', 'suitcase', 'sun', 'sun outline', 'tablet', 'tablet alternate', 'tachometer alternate', 'tag', 'tags', 'taxi', 'thumbtack', 'ticket alternate', 'train', 'trash', 'trash alternate', 'trash alternate outline', 'tree', 'trophy', 'truck', 'tv', 'umbrella', 'university', 'unlock', 'unlock alternate', 'utensil spoon', 'utensils', 'wheelchair', 'wrench'];
        var PAYMENTS_SHOPPING = ['bell', 'bell outline', 'bookmark', 'bookmark outline', 'bullhorn', 'camera', 'camera retro', 'cart arrow down', 'cart plus', 'certificate', 'credit card', 'credit card outline', 'gem', 'gem outline', 'gift', 'handshake', 'handshake outline', 'heart', 'heart outline', 'key', 'shopping bag', 'shopping basket', 'shopping cart', 'star', 'star outline', 'tag', 'tags', 'thumbs down', 'thumbs down outline', 'thumbs up', 'thumbs up outline', 'trophy'];
        var SHAPES = ['bookmark', 'bookmark outline', 'calendar', 'calendar outline', 'certificate', 'circle', 'circle outline', 'cloud', 'comment', 'comment outline', 'file', 'file outline', 'folder', 'folder outline', 'heart', 'heart outline', 'map marker', 'play', 'square', 'square outline', 'star', 'star outline'];
        var SPINNERS = ['asterisk', 'certificate', 'circle notch', 'cog', 'compass', 'compass outline', 'crosshairs', 'life ring', 'life ring outline', 'snowflake', 'snowflake outline', 'spinner', 'sun', 'sun outline', 'sync'];
        var SPORTS = ['baseball ball', 'basketball ball', 'bowling ball', 'football ball', 'futbol', 'futbol outline', 'golf ball', 'hockey puck', 'quidditch', 'table tennis', 'volleyball ball'];
        var STATUS = ['ban', 'battery empty', 'battery full', 'battery half', 'battery quarter', 'battery three quarters', 'bell', 'bell outline', 'bell slash', 'bell slash outline', 'calendar', 'calendar outline', 'calendar alternate', 'calendar alternate outline', 'calendar check', 'calendar check outline', 'calendar minus', 'calendar minus outline', 'calendar plus', 'calendar plus outline', 'calendar times', 'calendar times outline', 'cart arrow down', 'cart plus', 'exclamation', 'exclamation circle', 'exclamation triangle', 'eye', 'eye slash', 'eye slash outline', 'file', 'file outline', 'file alternate', 'file alternate outline', 'folder', 'folder outline', 'folder open', 'folder open outline', 'info', 'info circle', 'lock', 'lock open', 'minus', 'minus circle', 'minus square', 'minus square outline', 'plus', 'plus circle', 'plus square', 'plus square outline', 'question', 'question circle', 'question circle outline', 'shield alternate', 'shopping cart', 'sign in alternate', 'sign out alternate', 'thermometer empty', 'thermometer full', 'thermometer half', 'thermometer quarter', 'thermometer three quarters', 'thumbs down', 'thumbs down outline', 'thumbs up', 'thumbs up outline', 'toggle off', 'toggle on', 'unlock', 'unlock alternate'];
        var USERS_PEOPLE = ['address book', 'address book outline', 'address card', 'address card outline', 'bed', 'blind', 'child', 'female', 'frown', 'frown outline', 'id badge', 'id badge outline', 'id card', 'id card outline', 'male', 'meh', 'meh outline', 'power off', 'smile', 'smile outline', 'street view', 'user', 'user outline', 'user circle', 'user circle outline', 'user md', 'user plus', 'user secret', 'user times', 'users', 'wheelchair'];
        var VEHICLES = ['ambulance', 'bicycle', 'bus', 'car', 'fighter jet', 'motorcycle', 'paper plane', 'paper plane outline', 'plane', 'rocket', 'ship', 'shopping cart', 'space shuttle', 'subway', 'taxi', 'train', 'truck', 'wheelchair'];
        var WRITING = ['archive', 'book', 'bookmark', 'bookmark outline', 'edit', 'edit outline', 'envelope', 'envelope outline', 'envelope open', 'envelope open outline', 'eraser', 'file', 'file outline', 'file alternate', 'file alternate outline', 'folder', 'folder outline', 'folder open', 'folder open outline', 'keyboard', 'keyboard outline', 'newspaper', 'newspaper outline', 'paper plane', 'paper plane outline', 'paperclip', 'paragraph', 'pen square', 'pencil alternate', 'quote left', 'quote right', 'sticky note', 'sticky note outline', 'thumbtack'];
        var BRANDS = ['500px', 'accessible', 'accusoft', 'adn', 'adversal', 'affiliatetheme', 'algolia', 'amazon', 'amazon pay', 'amilia', 'android', 'angellist', 'angrycreative', 'angular', 'app store', 'app store ios', 'apper', 'apple', 'apple pay', 'asymmetrik', 'audible', 'autoprefixer', 'avianex', 'aviato', 'aws', 'bandcamp', 'behance', 'behance square', 'bimobject', 'bitbucket', 'bitcoin', 'bity', 'black tie', 'blackberry', 'blogger', 'blogger b', 'bluetooth', 'bluetooth b', 'btc', 'buromobelexperte', 'buysellads', 'cc amazon pay', 'cc amex', 'cc apple pay', 'cc diners club', 'cc discover', 'cc jcb', 'cc mastercard', 'cc paypal', 'cc stripe', 'cc visa', 'centercode', 'chrome', 'cloudscale', 'cloudsmith', 'cloudversify', 'codepen', 'codiepie', 'connectdevelop', 'contao', 'cpanel', 'creative commons', 'css3', 'css3 alternate', 'cuttlefish', 'd and d', 'dashcube', 'delicious', 'deploydog', 'deskpro', 'deviantart', 'digg', 'digital ocean', 'discord', 'discourse', 'dochub', 'docker', 'draft2digital', 'dribbble', 'dribbble square', 'dropbox', 'drupal', 'dyalog', 'earlybirds', 'edge', 'elementor', 'ember', 'empire', 'envira', 'erlang', 'ethereum', 'etsy', 'expeditedssl', 'facebook', 'facebook f', 'facebook messenger', 'facebook square', 'firefox', 'first order', 'firstdraft', 'flickr', 'flipboard', 'fly', 'font awesome', 'font awesome alternate', 'font awesome flag', 'fonticons', 'fonticons fi', 'fort awesome', 'fort awesome alternate', 'forumbee', 'foursquare', 'free code camp', 'freebsd', 'get pocket', 'gg', 'gg circle', 'git', 'git square', 'github', 'github alternate', 'github square', 'gitkraken', 'gitlab', 'gitter', 'glide', 'glide g', 'gofore', 'goodreads', 'goodreads g', 'google', 'google drive', 'google play', 'google plus', 'google plus g', 'google plus square', 'google wallet', 'gratipay', 'grav', 'gripfire', 'grunt', 'gulp', 'hacker news', 'hacker news square', 'hips', 'hire a helper', 'hooli', 'hotjar', 'houzz', 'html5', 'hubspot', 'imdb', 'instagram', 'internet explorer', 'ioxhost', 'itunes', 'itunes note', 'jenkins', 'joget', 'joomla', 'js', 'js square', 'jsfiddle', 'keycdn', 'kickstarter', 'kickstarter k', 'korvue', 'laravel', 'lastfm', 'lastfm square', 'leanpub', 'less', 'linechat', 'linkedin', 'linkedin alternate', 'linode', 'linux', 'lyft', 'magento', 'maxcdn', 'medapps', 'medium', 'medium m', 'medrt', 'meetup', 'microsoft', 'mix', 'mixcloud', 'mizuni', 'modx', 'monero', 'napster', 'nintendo switch', 'node', 'node js', 'npm', 'ns8', 'nutritionix', 'odnoklassniki', 'odnoklassniki square', 'opencart', 'openid', 'opera', 'optin monster', 'osi', 'page4', 'pagelines', 'palfed', 'patreon', 'paypal', 'periscope', 'phabricator', 'phoenix framework', 'php', 'pied piper', 'pied piper alternate', 'pied piper pp', 'pinterest', 'pinterest p', 'pinterest square', 'playstation', 'product hunt', 'pushed', 'python', 'qq', 'quinscape', 'quora', 'ravelry', 'react', 'rebel', 'redriver', 'reddit', 'reddit alien', 'reddit square', 'rendact', 'renren', 'replyd', 'resolving', 'rocketchat', 'rockrms', 'safari', 'sass', 'schlix', 'scribd', 'searchengin', 'sellcast', 'sellsy', 'servicestack', 'shirtsinbulk', 'simplybuilt', 'sistrix', 'skyatlas', 'skype', 'slack', 'slack hash', 'slideshare', 'snapchat', 'snapchat ghost', 'snapchat square', 'soundcloud', 'speakap', 'spotify', 'stack exchange', 'stack overflow', 'staylinked', 'steam', 'steam square', 'steam symbol', 'sticker mule', 'strava', 'stripe', 'stripe s', 'studiovinari', 'stumbleupon', 'stumbleupon circle', 'superpowers', 'supple', 'telegram', 'telegram plane', 'tencent weibo', 'themeisle', 'trello', 'tripadvisor', 'tumblr', 'tumblr square', 'twitch', 'twitter', 'twitter square', 'typo3', 'uber', 'uikit', 'uniregistry', 'untappd', 'usb', 'ussunnah', 'vaadin', 'viacoin', 'viadeo', 'viadeo square', 'viber', 'vimeo', 'vimeo square', 'vimeo v', 'vine', 'vk', 'vnv', 'vuejs', 'wechat', 'weibo', 'weixin', 'whatsapp', 'whatsapp square', 'whmcs', 'wikipedia w', 'windows', 'wordpress', 'wordpress simple', 'wpbeginner', 'wpexplorer', 'wpforms', 'xbox', 'xing', 'xing square', 'y combinator', 'yahoo', 'yandex', 'yandex international', 'yelp', 'yoast', 'youtube', 'youtube square'];
        var ICONS = lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ACCESSIBILITY.concat(ARROWS, AUDIO_VIDEO, BUSINESS, CHESS, CODE, COMMUNICATION, COMPUTERS, CURRENCY, DATE_TIME, DESIGN, EDITORS, FILES, GENDERS, HANDS_GESTURES, HEALTH, IMAGES, INTERFACES, LOGISTICS, MAPS, MEDICAL, OBJECTS, PAYMENTS_SHOPPING, SHAPES, SPINNERS, SPORTS, STATUS, USERS_PEOPLE, VEHICLES, WRITING, BRANDS));
        var ICON_ALIASES = ['chess rock', 'ordered list', 'unordered list', 'user doctor', 'shield', 'puzzle', 'add circle', 'add square', 'add to calendar', 'add to cart', 'add user', 'add', 'alarm mute', 'alarm', 'ald', 'als', 'announcement', 'area chart', 'area graph', 'arrow down cart', 'asexual', 'asl interpreting', 'asl', 'assistive listening devices', 'attach', 'attention', 'balance', 'bar', 'bathtub', 'battery four', 'battery high', 'battery low', 'battery one', 'battery three', 'battery two', 'battery zero', 'birthday', 'block layout', 'bluetooth alternative', 'broken chain', 'browser', 'call square', 'call', 'cancel', 'cart', 'cc', 'chain', 'chat', 'checked calendar', 'checkmark', 'circle notched', 'close', 'cny', 'cocktail', 'commenting', 'computer', 'configure', 'content', 'deafness', 'delete calendar', 'delete', 'detective', 'discussions', 'doctor', 'dollar', 'dont', 'drivers license', 'dropdown', 'emergency', 'envira gallery', 'erase', 'eur', 'euro', 'eyedropper', 'factory', 'favorite', 'feed', 'female homosexual', 'file text', 'file text outline', 'find', 'first aid', 'fork', 'game', 'gay', 'gbp', 'google plus circle', 'google plus official', 'grab', 'graduation', 'grid layout', 'group', 'h', 'hand victory', 'handicap', 'hard of hearing', 'header', 'help circle', 'help', 'heterosexual', 'hide', 'hotel', 'hourglass four', 'hourglass full', 'hourglass one', 'hourglass three', 'hourglass two', 'idea', 'ils', 'in cart', 'inr', 'intergender', 'intersex', 'jpy', 'krw', 'lab', 'law', 'legal', 'lesbian', 'lightning', 'like', 'line graph', 'linkedin square', 'linkify', 'lira', 'list layout', 'magnify', 'mail forward', 'mail square', 'mail', 'male homosexual', 'man', 'marker', 'mars alternate', 'mars horizontal', 'mars vertical', 'microsoft edge', 'military', 'ms edge', 'mute', 'new pied piper', 'non binary transgender', 'numbered list', 'options', 'other gender horizontal', 'other gender vertical', 'other gender', 'payment', 'paypal card', 'pencil square', 'photo', 'picture', 'pie chart', 'pie graph', 'pied piper hat', 'pin', 'plus cart', 'point', 'pointing down', 'pointing left', 'pointing right', 'pointing up', 'pound', 'power cord', 'power', 'privacy', 'r circle', 'rain', 'record', 'refresh', 'remove circle', 'remove from calendar', 'remove user', 'remove', 'repeat', 'rmb', 'rouble', 'rub', 'ruble', 'rupee', 's15', 'selected radio', 'send', 'setting', 'settings', 'shekel', 'sheqel', 'shipping', 'shop', 'shuffle', 'shutdown', 'sidebar', 'signing', 'signup', 'sliders', 'soccer', 'sort alphabet ascending', 'sort alphabet descending', 'sort ascending', 'sort content ascending', 'sort content descending', 'sort descending', 'sort numeric ascending', 'sort numeric descending', 'sound', 'spy', 'stripe card', 'student', 'talk', 'target', 'teletype', 'television', 'text cursor', 'text telephone', 'theme', 'thermometer', 'thumb tack', 'time', 'tm', 'toggle down', 'toggle left', 'toggle right', 'toggle up', 'translate', 'travel', 'treatment', 'triangle down', 'triangle left', 'triangle right', 'triangle up', 'try', 'unhide', 'unlinkify', 'unmute', 'usd', 'user cancel', 'user close', 'user delete', 'user x', 'vcard', 'video camera', 'video play', 'volume control phone', 'wait', 'warning circle', 'warning sign', 'warning', 'wi-fi', 'winner', 'wizard', 'woman', 'won', 'wordpress beginner', 'wordpress forms', 'world', 'write square', 'x', 'yen', 'zip', 'zoom in', 'zoom out', 'zoom', 'bitbucket square', 'checkmark box', 'circle thin', 'cloud download', 'cloud upload', 'compose', 'conversation', 'credit card alternative', 'currency', 'dashboard', 'diamond', 'disk', 'exchange', 'external share', 'external square', 'external', 'facebook official', 'food', 'hourglass zero', 'level down', 'level up', 'log out', 'meanpath', 'money', 'move', 'pencil', 'protect', 'radio', 'remove bookmark', 'resize horizontal', 'resize vertical', 'sign in', 'sign out', 'spoon', 'star half empty', 'star half full', 'ticket', 'times rectangle', 'write', 'youtube play'];
        var ICONS_AND_ALIASES = lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(ICONS).concat(ICON_ALIASES)); // Some icon names are not part of icons.css.
        // These are only valid as children of other components.
        // Their CSS rules are defined by a specific component's CSS.
        // We don't want to show name warnings for those usages so we add them as valid names here.
        var COMPONENT_CONTEXT_SPECIFIC_ICONS = ['left dropdown'];
        var ALL_ICONS_IN_ALL_CONTEXTS = lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(ICONS_AND_ALIASES).concat(COMPONENT_CONTEXT_SPECIFIC_ICONS));
        /***/ 
    }),
    /* 427 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /**
         * Normalizes the offset value.
         * @param {number|array} value The value to normalize.
         * @returns {number}
         */
        /* harmony default export */ __webpack_exports__["default"] = (function (value) {
            return typeof value === 'number' || typeof value === 'string' ? [value, value] : value;
        });
        /***/ 
    }),
    /* 428 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /**
         * Normalizes the duration of a transition.
         * @param {number|object} duration The value to normalize.
         * @param {'hide'|'show'} type The type of transition.
         * @returns {number}
         */
        /* harmony default export */ __webpack_exports__["default"] = (function (duration, type) {
            return typeof duration === 'number' || typeof duration === 'string' ? duration : duration[type];
        });
        /***/ 
    }),
    /* 429 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(430);
        /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_transform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(431);
        /* harmony import */ var lodash_transform__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_transform__WEBPACK_IMPORTED_MODULE_2__);
        /**
         * Naive and inefficient object difference, intended for development / debugging use only.
         * Deleted keys are shown as [DELETED].
         * @param {{}} source The source object
         * @param {{}} target The target object.
         * @returns {{}} A new object containing new/modified/deleted keys.
         * @example
         * import { objectDiff } from 'src/lib'
         *
         * const a = { key: 'val', foo: 'bar' }
         * const b = { key: 'val', foo: 'baz' }
         *
         * objectDiff(a, b)
         * //=> { foo: 'baz' }
         */
        /* harmony default export */ __webpack_exports__["default"] = (function (source, target) {
            return lodash_transform__WEBPACK_IMPORTED_MODULE_2___default()(source, function (res, val, key) {
                // deleted keys
                if (!lodash_has__WEBPACK_IMPORTED_MODULE_1___default()(target, key))
                    res[key] = '[DELETED]'; // new keys / changed values
                // Note, we tolerate isEqual here as this is a dev only utility and not included in production code
                else if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(val, target[key]))
                    res[key] = target[key];
            }, {});
        });
        /***/ 
    }),
    /* 430 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsEqual = __webpack_require__(210);
        /**
         * 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);
        }
        module.exports = isEqual;
        /***/ 
    }),
    /* 431 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayEach = __webpack_require__(244), baseCreate = __webpack_require__(282), baseForOwn = __webpack_require__(184), baseIteratee = __webpack_require__(201), getPrototype = __webpack_require__(323), isArray = __webpack_require__(84), isBuffer = __webpack_require__(190), isFunction = __webpack_require__(105), isObject = __webpack_require__(106), isTypedArray = __webpack_require__(193);
        /**
         * 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;
        /***/ 
    }),
    /* 432 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(433);
        /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony default export */ __webpack_exports__["default"] = (shallowequal__WEBPACK_IMPORTED_MODULE_0___default.a);
        /***/ 
    }),
    /* 433 */
    /***/ (function (module, exports) {
        //
        module.exports = function shallowEqual(objA, objB, compare, compareContext) {
            var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
            if (ret !== void 0) {
                return !!ret;
            }
            if (objA === objB) {
                return true;
            }
            if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
                return false;
            }
            var keysA = Object.keys(objA);
            var keysB = Object.keys(objB);
            if (keysA.length !== keysB.length) {
                return false;
            }
            var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
            // Test for A's keys different from B.
            for (var idx = 0; idx < keysA.length; idx++) {
                var key = keysA[idx];
                if (!bHasOwnProperty(key)) {
                    return false;
                }
                var valueA = objA[key];
                var valueB = objB[key];
                ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
                if (ret === false || (ret === void 0 && valueA !== valueB)) {
                    return false;
                }
            }
            return true;
        };
        /***/ 
    }),
    /* 434 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(435);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Button__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 435 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /* harmony import */ var _Icon_Icon__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(436);
        /* harmony import */ var _Label_Label__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(439);
        /* harmony import */ var _ButtonContent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(454);
        /* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(455);
        /* harmony import */ var _ButtonOr__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(456);
        /**
         * A Button indicates a possible user action.
         * @see Form
         * @see Icon
         * @see Label
         */
        var Button = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Button, _Component);
            function Button() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Button);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Button)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "computeElementType", function () {
                    var _this$props = _this.props, attached = _this$props.attached, label = _this$props.label;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default()(attached) || !lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default()(label))
                        return 'div';
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "computeTabIndex", function (ElementType) {
                    var _this$props2 = _this.props, disabled = _this$props2.disabled, tabIndex = _this$props2.tabIndex;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default()(tabIndex))
                        return tabIndex;
                    if (disabled)
                        return -1;
                    if (ElementType === 'div')
                        return 0;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "focus", function () {
                    return lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.ref, 'focus');
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleClick", function (e) {
                    var disabled = _this.props.disabled;
                    if (disabled) {
                        e.preventDefault();
                        return;
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onClick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "hasIconClass", function () {
                    var _this$props3 = _this.props, labelPosition = _this$props3.labelPosition, children = _this$props3.children, content = _this$props3.content, icon = _this$props3.icon;
                    if (icon === true)
                        return true;
                    return icon && (labelPosition || _lib__WEBPACK_IMPORTED_MODULE_14__["childrenUtils"].isNil(children) && lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default()(content));
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Button, [{
                    key: "render",
                    value: function render() {
                        var _this$props4 = this.props, active = _this$props4.active, animated = _this$props4.animated, attached = _this$props4.attached, basic = _this$props4.basic, children = _this$props4.children, circular = _this$props4.circular, className = _this$props4.className, color = _this$props4.color, compact = _this$props4.compact, content = _this$props4.content, disabled = _this$props4.disabled, floated = _this$props4.floated, fluid = _this$props4.fluid, icon = _this$props4.icon, inverted = _this$props4.inverted, label = _this$props4.label, labelPosition = _this$props4.labelPosition, loading = _this$props4.loading, negative = _this$props4.negative, positive = _this$props4.positive, primary = _this$props4.primary, secondary = _this$props4.secondary, role = _this$props4.role, size = _this$props4.size, toggle = _this$props4.toggle;
                        var baseClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(this.hasIconClass(), 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(negative, 'negative'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(positive, 'positive'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(primary, 'primary'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(secondary, 'secondary'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(toggle, 'toggle'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(animated, 'animated'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(attached, 'attached'));
                        var labeledClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(labelPosition || !!label, 'labeled'));
                        var wrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useValueAndKey"])(floated, 'floated'));
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(Button, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getElementType"])(Button, this.props, this.computeElementType);
                        var tabIndex = this.computeTabIndex(ElementType);
                        if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_10___default()(label)) {
                            var buttonClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()('ui', baseClasses, 'button', className);
                            var containerClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()('ui', labeledClasses, 'button', className, wrapperClasses);
                            var labelElement = _Label_Label__WEBPACK_IMPORTED_MODULE_16__["default"].create(label, {
                                defaultProps: {
                                    basic: true,
                                    pointing: labelPosition === 'left' ? 'right' : 'left'
                                },
                                autoGenerateKey: false
                            });
                            return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                                className: containerClasses,
                                onClick: this.handleClick
                            }), labelPosition === 'left' && labelElement, react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("button", {
                                className: buttonClasses,
                                disabled: disabled,
                                ref: this.handleRef,
                                tabIndex: tabIndex
                            }, _Icon_Icon__WEBPACK_IMPORTED_MODULE_15__["default"].create(icon, {
                                autoGenerateKey: false
                            }), " ", content), (labelPosition === 'right' || !labelPosition) && labelElement);
                        }
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_11___default()('ui', baseClasses, wrapperClasses, labeledClasses, 'button', className);
                        var hasChildren = !_lib__WEBPACK_IMPORTED_MODULE_14__["childrenUtils"].isNil(children);
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                            className: classes,
                            disabled: disabled && ElementType === 'button' || undefined,
                            onClick: this.handleClick,
                            ref: this.handleRef,
                            role: role,
                            tabIndex: tabIndex
                        }), hasChildren && children, !hasChildren && _Icon_Icon__WEBPACK_IMPORTED_MODULE_15__["default"].create(icon, {
                            autoGenerateKey: false
                        }), !hasChildren && content);
                    }
                }]);
            return Button;
        }(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Button, "defaultProps", {
            as: 'button',
            role: 'button'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Button, "Content", _ButtonContent__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Button, "Group", _ButtonGroup__WEBPACK_IMPORTED_MODULE_18__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Button, "Or", _ButtonOr__WEBPACK_IMPORTED_MODULE_19__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Button, "handledProps", ["active", "animated", "as", "attached", "basic", "children", "circular", "className", "color", "compact", "content", "disabled", "floated", "fluid", "icon", "inverted", "label", "labelPosition", "loading", "negative", "onClick", "positive", "primary", "role", "secondary", "size", "tabIndex", "toggle"]);
        Button.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].as,
            /** A button can show it is currently the active user selection. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A button can animate to show hidden content. */
            animated: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['fade', 'vertical'])]),
            /** A button can be attached to other content. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['left', 'right', 'top', 'bottom'])]),
            /** A basic button is less pronounced. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Primary content. */
            children: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.node, _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].disallow(['label']), _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].givenProps({
                    icon: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string.isRequired, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object.isRequired, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.element.isRequired])
                }, _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].disallow(['icon']))]),
            /** A button can be circular. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** A button can have different colors */
            color: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].COLORS).concat(['facebook', 'google plus', 'instagram', 'linkedin', 'twitter', 'vk', 'youtube'])),
            /** A button can reduce its padding to fit into tighter spaces. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].contentShorthand,
            /** A button can show it is currently unable to be interacted with. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A button can be aligned to the left or right of its container. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].FLOATS),
            /** A button can take the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Add an Icon by name, props object, or pass an <Icon />. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].some([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.element]),
            /** A button can be formatted to appear on dark backgrounds. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Add a Label by text, props object, or pass a <Label />. */
            label: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].some([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.element]),
            /** A labeled button can format a Label or Icon to appear on the left or right. */
            labelPosition: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['right', 'left']),
            /** A button can show a loading indicator. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A button can hint towards a negative consequence. */
            negative: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /**
             * Called after user's click.
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /** A button can hint towards a positive consequence. */
            positive: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A button can be formatted to show different levels of emphasis. */
            primary: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** The role of the HTML element. */
            role: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** A button can be formatted to show different levels of emphasis. */
            secondary: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A button can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].SIZES),
            /** A button can receive focus. */
            tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** A button can be formatted to toggle on and off. */
            toggle: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool
        } : undefined;
        Button.create = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["createShorthandFactory"])(Button, function (value) {
            return {
                content: value
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Button);
        /***/ 
    }),
    /* 436 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _IconGroup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(438);
        /**
         * An icon is a glyph used to represent something else.
         * @see Image
         */
        var Icon = 
        /*#__PURE__*/
        function (_PureComponent) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Icon, _PureComponent);
            function Icon() {
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Icon);
                return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Icon).apply(this, arguments));
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Icon, [{
                    key: "getIconAriaOptions",
                    value: function getIconAriaOptions() {
                        var ariaOptions = {};
                        var _this$props = this.props, ariaLabel = _this$props['aria-label'], ariaHidden = _this$props['aria-hidden'];
                        if (lodash_isNil__WEBPACK_IMPORTED_MODULE_7___default()(ariaLabel)) {
                            ariaOptions['aria-hidden'] = 'true';
                        }
                        else {
                            ariaOptions['aria-label'] = ariaLabel;
                        }
                        if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_7___default()(ariaHidden)) {
                            ariaOptions['aria-hidden'] = ariaHidden;
                        }
                        return ariaOptions;
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props2 = this.props, bordered = _this$props2.bordered, circular = _this$props2.circular, className = _this$props2.className, color = _this$props2.color, corner = _this$props2.corner, disabled = _this$props2.disabled, fitted = _this$props2.fitted, flipped = _this$props2.flipped, inverted = _this$props2.inverted, link = _this$props2.link, loading = _this$props2.loading, name = _this$props2.name, rotated = _this$props2.rotated, size = _this$props2.size;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(color, name, size, Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(bordered, 'bordered'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(corner, 'corner'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(fitted, 'fitted'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(link, 'link'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useValueAndKey"])(flipped, 'flipped'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useValueAndKey"])(rotated, 'rotated'), 'icon', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Icon, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(Icon, this.props);
                        var ariaOptions = this.getIconAriaOptions();
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, ariaOptions, {
                            className: classes
                        }));
                    }
                }]);
            return Icon;
        }(react__WEBPACK_IMPORTED_MODULE_11__["PureComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(Icon, "defaultProps", {
            as: 'i'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(Icon, "Group", _IconGroup__WEBPACK_IMPORTED_MODULE_13__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(Icon, "handledProps", ["aria-hidden", "aria-label", "as", "bordered", "circular", "className", "color", "corner", "disabled", "fitted", "flipped", "inverted", "link", "loading", "name", "rotated", "size"]);
        Icon.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** Formatted to appear bordered. */
            bordered: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Icon can formatted to appear circular. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Color of the icon. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_12__["SUI"].COLORS),
            /** Icons can display a smaller corner icon. */
            corner: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Show that the icon is inactive. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Fitted, without space to left or right of Icon. */
            fitted: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Icon can flipped. */
            flipped: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['horizontally', 'vertically']),
            /** Formatted to have its colors inverted for contrast. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Icon can be formatted as a link. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Icon can be used as a simple loader. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Name of the icon. */
            name: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].suggest(_lib__WEBPACK_IMPORTED_MODULE_12__["SUI"].ALL_ICONS_IN_ALL_CONTEXTS),
            /** Icon can rotated. */
            rotated: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['clockwise', 'counterclockwise']),
            /** Size of the icon. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_8___default()(_lib__WEBPACK_IMPORTED_MODULE_12__["SUI"].SIZES, 'medium')),
            /** Icon can have an aria label. */
            'aria-hidden': prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Icon can have an aria label. */
            'aria-label': prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string
        } : undefined;
        Icon.create = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthandFactory"])(Icon, function (value) {
            return {
                name: value
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Icon);
        /***/ 
    }),
    /* 437 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseDifference = __webpack_require__(157), baseRest = __webpack_require__(145), isArrayLikeObject = __webpack_require__(172);
        /**
         * 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)
                : [];
        });
        module.exports = without;
        /***/ 
    }),
    /* 438 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * Several icons can be used together as a group.
         */
        function IconGroup(props) {
            var children = props.children, className = props.className, content = props.content, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(size, 'icons', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(IconGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(IconGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        IconGroup.handledProps = ["as", "children", "className", "content", "size"];
        IconGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** Size of the icon group. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'medium'))
        } : undefined;
        IconGroup.defaultProps = {
            as: 'i'
        };
        /* harmony default export */ __webpack_exports__["default"] = (IconGroup);
        /***/ 
    }),
    /* 439 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Label; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(174);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _Icon_Icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(436);
        /* harmony import */ var _Image_Image__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(440);
        /* harmony import */ var _LabelDetail__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(452);
        /* harmony import */ var _LabelGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(453);
        /**
         * A label displays content classification.
         */
        var Label = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Label, _Component);
            function Label() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Label);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Label)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var onClick = _this.props.onClick;
                    if (onClick)
                        onClick(e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleIconOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onRemove', e, _this.props);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Label, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, attached = _this$props.attached, basic = _this$props.basic, children = _this$props.children, circular = _this$props.circular, className = _this$props.className, color = _this$props.color, content = _this$props.content, corner = _this$props.corner, detail = _this$props.detail, empty = _this$props.empty, floating = _this$props.floating, horizontal = _this$props.horizontal, icon = _this$props.icon, image = _this$props.image, onRemove = _this$props.onRemove, pointing = _this$props.pointing, removeIcon = _this$props.removeIcon, ribbon = _this$props.ribbon, size = _this$props.size, tag = _this$props.tag;
                        var pointingClass = pointing === true && 'pointing' || (pointing === 'left' || pointing === 'right') && "".concat(pointing, " pointing") || (pointing === 'above' || pointing === 'below') && "pointing ".concat(pointing);
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()('ui', color, pointingClass, size, Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(empty, 'empty'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(floating, 'floating'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(image === true, 'image'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(tag, 'tag'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOrValueAndKey"])(corner, 'corner'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOrValueAndKey"])(ribbon, 'ribbon'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useValueAndKey"])(attached, 'attached'), 'label', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(Label, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(Label, this.props);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                onClick: this.handleClick
                            }), children);
                        }
                        var removeIconShorthand = lodash_isUndefined__WEBPACK_IMPORTED_MODULE_8___default()(removeIcon) ? 'delete' : removeIcon;
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                            className: classes,
                            onClick: this.handleClick
                        }, rest), _Icon_Icon__WEBPACK_IMPORTED_MODULE_14__["default"].create(icon, {
                            autoGenerateKey: false
                        }), typeof image !== 'boolean' && _Image_Image__WEBPACK_IMPORTED_MODULE_15__["default"].create(image, {
                            autoGenerateKey: false
                        }), content, _LabelDetail__WEBPACK_IMPORTED_MODULE_16__["default"].create(detail, {
                            autoGenerateKey: false
                        }), onRemove && _Icon_Icon__WEBPACK_IMPORTED_MODULE_14__["default"].create(removeIconShorthand, {
                            autoGenerateKey: false,
                            overrideProps: this.handleIconOverrides
                        }));
                    }
                }]);
            return Label;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Label, "Detail", _LabelDetail__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Label, "Group", _LabelGroup__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Label, "handledProps", ["active", "as", "attached", "basic", "children", "circular", "className", "color", "content", "corner", "detail", "empty", "floating", "horizontal", "icon", "image", "onClick", "onRemove", "pointing", "removeIcon", "ribbon", "size", "tag"]);
        Label.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** A label can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A label can attach to a content segment. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['top', 'bottom', 'top right', 'top left', 'bottom left', 'bottom right']),
            /** A label can reduce its complexity. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** A label can be circular. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Color of the label. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /** A label can position itself in the corner of an element. */
            corner: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['left', 'right'])]),
            /** Shorthand for LabelDetail. */
            detail: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** Formats the label as a dot. */
            empty: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].demand(['circular'])]),
            /** Float above another element in the upper right corner. */
            floating: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A horizontal label is formatted to label content along-side it horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Shorthand for Icon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A label can be formatted to emphasize an image or prop can be used as shorthand for Image. */
            image: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand]),
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /**
             * Adds an "x" icon, called when "x" is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onRemove: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** A label can point to content next to it. */
            pointing: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['above', 'below', 'left', 'right'])]),
            /** Shorthand for Icon to appear as the last child and trigger onRemove. */
            removeIcon: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A label can appear as a ribbon attaching itself to an element. */
            ribbon: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['right'])]),
            /** A label can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].SIZES),
            /** A label can appear as a tag. */
            tag: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool
        } : undefined;
        Label.create = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createShorthandFactory"])(Label, function (value) {
            return {
                content: value
            };
        });
        /***/ 
    }),
    /* 440 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _modules_Dimmer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(441);
        /* harmony import */ var _Label_Label__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(439);
        /* harmony import */ var _ImageGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(451);
        var imageProps = ['alt', 'height', 'src', 'srcSet', 'width'];
        /**
         * An image is a graphic representation of something.
         * @see Icon
         */
        function Image(props) {
            var avatar = props.avatar, bordered = props.bordered, centered = props.centered, children = props.children, circular = props.circular, className = props.className, content = props.content, dimmer = props.dimmer, disabled = props.disabled, floated = props.floated, fluid = props.fluid, hidden = props.hidden, href = props.href, inline = props.inline, label = props.label, rounded = props.rounded, size = props.size, spaced = props.spaced, verticalAlign = props.verticalAlign, wrapped = props.wrapped, ui = props.ui;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(ui, 'ui'), size, Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(avatar, 'avatar'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(bordered, 'bordered'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(hidden, 'hidden'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(inline, 'inline'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(rounded, 'rounded'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(spaced, 'spaced'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useVerticalAlignProp"])(verticalAlign, 'aligned'), 'image', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(Image, props);
            var _partitionHTMLProps = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["partitionHTMLProps"])(rest, {
                htmlProps: imageProps
            }), _partitionHTMLProps2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_partitionHTMLProps, 2), imgTagProps = _partitionHTMLProps2[0], rootProps = _partitionHTMLProps2[1];
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(Image, props, function () {
                if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(dimmer) || !lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(label) || !lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(wrapped) || !_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                    return 'div';
                }
            });
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            if (ElementType === 'img') {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rootProps, imgTagProps, {
                    className: classes
                }));
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rootProps, {
                className: classes,
                href: href
            }), _modules_Dimmer__WEBPACK_IMPORTED_MODULE_7__["default"].create(dimmer, {
                autoGenerateKey: false
            }), _Label_Label__WEBPACK_IMPORTED_MODULE_8__["default"].create(label, {
                autoGenerateKey: false
            }), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img", imgTagProps));
        }
        Image.handledProps = ["as", "avatar", "bordered", "centered", "children", "circular", "className", "content", "dimmer", "disabled", "floated", "fluid", "hidden", "href", "inline", "label", "rounded", "size", "spaced", "ui", "verticalAlign", "wrapped"];
        Image.Group = _ImageGroup__WEBPACK_IMPORTED_MODULE_9__["default"];
        Image.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** An image may be formatted to appear inline with text as an avatar. */
            avatar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** An image may include a border to emphasize the edges of white or transparent content. */
            bordered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** An image can appear centered in a content block. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** An image may appear circular. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** An image can show that it is disabled and cannot be selected. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand for Dimmer. */
            dimmer: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand,
            /** An image can sit to the left or right of other content. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].FLOATS),
            /** An image can take up the width of its container. */
            fluid: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].disallow(['size'])]),
            /** An image can be hidden. */
            hidden: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Renders the Image as an <a> tag with this href. */
            href: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** An image may appear inline. */
            inline: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand for Label. */
            label: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand,
            /** An image may appear rounded. */
            rounded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** An image may appear at different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].SIZES),
            /** An image can specify that it needs an additional spacing to separate it from nearby content. */
            spaced: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right'])]),
            /** Whether or not to add the ui className. */
            ui: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** An image can specify its vertical alignment. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].VERTICAL_ALIGNMENTS),
            /** An image can render wrapped in a `div.ui.image` as alternative HTML markup. */
            wrapped: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
        } : undefined;
        Image.defaultProps = {
            as: 'img',
            ui: true
        };
        Image.create = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["createShorthandFactory"])(Image, function (value) {
            return {
                src: value
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Image);
        /***/ 
    }),
    /* 441 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Dimmer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(442);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Dimmer__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 442 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Dimmer; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(153);
        /* harmony import */ var _addons_Portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(443);
        /* harmony import */ var _DimmerDimmable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(449);
        /* harmony import */ var _DimmerInner__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(450);
        /**
         * A dimmer hides distractions to focus attention on particular content.
         */
        var Dimmer = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Dimmer, _Component);
            function Dimmer() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Dimmer);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Dimmer)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handlePortalMount", function () {
                    if (!Object(_lib__WEBPACK_IMPORTED_MODULE_10__["isBrowser"])())
                        return; // Heads up, IE doesn't support second argument in add()
                    document.body.classList.add('dimmed');
                    document.body.classList.add('dimmable');
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handlePortalUnmount", function () {
                    if (!Object(_lib__WEBPACK_IMPORTED_MODULE_10__["isBrowser"])())
                        return; // Heads up, IE doesn't support second argument in add()
                    document.body.classList.remove('dimmed');
                    document.body.classList.remove('dimmable');
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Dimmer, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, page = _this$props.page;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["getUnhandledProps"])(Dimmer, this.props);
                        if (page) {
                            return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_addons_Portal__WEBPACK_IMPORTED_MODULE_11__["default"], {
                                closeOnEscape: false,
                                closeOnDocumentClick: false,
                                onMount: this.handlePortalMount,
                                onUnmount: this.handlePortalUnmount,
                                open: active,
                                openOnTriggerClick: false
                            }, react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_DimmerInner__WEBPACK_IMPORTED_MODULE_13__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                active: active,
                                page: page
                            })));
                        }
                        return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_DimmerInner__WEBPACK_IMPORTED_MODULE_13__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            active: active,
                            page: page
                        }));
                    }
                }]);
            return Dimmer;
        }(react__WEBPACK_IMPORTED_MODULE_9__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Dimmer, "Dimmable", _DimmerDimmable__WEBPACK_IMPORTED_MODULE_12__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Dimmer, "Inner", _DimmerInner__WEBPACK_IMPORTED_MODULE_13__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Dimmer, "handledProps", ["active", "page"]);
        Dimmer.propTypes = true ? {
            /** An active dimmer will dim its parent container. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** A dimmer can be formatted to be fixed to the page. */
            page: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool
        } : undefined;
        Dimmer.create = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["createShorthandFactory"])(Dimmer, function (value) {
            return {
                content: value
            };
        });
        /***/ 
    }),
    /* 443 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(444);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Portal__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 444 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(445);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(keyboard_key__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _Ref__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(446);
        /* harmony import */ var _PortalInner__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(448);
        /**
         * A component that allows you to render children outside their parent.
         * @see Modal
         * @see Popup
         * @see Dimmer
         * @see Confirm
         */
        var Portal = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Portal, _Component);
            function Portal() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Portal);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Portal)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleDocumentClick", function (e) {
                    var closeOnDocumentClick = _this.props.closeOnDocumentClick;
                    if (!_this.portalNode || // no portal
                        Object(_lib__WEBPACK_IMPORTED_MODULE_12__["doesNodeContainClick"])(_this.triggerNode, e) || // event happened in trigger (delegate to trigger handlers)
                        Object(_lib__WEBPACK_IMPORTED_MODULE_12__["doesNodeContainClick"])(_this.portalNode, e) // event happened in the portal
                    ) {
                        return;
                    } // ignore the click
                    if (closeOnDocumentClick) {
                        _this.close(e);
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleEscape", function (e) {
                    if (!_this.props.closeOnEscape)
                        return;
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_9___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_9___default.a.Escape)
                        return;
                    _this.close(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handlePortalMouseLeave", function (e) {
                    var _this$props = _this.props, closeOnPortalMouseLeave = _this$props.closeOnPortalMouseLeave, mouseLeaveDelay = _this$props.mouseLeaveDelay;
                    if (!closeOnPortalMouseLeave)
                        return;
                    _this.mouseLeaveTimer = _this.closeWithTimeout(e, mouseLeaveDelay);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handlePortalMouseEnter", function () {
                    // In order to enable mousing from the trigger to the portal, we need to
                    // clear the mouseleave timer that was set when leaving the trigger.
                    var closeOnPortalMouseLeave = _this.props.closeOnPortalMouseLeave;
                    if (!closeOnPortalMouseLeave)
                        return;
                    clearTimeout(_this.mouseLeaveTimer);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerBlur", function (e) {
                    var _this$props2 = _this.props, trigger = _this$props2.trigger, closeOnTriggerBlur = _this$props2.closeOnTriggerBlur; // Call original event handler
                    for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
                        rest[_key2 - 1] = arguments[_key2];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [trigger, 'props.onBlur', e].concat(rest)); // do not close if focus is given to the portal
                    var didFocusPortal = lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), 'portalNode.contains', e.relatedTarget);
                    if (!closeOnTriggerBlur || didFocusPortal)
                        return;
                    _this.close(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerClick", function (e) {
                    var _this$props3 = _this.props, trigger = _this$props3.trigger, closeOnTriggerClick = _this$props3.closeOnTriggerClick, openOnTriggerClick = _this$props3.openOnTriggerClick;
                    var open = _this.state.open; // Call original event handler
                    for (var _len3 = arguments.length, rest = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
                        rest[_key3 - 1] = arguments[_key3];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [trigger, 'props.onClick', e].concat(rest));
                    if (open && closeOnTriggerClick) {
                        _this.close(e);
                    }
                    else if (!open && openOnTriggerClick) {
                        _this.open(e);
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerFocus", function (e) {
                    var _this$props4 = _this.props, trigger = _this$props4.trigger, openOnTriggerFocus = _this$props4.openOnTriggerFocus; // Call original event handler
                    for (var _len4 = arguments.length, rest = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
                        rest[_key4 - 1] = arguments[_key4];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [trigger, 'props.onFocus', e].concat(rest));
                    if (!openOnTriggerFocus)
                        return;
                    _this.open(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerMouseLeave", function (e) {
                    clearTimeout(_this.mouseEnterTimer);
                    var _this$props5 = _this.props, trigger = _this$props5.trigger, closeOnTriggerMouseLeave = _this$props5.closeOnTriggerMouseLeave, mouseLeaveDelay = _this$props5.mouseLeaveDelay; // Call original event handler
                    for (var _len5 = arguments.length, rest = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
                        rest[_key5 - 1] = arguments[_key5];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [trigger, 'props.onMouseLeave', e].concat(rest));
                    if (!closeOnTriggerMouseLeave)
                        return;
                    _this.mouseLeaveTimer = _this.closeWithTimeout(e, mouseLeaveDelay);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerMouseEnter", function (e) {
                    clearTimeout(_this.mouseLeaveTimer);
                    var _this$props6 = _this.props, trigger = _this$props6.trigger, mouseEnterDelay = _this$props6.mouseEnterDelay, openOnTriggerMouseEnter = _this$props6.openOnTriggerMouseEnter; // Call original event handler
                    for (var _len6 = arguments.length, rest = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
                        rest[_key6 - 1] = arguments[_key6];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [trigger, 'props.onMouseEnter', e].concat(rest));
                    if (!openOnTriggerMouseEnter)
                        return;
                    _this.mouseEnterTimer = _this.openWithTimeout(e, mouseEnterDelay);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "open", function (e) {
                    var onOpen = _this.props.onOpen;
                    if (onOpen)
                        onOpen(e, _this.props);
                    _this.trySetState({
                        open: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "openWithTimeout", function (e, delay) {
                    // React wipes the entire event object and suggests using e.persist() if
                    // you need the event for async access. However, even with e.persist
                    // certain required props (e.g. currentTarget) are null so we're forced to clone.
                    var eventClone = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, e);
                    return setTimeout(function () {
                        return _this.open(eventClone);
                    }, delay || 0);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "close", function (e) {
                    var onClose = _this.props.onClose;
                    if (onClose)
                        onClose(e, _this.props);
                    _this.trySetState({
                        open: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "closeWithTimeout", function (e, delay) {
                    // React wipes the entire event object and suggests using e.persist() if
                    // you need the event for async access. However, even with e.persist
                    // certain required props (e.g. currentTarget) are null so we're forced to clone.
                    var eventClone = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, e);
                    return setTimeout(function () {
                        return _this.close(eventClone);
                    }, delay || 0);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleMount", function (e, _ref) {
                    var target = _ref.node;
                    var eventPool = _this.props.eventPool;
                    _this.portalNode = target;
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('mouseleave', _this.handlePortalMouseLeave, {
                        pool: eventPool,
                        target: target
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('mouseenter', _this.handlePortalMouseEnter, {
                        pool: eventPool,
                        target: target
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('click', _this.handleDocumentClick, {
                        pool: eventPool
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('keydown', _this.handleEscape, {
                        pool: eventPool
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onMount', null, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleUnmount", function (e, _ref2) {
                    var target = _ref2.node;
                    var eventPool = _this.props.eventPool;
                    _this.portalNode = null;
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('mouseleave', _this.handlePortalMouseLeave, {
                        pool: eventPool,
                        target: target
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('mouseenter', _this.handlePortalMouseEnter, {
                        pool: eventPool,
                        target: target
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('click', _this.handleDocumentClick, {
                        pool: eventPool
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('keydown', _this.handleEscape, {
                        pool: eventPool
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onUnmount', null, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerRef", function (c) {
                    _this.triggerNode = c;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'triggerRef', c);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Portal, [{
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        // Clean up timers
                        clearTimeout(this.mouseEnterTimer);
                        clearTimeout(this.mouseLeaveTimer);
                    } // ----------------------------------------
                    // Document Event Handlers
                    // ----------------------------------------
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props7 = this.props, children = _this$props7.children, mountNode = _this$props7.mountNode, trigger = _this$props7.trigger;
                        var open = this.state.open;
                        return [open ? react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_PortalInner__WEBPACK_IMPORTED_MODULE_14__["default"], {
                                key: "inner",
                                mountNode: mountNode,
                                onMount: this.handleMount,
                                onUnmount: this.handleUnmount
                            }, children) : null, trigger ? react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_Ref__WEBPACK_IMPORTED_MODULE_13__["default"], {
                                innerRef: this.handleTriggerRef,
                                key: "trigger"
                            }, Object(react__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(trigger, {
                                onBlur: this.handleTriggerBlur,
                                onClick: this.handleTriggerClick,
                                onFocus: this.handleTriggerFocus,
                                onMouseLeave: this.handleTriggerMouseLeave,
                                onMouseEnter: this.handleTriggerMouseEnter
                            })) : null];
                    }
                }]);
            return Portal;
        }(_lib__WEBPACK_IMPORTED_MODULE_12__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Portal, "defaultProps", {
            closeOnDocumentClick: true,
            closeOnEscape: true,
            eventPool: 'default',
            openOnTriggerClick: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Portal, "autoControlledProps", ['open']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Portal, "Inner", _PortalInner__WEBPACK_IMPORTED_MODULE_14__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Portal, "handledProps", ["children", "closeOnDocumentClick", "closeOnEscape", "closeOnPortalMouseLeave", "closeOnTriggerBlur", "closeOnTriggerClick", "closeOnTriggerMouseLeave", "defaultOpen", "eventPool", "mountNode", "mouseEnterDelay", "mouseLeaveDelay", "onClose", "onMount", "onOpen", "onUnmount", "open", "openOnTriggerClick", "openOnTriggerFocus", "openOnTriggerMouseEnter", "trigger", "triggerRef"]);
        Portal.propTypes = true ? {
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node.isRequired,
            /** Controls whether or not the portal should close when the document is clicked. */
            closeOnDocumentClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should close when escape is pressed is displayed. */
            closeOnEscape: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /**
             * Controls whether or not the portal should close when mousing out of the portal.
             * NOTE: This will prevent `closeOnTriggerMouseLeave` when mousing over the
             * gap from the trigger to the portal.
             */
            closeOnPortalMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should close on blur of the trigger. */
            closeOnTriggerBlur: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should close on click of the trigger. */
            closeOnTriggerClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should close when mousing out of the trigger. */
            closeOnTriggerMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Initial value of open. */
            defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Event pool namespace that is used to handle component events */
            eventPool: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** The node where the portal should mount. */
            mountNode: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.any,
            /** Milliseconds to wait before opening on mouse over */
            mouseEnterDelay: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number,
            /** Milliseconds to wait before closing on mouse leave */
            mouseLeaveDelay: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number,
            /**
             * Called when a close event happens
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClose: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Called when the portal is mounted on the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onMount: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Called when an open event happens
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onOpen: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Called when the portal is unmounted from the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onUnmount: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** Controls whether or not the portal is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should open when the trigger is clicked. */
            openOnTriggerClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should open on focus of the trigger. */
            openOnTriggerFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Controls whether or not the portal should open when mousing over the trigger. */
            openOnTriggerMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Element to be rendered in-place where the portal is defined. */
            trigger: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /**
             * Called with a ref to the trigger node.
             *
             * @param {HTMLElement} node - Referred node.
             */
            triggerRef: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Portal);
        /***/ 
    }),
    /* 445 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        var isObject = function isObject(val) {
            return val !== null && !Array.isArray(val) && typeof val === 'object';
        };
        var codes = {
            // ----------------------------------------
            // By Code
            // ----------------------------------------
            3: 'Cancel',
            6: 'Help',
            8: 'Backspace',
            9: 'Tab',
            12: 'Clear',
            13: 'Enter',
            16: 'Shift',
            17: 'Control',
            18: 'Alt',
            19: 'Pause',
            20: 'CapsLock',
            27: 'Escape',
            28: 'Convert',
            29: 'NonConvert',
            30: 'Accept',
            31: 'ModeChange',
            32: ' ',
            33: 'PageUp',
            34: 'PageDown',
            35: 'End',
            36: 'Home',
            37: 'ArrowLeft',
            38: 'ArrowUp',
            39: 'ArrowRight',
            40: 'ArrowDown',
            41: 'Select',
            42: 'Print',
            43: 'Execute',
            44: 'PrintScreen',
            45: 'Insert',
            46: 'Delete',
            48: ['0', ')'],
            49: ['1', '!'],
            50: ['2', '@'],
            51: ['3', '#'],
            52: ['4', '$'],
            53: ['5', '%'],
            54: ['6', '^'],
            55: ['7', '&'],
            56: ['8', '*'],
            57: ['9', '('],
            91: 'OS',
            93: 'ContextMenu',
            144: 'NumLock',
            145: 'ScrollLock',
            181: 'VolumeMute',
            182: 'VolumeDown',
            183: 'VolumeUp',
            186: [';', ':'],
            187: ['=', '+'],
            188: [',', '<'],
            189: ['-', '_'],
            190: ['.', '>'],
            191: ['/', '?'],
            192: ['`', '~'],
            219: ['[', '{'],
            220: ['\\', '|'],
            221: [']', '}'],
            222: ["'", '"'],
            224: 'Meta',
            225: 'AltGraph',
            246: 'Attn',
            247: 'CrSel',
            248: 'ExSel',
            249: 'EraseEof',
            250: 'Play',
            251: 'ZoomOut',
        };
        // Function Keys (F1-24)
        for (var i = 0; i < 24; i += 1) {
            codes[112 + i] = 'F' + (i + 1);
        }
        // Alphabet (a-Z)
        for (var j = 0; j < 26; j += 1) {
            var n = j + 65;
            codes[n] = [String.fromCharCode(n + 32), String.fromCharCode(n)];
        }
        var keyboardKey = {
            codes: codes,
            /**
             * Get the `keyCode` or `which` value from a keyboard event or `key` name.
             * @param {string|object} name A keyboard event like object or `key` name.
             * @param {string} [name.key] If object, it must have one of these keys.
             * @param {string} [name.keyCode] If object, it must have one of these keys.
             * @param {string} [name.which] If object, it must have one of these keys.
             * @returns {*}
             */
            getCode: function getCode(name) {
                if (isObject(name)) {
                    return name.keyCode || name.which || this[name.key];
                }
                return this[name];
            },
            /**
             * Get the key name from a keyboard event, `keyCode`, or `which` value.
             * @param {number|object} code A keyboard event like object or key name.
             * @param {number} [code.keyCode] If object, it must have one of these keys.
             * @param {number} [code.which] If object, it must have one of these keys.
             * @param {number} [code.shiftKey] If object, it must have one of these keys.
             * @returns {*}
             */
            getKey: function getKey(code) {
                var isEvent = isObject(code);
                var name = codes[isEvent ? code.keyCode || code.which : code];
                if (Array.isArray(name)) {
                    if (isEvent) {
                        name = name[code.shiftKey ? 1 : 0];
                    }
                    else {
                        name = name[0];
                    }
                }
                return name;
            },
            // ----------------------------------------
            // By Name
            // ----------------------------------------
            // declare these manually for static analysis
            Cancel: 3,
            Help: 6,
            Backspace: 8,
            Tab: 9,
            Clear: 12,
            Enter: 13,
            Shift: 16,
            Control: 17,
            Alt: 18,
            Pause: 19,
            CapsLock: 20,
            Escape: 27,
            Convert: 28,
            NonConvert: 29,
            Accept: 30,
            ModeChange: 31,
            ' ': 32,
            PageUp: 33,
            PageDown: 34,
            End: 35,
            Home: 36,
            ArrowLeft: 37,
            ArrowUp: 38,
            ArrowRight: 39,
            ArrowDown: 40,
            Select: 41,
            Print: 42,
            Execute: 43,
            PrintScreen: 44,
            Insert: 45,
            Delete: 46,
            0: 48,
            ')': 48,
            1: 49,
            '!': 49,
            2: 50,
            '@': 50,
            3: 51,
            '#': 51,
            4: 52,
            $: 52,
            5: 53,
            '%': 53,
            6: 54,
            '^': 54,
            7: 55,
            '&': 55,
            8: 56,
            '*': 56,
            9: 57,
            '(': 57,
            a: 65,
            A: 65,
            b: 66,
            B: 66,
            c: 67,
            C: 67,
            d: 68,
            D: 68,
            e: 69,
            E: 69,
            f: 70,
            F: 70,
            g: 71,
            G: 71,
            h: 72,
            H: 72,
            i: 73,
            I: 73,
            j: 74,
            J: 74,
            k: 75,
            K: 75,
            l: 76,
            L: 76,
            m: 77,
            M: 77,
            n: 78,
            N: 78,
            o: 79,
            O: 79,
            p: 80,
            P: 80,
            q: 81,
            Q: 81,
            r: 82,
            R: 82,
            s: 83,
            S: 83,
            t: 84,
            T: 84,
            u: 85,
            U: 85,
            v: 86,
            V: 86,
            w: 87,
            W: 87,
            x: 88,
            X: 88,
            y: 89,
            Y: 89,
            z: 90,
            Z: 90,
            OS: 91,
            ContextMenu: 93,
            F1: 112,
            F2: 113,
            F3: 114,
            F4: 115,
            F5: 116,
            F6: 117,
            F7: 118,
            F8: 119,
            F9: 120,
            F10: 121,
            F11: 122,
            F12: 123,
            F13: 124,
            F14: 125,
            F15: 126,
            F16: 127,
            F17: 128,
            F18: 129,
            F19: 130,
            F20: 131,
            F21: 132,
            F22: 133,
            F23: 134,
            F24: 135,
            NumLock: 144,
            ScrollLock: 145,
            VolumeMute: 181,
            VolumeDown: 182,
            VolumeUp: 183,
            ';': 186,
            ':': 186,
            '=': 187,
            '+': 187,
            ',': 188,
            '<': 188,
            '-': 189,
            _: 189,
            '.': 190,
            '>': 190,
            '/': 191,
            '?': 191,
            '`': 192,
            '~': 192,
            '[': 219,
            '{': 219,
            '\\': 220,
            '|': 220,
            ']': 221,
            '}': 221,
            "'": 222,
            '"': 222,
            Meta: 224,
            AltGraph: 225,
            Attn: 246,
            CrSel: 247,
            ExSel: 248,
            EraseEof: 249,
            Play: 250,
            ZoomOut: 251,
        };
        // ----------------------------------------
        // By Alias
        // ----------------------------------------
        // provide dot-notation accessible keys for all key names
        keyboardKey.Spacebar = keyboardKey[' '];
        keyboardKey.Digit0 = keyboardKey['0'];
        keyboardKey.Digit1 = keyboardKey['1'];
        keyboardKey.Digit2 = keyboardKey['2'];
        keyboardKey.Digit3 = keyboardKey['3'];
        keyboardKey.Digit4 = keyboardKey['4'];
        keyboardKey.Digit5 = keyboardKey['5'];
        keyboardKey.Digit6 = keyboardKey['6'];
        keyboardKey.Digit7 = keyboardKey['7'];
        keyboardKey.Digit8 = keyboardKey['8'];
        keyboardKey.Digit9 = keyboardKey['9'];
        keyboardKey.Tilde = keyboardKey['~'];
        keyboardKey.GraveAccent = keyboardKey['`'];
        keyboardKey.ExclamationPoint = keyboardKey['!'];
        keyboardKey.AtSign = keyboardKey['@'];
        keyboardKey.PoundSign = keyboardKey['#'];
        keyboardKey.PercentSign = keyboardKey['%'];
        keyboardKey.Caret = keyboardKey['^'];
        keyboardKey.Ampersand = keyboardKey['&'];
        keyboardKey.PlusSign = keyboardKey['+'];
        keyboardKey.MinusSign = keyboardKey['-'];
        keyboardKey.EqualsSign = keyboardKey['='];
        keyboardKey.DivisionSign = keyboardKey['/'];
        keyboardKey.MultiplicationSign = keyboardKey['*'];
        keyboardKey.Comma = keyboardKey[','];
        keyboardKey.Decimal = keyboardKey['.'];
        keyboardKey.Colon = keyboardKey[':'];
        keyboardKey.Semicolon = keyboardKey[';'];
        keyboardKey.Pipe = keyboardKey['|'];
        keyboardKey.BackSlash = keyboardKey['\\'];
        keyboardKey.QuestionMark = keyboardKey['?'];
        keyboardKey.SingleQuote = keyboardKey["'"];
        keyboardKey.DoubleQuote = keyboardKey['"'];
        keyboardKey.LeftCurlyBrace = keyboardKey['{'];
        keyboardKey.RightCurlyBrace = keyboardKey['}'];
        keyboardKey.LeftParenthesis = keyboardKey['('];
        keyboardKey.RightParenthesis = keyboardKey[')'];
        keyboardKey.LeftAngleBracket = keyboardKey['<'];
        keyboardKey.RightAngleBracket = keyboardKey['>'];
        keyboardKey.LeftSquareBracket = keyboardKey['['];
        keyboardKey.RightSquareBracket = keyboardKey[']'];
        module.exports = keyboardKey;
        /***/ 
    }),
    /* 446 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(447);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Ref__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 447 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Ref; });
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
        /**
         * This component exposes a callback prop that always returns the DOM node of both functional and class component
         * children.
         */
        var Ref = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Ref, _Component);
            function Ref() {
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Ref);
                return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Ref).apply(this, arguments));
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Ref, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        var innerRef = this.props.innerRef; // Heads up! Don't move this condition, it's a short circuit that avoids run of `findDOMNode`
                        // if `innerRef` isn't passed
                        // eslint-disable-next-line react/no-find-dom-node
                        if (innerRef)
                            innerRef(Object(react_dom__WEBPACK_IMPORTED_MODULE_8__["findDOMNode"])(this));
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var children = this.props.children;
                        return react__WEBPACK_IMPORTED_MODULE_7__["Children"].only(children);
                    }
                }]);
            return Ref;
        }(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(Ref, "handledProps", ["children", "innerRef"]);
        Ref.propTypes = true ? {
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.element,
            /**
             * Called when componentDidMount.
             *
             * @param {HTMLElement} node - Referred node.
             */
            innerRef: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
        } : undefined;
        /***/ 
    }),
    /* 448 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7);
        /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _Ref__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(446);
        /**
         * An inner component that allows you to render children outside their parent.
         */
        var PortalInner = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(PortalInner, _Component);
            function PortalInner() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PortalInner);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(PortalInner)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(PortalInner, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(this.props, 'onMount', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, this.props, {
                            node: this.ref
                        }));
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(this.props, 'onUnmount', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, this.props, {
                            node: this.ref
                        }));
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, children = _this$props.children, _this$props$mountNode = _this$props.mountNode, mountNode = _this$props$mountNode === void 0 ? Object(_lib__WEBPACK_IMPORTED_MODULE_12__["isBrowser"])() ? document.body : null : _this$props$mountNode;
                        return Object(react_dom__WEBPACK_IMPORTED_MODULE_11__["createPortal"])(react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(_Ref__WEBPACK_IMPORTED_MODULE_13__["default"], {
                            innerRef: this.handleRef
                        }, children), mountNode);
                    }
                }]);
            return PortalInner;
        }(react__WEBPACK_IMPORTED_MODULE_10__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(PortalInner, "handledProps", ["children", "mountNode", "onMount", "onUnmount"]);
        PortalInner.propTypes = true ? {
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node.isRequired,
            /** The node where the portal should mount. */
            mountNode: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.any,
            /**
             * Called when the portal is mounted on the DOM
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onMount: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /**
             * Called when the portal is unmounted from the DOM
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onUnmount: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (PortalInner);
        /***/ 
    }),
    /* 449 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A dimmable sub-component for Dimmer.
         */
        function DimmerDimmable(props) {
            var blurring = props.blurring, className = props.className, children = props.children, content = props.content, dimmed = props.dimmed;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(blurring, 'blurring'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(dimmed, 'dimmed'), 'dimmable', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(DimmerDimmable, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(DimmerDimmable, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        DimmerDimmable.handledProps = ["as", "blurring", "children", "className", "content", "dimmed"];
        DimmerDimmable.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** A dimmable element can blur its contents. */
            blurring: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Controls whether or not the dim is displayed. */
            dimmed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (DimmerDimmable);
        /***/ 
    }),
    /* 450 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return DimmerInner; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /**
         *
         */
        var DimmerInner = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(DimmerInner, _Component);
            function DimmerInner() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DimmerInner);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(DimmerInner)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClick', e, _this.props);
                    if (_this.contentRef && _this.contentRef !== e.target && Object(_lib__WEBPACK_IMPORTED_MODULE_12__["doesNodeContainClick"])(_this.contentRef, e)) {
                        return;
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClickOutside', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleContentRef", function (c) {
                    return _this.contentRef = c;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DimmerInner, [{
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(_ref) {
                        var nextActive = _ref.active;
                        var prevActive = this.props.active;
                        if (prevActive !== nextActive)
                            this.toggleStyles(nextActive);
                    }
                }, {
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        var active = this.props.active;
                        this.toggleStyles(active);
                    }
                }, {
                    key: "toggleStyles",
                    value: function toggleStyles(active) {
                        if (!this.ref)
                            return;
                        if (active) {
                            this.ref.style.setProperty('display', 'flex', 'important');
                            return;
                        }
                        this.ref.style.removeProperty('display');
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, content = _this$props.content, disabled = _this$props.disabled, inverted = _this$props.inverted, page = _this$props.page, simple = _this$props.simple, verticalAlign = _this$props.verticalAlign;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(active, 'active transition visible'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(page, 'page'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(simple, 'simple'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useVerticalAlignProp"])(verticalAlign), 'dimmer', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(DimmerInner, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(DimmerInner, this.props);
                        var childrenContent = _lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(children) ? content : children;
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick,
                            ref: this.handleRef
                        }), childrenContent && react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                            className: "content",
                            ref: this.handleContentRef
                        }, childrenContent));
                    }
                }]);
            return DimmerInner;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(DimmerInner, "handledProps", ["active", "as", "children", "className", "content", "disabled", "inverted", "onClick", "onClickOutside", "page", "simple", "verticalAlign"]);
        DimmerInner.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** An active dimmer will dim its parent container. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** A disabled dimmer cannot be activated */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Handles click outside Dimmer's content, but inside Dimmer area.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClickOutside: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** A dimmer can be formatted to have its colors inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** A dimmer can be formatted to be fixed to the page. */
            page: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** A dimmer can be controlled with simple prop. */
            simple: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** A dimmer can have its content top or bottom aligned. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['bottom', 'top'])
        } : undefined;
        /***/ 
    }),
    /* 451 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A group of images.
         */
        function ImageGroup(props) {
            var children = props.children, className = props.className, content = props.content, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', size, className, 'images');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ImageGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ImageGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ImageGroup.handledProps = ["as", "children", "className", "content", "size"];
        ImageGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A group of images can be formatted to have the same size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].SIZES)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ImageGroup);
        /***/ 
    }),
    /* 452 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        function LabelDetail(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('detail', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(LabelDetail, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(LabelDetail, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        LabelDetail.handledProps = ["as", "children", "className", "content"];
        LabelDetail.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        LabelDetail.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(LabelDetail, function (val) {
            return {
                content: val
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (LabelDetail);
        /***/ 
    }),
    /* 453 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A label can be grouped.
         */
        function LabelGroup(props) {
            var children = props.children, circular = props.circular, className = props.className, color = props.color, content = props.content, size = props.size, tag = props.tag;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(tag, 'tag'), 'labels', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(LabelGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(LabelGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        LabelGroup.handledProps = ["as", "children", "circular", "className", "color", "content", "size", "tag"];
        LabelGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Labels can share shapes. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Label group can share colors together. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Label group can share sizes together. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].SIZES),
            /** Label group can share tag formatting. */
            tag: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (LabelGroup);
        /***/ 
    }),
    /* 454 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * Used in some Button types, such as `animated`.
         */
        function ButtonContent(props) {
            var children = props.children, className = props.className, content = props.content, hidden = props.hidden, visible = props.visible;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(visible, 'visible'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(hidden, 'hidden'), 'content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ButtonContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ButtonContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ButtonContent.handledProps = ["as", "children", "className", "content", "hidden", "visible"];
        ButtonContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Initially hidden, visible on hover. */
            hidden: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Initially visible, hidden on hover. */
            visible: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ButtonContent);
        /***/ 
    }),
    /* 455 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(435);
        /**
         * Buttons can be grouped.
         */
        function ButtonGroup(props) {
            var attached = props.attached, basic = props.basic, buttons = props.buttons, children = props.children, className = props.className, color = props.color, compact = props.compact, content = props.content, floated = props.floated, fluid = props.fluid, icon = props.icon, inverted = props.inverted, labeled = props.labeled, negative = props.negative, positive = props.positive, primary = props.primary, secondary = props.secondary, size = props.size, toggle = props.toggle, vertical = props.vertical, widths = props.widths;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(icon, 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(labeled, 'labeled'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(negative, 'negative'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(positive, 'positive'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(primary, 'primary'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(secondary, 'secondary'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(toggle, 'toggle'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(vertical, 'vertical'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useWidthProp"])(widths), 'buttons', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(ButtonGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(ButtonGroup, props);
            if (lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(buttons)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), _lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children) ? content : children);
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), lodash_map__WEBPACK_IMPORTED_MODULE_1___default()(buttons, function (button) {
                return _Button__WEBPACK_IMPORTED_MODULE_7__["default"].create(button);
            }));
        }
        ButtonGroup.handledProps = ["as", "attached", "basic", "buttons", "children", "className", "color", "compact", "content", "floated", "fluid", "icon", "inverted", "labeled", "negative", "positive", "primary", "secondary", "size", "toggle", "vertical", "widths"];
        ButtonGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Groups can be attached to other content. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right', 'top', 'bottom'])]),
            /** Groups can be less pronounced. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Array of shorthand Button values. */
            buttons: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Groups can have a shared color. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].COLORS),
            /** Groups can reduce their padding to fit into tighter spaces. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** Groups can be aligned to the left or right of its container. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].FLOATS),
            /** Groups can take the width of their container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted as icons. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted to appear on dark backgrounds. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted as labeled icon buttons. */
            labeled: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can hint towards a negative consequence. */
            negative: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can hint towards a positive consequence. */
            positive: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted to show different levels of emphasis. */
            primary: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted to show different levels of emphasis. */
            secondary: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].SIZES),
            /** Groups can be formatted to toggle on and off. */
            toggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can be formatted to appear vertically. */
            vertical: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Groups can have their widths divided evenly. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].WIDTHS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ButtonGroup);
        /***/ 
    }),
    /* 456 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * Button groups can contain conditionals.
         */
        function ButtonOr(props) {
            var className = props.className, text = props.text;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('or', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ButtonOr, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ButtonOr, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes,
                "data-text": text
            }));
        }
        ButtonOr.handledProps = ["as", "className", "text"];
        ButtonOr.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Or buttons can have their text localized, or adjusted by using the text prop. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ButtonOr);
        /***/ 
    }),
    /* 457 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(458);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Modal__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 458 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(358);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(459);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_reduce__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(238);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(462);
        /* harmony import */ var _addons_MountNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(463);
        /* harmony import */ var _addons_Portal__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(443);
        /* harmony import */ var _ModalHeader__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(482);
        /* harmony import */ var _ModalContent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(483);
        /* harmony import */ var _ModalActions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(484);
        /* harmony import */ var _ModalDescription__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(485);
        /* harmony import */ var _addons_Ref__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(446);
        /**
         * A modal displays content that temporarily blocks interactions with the main view of a site.
         * @see Confirm
         * @see Portal
         */
        var Modal = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Modal, _Component);
            function Modal() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Modal);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Modal)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "getMountNode", function () {
                    return Object(_lib__WEBPACK_IMPORTED_MODULE_17__["isBrowser"])() ? _this.props.mountNode || document.body : null;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleActionsOverrides", function (predefinedProps) {
                    return {
                        onActionClick: function onActionClick(e, actionProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(predefinedProps, 'onActionClick', e, actionProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onActionClick', e, _this.props);
                            _this.handleClose(e);
                        }
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleClose", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onClose', e, _this.props);
                    _this.trySetState({
                        open: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleDocumentClick", function (e) {
                    var closeOnDimmerClick = _this.props.closeOnDimmerClick;
                    if (!closeOnDimmerClick || Object(_lib__WEBPACK_IMPORTED_MODULE_17__["doesNodeContainClick"])(_this.ref, e))
                        return;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onClose', e, _this.props);
                    _this.trySetState({
                        open: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleIconOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(predefinedProps, 'onClick', e);
                            _this.handleClose(e);
                        }
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleOpen", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onOpen', e, _this.props);
                    _this.trySetState({
                        open: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalMount", function (e) {
                    var eventPool = _this.props.eventPool;
                    _this.setState({
                        scrolling: false
                    });
                    _this.setPositionAndClassNames();
                    _lib__WEBPACK_IMPORTED_MODULE_17__["eventStack"].sub('click', _this.handleDocumentClick, {
                        pool: eventPool,
                        target: _this.dimmerRef
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onMount', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalUnmount", function (e) {
                    var eventPool = _this.props.eventPool;
                    cancelAnimationFrame(_this.animationRequestId);
                    _lib__WEBPACK_IMPORTED_MODULE_17__["eventStack"].unsub('click', _this.handleDocumentClick, {
                        pool: eventPool,
                        target: _this.dimmerRef
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_13___default()(_this.props, 'onUnmount', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleDimmerRef", function (c) {
                    return _this.dimmerRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "setDimmerNodeStyle", function () {
                    if (_this.dimmerRef) {
                        _this.dimmerRef.style.setProperty('display', 'flex', 'important');
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "setPositionAndClassNames", function () {
                    var dimmer = _this.props.dimmer;
                    var classes;
                    if (dimmer) {
                        classes = 'dimmable dimmed';
                        if (dimmer === 'blurring') {
                            classes += ' blurring';
                        }
                    }
                    var newState = {};
                    if (_this.ref) {
                        var _this$ref$getBounding = _this.ref.getBoundingClientRect(), height = _this$ref$getBounding.height; // Leaving the old calculation here since we may need it as an older browser fallback
                        // SEE: https://github.com/Semantic-Org/Semantic-UI/issues/6185#issuecomment-376725956
                        // const marginTop = -Math.round(height / 2)
                        var marginTop = null;
                        var scrolling = height > window.innerHeight;
                        if (_this.state.marginTop !== marginTop) {
                            newState.marginTop = marginTop;
                        }
                        if (_this.state.scrolling !== scrolling) {
                            newState.scrolling = scrolling;
                        }
                        if (scrolling)
                            classes += ' scrolling';
                    }
                    if (_this.state.mountClasses !== classes)
                        newState.mountClasses = classes;
                    if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default()(newState))
                        _this.setState(newState);
                    _this.animationRequestId = requestAnimationFrame(_this.setPositionAndClassNames);
                    _this.setDimmerNodeStyle();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "renderContent", function (rest) {
                    var _this$props = _this.props, actions = _this$props.actions, basic = _this$props.basic, children = _this$props.children, className = _this$props.className, closeIcon = _this$props.closeIcon, content = _this$props.content, header = _this$props.header, mountNode = _this$props.mountNode, size = _this$props.size, style = _this$props.style;
                    var _this$state = _this.state, marginTop = _this$state.marginTop, mountClasses = _this$state.mountClasses, scrolling = _this$state.scrolling;
                    var classes = classnames__WEBPACK_IMPORTED_MODULE_14___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_17__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_17__["useKeyOnly"])(scrolling, 'scrolling'), 'modal transition visible active', className);
                    var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_17__["getElementType"])(Modal, _this.props);
                    var closeIconName = closeIcon === true ? 'close' : closeIcon;
                    var closeIconJSX = _elements_Icon__WEBPACK_IMPORTED_MODULE_18__["default"].create(closeIconName, {
                        overrideProps: _this.handleIconOverrides
                    });
                    if (!_lib__WEBPACK_IMPORTED_MODULE_17__["childrenUtils"].isNil(children)) {
                        // TODO: remove when ref with "as" is resolved: PR #2306
                        return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_addons_Ref__WEBPACK_IMPORTED_MODULE_25__["default"], {
                            innerRef: _this.handleRef
                        }, react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            style: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({
                                marginTop: marginTop
                            }, style)
                        }), react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_addons_MountNode__WEBPACK_IMPORTED_MODULE_19__["default"], {
                            className: mountClasses,
                            node: mountNode
                        }), closeIconJSX, children));
                    } // TODO: remove when ref with "as" is resolved: PR #2306
                    return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_addons_Ref__WEBPACK_IMPORTED_MODULE_25__["default"], {
                        innerRef: _this.handleRef
                    }, react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                        className: classes,
                        style: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({
                            marginTop: marginTop
                        }, style)
                    }), react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_addons_MountNode__WEBPACK_IMPORTED_MODULE_19__["default"], {
                        className: mountClasses,
                        node: mountNode
                    }), closeIconJSX, _ModalHeader__WEBPACK_IMPORTED_MODULE_21__["default"].create(header, {
                        autoGenerateKey: false
                    }), _ModalContent__WEBPACK_IMPORTED_MODULE_22__["default"].create(content, {
                        autoGenerateKey: false
                    }), _ModalActions__WEBPACK_IMPORTED_MODULE_23__["default"].create(actions, {
                        overrideProps: _this.handleActionsOverrides
                    })));
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Modal, [{
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        this.handlePortalUnmount();
                    } // Do not access document when server side rendering
                }, {
                    key: "render",
                    value: function render() {
                        var open = this.state.open;
                        var _this$props2 = this.props, centered = _this$props2.centered, closeOnDocumentClick = _this$props2.closeOnDocumentClick, dimmer = _this$props2.dimmer, eventPool = _this$props2.eventPool, trigger = _this$props2.trigger;
                        var mountNode = this.getMountNode(); // Short circuit when server side rendering
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_17__["isBrowser"])()) {
                            return Object(react__WEBPACK_IMPORTED_MODULE_16__["isValidElement"])(trigger) ? trigger : null;
                        }
                        var unhandled = Object(_lib__WEBPACK_IMPORTED_MODULE_17__["getUnhandledProps"])(Modal, this.props);
                        var portalPropNames = _addons_Portal__WEBPACK_IMPORTED_MODULE_20__["default"].handledProps;
                        var rest = lodash_reduce__WEBPACK_IMPORTED_MODULE_11___default()(unhandled, function (acc, val, key) {
                            if (!lodash_includes__WEBPACK_IMPORTED_MODULE_10___default()(portalPropNames, key))
                                acc[key] = val;
                            return acc;
                        }, {});
                        var portalProps = lodash_pick__WEBPACK_IMPORTED_MODULE_9___default()(unhandled, portalPropNames); // wrap dimmer modals
                        var dimmerClasses = classnames__WEBPACK_IMPORTED_MODULE_14___default()('ui', dimmer === 'inverted' && 'inverted', !centered && 'top aligned', 'page modals dimmer transition visible active'); // Heads up!
                        //
                        // The SUI CSS selector to prevent the modal itself from blurring requires an immediate .dimmer child:
                        // .blurring.dimmed.dimmable>:not(.dimmer) { ... }
                        //
                        // The .blurring.dimmed.dimmable is the body, so that all body content inside is blurred.
                        // We need the immediate child to be the dimmer to :not() blur the modal itself!
                        // Otherwise, the portal div is also blurred, blurring the modal.
                        //
                        // We cannot them wrap the modalJSX in an actual <Dimmer /> instead, we apply the dimmer classes to the <Portal />.
                        return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_addons_Portal__WEBPACK_IMPORTED_MODULE_20__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                            closeOnDocumentClick: closeOnDocumentClick
                        }, portalProps, {
                            trigger: trigger,
                            eventPool: eventPool,
                            mountNode: mountNode,
                            open: open,
                            onClose: this.handleClose,
                            onMount: this.handlePortalMount,
                            onOpen: this.handleOpen,
                            onUnmount: this.handlePortalUnmount
                        }), react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
                            className: dimmerClasses,
                            ref: this.handleDimmerRef
                        }, this.renderContent(rest)));
                    }
                }]);
            return Modal;
        }(_lib__WEBPACK_IMPORTED_MODULE_17__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "defaultProps", {
            centered: true,
            dimmer: true,
            closeOnDimmerClick: true,
            closeOnDocumentClick: false,
            eventPool: 'Modal'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "autoControlledProps", ['open']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "Header", _ModalHeader__WEBPACK_IMPORTED_MODULE_21__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "Content", _ModalContent__WEBPACK_IMPORTED_MODULE_22__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "Description", _ModalDescription__WEBPACK_IMPORTED_MODULE_24__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "Actions", _ModalActions__WEBPACK_IMPORTED_MODULE_23__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Modal, "handledProps", ["actions", "as", "basic", "centered", "children", "className", "closeIcon", "closeOnDimmerClick", "closeOnDocumentClick", "content", "defaultOpen", "dimmer", "eventPool", "header", "mountNode", "onActionClick", "onClose", "onMount", "onOpen", "onUnmount", "open", "size", "style", "trigger"]);
        Modal.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_17__["customPropTypes"].as,
            /** Shorthand for Modal.Actions. Typically an array of button shorthand. */
            actions: _lib__WEBPACK_IMPORTED_MODULE_17__["customPropTypes"].itemShorthand,
            /** A modal can reduce its complexity */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** A modal can be vertically centered in the viewport */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.string,
            /** Shorthand for the close icon. Closes the modal on click. */
            closeIcon: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool]),
            /** Whether or not the Modal should close when the dimmer is clicked. */
            closeOnDimmerClick: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** Whether or not the Modal should close when the document is clicked. */
            closeOnDocumentClick: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** Simple text content for the Modal. */
            content: _lib__WEBPACK_IMPORTED_MODULE_17__["customPropTypes"].itemShorthand,
            /** Initial value of open. */
            defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** A Modal can appear in a dimmer. */
            dimmer: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.oneOf([true, 'inverted', 'blurring']),
            /** Event pool namespace that is used to handle component events */
            eventPool: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.string,
            /** Modal displayed above the content in bold. */
            header: _lib__WEBPACK_IMPORTED_MODULE_17__["customPropTypes"].itemShorthand,
            /** The node where the modal should mount. Defaults to document.body. */
            mountNode: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.any,
            /**
             * Action onClick handler when using shorthand `actions`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onActionClick: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
            /**
             * Called when a close event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClose: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
            /**
             * Called when the portal is mounted on the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onMount: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
            /**
             * Called when an open event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onOpen: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
            /**
             * Called when the portal is unmounted from the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onUnmount: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
            /** Controls whether or not the Modal is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
            /** A modal can vary in size */
            size: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.oneOf(['fullscreen', 'large', 'mini', 'small', 'tiny']),
            /** Custom styles. */
            style: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.object,
            /** Element to be rendered in-place where the portal is defined. */
            trigger: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.node
            /**
             * NOTE: Any unhandled props that are defined in Portal are passed-through
             * to the wrapping Portal.
             */
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Modal);
        /***/ 
    }),
    /* 459 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayReduce = __webpack_require__(460), baseEach = __webpack_require__(183), baseIteratee = __webpack_require__(201), baseReduce = __webpack_require__(461), isArray = __webpack_require__(84);
        /**
         * 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;
        /***/ 
    }),
    /* 460 */
    /***/ (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;
        /***/ 
    }),
    /* 461 */
    /***/ (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;
        /***/ 
    }),
    /* 462 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(436);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Icon__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 463 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _MountNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(464);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _MountNode__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 464 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return MountNode; });
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(153);
        /* harmony import */ var _lib_getNodeFromProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(465);
        /* harmony import */ var _lib_handleClassNamesChange__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(466);
        /* harmony import */ var _lib_NodeRegistry__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(481);
        var nodeRegistry = new _lib_NodeRegistry__WEBPACK_IMPORTED_MODULE_11__["default"]();
        /**
         * A component that allows to manage classNames on a DOM node in declarative manner.
         */
        var MountNode = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MountNode, _Component);
            function MountNode() {
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MountNode);
                return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MountNode).apply(this, arguments));
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MountNode, [{
                    key: "shouldComponentUpdate",
                    value: function shouldComponentUpdate(_ref) {
                        var nextClassName = _ref.className;
                        var currentClassName = this.props.className;
                        return nextClassName !== currentClassName;
                    }
                }, {
                    key: "componentWillMount",
                    value: function componentWillMount() {
                        var node = Object(_lib_getNodeFromProps__WEBPACK_IMPORTED_MODULE_9__["default"])(this.props);
                        if (node) {
                            nodeRegistry.add(node, this);
                            nodeRegistry.emit(node, _lib_handleClassNamesChange__WEBPACK_IMPORTED_MODULE_10__["default"]);
                        }
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate() {
                        var node = Object(_lib_getNodeFromProps__WEBPACK_IMPORTED_MODULE_9__["default"])(this.props);
                        if (node)
                            nodeRegistry.emit(node, _lib_handleClassNamesChange__WEBPACK_IMPORTED_MODULE_10__["default"]);
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        var node = Object(_lib_getNodeFromProps__WEBPACK_IMPORTED_MODULE_9__["default"])(this.props);
                        if (node) {
                            nodeRegistry.del(node, this);
                            nodeRegistry.emit(node, _lib_handleClassNamesChange__WEBPACK_IMPORTED_MODULE_10__["default"]);
                        }
                    }
                }, {
                    key: "render",
                    value: function render() {
                        return null;
                    }
                }]);
            return MountNode;
        }(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(MountNode, "handledProps", ["className", "node"]);
        MountNode.propTypes = true ? {
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
            /** The DOM node where we will apply class names. Defaults to document.body. */
            node: _lib__WEBPACK_IMPORTED_MODULE_8__["customPropTypes"].domNode
        } : undefined;
        /***/ 
    }),
    /* 465 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(153);
        /**
         * Given `this.props`, return a `node` value or undefined.
         *
         * @param {object} props Component's props
         * @return {HTMLElement|undefined}
         */
        var getNodeFromProps = function getNodeFromProps(props) {
            var node = props.node;
            if (Object(_lib__WEBPACK_IMPORTED_MODULE_1__["isBrowser"])()) {
                if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(node))
                    return document.body;
                return node;
            }
        };
        /* harmony default export */ __webpack_exports__["default"] = (getNodeFromProps);
        /***/ 
    }),
    /* 466 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(243);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _computeClassNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(467);
        /* harmony import */ var _computeClassNamesDifference__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(480);
        var prevClassNames = new Map();
        var handleClassNamesChange = function handleClassNamesChange(node, components) {
            var currentClassNames = Object(_computeClassNames__WEBPACK_IMPORTED_MODULE_2__["default"])(components);
            var _computeClassNamesDif = Object(_computeClassNamesDifference__WEBPACK_IMPORTED_MODULE_3__["default"])(prevClassNames.get(node), currentClassNames), _computeClassNamesDif2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_computeClassNamesDif, 2), forAdd = _computeClassNamesDif2[0], forRemoval = _computeClassNamesDif2[1];
            lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default()(forAdd, function (className) {
                return node.classList.add(className);
            });
            lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default()(forRemoval, function (className) {
                return node.classList.remove(className);
            });
            prevClassNames.set(node, currentClassNames);
        };
        /* harmony default export */ __webpack_exports__["default"] = (handleClassNamesChange);
        /***/ 
    }),
    /* 467 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var lodash_fp_uniq__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(468);
        /* harmony import */ var lodash_fp_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_uniq__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_fp_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(469);
        /* harmony import */ var lodash_fp_identity__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_identity__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_fp_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(470);
        /* harmony import */ var lodash_fp_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_filter__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_fp_split__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(471);
        /* harmony import */ var lodash_fp_split__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_split__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_fp_flatMap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(475);
        /* harmony import */ var lodash_fp_flatMap__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_flatMap__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var lodash_fp_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(385);
        /* harmony import */ var lodash_fp_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_map__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var lodash_fp_toArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(477);
        /* harmony import */ var lodash_fp_toArray__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_toArray__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(387);
        /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_fp_flow__WEBPACK_IMPORTED_MODULE_7__);
        var computeClassNames = lodash_fp_flow__WEBPACK_IMPORTED_MODULE_7___default()(lodash_fp_toArray__WEBPACK_IMPORTED_MODULE_6___default.a, lodash_fp_map__WEBPACK_IMPORTED_MODULE_5___default()('props.className'), lodash_fp_flatMap__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_split__WEBPACK_IMPORTED_MODULE_3___default()(/\s+/)), lodash_fp_filter__WEBPACK_IMPORTED_MODULE_2___default()(lodash_fp_identity__WEBPACK_IMPORTED_MODULE_1___default.a), lodash_fp_uniq__WEBPACK_IMPORTED_MODULE_0___default.a);
        /* harmony default export */ __webpack_exports__["default"] = (computeClassNames);
        /***/ 
    }),
    /* 468 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('uniq', __webpack_require__(399), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 469 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('identity', __webpack_require__(146), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 470 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('filter', __webpack_require__(180));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 471 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('split', __webpack_require__(472));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 472 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseToString = __webpack_require__(131), castSlice = __webpack_require__(348), hasUnicode = __webpack_require__(353), isIterateeCall = __webpack_require__(262), isRegExp = __webpack_require__(473), stringToArray = __webpack_require__(351), toString = __webpack_require__(130);
        /** Used as references for the maximum length and index of an array. */
        var MAX_ARRAY_LENGTH = 4294967295;
        /**
         * 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);
        }
        module.exports = split;
        /***/ 
    }),
    /* 473 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseIsRegExp = __webpack_require__(474), baseUnary = __webpack_require__(167), nodeUtil = __webpack_require__(195);
        /* Node.js helper references. */
        var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
        /**
         * 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;
        module.exports = isRegExp;
        /***/ 
    }),
    /* 474 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseGetTag = __webpack_require__(87), isObjectLike = __webpack_require__(94);
        /** `Object#toString` result references. */
        var regexpTag = '[object RegExp]';
        /**
         * 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;
        }
        module.exports = baseIsRegExp;
        /***/ 
    }),
    /* 475 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('flatMap', __webpack_require__(476));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 476 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFlatten = __webpack_require__(169), map = __webpack_require__(386);
        /**
         * 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);
        }
        module.exports = flatMap;
        /***/ 
    }),
    /* 477 */
    /***/ (function (module, exports, __webpack_require__) {
        var convert = __webpack_require__(271), func = convert('toArray', __webpack_require__(478), __webpack_require__(356));
        func.placeholder = __webpack_require__(274);
        module.exports = func;
        /***/ 
    }),
    /* 478 */
    /***/ (function (module, exports, __webpack_require__) {
        var Symbol = __webpack_require__(88), copyArray = __webpack_require__(299), getTag = __webpack_require__(223), isArrayLike = __webpack_require__(173), isString = __webpack_require__(403), iteratorToArray = __webpack_require__(479), mapToArray = __webpack_require__(216), setToArray = __webpack_require__(217), stringToArray = __webpack_require__(351), values = __webpack_require__(410);
        /** `Object#toString` result references. */
        var mapTag = '[object Map]', setTag = '[object Set]';
        /** Built-in value references. */
        var symIterator = Symbol ? Symbol.iterator : undefined;
        /**
         * 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);
        }
        module.exports = toArray;
        /***/ 
    }),
    /* 479 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = iteratorToArray;
        /***/ 
    }),
    /* 480 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(156);
        /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
        var computeClassNamesDifference = function computeClassNamesDifference(prevClassNames, currentClassNames) {
            return [lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(currentClassNames, prevClassNames), lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(prevClassNames, currentClassNames)];
        };
        /* harmony default export */ __webpack_exports__["default"] = (computeClassNamesDifference);
        /***/ 
    }),
    /* 481 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return NodeRegistry; });
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
        var NodeRegistry = function NodeRegistry() {
            var _this = this;
            _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, NodeRegistry);
            _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(this, "add", function (node, component) {
                if (_this.nodes.has(node)) {
                    var set = _this.nodes.get(node);
                    set.add(component);
                    return;
                }
                _this.nodes.set(node, new Set([component]));
            });
            _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(this, "del", function (node, component) {
                if (!_this.nodes.has(node))
                    return;
                var set = _this.nodes.get(node);
                if (set.size === 1) {
                    _this.nodes.delete(node);
                    return;
                }
                set.delete(component);
            });
            _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(this, "emit", function (node, callback) {
                callback(node, _this.nodes.get(node));
            });
            this.nodes = new Map();
        };
        /***/ 
    }),
    /* 482 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A modal can have a header.
         */
        function ModalHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, 'header');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ModalHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ModalHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ModalHeader.handledProps = ["as", "children", "className", "content"];
        ModalHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ModalHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ModalHeader, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ModalHeader);
        /***/ 
    }),
    /* 483 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A modal can contain content.
         */
        function ModalContent(props) {
            var children = props.children, className = props.className, content = props.content, image = props.image, scrolling = props.scrolling;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(image, 'image'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(scrolling, 'scrolling'), 'content');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ModalContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ModalContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ModalContent.handledProps = ["as", "children", "className", "content", "image", "scrolling"];
        ModalContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A modal can contain image content. */
            image: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A modal can use the entire size of the screen. */
            scrolling: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        ModalContent.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ModalContent, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ModalContent);
        /***/ 
    }),
    /* 484 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return ModalActions; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _elements_Button__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(434);
        /**
         * A modal can contain a row of actions.
         */
        var ModalActions = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ModalActions, _Component);
            function ModalActions() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ModalActions);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ModalActions)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleButtonOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, buttonProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e, buttonProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onActionClick', e, buttonProps);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ModalActions, [{
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props = this.props, actions = _this$props.actions, children = _this$props.children, className = _this$props.className, content = _this$props.content;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()('actions', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(ModalActions, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(ModalActions, this.props);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes
                            }), children);
                        }
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes
                            }), content);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), lodash_map__WEBPACK_IMPORTED_MODULE_8___default()(actions, function (action) {
                            return _elements_Button__WEBPACK_IMPORTED_MODULE_14__["default"].create(action, {
                                overrideProps: _this2.handleButtonOverrides
                            });
                        }));
                    }
                }]);
            return ModalActions;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(ModalActions, "handledProps", ["actions", "as", "children", "className", "content", "onActionClick"]);
        ModalActions.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** Array of shorthand buttons. */
            actions: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].collectionShorthand,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /**
             * Action onClick handler when using shorthand `actions`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props from the clicked action.
             */
            onActionClick: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func])
        } : undefined;
        ModalActions.create = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createShorthandFactory"])(ModalActions, function (actions) {
            return {
                actions: actions
            };
        });
        /***/ 
    }),
    /* 485 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A modal can have a header.
         */
        function ModalDescription(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('description', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ModalDescription, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ModalDescription, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ModalDescription.handledProps = ["as", "children", "className", "content"];
        ModalDescription.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ModalDescription);
        /***/ 
    }),
    /* 486 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(487);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 487 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Pagination; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _collections_Menu__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(488);
        /* harmony import */ var _PaginationItem__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(504);
        /**
         * A component to render a pagination.
         */
        var Pagination = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Pagination, _Component);
            function Pagination() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Pagination);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Pagination)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleItemClick", function (e, _ref) {
                    var nextActivePage = _ref.value;
                    var prevActivePage = _this.state.activePage; // Heads up! We need the cast to the "number" type there, as `activePage` can be a string
                    if (+prevActivePage === +nextActivePage)
                        return;
                    _this.trySetState({
                        activePage: nextActivePage
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onPageChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        activePage: nextActivePage
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleItemOverrides", function (active, type, value) {
                    return function (predefinedProps) {
                        return {
                            active: active,
                            type: type,
                            key: "".concat(type, "-").concat(value),
                            onClick: function onClick(e, itemProps) {
                                lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(predefinedProps, 'onClick', e, itemProps);
                                _this.handleItemClick(e, itemProps);
                            }
                        };
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Pagination, [{
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props = this.props, ariaLabel = _this$props['aria-label'], boundaryRange = _this$props.boundaryRange, siblingRange = _this$props.siblingRange, totalPages = _this$props.totalPages;
                        var activePage = this.state.activePage;
                        var items = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createPaginationItems"])({
                            activePage: activePage,
                            boundaryRange: boundaryRange,
                            siblingRange: siblingRange,
                            totalPages: totalPages
                        });
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(Pagination, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_collections_Menu__WEBPACK_IMPORTED_MODULE_14__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            "aria-label": ariaLabel,
                            pagination: true,
                            role: "navigation"
                        }), lodash_map__WEBPACK_IMPORTED_MODULE_9___default()(items, function (_ref2) {
                            var active = _ref2.active, type = _ref2.type, value = _ref2.value;
                            return _PaginationItem__WEBPACK_IMPORTED_MODULE_15__["default"].create(_this2.props[type], {
                                defaultProps: {
                                    content: value,
                                    value: value
                                },
                                overrideProps: _this2.handleItemOverrides(active, type, value)
                            });
                        }));
                    }
                }]);
            return Pagination;
        }(_lib__WEBPACK_IMPORTED_MODULE_13__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Pagination, "autoControlledProps", ['activePage']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Pagination, "defaultProps", {
            'aria-label': 'Pagination Navigation',
            boundaryRange: 1,
            ellipsisItem: '...',
            firstItem: {
                'aria-label': 'First item',
                content: '«'
            },
            lastItem: {
                'aria-label': 'Last item',
                content: '»'
            },
            nextItem: {
                'aria-label': 'Next item',
                content: '⟩'
            },
            pageItem: {},
            prevItem: {
                'aria-label': 'Previous item',
                content: '⟨'
            },
            siblingRange: 1
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Pagination, "Item", _PaginationItem__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Pagination, "handledProps", ["activePage", "aria-label", "boundaryRange", "defaultActivePage", "ellipsisItem", "firstItem", "lastItem", "nextItem", "onPageChange", "pageItem", "prevItem", "siblingRange", "totalPages"]);
        Pagination.propTypes = true ? {
            /** A pagination item can have an aria label. */
            'aria-label': prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Initial activePage value. */
            defaultActivePage: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string]),
            /** Index of the currently active page. */
            activePage: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string]),
            /** Number of always visible pages at the beginning and end. */
            boundaryRange: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string]),
            /** A shorthand for PaginationItem. */
            ellipsisItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A shorthand for PaginationItem. */
            firstItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A shorthand for PaginationItem. */
            lastItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A shorthand for PaginationItem. */
            nextItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A shorthand for PaginationItem. */
            pageItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A shorthand for PaginationItem. */
            prevItem: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /**
             * Called on change of an active page.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onPageChange: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** Number of always visible pages before and after the current one. */
            siblingRange: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string]),
            /** Total number of pages. */
            totalPages: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string]).isRequired
        } : undefined;
        /***/ 
    }),
    /* 488 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(489);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Menu__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 489 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /* harmony import */ var _MenuHeader__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(490);
        /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(491);
        /* harmony import */ var _MenuMenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(503);
        /**
         * A menu displays grouped navigation actions.
         * @see Dropdown
         */
        var Menu = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Menu, _Component);
            function Menu() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Menu);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Menu)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleItemOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, itemProps) {
                            var index = itemProps.index;
                            _this.trySetState({
                                activeIndex: index
                            });
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e, itemProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onItemClick', e, itemProps);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Menu, [{
                    key: "renderItems",
                    value: function renderItems() {
                        var _this2 = this;
                        var items = this.props.items;
                        var activeIndex = this.state.activeIndex;
                        return lodash_map__WEBPACK_IMPORTED_MODULE_8___default()(items, function (item, index) {
                            return _MenuItem__WEBPACK_IMPORTED_MODULE_16__["default"].create(item, {
                                defaultProps: {
                                    active: parseInt(activeIndex, 10) === index,
                                    index: index
                                },
                                overrideProps: _this2.handleItemOverrides
                            });
                        });
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, attached = _this$props.attached, borderless = _this$props.borderless, children = _this$props.children, className = _this$props.className, color = _this$props.color, compact = _this$props.compact, fixed = _this$props.fixed, floated = _this$props.floated, fluid = _this$props.fluid, icon = _this$props.icon, inverted = _this$props.inverted, pagination = _this$props.pagination, pointing = _this$props.pointing, secondary = _this$props.secondary, size = _this$props.size, stackable = _this$props.stackable, tabular = _this$props.tabular, text = _this$props.text, vertical = _this$props.vertical, widths = _this$props.widths;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_11___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(borderless, 'borderless'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(pagination, 'pagination'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(pointing, 'pointing'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(secondary, 'secondary'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(stackable, 'stackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(text, 'text'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(vertical, 'vertical'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(icon, 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOrValueAndKey"])(tabular, 'tabular'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useValueAndKey"])(fixed, 'fixed'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useWidthProp"])(widths, 'item'), className, 'menu');
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(Menu, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getElementType"])(Menu, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), _lib__WEBPACK_IMPORTED_MODULE_14__["childrenUtils"].isNil(children) ? this.renderItems() : children);
                    }
                }]);
            return Menu;
        }(_lib__WEBPACK_IMPORTED_MODULE_14__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Menu, "autoControlledProps", ['activeIndex']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Menu, "Header", _MenuHeader__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Menu, "Item", _MenuItem__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Menu, "Menu", _MenuMenu__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Menu, "handledProps", ["activeIndex", "as", "attached", "borderless", "children", "className", "color", "compact", "defaultActiveIndex", "fixed", "floated", "fluid", "icon", "inverted", "items", "onItemClick", "pagination", "pointing", "secondary", "size", "stackable", "tabular", "text", "vertical", "widths"]);
        Menu.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].as,
            /** Index of the currently active item. */
            activeIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** A menu may be attached to other content segments. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['top', 'bottom'])]),
            /** A menu item or menu can have no borders. */
            borderless: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** Additional colors can be specified. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].COLORS),
            /** A menu can take up only the space necessary to fit its content. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Initial activeIndex value. */
            defaultActiveIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** A menu can be fixed to a side of its context. */
            fixed: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['left', 'right', 'bottom', 'top']),
            /** A menu can be floated. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['right'])]),
            /** A vertical menu may take the size of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu may have just icons (bool) or labeled icons. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['labeled'])]),
            /** A menu may have its colors inverted to show greater contrast. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Shorthand array of props for Menu. */
            items: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].collectionShorthand,
            /**
             * onClick handler for MenuItem. Mutually exclusive with children.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All item props.
             */
            onItemClick: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func]),
            /** A pagination menu is specially formatted to present links to pages of content. */
            pagination: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu can point to show its relationship to nearby content. */
            pointing: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu can adjust its appearance to de-emphasize its contents. */
            secondary: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_10___default()(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].SIZES, 'medium', 'big')),
            /** A menu can stack at mobile resolutions. */
            stackable: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu can be formatted to show tabs of information. */
            tabular: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['right'])]),
            /** A menu can be formatted for text content. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A vertical menu displays elements vertically. */
            vertical: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** A menu can have its items divided evenly. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].WIDTHS)
        } : undefined;
        Menu.create = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["createShorthandFactory"])(Menu, function (items) {
            return {
                items: items
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Menu);
        /***/ 
    }),
    /* 490 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A menu item may include a header or may itself be a header.
         */
        function MenuHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(MenuHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(MenuHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        MenuHeader.handledProps = ["as", "children", "className", "content"];
        MenuHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (MenuHeader);
        /***/ 
    }),
    /* 491 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return MenuItem; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_startCase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(492);
        /* harmony import */ var lodash_startCase__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_startCase__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(462);
        /**
         * A menu can contain an item.
         */
        var MenuItem = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(MenuItem, _Component);
            function MenuItem() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MenuItem);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(MenuItem)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var disabled = _this.props.disabled;
                    if (!disabled)
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onClick', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MenuItem, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, color = _this$props.color, content = _this$props.content, disabled = _this$props.disabled, fitted = _this$props.fitted, header = _this$props.header, icon = _this$props.icon, link = _this$props.link, name = _this$props.name, onClick = _this$props.onClick, position = _this$props.position;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()(color, position, Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(icon === true || icon && !(name || content), 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(header, 'header'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(link, 'link'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOrValueAndKey"])(fitted, 'fitted'), 'item', className);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(MenuItem, this.props, function () {
                            if (onClick)
                                return 'a';
                        });
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(MenuItem, this.props);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                onClick: this.handleClick
                            }), children);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick
                        }), _elements_Icon__WEBPACK_IMPORTED_MODULE_14__["default"].create(icon, {
                            autoGenerateKey: false
                        }), _lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(content) ? lodash_startCase__WEBPACK_IMPORTED_MODULE_8___default()(name) : content);
                    }
                }]);
            return MenuItem;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(MenuItem, "handledProps", ["active", "as", "children", "className", "color", "content", "disabled", "fitted", "header", "icon", "index", "link", "name", "onClick", "position"]);
        MenuItem.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** A menu item can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Additional colors can be specified. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /** A menu item can be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A menu item or menu can remove element padding, vertically or horizontally. */
            fitted: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['horizontally', 'vertically'])]),
            /** A menu item may include a header or may itself be a header. */
            header: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** MenuItem can be only icon. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand]),
            /** MenuItem index inside Menu. */
            index: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number,
            /** A menu item can be link. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Internal name of the MenuItem. */
            name: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /**
             * Called on click. When passed, the component will render as an `a`
             * tag by default instead of a `div`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** A menu item can take left or right position. */
            position: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['left', 'right'])
        } : undefined;
        MenuItem.create = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createShorthandFactory"])(MenuItem, function (val) {
            return {
                content: val,
                name: val
            };
        });
        /***/ 
    }),
    /* 492 */
    /***/ (function (module, exports, __webpack_require__) {
        var createCompounder = __webpack_require__(493), upperFirst = __webpack_require__(501);
        /**
         * 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);
        });
        module.exports = startCase;
        /***/ 
    }),
    /* 493 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayReduce = __webpack_require__(460), deburr = __webpack_require__(494), words = __webpack_require__(497);
        /** Used to compose unicode capture groups. */
        var rsApos = "['\u2019]";
        /** Used to match apostrophes. */
        var reApos = RegExp(rsApos, 'g');
        /**
         * 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, '');
            };
        }
        module.exports = createCompounder;
        /***/ 
    }),
    /* 494 */
    /***/ (function (module, exports, __webpack_require__) {
        var deburrLetter = __webpack_require__(495), toString = __webpack_require__(130);
        /** Used to match Latin Unicode letters (excluding mathematical operators). */
        var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
        /** Used to compose unicode character classes. */
        var rsComboMarksRange = '\\u0300-\\u036f', reComboHalfMarksRange = '\\ufe20-\\ufe2f', rsComboSymbolsRange = '\\u20d0-\\u20ff', rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
        /** Used to compose unicode capture groups. */
        var rsCombo = '[' + rsComboRange + ']';
        /**
         * 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');
        /**
         * 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, '');
        }
        module.exports = deburr;
        /***/ 
    }),
    /* 495 */
    /***/ (function (module, exports, __webpack_require__) {
        var basePropertyOf = __webpack_require__(496);
        /** 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 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);
        module.exports = deburrLetter;
        /***/ 
    }),
    /* 496 */
    /***/ (function (module, exports) {
        /**
         * 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];
            };
        }
        module.exports = basePropertyOf;
        /***/ 
    }),
    /* 497 */
    /***/ (function (module, exports, __webpack_require__) {
        var asciiWords = __webpack_require__(498), hasUnicodeWord = __webpack_require__(499), toString = __webpack_require__(130), unicodeWords = __webpack_require__(500);
        /**
         * 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) || [];
        }
        module.exports = words;
        /***/ 
    }),
    /* 498 */
    /***/ (function (module, exports) {
        /** Used to match words composed of alphanumeric characters. */
        var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
        /**
         * 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) || [];
        }
        module.exports = asciiWords;
        /***/ 
    }),
    /* 499 */
    /***/ (function (module, exports) {
        /** 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 ]/;
        /**
         * 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);
        }
        module.exports = hasUnicodeWord;
        /***/ 
    }),
    /* 500 */
    /***/ (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, 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]", 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;
        /** 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');
        /**
         * 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) || [];
        }
        module.exports = unicodeWords;
        /***/ 
    }),
    /* 501 */
    /***/ (function (module, exports, __webpack_require__) {
        var createCaseFirst = __webpack_require__(502);
        /**
         * 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');
        module.exports = upperFirst;
        /***/ 
    }),
    /* 502 */
    /***/ (function (module, exports, __webpack_require__) {
        var castSlice = __webpack_require__(348), hasUnicode = __webpack_require__(353), stringToArray = __webpack_require__(351), toString = __webpack_require__(130);
        /**
         * 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;
            };
        }
        module.exports = createCaseFirst;
        /***/ 
    }),
    /* 503 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A menu can contain a sub menu.
         */
        function MenuMenu(props) {
            var children = props.children, className = props.className, content = props.content, position = props.position;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(position, 'menu', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(MenuMenu, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(MenuMenu, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        MenuMenu.handledProps = ["as", "children", "className", "content", "position"];
        MenuMenu.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A sub menu can take left or right position. */
            position: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['left', 'right'])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (MenuMenu);
        /***/ 
    }),
    /* 504 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(445);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(keyboard_key__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(153);
        /* harmony import */ var _collections_Menu_MenuItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(491);
        /**
         * An item of a pagination.
         */
        var PaginationItem = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PaginationItem, _Component);
            function PaginationItem() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PaginationItem);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PaginationItem)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this)), "handleClick", function (e) {
                    var type = _this.props.type;
                    if (type !== 'ellipsisItem')
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default()(_this.props, 'onClick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this)), "handleKeyDown", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default()(_this.props, 'onKeyDown', e, _this.props);
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_8___default.a.getCode(e) === keyboard_key__WEBPACK_IMPORTED_MODULE_8___default.a.Enter)
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default()(_this.props, 'onClick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this)), "handleOverrides", function () {
                    return {
                        onClick: _this.handleClick,
                        onKeyDown: _this.handleKeyDown
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PaginationItem, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, type = _this$props.type;
                        var disabled = this.props.disabled || type === 'ellipsisItem';
                        return _collections_Menu_MenuItem__WEBPACK_IMPORTED_MODULE_12__["default"].create(this.props, {
                            defaultProps: {
                                active: active,
                                disabled: disabled,
                                'aria-current': active,
                                onClick: this.handleClick,
                                onKeyDown: this.handleKeyDown,
                                tabIndex: disabled ? -1 : 0
                            },
                            overrideProps: this.handleOverrides
                        });
                    }
                }]);
            return PaginationItem;
        }(react__WEBPACK_IMPORTED_MODULE_10__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(PaginationItem, "handledProps", ["active", "disabled", "onClick", "onKeyDown", "type"]);
        PaginationItem.propTypes = true ? {
            /** A pagination item can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /** A pagination item can be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /**
             * Called on key down.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onKeyDown: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /** A pagination should have a type. */
            type: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOf(['ellipsisItem', 'firstItem', 'prevItem', 'pageItem', 'nextItem', 'lastItem'])
        } : undefined;
        PaginationItem.create = Object(_lib__WEBPACK_IMPORTED_MODULE_11__["createShorthandFactory"])(PaginationItem, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (PaginationItem);
        /***/ 
    }),
    /* 505 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(506);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Radio__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 506 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(507);
        /**
         * A Radio is sugar for <Checkbox radio />.
         * Useful for exclusive groups of sliders or toggles.
         * @see Checkbox
         * @see Form
         */
        function Radio(props) {
            var slider = props.slider, toggle = props.toggle, type = props.type;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(Radio, props); // const ElementType = getElementType(Radio, props)
            // radio, slider, toggle are exclusive
            // use an undefined radio if slider or toggle are present
            var radio = !(slider || toggle) || undefined;
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                type: type,
                radio: radio,
                slider: slider,
                toggle: toggle
            }));
        }
        Radio.handledProps = ["slider", "toggle", "type"];
        Radio.propTypes = true ? {
            /** Format to emphasize the current selection state. */
            slider: _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.slider,
            /** Format to show an on or off choice. */
            toggle: _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.toggle,
            /** HTML input type, either checkbox or radio. */
            type: _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.type
        } : undefined;
        Radio.defaultProps = {
            type: 'radio'
        };
        /* harmony default export */ __webpack_exports__["default"] = (Radio);
        /***/ 
    }),
    /* 507 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(508);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 508 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Checkbox; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
        /**
         * A checkbox allows a user to select a value from a small set of options, often binary.
         * @see Form
         * @see Radio
         */
        var Checkbox = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(Checkbox, _Component);
            function Checkbox() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this, Checkbox);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Checkbox)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "canToggle", function () {
                    var _this$props = _this.props, disabled = _this$props.disabled, radio = _this$props.radio, readOnly = _this$props.readOnly;
                    var checked = _this.state.checked;
                    return !disabled && !readOnly && !(radio && checked);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeTabIndex", function () {
                    var _this$props2 = _this.props, disabled = _this$props2.disabled, tabIndex = _this$props2.tabIndex;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(tabIndex))
                        return tabIndex;
                    return disabled ? -1 : 0;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleContainerClick", function (e) {
                    var id = _this.props.id;
                    if (lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(id))
                        _this.handleClick(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleInputClick", function (e) {
                    var id = _this.props.id;
                    if (id)
                        _this.handleClick(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleInputRef", function (c) {
                    return _this.inputRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleClick", function (e) {
                    var _this$state = _this.state, checked = _this$state.checked, indeterminate = _this$state.indeterminate;
                    if (!_this.canToggle())
                        return;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onClick', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.props, {
                        checked: !checked,
                        indeterminate: !!indeterminate
                    }));
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.props, {
                        checked: !checked,
                        indeterminate: false
                    }));
                    _this.trySetState({
                        checked: !checked,
                        indeterminate: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleMouseDown", function (e) {
                    var _this$state2 = _this.state, checked = _this$state2.checked, indeterminate = _this$state2.indeterminate;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onMouseDown', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.props, {
                        checked: !!checked,
                        indeterminate: !!indeterminate
                    }));
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.inputRef, 'focus');
                    e.preventDefault();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "setIndeterminate", function () {
                    var indeterminate = _this.state.indeterminate;
                    if (_this.inputRef)
                        _this.inputRef.indeterminate = !!indeterminate;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(Checkbox, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.setIndeterminate();
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate() {
                        this.setIndeterminate();
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props3 = this.props, className = _this$props3.className, disabled = _this$props3.disabled, label = _this$props3.label, id = _this$props3.id, name = _this$props3.name, radio = _this$props3.radio, readOnly = _this$props3.readOnly, slider = _this$props3.slider, toggle = _this$props3.toggle, type = _this$props3.type, value = _this$props3.value;
                        var _this$state3 = this.state, checked = _this$state3.checked, indeterminate = _this$state3.indeterminate;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_12___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(checked, 'checked'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(indeterminate, 'indeterminate'), // auto apply fitted class to compact white space when there is no label
                        // https://semantic-ui.com/modules/checkbox.html#fitted
                        Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(label), 'fitted'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(radio, 'radio'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(readOnly, 'read-only'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(slider, 'slider'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(toggle, 'toggle'), 'checkbox', className);
                        var unhandled = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getUnhandledProps"])(Checkbox, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getElementType"])(Checkbox, this.props);
                        var _partitionHTMLProps = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["partitionHTMLProps"])(unhandled, {
                            htmlProps: _lib__WEBPACK_IMPORTED_MODULE_15__["htmlInputAttrs"]
                        }), _partitionHTMLProps2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_partitionHTMLProps, 2), htmlInputProps = _partitionHTMLProps2[0], rest = _partitionHTMLProps2[1];
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleContainerClick,
                            onChange: this.handleContainerClick,
                            onMouseDown: this.handleMouseDown
                        }), react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, htmlInputProps, {
                            checked: checked,
                            className: "hidden",
                            disabled: disabled,
                            id: id,
                            name: name,
                            onClick: this.handleInputClick,
                            readOnly: true,
                            ref: this.handleInputRef,
                            tabIndex: this.computeTabIndex(),
                            type: type,
                            value: value
                        })), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["createHTMLLabel"])(label, {
                            defaultProps: {
                                htmlFor: id
                            },
                            autoGenerateKey: false
                        }) || react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("label", {
                            htmlFor: id
                        }));
                    }
                }]);
            return Checkbox;
        }(_lib__WEBPACK_IMPORTED_MODULE_15__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Checkbox, "defaultProps", {
            type: 'checkbox'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Checkbox, "autoControlledProps", ['checked', 'indeterminate']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Checkbox, "handledProps", ["as", "checked", "className", "defaultChecked", "defaultIndeterminate", "disabled", "fitted", "id", "indeterminate", "label", "name", "onChange", "onClick", "onMouseDown", "radio", "readOnly", "slider", "tabIndex", "toggle", "type", "value"]);
        Checkbox.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].as,
            /** Whether or not checkbox is checked. */
            checked: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string,
            /** The initial value of checked. */
            defaultChecked: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Whether or not checkbox is indeterminate. */
            defaultIndeterminate: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A checkbox can appear disabled and be unable to change states */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Removes padding for a label. Auto applied when there is no label. */
            fitted: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A unique identifier. */
            id: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string]),
            /** Whether or not checkbox is indeterminate. */
            indeterminate: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** The text of the associated label element. */
            label: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].itemShorthand,
            /** The HTML input name. */
            name: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string,
            /**
             * Called when the user attempts to change the checked state.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and proposed checked/indeterminate state.
             */
            onChange: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.func,
            /**
             * Called when the checkbox or label is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and current checked/indeterminate state.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.func,
            /**
             * Called when the user presses down on the mouse.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and current checked/indeterminate state.
             */
            onMouseDown: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.func,
            /** Format as a radio element. This means it is an exclusive option. */
            radio: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['slider', 'toggle'])]),
            /** A checkbox can be read-only and unable to change states. */
            readOnly: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Format to emphasize the current selection state. */
            slider: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['radio', 'toggle'])]),
            /** A checkbox can receive focus. */
            tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string]),
            /** Format to show an on or off choice. */
            toggle: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['radio', 'slider'])]),
            /** HTML input type, either checkbox or radio. */
            type: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(['checkbox', 'radio']),
            /** The HTML input value. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number])
        } : undefined;
        /***/ 
    }),
    /* 509 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Responsive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(510);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Responsive__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 510 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Responsive; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /**
         * Responsive can control visibility of content.
         */
        var Responsive = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Responsive, _Component);
            function Responsive() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Responsive);
                for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
                    _args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Responsive)).call.apply(_getPrototypeOf2, [this].concat(_args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "fitsMaxWidth", function () {
                    var maxWidth = _this.props.maxWidth;
                    var width = _this.state.width;
                    return lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(maxWidth) ? true : width <= maxWidth;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "fitsMinWidth", function () {
                    var minWidth = _this.props.minWidth;
                    var width = _this.state.width;
                    return lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(minWidth) ? true : width >= minWidth;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "setSafeState", function () {
                    var _this2;
                    return _this.mounted && (_this2 = _this).setState.apply(_this2, arguments);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "isVisible", function () {
                    return _this.fitsMinWidth() && _this.fitsMaxWidth();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleResize", function (e) {
                    if (_this.ticking)
                        return;
                    _this.ticking = true;
                    requestAnimationFrame(function () {
                        return _this.handleUpdate(e);
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleUpdate", function (e) {
                    _this.ticking = false;
                    var width = lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'getWidth');
                    _this.setSafeState({
                        width: width
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onUpdate', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.props, {
                        width: width
                    }));
                });
                _this.state = {
                    width: lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'getWidth')
                };
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Responsive, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        var fireOnMount = this.props.fireOnMount;
                        this.mounted = true;
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('resize', this.handleResize, {
                            target: 'window'
                        });
                        if (fireOnMount)
                            this.handleUpdate();
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        this.mounted = false;
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('resize', this.handleResize, {
                            target: 'window'
                        });
                    }
                }, {
                    key: "shouldComponentUpdate",
                    value: function shouldComponentUpdate(nextProps, nextState) {
                        // Update when any prop changes or the width changes. If width does not change, no update is required.
                        return this.state.width !== nextState.width || !Object(_lib__WEBPACK_IMPORTED_MODULE_12__["shallowEqual"])(this.props, nextProps);
                    } // ----------------------------------------
                    // Helpers
                    // ----------------------------------------
                }, {
                    key: "render",
                    // ----------------------------------------
                    // Render
                    // ----------------------------------------
                    value: function render() {
                        var children = this.props.children;
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(Responsive, this.props);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Responsive, this.props);
                        if (this.isVisible())
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, rest, children);
                        return null;
                    }
                }]);
            return Responsive;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "defaultProps", {
            getWidth: function getWidth() {
                return Object(_lib__WEBPACK_IMPORTED_MODULE_12__["isBrowser"])() ? window.innerWidth : 0;
            }
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "onlyMobile", {
            minWidth: 320,
            maxWidth: 767
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "onlyTablet", {
            minWidth: 768,
            maxWidth: 991
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "onlyComputer", {
            minWidth: 992
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "onlyLargeScreen", {
            minWidth: 1200,
            maxWidth: 1919
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "onlyWidescreen", {
            minWidth: 1920
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Responsive, "handledProps", ["as", "children", "fireOnMount", "getWidth", "maxWidth", "minWidth", "onUpdate"]);
        Responsive.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Fires callbacks immediately after mount. */
            fireOnMount: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /**
             * Called to get width of screen. Defaults to using `window.innerWidth` when in a browser;
             * otherwise, assumes a width of 0.
             */
            getWidth: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** The maximum width at which content will be displayed. */
            maxWidth: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string]),
            /** The minimum width at which content will be displayed. */
            minWidth: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string]),
            /**
             * Called on update.
             *
             * @param {SyntheticEvent} event - The React SyntheticEvent object
             * @param {object} data - All props and the event value.
             */
            onUpdate: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func
        } : undefined;
        /***/ 
    }),
    /* 511 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(512);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Select__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 512 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(513);
        /**
         * A Select is sugar for <Dropdown selection />.
         * @see Dropdown
         * @see Form
         */
        function Select(props) {
            return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
                selection: true
            }));
        }
        Select.handledProps = ["options"];
        Select.propTypes = true ? {
            /** Array of Dropdown.Item props e.g. `{ text: '', value: '' }` */
            options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].Item.propTypes)).isRequired
        } : undefined;
        Select.Divider = _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].Divider;
        Select.Header = _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].Header;
        Select.Item = _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].Item;
        Select.Menu = _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].Menu;
        /* harmony default export */ __webpack_exports__["default"] = (Select);
        /***/ 
    }),
    /* 513 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(514);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 514 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Dropdown; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(515);
        /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_compact__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(366);
        /* harmony import */ var lodash_compact__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_compact__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_every__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(517);
        /* harmony import */ var lodash_every__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_every__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(259);
        /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(257);
        /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(459);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(lodash_reduce__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(260);
        /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(lodash_some__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(520);
        /* harmony import */ var lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/ __webpack_require__.n(lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_18__);
        /* harmony import */ var lodash_deburr__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(494);
        /* harmony import */ var lodash_deburr__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/ __webpack_require__.n(lodash_deburr__WEBPACK_IMPORTED_MODULE_19__);
        /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(105);
        /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/ __webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_20__);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(180);
        /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/ __webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_21__);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(358);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/ __webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_22__);
        /* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(521);
        /* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/ __webpack_require__.n(lodash_dropRight__WEBPACK_IMPORTED_MODULE_23__);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(238);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24__);
        /* harmony import */ var lodash_size__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(522);
        /* harmony import */ var lodash_size__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/ __webpack_require__.n(lodash_size__WEBPACK_IMPORTED_MODULE_25__);
        /* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(526);
        /* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/ __webpack_require__.n(lodash_union__WEBPACK_IMPORTED_MODULE_26__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_27__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_28__);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(174);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/ __webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_29__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_30__);
        /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(430);
        /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_31__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_32__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_33__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_34__);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(445);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/ __webpack_require__.n(keyboard_key__WEBPACK_IMPORTED_MODULE_35__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_36__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_37__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(462);
        /* harmony import */ var _elements_Label__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(527);
        /* harmony import */ var _DropdownDivider__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(528);
        /* harmony import */ var _DropdownItem__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(529);
        /* harmony import */ var _DropdownHeader__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(533);
        /* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(534);
        /* harmony import */ var _DropdownSearchInput__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(535);
        var getKeyOrValue = function getKeyOrValue(key, value) {
            return lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default()(key) ? value : key;
        };
        /**
         * A dropdown allows a user to select a value from a series of options.
         * @see Form
         * @see Select
         * @see Menu
         */
        var Dropdown = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(Dropdown, _Component);
            function Dropdown() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Dropdown);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Dropdown)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleChange", function (e, value) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        value: value
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "closeOnChange", function (e) {
                    var _this$props = _this.props, closeOnChange = _this$props.closeOnChange, multiple = _this$props.multiple;
                    var shouldClose = lodash_isUndefined__WEBPACK_IMPORTED_MODULE_29___default()(closeOnChange) ? !multiple : closeOnChange;
                    if (shouldClose)
                        _this.close(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "closeOnEscape", function (e) {
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.Escape)
                        return;
                    e.preventDefault();
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "moveSelectionOnKeyDown", function (e) {
                    var _moves;
                    var _this$props2 = _this.props, multiple = _this$props2.multiple, selectOnNavigation = _this$props2.selectOnNavigation;
                    var moves = (_moves = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_moves, keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.ArrowDown, 1), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_moves, keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.ArrowUp, -1), _moves);
                    var move = moves[keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e)];
                    if (move === undefined)
                        return;
                    e.preventDefault();
                    _this.moveSelectionBy(move);
                    if (!multiple && selectOnNavigation)
                        _this.makeSelectedItemActive(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "openOnSpace", function (e) {
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.Spacebar)
                        return;
                    if (_this.state.open)
                        return;
                    e.preventDefault();
                    _this.open(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "openOnArrow", function (e) {
                    var code = keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e);
                    if (!lodash_includes__WEBPACK_IMPORTED_MODULE_28___default()([keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.ArrowDown, keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.ArrowUp], code))
                        return;
                    if (_this.state.open)
                        return;
                    e.preventDefault();
                    _this.open(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "makeSelectedItemActive", function (e) {
                    var open = _this.state.open;
                    var multiple = _this.props.multiple;
                    var item = _this.getSelectedItem();
                    var value = lodash_get__WEBPACK_IMPORTED_MODULE_27___default()(item, 'value'); // prevent selecting null if there was no selected item value
                    // prevent selecting duplicate items when the dropdown is closed
                    if (lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default()(value) || !open)
                        return; // state value may be undefined
                    var newValue = multiple ? lodash_union__WEBPACK_IMPORTED_MODULE_26___default()(_this.state.value, [value]) : value; // notify the onChange prop that the user is trying to change value
                    _this.setValue(newValue);
                    _this.setSelectedIndex(newValue);
                    _this.handleChange(e, newValue); // Heads up! This event handler should be called after `onChange`
                    // Notify the onAddItem prop if this is a new value
                    if (item['data-additional'])
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onAddItem', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                            value: value
                        }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "selectItemOnEnter", function (e) {
                    var search = _this.props.search;
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.Enter)
                        return;
                    e.preventDefault();
                    var optionSize = lodash_size__WEBPACK_IMPORTED_MODULE_25___default()(_this.getMenuOptions());
                    if (search && optionSize === 0)
                        return;
                    _this.makeSelectedItemActive(e);
                    _this.closeOnChange(e);
                    _this.clearSearchQuery();
                    if (search && _this.searchRef)
                        _this.searchRef.focus();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "removeItemOnBackspace", function (e) {
                    var _this$props3 = _this.props, multiple = _this$props3.multiple, search = _this$props3.search;
                    var _this$state = _this.state, searchQuery = _this$state.searchQuery, value = _this$state.value;
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_35___default.a.Backspace)
                        return;
                    if (searchQuery || !search || !multiple || lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24___default()(value))
                        return;
                    e.preventDefault(); // remove most recent value
                    var newValue = lodash_dropRight__WEBPACK_IMPORTED_MODULE_23___default()(value);
                    _this.setValue(newValue);
                    _this.setSelectedIndex(newValue);
                    _this.handleChange(e, newValue);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "closeOnDocumentClick", function (e) {
                    if (!_this.props.closeOnBlur)
                        return; // If event happened in the dropdown, ignore it
                    if (_this.ref && Object(_lib__WEBPACK_IMPORTED_MODULE_38__["doesNodeContainClick"])(_this.ref, e))
                        return;
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "attachHandlersOnOpen", function () {
                    _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('keydown', [_this.closeOnEscape, _this.moveSelectionOnKeyDown, _this.selectItemOnEnter, _this.removeItemOnBackspace]);
                    _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('click', _this.closeOnDocumentClick);
                    _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('keydown', [_this.openOnArrow, _this.openOnSpace]);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleMouseDown", function (e) {
                    _this.isMouseDown = true;
                    _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('mouseup', _this.handleDocumentMouseUp);
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onMouseDown', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleDocumentMouseUp", function () {
                    _this.isMouseDown = false;
                    _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('mouseup', _this.handleDocumentMouseUp);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleClick", function (e) {
                    var _this$props4 = _this.props, minCharacters = _this$props4.minCharacters, search = _this$props4.search;
                    var _this$state2 = _this.state, open = _this$state2.open, searchQuery = _this$state2.searchQuery;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onClick', e, _this.props); // prevent closeOnDocumentClick()
                    e.stopPropagation();
                    if (!search)
                        return _this.toggle(e);
                    if (open)
                        return;
                    if (searchQuery.length >= minCharacters || minCharacters === 1) {
                        _this.open(e);
                        return;
                    }
                    if (_this.searchRef)
                        _this.searchRef.focus();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleIconClick", function (e) {
                    var clearable = _this.props.clearable;
                    var hasValue = _this.hasValue();
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onClick', e, _this.props); // prevent handleClick()
                    e.stopPropagation();
                    if (clearable && hasValue) {
                        _this.clearValue(e);
                    }
                    else {
                        _this.toggle(e);
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleItemClick", function (e, item) {
                    var _this$props5 = _this.props, multiple = _this$props5.multiple, search = _this$props5.search;
                    var value = item.value; // prevent toggle() in handleClick()
                    e.stopPropagation(); // prevent closeOnDocumentClick() if multiple or item is disabled
                    if (multiple || item.disabled)
                        e.nativeEvent.stopImmediatePropagation();
                    if (item.disabled)
                        return;
                    var isAdditionItem = item['data-additional'];
                    var newValue = multiple ? lodash_union__WEBPACK_IMPORTED_MODULE_26___default()(_this.state.value, [value]) : value; // notify the onChange prop that the user is trying to change value
                    _this.setValue(newValue);
                    _this.setSelectedIndex(value);
                    var optionSize = lodash_size__WEBPACK_IMPORTED_MODULE_25___default()(_this.getMenuOptions());
                    if (!multiple || isAdditionItem || optionSize === 1)
                        _this.clearSearchQuery();
                    _this.handleChange(e, newValue);
                    _this.closeOnChange(e); // Heads up! This event handler should be called after `onChange`
                    // Notify the onAddItem prop if this is a new value
                    if (isAdditionItem)
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onAddItem', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                            value: value
                        }));
                    if (multiple && search && _this.searchRef)
                        _this.searchRef.focus();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleFocus", function (e) {
                    var focus = _this.state.focus;
                    if (focus)
                        return;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onFocus', e, _this.props);
                    _this.setState({
                        focus: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleBlur", function (e) {
                    // Heads up! Don't remove this.
                    // https://github.com/Semantic-Org/Semantic-UI-React/issues/1315
                    var currentTarget = lodash_get__WEBPACK_IMPORTED_MODULE_27___default()(e, 'currentTarget');
                    if (currentTarget && currentTarget.contains(document.activeElement))
                        return;
                    var _this$props6 = _this.props, closeOnBlur = _this$props6.closeOnBlur, multiple = _this$props6.multiple, selectOnBlur = _this$props6.selectOnBlur; // do not "blur" when the mouse is down inside of the Dropdown
                    if (_this.isMouseDown)
                        return;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onBlur', e, _this.props);
                    if (selectOnBlur && !multiple) {
                        _this.makeSelectedItemActive(e);
                        if (closeOnBlur)
                            _this.close();
                    }
                    _this.setState({
                        focus: false
                    });
                    _this.clearSearchQuery();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleSearchChange", function (e, _ref) {
                    var value = _ref.value;
                    // prevent propagating to this.props.onChange()
                    e.stopPropagation();
                    var minCharacters = _this.props.minCharacters;
                    var open = _this.state.open;
                    var newQuery = value;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onSearchChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        searchQuery: newQuery
                    }));
                    _this.trySetState({
                        searchQuery: newQuery
                    }, {
                        selectedIndex: 0
                    }); // open search dropdown on search query
                    if (!open && newQuery.length >= minCharacters) {
                        _this.open();
                        return;
                    } // close search dropdown if search query is too small
                    if (open && minCharacters !== 1 && newQuery.length < minCharacters)
                        _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getKeyAndValues", function (options) {
                    return options ? options.map(function (option) {
                        return lodash_pick__WEBPACK_IMPORTED_MODULE_22___default()(option, ['key', 'value']);
                    }) : options;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getMenuOptions", function () {
                    var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.state.value;
                    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _this.props.options;
                    var _this$props7 = _this.props, additionLabel = _this$props7.additionLabel, additionPosition = _this$props7.additionPosition, allowAdditions = _this$props7.allowAdditions, deburr = _this$props7.deburr, multiple = _this$props7.multiple, search = _this$props7.search;
                    var searchQuery = _this.state.searchQuery;
                    var filteredOptions = options; // filter out active options
                    if (multiple) {
                        filteredOptions = lodash_filter__WEBPACK_IMPORTED_MODULE_21___default()(filteredOptions, function (opt) {
                            return !lodash_includes__WEBPACK_IMPORTED_MODULE_28___default()(value, opt.value);
                        });
                    } // filter by search query
                    if (search && searchQuery) {
                        if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_20___default()(search)) {
                            filteredOptions = search(filteredOptions, searchQuery);
                        }
                        else {
                            // remove diacritics on search input and options, if deburr prop is set
                            var strippedQuery = deburr ? lodash_deburr__WEBPACK_IMPORTED_MODULE_19___default()(searchQuery) : searchQuery;
                            var re = new RegExp(lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_18___default()(strippedQuery), 'i');
                            filteredOptions = lodash_filter__WEBPACK_IMPORTED_MODULE_21___default()(filteredOptions, function (opt) {
                                return re.test(deburr ? lodash_deburr__WEBPACK_IMPORTED_MODULE_19___default()(opt.text) : opt.text);
                            });
                        }
                    } // insert the "add" item
                    if (allowAdditions && search && searchQuery && !lodash_some__WEBPACK_IMPORTED_MODULE_17___default()(filteredOptions, {
                        text: searchQuery
                    })) {
                        var additionLabelElement = react__WEBPACK_IMPORTED_MODULE_37___default.a.isValidElement(additionLabel) ? react__WEBPACK_IMPORTED_MODULE_37___default.a.cloneElement(additionLabel, {
                            key: 'addition-label'
                        }) : additionLabel || '';
                        var addItem = {
                            key: 'addition',
                            // by using an array, we can pass multiple elements, but when doing so
                            // we must specify a `key` for React to know which one is which
                            text: [additionLabelElement, react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement("b", {
                                    key: "addition-query"
                                }, searchQuery)],
                            value: searchQuery,
                            className: 'addition',
                            'data-additional': true
                        };
                        if (additionPosition === 'top')
                            filteredOptions.unshift(addItem);
                        else
                            filteredOptions.push(addItem);
                    }
                    return filteredOptions;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getSelectedItem", function () {
                    var selectedIndex = _this.state.selectedIndex;
                    var options = _this.getMenuOptions();
                    return lodash_get__WEBPACK_IMPORTED_MODULE_27___default()(options, "[".concat(selectedIndex, "]"));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getEnabledIndices", function (givenOptions) {
                    var options = givenOptions || _this.getMenuOptions();
                    return lodash_reduce__WEBPACK_IMPORTED_MODULE_16___default()(options, function (memo, item, index) {
                        if (!item.disabled)
                            memo.push(index);
                        return memo;
                    }, []);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getItemByValue", function (value) {
                    var options = _this.props.options;
                    return lodash_find__WEBPACK_IMPORTED_MODULE_15___default()(options, {
                        value: value
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getMenuItemIndexByValue", function (value, givenOptions) {
                    var options = givenOptions || _this.getMenuOptions();
                    return lodash_findIndex__WEBPACK_IMPORTED_MODULE_14___default()(options, ['value', value]);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "getDropdownAriaOptions", function () {
                    var _this$props8 = _this.props, loading = _this$props8.loading, disabled = _this$props8.disabled, search = _this$props8.search, multiple = _this$props8.multiple;
                    var open = _this.state.open;
                    var ariaOptions = {
                        role: search ? 'combobox' : 'listbox',
                        'aria-busy': loading,
                        'aria-disabled': disabled,
                        'aria-expanded': !!open
                    };
                    if (ariaOptions.role === 'listbox') {
                        ariaOptions['aria-multiselectable'] = multiple;
                    }
                    return ariaOptions;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "clearSearchQuery", function () {
                    _this.trySetState({
                        searchQuery: ''
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "setValue", function (value) {
                    _this.trySetState({
                        value: value
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "setSelectedIndex", function () {
                    var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.state.value;
                    var optionsProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _this.props.options;
                    var multiple = _this.props.multiple;
                    var selectedIndex = _this.state.selectedIndex;
                    var options = _this.getMenuOptions(value, optionsProps);
                    var enabledIndicies = _this.getEnabledIndices(options);
                    var newSelectedIndex; // update the selected index
                    if (!selectedIndex || selectedIndex < 0) {
                        var firstIndex = enabledIndicies[0]; // Select the currently active item, if none, use the first item.
                        // Multiple selects remove active items from the list,
                        // their initial selected index should be 0.
                        newSelectedIndex = multiple ? firstIndex : _this.getMenuItemIndexByValue(value, options) || enabledIndicies[0];
                    }
                    else if (multiple) {
                        // multiple selects remove options from the menu as they are made active
                        // keep the selected index within range of the remaining items
                        if (selectedIndex >= options.length - 1) {
                            newSelectedIndex = enabledIndicies[enabledIndicies.length - 1];
                        }
                    }
                    else {
                        var activeIndex = _this.getMenuItemIndexByValue(value, options); // regular selects can only have one active item
                        // set the selected index to the currently active item
                        newSelectedIndex = lodash_includes__WEBPACK_IMPORTED_MODULE_28___default()(enabledIndicies, activeIndex) ? activeIndex : undefined;
                    }
                    if (!newSelectedIndex || newSelectedIndex < 0) {
                        newSelectedIndex = enabledIndicies[0];
                    }
                    _this.setState({
                        selectedIndex: newSelectedIndex
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleLabelClick", function (e, labelProps) {
                    // prevent focusing search input on click
                    e.stopPropagation();
                    _this.setState({
                        selectedLabel: labelProps.value
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onLabelClick', e, labelProps);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleLabelRemove", function (e, labelProps) {
                    // prevent focusing search input on click
                    e.stopPropagation();
                    var value = _this.state.value;
                    var newValue = lodash_without__WEBPACK_IMPORTED_MODULE_13___default()(value, labelProps.value);
                    _this.setValue(newValue);
                    _this.setSelectedIndex(newValue);
                    _this.handleChange(e, newValue);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "moveSelectionBy", function (offset) {
                    var startIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _this.state.selectedIndex;
                    var options = _this.getMenuOptions(); // Prevent infinite loop
                    // TODO: remove left part of condition after children API will be removed
                    if (options === undefined || lodash_every__WEBPACK_IMPORTED_MODULE_12___default()(options, 'disabled'))
                        return;
                    var lastIndex = options.length - 1;
                    var wrapSelection = _this.props.wrapSelection; // next is after last, wrap to beginning
                    // next is before first, wrap to end
                    var nextIndex = startIndex + offset; // if 'wrapSelection' is set to false and selection is after last or before first, it just does not change
                    if (!wrapSelection && (nextIndex > lastIndex || nextIndex < 0)) {
                        nextIndex = startIndex;
                    }
                    else if (nextIndex > lastIndex)
                        nextIndex = 0;
                    else if (nextIndex < 0)
                        nextIndex = lastIndex;
                    if (options[nextIndex].disabled) {
                        _this.moveSelectionBy(offset, nextIndex);
                        return;
                    }
                    _this.setState({
                        selectedIndex: nextIndex
                    });
                    _this.scrollSelectedItemIntoView();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleIconOverrides", function (predefinedProps) {
                    var clearable = _this.props.clearable;
                    var classes = classnames__WEBPACK_IMPORTED_MODULE_34___default()(clearable && _this.hasValue() && 'clear', predefinedProps.className);
                    return {
                        className: classes,
                        onClick: function onClick(e) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(predefinedProps, 'onClick', e, predefinedProps);
                            _this.handleIconClick(e);
                        }
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleSearchRef", function (c) {
                    return _this.searchRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleSizerRef", function (c) {
                    return _this.sizerRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "clearValue", function (e) {
                    var multiple = _this.props.multiple;
                    var newValue = multiple ? [] : '';
                    _this.setValue(newValue);
                    _this.setSelectedIndex(newValue);
                    _this.handleChange(e, newValue);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeSearchInputTabIndex", function () {
                    var _this$props9 = _this.props, disabled = _this$props9.disabled, tabIndex = _this$props9.tabIndex;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default()(tabIndex))
                        return tabIndex;
                    return disabled ? -1 : 0;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeSearchInputWidth", function () {
                    var searchQuery = _this.state.searchQuery;
                    if (_this.sizerRef && searchQuery) {
                        // resize the search input, temporarily show the sizer so we can measure it
                        _this.sizerRef.style.display = 'inline';
                        _this.sizerRef.textContent = searchQuery;
                        var searchWidth = Math.ceil(_this.sizerRef.getBoundingClientRect().width);
                        _this.sizerRef.style.removeProperty('display');
                        return searchWidth;
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeTabIndex", function () {
                    var _this$props10 = _this.props, disabled = _this$props10.disabled, search = _this$props10.search, tabIndex = _this$props10.tabIndex; // don't set a root node tabIndex as the search input has its own tabIndex
                    if (search)
                        return undefined;
                    if (disabled)
                        return -1;
                    return lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default()(tabIndex) ? 0 : tabIndex;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleSearchInputOverrides", function (predefinedProps) {
                    return {
                        onChange: function onChange(e, inputProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(predefinedProps, 'onChange', e, inputProps);
                            _this.handleSearchChange(e, inputProps);
                        }
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "hasValue", function () {
                    var multiple = _this.props.multiple;
                    var value = _this.state.value;
                    return multiple ? !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24___default()(value) : !lodash_isNil__WEBPACK_IMPORTED_MODULE_33___default()(value) && value !== '';
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "scrollSelectedItemIntoView", function () {
                    if (!_this.ref)
                        return;
                    var menu = _this.ref.querySelector('.menu.visible');
                    if (!menu)
                        return;
                    var item = menu.querySelector('.item.selected');
                    if (!item)
                        return;
                    var isOutOfUpperView = item.offsetTop < menu.scrollTop;
                    var isOutOfLowerView = item.offsetTop + item.clientHeight > menu.scrollTop + menu.clientHeight;
                    if (isOutOfUpperView) {
                        menu.scrollTop = item.offsetTop;
                    }
                    else if (isOutOfLowerView) {
                        // eslint-disable-next-line no-mixed-operators
                        menu.scrollTop = item.offsetTop + item.clientHeight - menu.clientHeight;
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "setOpenDirection", function () {
                    if (!_this.ref)
                        return;
                    var menu = _this.ref.querySelector('.menu.visible');
                    if (!menu)
                        return;
                    var dropdownRect = _this.ref.getBoundingClientRect();
                    var menuHeight = menu.clientHeight;
                    var spaceAtTheBottom = document.documentElement.clientHeight - dropdownRect.top - dropdownRect.height - menuHeight;
                    var spaceAtTheTop = dropdownRect.top - menuHeight;
                    var upward = spaceAtTheBottom < 0 && spaceAtTheTop > spaceAtTheBottom; // set state only if there's a relevant difference
                    if (!upward !== !_this.state.upward) {
                        _this.trySetState({
                            upward: upward
                        });
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "open", function (e) {
                    var _this$props11 = _this.props, disabled = _this$props11.disabled, open = _this$props11.open, search = _this$props11.search;
                    if (disabled)
                        return;
                    if (search && _this.searchRef)
                        _this.searchRef.focus();
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onOpen', e, _this.props);
                    _this.trySetState({
                        open: true
                    });
                    _this.scrollSelectedItemIntoView();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "close", function (e) {
                    var open = _this.state.open;
                    if (open) {
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_30___default()(_this.props, 'onClose', e, _this.props);
                        _this.trySetState({
                            open: false
                        });
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleClose", function () {
                    var hasSearchFocus = document.activeElement === _this.searchRef;
                    var hasDropdownFocus = document.activeElement === _this.ref;
                    var hasFocus = hasSearchFocus || hasDropdownFocus; // https://github.com/Semantic-Org/Semantic-UI-React/issues/627
                    // Blur the Dropdown on close so it is blurred after selecting an item.
                    // This is to prevent it from re-opening when switching tabs after selecting an item.
                    if (!hasSearchFocus) {
                        _this.ref.blur();
                    } // We need to keep the virtual model in sync with the browser focus change
                    // https://github.com/Semantic-Org/Semantic-UI-React/issues/692
                    _this.setState({
                        focus: hasFocus
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "toggle", function (e) {
                    return _this.state.open ? _this.close(e) : _this.open(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderText", function () {
                    var _this$props12 = _this.props, multiple = _this$props12.multiple, placeholder = _this$props12.placeholder, search = _this$props12.search, text = _this$props12.text;
                    var _this$state3 = _this.state, searchQuery = _this$state3.searchQuery, value = _this$state3.value, open = _this$state3.open;
                    var hasValue = _this.hasValue();
                    var classes = classnames__WEBPACK_IMPORTED_MODULE_34___default()(placeholder && !hasValue && 'default', 'text', search && searchQuery && 'filtered');
                    var _text = placeholder;
                    if (searchQuery) {
                        _text = null;
                    }
                    else if (text) {
                        _text = text;
                    }
                    else if (open && !multiple) {
                        _text = lodash_get__WEBPACK_IMPORTED_MODULE_27___default()(_this.getSelectedItem(), 'text');
                    }
                    else if (hasValue) {
                        _text = lodash_get__WEBPACK_IMPORTED_MODULE_27___default()(_this.getItemByValue(value), 'text');
                    }
                    return react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement("div", {
                        className: classes,
                        role: "alert",
                        "aria-live": "polite"
                    }, _text);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderSearchInput", function () {
                    var _this$props13 = _this.props, search = _this$props13.search, searchInput = _this$props13.searchInput;
                    var searchQuery = _this.state.searchQuery;
                    if (!search)
                        return null;
                    return _DropdownSearchInput__WEBPACK_IMPORTED_MODULE_45__["default"].create(searchInput, {
                        defaultProps: {
                            inputRef: _this.handleSearchRef,
                            style: {
                                width: _this.computeSearchInputWidth()
                            },
                            tabIndex: _this.computeSearchInputTabIndex(),
                            value: searchQuery
                        },
                        overrideProps: _this.handleSearchInputOverrides
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderSearchSizer", function () {
                    var _this$props14 = _this.props, search = _this$props14.search, multiple = _this$props14.multiple;
                    if (!(search && multiple))
                        return null;
                    return react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement("span", {
                        className: "sizer",
                        ref: _this.handleSizerRef
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderLabels", function () {
                    var _this$props15 = _this.props, multiple = _this$props15.multiple, renderLabel = _this$props15.renderLabel;
                    var _this$state4 = _this.state, selectedLabel = _this$state4.selectedLabel, value = _this$state4.value;
                    if (!multiple || lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24___default()(value)) {
                        return;
                    }
                    var selectedItems = lodash_map__WEBPACK_IMPORTED_MODULE_11___default()(value, _this.getItemByValue);
                    // if no item could be found for a given state value the selected item will be undefined
                    // compact the selectedItems so we only have actual objects left
                    return lodash_map__WEBPACK_IMPORTED_MODULE_11___default()(lodash_compact__WEBPACK_IMPORTED_MODULE_10___default()(selectedItems), function (item, index) {
                        var defaultProps = {
                            active: item.value === selectedLabel,
                            as: 'a',
                            key: getKeyOrValue(item.key, item.value),
                            onClick: _this.handleLabelClick,
                            onRemove: _this.handleLabelRemove,
                            value: item.value
                        };
                        return _elements_Label__WEBPACK_IMPORTED_MODULE_40__["default"].create(renderLabel(item, index, defaultProps), {
                            defaultProps: defaultProps
                        });
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderOptions", function () {
                    var _this$props16 = _this.props, lazyLoad = _this$props16.lazyLoad, multiple = _this$props16.multiple, search = _this$props16.search, noResultsMessage = _this$props16.noResultsMessage;
                    var _this$state5 = _this.state, open = _this$state5.open, selectedIndex = _this$state5.selectedIndex, value = _this$state5.value; // lazy load, only render options when open
                    if (lazyLoad && !open)
                        return null;
                    var options = _this.getMenuOptions();
                    if (noResultsMessage !== null && search && lodash_isEmpty__WEBPACK_IMPORTED_MODULE_24___default()(options)) {
                        return react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement("div", {
                            className: "message"
                        }, noResultsMessage);
                    }
                    var isActive = multiple ? function (optValue) {
                        return lodash_includes__WEBPACK_IMPORTED_MODULE_28___default()(value, optValue);
                    } : function (optValue) {
                        return optValue === value;
                    };
                    return lodash_map__WEBPACK_IMPORTED_MODULE_11___default()(options, function (opt, i) {
                        return _DropdownItem__WEBPACK_IMPORTED_MODULE_42__["default"].create(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({
                            active: isActive(opt.value),
                            onClick: _this.handleItemClick,
                            selected: selectedIndex === i
                        }, opt, {
                            key: getKeyOrValue(opt.key, opt.value),
                            // Needed for handling click events on disabled items
                            style: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, opt.style, {
                                pointerEvents: 'all'
                            })
                        }));
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "renderMenu", function () {
                    var _this$props17 = _this.props, children = _this$props17.children, direction = _this$props17.direction, header = _this$props17.header;
                    var open = _this.state.open;
                    var ariaOptions = _this.getDropdownMenuAriaOptions(); // single menu child
                    if (!_lib__WEBPACK_IMPORTED_MODULE_38__["childrenUtils"].isNil(children)) {
                        var menuChild = react__WEBPACK_IMPORTED_MODULE_37__["Children"].only(children);
                        var className = classnames__WEBPACK_IMPORTED_MODULE_34___default()(direction, Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(open, 'visible'), menuChild.props.className);
                        return Object(react__WEBPACK_IMPORTED_MODULE_37__["cloneElement"])(menuChild, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({
                            className: className
                        }, ariaOptions));
                    }
                    return react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement(_DropdownMenu__WEBPACK_IMPORTED_MODULE_44__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, ariaOptions, {
                        direction: direction,
                        open: open
                    }), _DropdownHeader__WEBPACK_IMPORTED_MODULE_43__["default"].create(header, {
                        autoGenerateKey: false
                    }), _this.renderOptions());
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Dropdown, [{
                    key: "getInitialAutoControlledState",
                    value: function getInitialAutoControlledState() {
                        return {
                            searchQuery: ''
                        };
                    }
                }, {
                    key: "componentWillMount",
                    value: function componentWillMount() {
                        var _this$state6 = this.state, open = _this$state6.open, value = _this$state6.value;
                        this.setValue(value);
                        this.setSelectedIndex(value);
                        if (open) {
                            this.open();
                            this.attachHandlersOnOpen();
                        }
                    }
                }, {
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Dropdown.prototype), "componentWillReceiveProps", this).call(this, nextProps);
                        /* eslint-disable no-console */
                        if (true) {
                            // in development, validate value type matches dropdown type
                            var isNextValueArray = Array.isArray(nextProps.value);
                            var hasValue = lodash_has__WEBPACK_IMPORTED_MODULE_32___default()(nextProps, 'value');
                            if (hasValue && nextProps.multiple && !isNextValueArray) {
                                console.error('Dropdown `value` must be an array when `multiple` is set.' + " Received type: `".concat(Object.prototype.toString.call(nextProps.value), "`."));
                            }
                            else if (hasValue && !nextProps.multiple && isNextValueArray) {
                                console.error('Dropdown `value` must not be an array when `multiple` is not set.' + ' Either set `multiple={true}` or use a string or number value.');
                            }
                        }
                        /* eslint-enable no-console */
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_38__["shallowEqual"])(nextProps.value, this.props.value)) {
                            this.setValue(nextProps.value);
                            this.setSelectedIndex(nextProps.value);
                        } // The selected index is only dependent on option keys/values.
                        // We only check those properties to avoid recursive performance impacts.
                        // https://github.com/Semantic-Org/Semantic-UI-React/issues/3000
                        if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_31___default()(this.getKeyAndValues(nextProps.options), this.getKeyAndValues(this.props.options))) {
                            this.setSelectedIndex(undefined, nextProps.options);
                        }
                    }
                }, {
                    key: "shouldComponentUpdate",
                    value: function shouldComponentUpdate(nextProps, nextState) {
                        return !Object(_lib__WEBPACK_IMPORTED_MODULE_38__["shallowEqual"])(nextProps, this.props) || !Object(_lib__WEBPACK_IMPORTED_MODULE_38__["shallowEqual"])(nextState, this.state);
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps, prevState) {
                        // eslint-disable-line complexity
                        // focused / blurred
                        if (!prevState.focus && this.state.focus) {
                            if (!this.isMouseDown) {
                                var _this$props18 = this.props, minCharacters = _this$props18.minCharacters, openOnFocus = _this$props18.openOnFocus, search = _this$props18.search;
                                var openable = !search || search && minCharacters === 1 && !this.state.open;
                                if (openOnFocus && openable)
                                    this.open();
                            }
                            if (!this.state.open) {
                                _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('keydown', [this.openOnArrow, this.openOnSpace]);
                            }
                            else {
                                _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('keydown', [this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                            }
                            _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].sub('keydown', this.removeItemOnBackspace);
                        }
                        else if (prevState.focus && !this.state.focus) {
                            var closeOnBlur = this.props.closeOnBlur;
                            if (!this.isMouseDown && closeOnBlur) {
                                this.close();
                            }
                            _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('keydown', [this.openOnArrow, this.openOnSpace, this.moveSelectionOnKeyDown, this.selectItemOnEnter, this.removeItemOnBackspace]);
                        } // opened / closed
                        if (!prevState.open && this.state.open) {
                            this.attachHandlersOnOpen();
                            this.setOpenDirection();
                            this.scrollSelectedItemIntoView();
                        }
                        else if (prevState.open && !this.state.open) {
                            this.handleClose();
                            _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('keydown', [this.closeOnEscape, this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                            _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('click', this.closeOnDocumentClick);
                            if (!this.state.focus) {
                                _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('keydown', this.removeItemOnBackspace);
                            }
                        }
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('keydown', [this.openOnArrow, this.openOnSpace, this.moveSelectionOnKeyDown, this.selectItemOnEnter, this.removeItemOnBackspace, this.closeOnEscape]);
                        _lib__WEBPACK_IMPORTED_MODULE_38__["eventStack"].unsub('click', this.closeOnDocumentClick);
                    } // ----------------------------------------
                    // Document Event Handlers
                    // ----------------------------------------
                    // onChange needs to receive a value
                    // can't rely on props.value if we are controlled
                }, {
                    key: "getDropdownMenuAriaOptions",
                    value: function getDropdownMenuAriaOptions() {
                        var _this$props19 = this.props, search = _this$props19.search, multiple = _this$props19.multiple;
                        var ariaOptions = {};
                        if (search) {
                            ariaOptions['aria-multiselectable'] = multiple;
                            ariaOptions.role = 'listbox';
                        }
                        return ariaOptions;
                    } // ----------------------------------------
                    // Setters
                    // ----------------------------------------
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props20 = this.props, basic = _this$props20.basic, button = _this$props20.button, className = _this$props20.className, compact = _this$props20.compact, disabled = _this$props20.disabled, error = _this$props20.error, fluid = _this$props20.fluid, floating = _this$props20.floating, icon = _this$props20.icon, inline = _this$props20.inline, item = _this$props20.item, labeled = _this$props20.labeled, loading = _this$props20.loading, multiple = _this$props20.multiple, pointing = _this$props20.pointing, search = _this$props20.search, selection = _this$props20.selection, scrolling = _this$props20.scrolling, simple = _this$props20.simple, trigger = _this$props20.trigger;
                        var _this$state7 = this.state, open = _this$state7.open, upward = _this$state7.upward; // Classes
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_34___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(open, 'active visible'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(button, 'button'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(floating, 'floating'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(inline, 'inline'), // TODO: consider augmentation to render Dropdowns as Button/Menu, solves icon/link item issues
                        // https://github.com/Semantic-Org/Semantic-UI-React/issues/401#issuecomment-240487229
                        // TODO: the icon class is only required when a dropdown is a button
                        // useKeyOnly(icon, 'icon'),
                        Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(labeled, 'labeled'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(item, 'item'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(multiple, 'multiple'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(search, 'search'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(selection, 'selection'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(simple, 'simple'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(scrolling, 'scrolling'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOnly"])(upward, 'upward'), Object(_lib__WEBPACK_IMPORTED_MODULE_38__["useKeyOrValueAndKey"])(pointing, 'pointing'), 'dropdown', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_38__["getUnhandledProps"])(Dropdown, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_38__["getElementType"])(Dropdown, this.props);
                        var ariaOptions = this.getDropdownAriaOptions(ElementType, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_37___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, ariaOptions, {
                            className: classes,
                            onBlur: this.handleBlur,
                            onClick: this.handleClick,
                            onMouseDown: this.handleMouseDown,
                            onFocus: this.handleFocus,
                            onChange: this.handleChange,
                            tabIndex: this.computeTabIndex(),
                            ref: this.handleRef
                        }), this.renderLabels(), this.renderSearchInput(), this.renderSearchSizer(), trigger || this.renderText(), _elements_Icon__WEBPACK_IMPORTED_MODULE_39__["default"].create(icon, {
                            overrideProps: this.handleIconOverrides,
                            autoGenerateKey: false
                        }), this.renderMenu());
                    }
                }]);
            return Dropdown;
        }(_lib__WEBPACK_IMPORTED_MODULE_38__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "defaultProps", {
            additionLabel: 'Add ',
            additionPosition: 'top',
            closeOnBlur: true,
            deburr: false,
            icon: 'dropdown',
            minCharacters: 1,
            noResultsMessage: 'No results found.',
            openOnFocus: true,
            renderLabel: function renderLabel(_ref2) {
                var text = _ref2.text;
                return text;
            },
            searchInput: 'text',
            selectOnBlur: true,
            selectOnNavigation: true,
            wrapSelection: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "autoControlledProps", ['open', 'searchQuery', 'selectedLabel', 'value', 'upward']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "Divider", _DropdownDivider__WEBPACK_IMPORTED_MODULE_41__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "Header", _DropdownHeader__WEBPACK_IMPORTED_MODULE_43__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "Item", _DropdownItem__WEBPACK_IMPORTED_MODULE_42__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "Menu", _DropdownMenu__WEBPACK_IMPORTED_MODULE_44__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "SearchInput", _DropdownSearchInput__WEBPACK_IMPORTED_MODULE_45__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Dropdown, "handledProps", ["additionLabel", "additionPosition", "allowAdditions", "as", "basic", "button", "children", "className", "clearable", "closeOnBlur", "closeOnChange", "compact", "deburr", "defaultOpen", "defaultSearchQuery", "defaultSelectedLabel", "defaultUpward", "defaultValue", "direction", "disabled", "error", "floating", "fluid", "header", "icon", "inline", "item", "labeled", "lazyLoad", "loading", "minCharacters", "multiple", "noResultsMessage", "onAddItem", "onBlur", "onChange", "onClick", "onClose", "onFocus", "onLabelClick", "onMouseDown", "onOpen", "onSearchChange", "open", "openOnFocus", "options", "placeholder", "pointing", "renderLabel", "scrolling", "search", "searchInput", "searchQuery", "selectOnBlur", "selectOnNavigation", "selectedLabel", "selection", "simple", "tabIndex", "text", "trigger", "upward", "value", "wrapSelection"]);
        Dropdown.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].as,
            /** Label prefixed to an option added by a user. */
            additionLabel: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.element, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string]),
            /** Position of the `Add: ...` option in the dropdown list ('top' or 'bottom'). */
            additionPosition: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOf(['top', 'bottom']),
            /**
             * Allow user additions to the list of options (boolean).
             * Requires the use of `selection`, `options` and `search`.
             */
            allowAdditions: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].demand(['options', 'selection', 'search']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool]),
            /** A Dropdown can reduce its complexity. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Format the Dropdown to appear as a button. */
            button: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Primary content. */
            children: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].disallow(['options', 'selection']), _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].givenProps({
                    children: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.any.isRequired
                }, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.element.isRequired)]),
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            /** Using the clearable setting will let users remove their selection from a dropdown. */
            clearable: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Whether or not the menu should close when the dropdown is blurred. */
            closeOnBlur: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /**
             * Whether or not the menu should close when a value is selected from the dropdown.
             * By default, multiple selection dropdowns will remain open on change, while single
             * selection dropdowns will close on change.
             */
            closeOnChange: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A compact dropdown has no minimum width. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Whether or not the dropdown should strip diacritics in options and input search */
            deburr: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Initial value of open. */
            defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Initial value of searchQuery. */
            defaultSearchQuery: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            /** Currently selected label in multi-select. */
            defaultSelectedLabel: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].demand(['multiple']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string])]),
            /** Initial value of upward. */
            defaultUpward: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Initial value or value array if multiple. */
            defaultValue: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool]))]),
            /** A dropdown menu can open to the left or to the right. */
            direction: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOf(['left', 'right']),
            /** A disabled dropdown menu or item does not allow user interaction. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** An errored dropdown can alert a user to a problem. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown menu can contain floated content. */
            floating: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can take the full width of its parent */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown menu can contain a header. */
            header: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.node,
            /** Shorthand for Icon. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.object]),
            /** A dropdown can be formatted to appear inline in other content. */
            inline: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can be formatted as a Menu item. */
            item: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can be labeled. */
            labeled: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can defer rendering its options until it is open. */
            lazyLoad: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can show that it is currently loading data. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** The minimum characters for a search to begin showing results. */
            minCharacters: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number,
            /** A selection dropdown can allow multiple selections. */
            multiple: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Message to display when there are no results. */
            noResultsMessage: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            /**
             * Called when a user adds a new item. Use this to update the options list.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and the new item's value.
             */
            onAddItem: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called on blur.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onBlur: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called when the user attempts to change the value.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and proposed value.
             */
            onChange: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called when a close event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClose: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called on focus.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onFocus: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called when a multi-select label is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All label props.
             */
            onLabelClick: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called on mousedown.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onMouseDown: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called when an open event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onOpen: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /**
             * Called on search input change.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props, includes current value of searchQuery.
             */
            onSearchChange: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /** Controls whether or not the dropdown menu is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Whether or not the menu should open when the dropdown is focused. */
            openOnFocus: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Array of Dropdown.Item props e.g. `{ text: '', value: '' }` */
            options: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.shape(_DropdownItem__WEBPACK_IMPORTED_MODULE_42__["default"].propTypes))]),
            /** Placeholder text. */
            placeholder: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            /** A dropdown can be formatted so that its menu is pointing. */
            pointing: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOf(['left', 'right', 'top', 'top left', 'top right', 'bottom', 'bottom left', 'bottom right'])]),
            /**
             * Mapped over the active items and returns shorthand for the active item Labels.
             * Only applies to `multiple` Dropdowns.
             *
             * @param {object} item - A currently active dropdown item.
             * @param {number} index - The current index.
             * @param {object} defaultLabelProps - The default props for an active item Label.
             * @returns {*} Shorthand for a Label.
             */
            renderLabel: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func,
            /** A dropdown can have its menu scroll. */
            scrolling: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /**
             * A selection dropdown can allow a user to search through a large list of choices.
             * Pass a function here to replace the default search.
             */
            search: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.func]),
            /** A shorthand for a search input. */
            searchInput: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.object]),
            /** Current value of searchQuery. Creates a controlled component. */
            searchQuery: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            // TODO 'searchInMenu' or 'search='in menu' or ???  How to handle this markup and functionality?
            /** Define whether the highlighted item should be selected on blur. */
            selectOnBlur: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /**
             * Whether or not to change the value when navigating the menu using arrow keys.
             * Setting to false will require enter or left click to confirm a choice.
             */
            selectOnNavigation: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** Currently selected label in multi-select. */
            selectedLabel: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].demand(['multiple']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number])]),
            /** A dropdown can be used to select between choices in a form. */
            selection: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].disallow(['children']), _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].demand(['options']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool]),
            /** A simple dropdown can open without Javascript. */
            simple: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /** A dropdown can receive focus. */
            tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string]),
            /** The text displayed in the dropdown, usually for the active item. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string,
            /** Custom element to trigger the menu to become visible. Takes place of 'text'. */
            trigger: _lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_38__["customPropTypes"].disallow(['selection', 'text']), prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.node]),
            /** Current value or value array if multiple. Creates a controlled component. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.number]))]),
            /** Controls whether the dropdown will open upward. */
            upward: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool,
            /**
             * A dropdown will go to the last element when ArrowUp is pressed on the first,
             * or go to the first when ArrowDown is pressed on the last( aka infinite selection )
             */
            wrapSelection: prop_types__WEBPACK_IMPORTED_MODULE_36___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 515 */
    /***/ (function (module, exports, __webpack_require__) {
        var getPrototypeOf = __webpack_require__(76);
        var superPropBase = __webpack_require__(516);
        function _get(target, property, receiver) {
            if (typeof Reflect !== "undefined" && Reflect.get) {
                module.exports = _get = Reflect.get;
            }
            else {
                module.exports = _get = function _get(target, property, receiver) {
                    var base = superPropBase(target, property);
                    if (!base)
                        return;
                    var desc = Object.getOwnPropertyDescriptor(base, property);
                    if (desc.get) {
                        return desc.get.call(receiver);
                    }
                    return desc.value;
                };
            }
            return _get(target, property, receiver || target);
        }
        module.exports = _get;
        /***/ 
    }),
    /* 516 */
    /***/ (function (module, exports, __webpack_require__) {
        var getPrototypeOf = __webpack_require__(76);
        function _superPropBase(object, property) {
            while (!Object.prototype.hasOwnProperty.call(object, property)) {
                object = getPrototypeOf(object);
                if (object === null)
                    break;
            }
            return object;
        }
        module.exports = _superPropBase;
        /***/ 
    }),
    /* 517 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayEvery = __webpack_require__(518), baseEvery = __webpack_require__(519), baseIteratee = __webpack_require__(201), isArray = __webpack_require__(84), isIterateeCall = __webpack_require__(262);
        /**
         * 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, baseIteratee(predicate, 3));
        }
        module.exports = every;
        /***/ 
    }),
    /* 518 */
    /***/ (function (module, exports) {
        /**
         * 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;
        }
        module.exports = arrayEvery;
        /***/ 
    }),
    /* 519 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseEach = __webpack_require__(183);
        /**
         * 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;
        }
        module.exports = baseEvery;
        /***/ 
    }),
    /* 520 */
    /***/ (function (module, exports, __webpack_require__) {
        var toString = __webpack_require__(130);
        /**
         * Used to match `RegExp`
         * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
         */
        var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source);
        /**
         * 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;
        }
        module.exports = escapeRegExp;
        /***/ 
    }),
    /* 521 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseSlice = __webpack_require__(144), toInteger = __webpack_require__(177);
        /**
         * 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);
        }
        module.exports = dropRight;
        /***/ 
    }),
    /* 522 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseKeys = __webpack_require__(196), getTag = __webpack_require__(223), isArrayLike = __webpack_require__(173), isString = __webpack_require__(403), stringSize = __webpack_require__(523);
        /** `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;
        /***/ 
    }),
    /* 523 */
    /***/ (function (module, exports, __webpack_require__) {
        var asciiSize = __webpack_require__(524), hasUnicode = __webpack_require__(353), unicodeSize = __webpack_require__(525);
        /**
         * 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;
        /***/ 
    }),
    /* 524 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseProperty = __webpack_require__(236);
        /**
         * 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;
        /***/ 
    }),
    /* 525 */
    /***/ (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;
        /***/ 
    }),
    /* 526 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseFlatten = __webpack_require__(169), baseRest = __webpack_require__(145), baseUniq = __webpack_require__(400), isArrayLikeObject = __webpack_require__(172);
        /**
         * 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;
        /***/ 
    }),
    /* 527 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(439);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Label__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 528 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A dropdown menu can contain dividers to separate related content.
         */
        function DropdownDivider(props) {
            var className = props.className;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('divider', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(DropdownDivider, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(DropdownDivider, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }));
        }
        DropdownDivider.handledProps = ["as", "className"];
        DropdownDivider.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (DropdownDivider);
        /***/ 
    }),
    /* 529 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _elements_Flag__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(530);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(462);
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(532);
        /* harmony import */ var _elements_Label__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(527);
        /**
         * An item sub-component for Dropdown component.
         */
        var DropdownItem = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(DropdownItem, _Component);
            function DropdownItem() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DropdownItem);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(DropdownItem)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var onClick = _this.props.onClick;
                    if (onClick)
                        onClick(e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DropdownItem, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, content = _this$props.content, disabled = _this$props.disabled, description = _this$props.description, flag = _this$props.flag, icon = _this$props.icon, image = _this$props.image, label = _this$props.label, selected = _this$props.selected, text = _this$props.text;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(selected, 'selected'), 'item', className); // add default dropdown icon if item contains another menu
                        var iconName = lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(icon) ? _lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].someByType(children, 'DropdownMenu') && 'dropdown' : icon;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(DropdownItem, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(DropdownItem, this.props);
                        var ariaOptions = {
                            role: 'option',
                            'aria-disabled': disabled,
                            'aria-checked': active,
                            'aria-selected': selected
                        };
                        if (!_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, ariaOptions, {
                                className: classes,
                                onClick: this.handleClick
                            }), children);
                        }
                        var flagElement = _elements_Flag__WEBPACK_IMPORTED_MODULE_13__["default"].create(flag, {
                            autoGenerateKey: false
                        });
                        var iconElement = _elements_Icon__WEBPACK_IMPORTED_MODULE_14__["default"].create(iconName, {
                            autoGenerateKey: false
                        });
                        var imageElement = _elements_Image__WEBPACK_IMPORTED_MODULE_15__["default"].create(image, {
                            autoGenerateKey: false
                        });
                        var labelElement = _elements_Label__WEBPACK_IMPORTED_MODULE_16__["default"].create(label, {
                            autoGenerateKey: false
                        });
                        var descriptionElement = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthand"])('span', function (val) {
                            return {
                                children: val
                            };
                        }, description, {
                            defaultProps: {
                                className: 'description'
                            },
                            autoGenerateKey: false
                        });
                        var textElement = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthand"])('span', function (val) {
                            return {
                                children: val
                            };
                        }, _lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(content) ? text : content, {
                            defaultProps: {
                                className: 'text'
                            },
                            autoGenerateKey: false
                        });
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, ariaOptions, {
                            className: classes,
                            onClick: this.handleClick
                        }), imageElement, iconElement, flagElement, labelElement, descriptionElement, textElement);
                    }
                }]);
            return DropdownItem;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(DropdownItem, "handledProps", ["active", "as", "children", "className", "content", "description", "disabled", "flag", "icon", "image", "label", "onClick", "selected", "text", "value"]);
        DropdownItem.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** Style as the currently chosen item. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** Additional text with less emphasis. */
            description: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** A dropdown item can be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Shorthand for Flag. */
            flag: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** Shorthand for Icon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** Shorthand for Image. */
            image: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** Shorthand for Label. */
            label: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * The item currently selected by keyboard shortcut.
             * This is not the active item.
             */
            selected: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Display text. */
            text: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** Stored value. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string])
        } : undefined;
        DropdownItem.create = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthandFactory"])(DropdownItem, function (opts) {
            return opts;
        });
        /* harmony default export */ __webpack_exports__["default"] = (DropdownItem);
        /***/ 
    }),
    /* 530 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Flag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(531);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Flag__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 531 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "names", function () { return names; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(153);
        var names = ['ad', 'andorra', 'ae', 'united arab emirates', 'uae', 'af', 'afghanistan', 'ag', 'antigua', 'ai', 'anguilla', 'al', 'albania', 'am', 'armenia', 'an', 'netherlands antilles', 'ao', 'angola', 'ar', 'argentina', 'as', 'american samoa', 'at', 'austria', 'au', 'australia', 'aw', 'aruba', 'ax', 'aland islands', 'az', 'azerbaijan', 'ba', 'bosnia', 'bb', 'barbados', 'bd', 'bangladesh', 'be', 'belgium', 'bf', 'burkina faso', 'bg', 'bulgaria', 'bh', 'bahrain', 'bi', 'burundi', 'bj', 'benin', 'bm', 'bermuda', 'bn', 'brunei', 'bo', 'bolivia', 'br', 'brazil', 'bs', 'bahamas', 'bt', 'bhutan', 'bv', 'bouvet island', 'bw', 'botswana', 'by', 'belarus', 'bz', 'belize', 'ca', 'canada', 'cc', 'cocos islands', 'cd', 'congo', 'cf', 'central african republic', 'cg', 'congo brazzaville', 'ch', 'switzerland', 'ci', 'cote divoire', 'ck', 'cook islands', 'cl', 'chile', 'cm', 'cameroon', 'cn', 'china', 'co', 'colombia', 'cr', 'costa rica', 'cs', 'cu', 'cuba', 'cv', 'cape verde', 'cx', 'christmas island', 'cy', 'cyprus', 'cz', 'czech republic', 'de', 'germany', 'dj', 'djibouti', 'dk', 'denmark', 'dm', 'dominica', 'do', 'dominican republic', 'dz', 'algeria', 'ec', 'ecuador', 'ee', 'estonia', 'eg', 'egypt', 'eh', 'western sahara', 'er', 'eritrea', 'es', 'spain', 'et', 'ethiopia', 'eu', 'european union', 'fi', 'finland', 'fj', 'fiji', 'fk', 'falkland islands', 'fm', 'micronesia', 'fo', 'faroe islands', 'fr', 'france', 'ga', 'gabon', 'gb', 'uk', 'united kingdom', 'gd', 'grenada', 'ge', 'georgia', 'gf', 'french guiana', 'gh', 'ghana', 'gi', 'gibraltar', 'gl', 'greenland', 'gm', 'gambia', 'gn', 'guinea', 'gp', 'guadeloupe', 'gq', 'equatorial guinea', 'gr', 'greece', 'gs', 'sandwich islands', 'gt', 'guatemala', 'gu', 'guam', 'gw', 'guinea-bissau', 'gy', 'guyana', 'hk', 'hong kong', 'hm', 'heard island', 'hn', 'honduras', 'hr', 'croatia', 'ht', 'haiti', 'hu', 'hungary', 'id', 'indonesia', 'ie', 'ireland', 'il', 'israel', 'in', 'india', 'io', 'indian ocean territory', 'iq', 'iraq', 'ir', 'iran', 'is', 'iceland', 'it', 'italy', 'jm', 'jamaica', 'jo', 'jordan', 'jp', 'japan', 'ke', 'kenya', 'kg', 'kyrgyzstan', 'kh', 'cambodia', 'ki', 'kiribati', 'km', 'comoros', 'kn', 'saint kitts and nevis', 'kp', 'north korea', 'kr', 'south korea', 'kw', 'kuwait', 'ky', 'cayman islands', 'kz', 'kazakhstan', 'la', 'laos', 'lb', 'lebanon', 'lc', 'saint lucia', 'li', 'liechtenstein', 'lk', 'sri lanka', 'lr', 'liberia', 'ls', 'lesotho', 'lt', 'lithuania', 'lu', 'luxembourg', 'lv', 'latvia', 'ly', 'libya', 'ma', 'morocco', 'mc', 'monaco', 'md', 'moldova', 'me', 'montenegro', 'mg', 'madagascar', 'mh', 'marshall islands', 'mk', 'macedonia', 'ml', 'mali', 'mm', 'myanmar', 'burma', 'mn', 'mongolia', 'mo', 'macau', 'mp', 'northern mariana islands', 'mq', 'martinique', 'mr', 'mauritania', 'ms', 'montserrat', 'mt', 'malta', 'mu', 'mauritius', 'mv', 'maldives', 'mw', 'malawi', 'mx', 'mexico', 'my', 'malaysia', 'mz', 'mozambique', 'na', 'namibia', 'nc', 'new caledonia', 'ne', 'niger', 'nf', 'norfolk island', 'ng', 'nigeria', 'ni', 'nicaragua', 'nl', 'netherlands', 'no', 'norway', 'np', 'nepal', 'nr', 'nauru', 'nu', 'niue', 'nz', 'new zealand', 'om', 'oman', 'pa', 'panama', 'pe', 'peru', 'pf', 'french polynesia', 'pg', 'new guinea', 'ph', 'philippines', 'pk', 'pakistan', 'pl', 'poland', 'pm', 'saint pierre', 'pn', 'pitcairn islands', 'pr', 'puerto rico', 'ps', 'palestine', 'pt', 'portugal', 'pw', 'palau', 'py', 'paraguay', 'qa', 'qatar', 're', 'reunion', 'ro', 'romania', 'rs', 'serbia', 'ru', 'russia', 'rw', 'rwanda', 'sa', 'saudi arabia', 'sb', 'solomon islands', 'sc', 'seychelles', 'gb sct', 'scotland', 'sd', 'sudan', 'se', 'sweden', 'sg', 'singapore', 'sh', 'saint helena', 'si', 'slovenia', 'sj', 'svalbard', 'jan mayen', 'sk', 'slovakia', 'sl', 'sierra leone', 'sm', 'san marino', 'sn', 'senegal', 'so', 'somalia', 'sr', 'suriname', 'st', 'sao tome', 'sv', 'el salvador', 'sy', 'syria', 'sz', 'swaziland', 'tc', 'caicos islands', 'td', 'chad', 'tf', 'french territories', 'tg', 'togo', 'th', 'thailand', 'tj', 'tajikistan', 'tk', 'tokelau', 'tl', 'timorleste', 'tm', 'turkmenistan', 'tn', 'tunisia', 'to', 'tonga', 'tr', 'turkey', 'tt', 'trinidad', 'tv', 'tuvalu', 'tw', 'taiwan', 'tz', 'tanzania', 'ua', 'ukraine', 'ug', 'uganda', 'um', 'us minor islands', 'us', 'america', 'united states', 'uy', 'uruguay', 'uz', 'uzbekistan', 'va', 'vatican city', 'vc', 'saint vincent', 've', 'venezuela', 'vg', 'british virgin islands', 'vi', 'us virgin islands', 'vn', 'vietnam', 'vu', 'vanuatu', 'gb wls', 'wales', 'wf', 'wallis and futuna', 'ws', 'samoa', 'ye', 'yemen', 'yt', 'mayotte', 'za', 'south africa', 'zm', 'zambia', 'zw', 'zimbabwe'];
        /**
         * A flag is is used to represent a political state.
         */
        var Flag = 
        /*#__PURE__*/
        function (_PureComponent) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Flag, _PureComponent);
            function Flag() {
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Flag);
                return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Flag).apply(this, arguments));
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Flag, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, className = _this$props.className, name = _this$props.name;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_7___default()(name, 'flag', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["getUnhandledProps"])(Flag, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["getElementType"])(Flag, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }));
                    }
                }]);
            return Flag;
        }(react__WEBPACK_IMPORTED_MODULE_9__["PureComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(Flag, "defaultProps", {
            as: 'i'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(Flag, "handledProps", ["as", "className", "name"]);
        Flag.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string,
            /** Flag name, can use the two digit country code, the full name, or a common alias. */
            name: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].suggest(names)
        } : undefined;
        Flag.create = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["createShorthandFactory"])(Flag, function (value) {
            return {
                name: value
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Flag);
        /***/ 
    }),
    /* 532 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(440);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Image__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 533 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(462);
        /**
         * A dropdown menu can contain a header.
         */
        function DropdownHeader(props) {
            var children = props.children, className = props.className, content = props.content, icon = props.icon;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(DropdownHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(DropdownHeader, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _elements_Icon__WEBPACK_IMPORTED_MODULE_5__["default"].create(icon, {
                autoGenerateKey: false
            }), content);
        }
        DropdownHeader.handledProps = ["as", "children", "className", "content", "icon"];
        DropdownHeader.propTypes = true ? {
            /** An element type to render as (string or function) */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for Icon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        DropdownHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(DropdownHeader, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (DropdownHeader);
        /***/ 
    }),
    /* 534 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A dropdown menu can contain a menu.
         */
        function DropdownMenu(props) {
            var children = props.children, className = props.className, content = props.content, direction = props.direction, open = props.open, scrolling = props.scrolling;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(direction, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(open, 'visible'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(scrolling, 'scrolling'), 'menu transition', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(DropdownMenu, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(DropdownMenu, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        DropdownMenu.handledProps = ["as", "children", "className", "content", "direction", "open", "scrolling"];
        DropdownMenu.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A dropdown menu can open to the left or to the right. */
            direction: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['left', 'right']),
            /** Whether or not the dropdown menu is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A dropdown menu can scroll. */
            scrolling: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (DropdownMenu);
        /***/ 
    }),
    /* 535 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /**
         * A search item sub-component for Dropdown component.
         */
        var DropdownSearchInput = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(DropdownSearchInput, _Component);
            function DropdownSearchInput() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, DropdownSearchInput);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(DropdownSearchInput)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleChange", function (e) {
                    var value = lodash_get__WEBPACK_IMPORTED_MODULE_10___default()(e, 'target.value');
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        value: value
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleRef", function (c) {
                    return lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'inputRef', c);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(DropdownSearchInput, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, autoComplete = _this$props.autoComplete, className = _this$props.className, tabIndex = _this$props.tabIndex, type = _this$props.type, value = _this$props.value;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_11___default()('search', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(DropdownSearchInput, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            "aria-autocomplete": "list",
                            autoComplete: autoComplete,
                            className: classes,
                            onChange: this.handleChange,
                            ref: this.handleRef,
                            tabIndex: tabIndex,
                            type: type,
                            value: value
                        }));
                    }
                }]);
            return DropdownSearchInput;
        }(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(DropdownSearchInput, "defaultProps", {
            autoComplete: 'off',
            type: 'text'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(DropdownSearchInput, "handledProps", ["as", "autoComplete", "className", "inputRef", "tabIndex", "type", "value"]);
        DropdownSearchInput.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].as,
            /** An input can have the auto complete. */
            autoComplete: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** A ref handler for input. */
            inputRef: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /** An input can receive focus. */
            tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** The HTML input type. */
            type: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** Stored value. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string])
        } : undefined;
        DropdownSearchInput.create = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["createShorthandFactory"])(DropdownSearchInput, function (type) {
            return {
                type: type
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (DropdownSearchInput);
        /***/ 
    }),
    /* 536 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _TextArea__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 537 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(379);
        /* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_sum__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /**
         * A TextArea can be used to allow for extended user input.
         * @see Form
         */
        var TextArea = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(TextArea, _Component);
            function TextArea() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, TextArea);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(TextArea)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "focus", function () {
                    return _this.ref.focus();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleChange", function (e) {
                    var value = lodash_get__WEBPACK_IMPORTED_MODULE_11___default()(e, 'target.value');
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        value: value
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleInput", function (e) {
                    var value = lodash_get__WEBPACK_IMPORTED_MODULE_11___default()(e, 'target.value');
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onInput', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        value: value
                    }));
                    _this.updateHeight();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "removeAutoHeightStyles", function () {
                    _this.ref.style.height = null;
                    _this.ref.style.resize = null;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "updateHeight", function () {
                    var autoHeight = _this.props.autoHeight;
                    if (!_this.ref || !autoHeight)
                        return;
                    var _window$getComputedSt = window.getComputedStyle(_this.ref), minHeight = _window$getComputedSt.minHeight, borderBottomWidth = _window$getComputedSt.borderBottomWidth, borderTopWidth = _window$getComputedSt.borderTopWidth;
                    var borderHeight = lodash_sum__WEBPACK_IMPORTED_MODULE_9___default()([borderBottomWidth, borderTopWidth].map(function (x) {
                        return parseFloat(x);
                    })); // Measure the scrollHeight and update the height to match.
                    _this.ref.style.height = 'auto';
                    _this.ref.style.overflowY = 'hidden';
                    _this.ref.style.height = "".concat(Math.max(parseFloat(minHeight), Math.ceil(_this.ref.scrollHeight + borderHeight)), "px");
                    _this.ref.style.overflowY = '';
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(TextArea, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.updateHeight();
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps) {
                        // removed autoHeight
                        if (!this.props.autoHeight && prevProps.autoHeight) {
                            this.removeAutoHeightStyles();
                        } // added autoHeight or value changed
                        if (this.props.autoHeight && !prevProps.autoHeight || prevProps.value !== this.props.value) {
                            this.updateHeight();
                        }
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, autoHeight = _this$props.autoHeight, rows = _this$props.rows, style = _this$props.style, value = _this$props.value;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(TextArea, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getElementType"])(TextArea, this.props);
                        var resize = autoHeight ? 'none' : '';
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            onChange: this.handleChange,
                            onInput: this.handleInput,
                            ref: this.handleRef,
                            rows: rows,
                            style: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({
                                resize: resize
                            }, style),
                            value: value
                        }));
                    }
                }]);
            return TextArea;
        }(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(TextArea, "defaultProps", {
            as: 'textarea',
            rows: 3
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(TextArea, "handledProps", ["as", "autoHeight", "onChange", "onInput", "rows", "style", "value"]);
        TextArea.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].as,
            /** Indicates whether height of the textarea fits the content or not. */
            autoHeight: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /**
             * Called on change.
             * @param {SyntheticEvent} event - The React SyntheticEvent object
             * @param {object} data - All props and the event value.
             */
            onChange: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Called on input.
             * @param {SyntheticEvent} event - The React SyntheticEvent object
             * @param {object} data - All props and the event value.
             */
            onInput: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /** Indicates row count for a TextArea. */
            rows: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** Custom TextArea style. */
            style: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object,
            /** The value of the textarea. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (TextArea);
        /***/ 
    }),
    /* 538 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _TransitionablePortal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(539);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _TransitionablePortal__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 539 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return TransitionablePortal; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(443);
        /* harmony import */ var _modules_Transition__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(540);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /**
         * A sugar for `Portal` and `Transition`.
         * @see Portal
         * @see Transition
         */
        var TransitionablePortal = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(TransitionablePortal, _Component);
            function TransitionablePortal(props) {
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, TransitionablePortal);
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(TransitionablePortal).call(this, props));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalClose", function () {
                    _this.setState({
                        portalOpen: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalOpen", function () {
                    _this.setState({
                        portalOpen: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleTransitionHide", function (nothing, data) {
                    var portalOpen = _this.state.portalOpen;
                    _this.setState({
                        transitionVisible: false
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onClose', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
                        portalOpen: false,
                        transitionVisible: false
                    }));
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onHide', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
                        portalOpen: portalOpen,
                        transitionVisible: false
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleTransitionStart", function (nothing, data) {
                    var portalOpen = _this.state.portalOpen;
                    var status = data.status;
                    var transitionVisible = status === _modules_Transition__WEBPACK_IMPORTED_MODULE_13__["default"].ENTERING;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onStart', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
                        portalOpen: portalOpen,
                        transitionVisible: transitionVisible
                    })); // Heads up! TransitionablePortal fires onOpen callback on the start of transition animation
                    if (!transitionVisible)
                        return;
                    _this.setState({
                        transitionVisible: transitionVisible
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onOpen', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
                        transitionVisible: transitionVisible,
                        portalOpen: true
                    }));
                });
                _this.state = {
                    portalOpen: props.open
                };
                return _this;
            } // ----------------------------------------
            // Lifecycle
            // ----------------------------------------
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(TransitionablePortal, [{
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(_ref) {
                        var open = _ref.open;
                        this.setState({
                            portalOpen: open
                        });
                    } // ----------------------------------------
                    // Callback handling
                    // ----------------------------------------
                }, {
                    key: "render",
                    // ----------------------------------------
                    // Render
                    // ----------------------------------------
                    value: function render() {
                        var _this$props = this.props, children = _this$props.children, transition = _this$props.transition;
                        var _this$state = this.state, portalOpen = _this$state.portalOpen, transitionVisible = _this$state.transitionVisible;
                        var open = portalOpen || transitionVisible;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(TransitionablePortal, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_Portal__WEBPACK_IMPORTED_MODULE_12__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            open: open,
                            onOpen: this.handlePortalOpen,
                            onClose: this.handlePortalClose
                        }), react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_modules_Transition__WEBPACK_IMPORTED_MODULE_13__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, transition, {
                            transitionOnMount: true,
                            onStart: this.handleTransitionStart,
                            onHide: this.handleTransitionHide,
                            visible: portalOpen
                        }), children));
                    }
                }]);
            return TransitionablePortal;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(TransitionablePortal, "defaultProps", {
            transition: {
                animation: 'scale',
                duration: 400
            }
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(TransitionablePortal, "handledProps", ["children", "onClose", "onHide", "onOpen", "onStart", "open", "transition"]);
        TransitionablePortal.propTypes = true ? {
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node.isRequired,
            /**
             * Called when a close event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and internal state.
             */
            onClose: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Callback on each transition that changes visibility to hidden.
             *
             * @param {null}
             * @param {object} data - All props with transition status and internal state.
             */
            onHide: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Called when an open event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and internal state.
             */
            onOpen: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Callback on animation start.
             *
             * @param {null}
             * @param {object} data - All props with transition status and internal state.
             */
            onStart: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** Controls whether or not the portal is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Transition props. */
            transition: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object
        } : undefined;
        /***/ 
    }),
    /* 540 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Transition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(541);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Transition__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 541 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Transition; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /* harmony import */ var _TransitionGroup__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(542);
        var TRANSITION_TYPE = {
            ENTERING: 'show',
            EXITING: 'hide'
            /**
             * A transition is an animation usually used to move content in or out of view.
             */
        };
        var Transition = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Transition, _Component);
            function Transition() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Transition);
                for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
                    _args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Transition)).call.apply(_getPrototypeOf2, [this].concat(_args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleStart", function () {
                    var duration = _this.props.duration;
                    var status = _this.nextStatus;
                    _this.nextStatus = null;
                    _this.setSafeState({
                        status: status,
                        animating: true
                    }, function () {
                        var durationType = TRANSITION_TYPE[status];
                        var durationValue = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["normalizeTransitionDuration"])(duration, durationType);
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onStart', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.props, {
                            status: status
                        }));
                        setTimeout(_this.handleComplete, durationValue);
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleComplete", function () {
                    var current = _this.state.status;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onComplete', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.props, {
                        status: current
                    }));
                    if (_this.nextStatus) {
                        _this.handleStart();
                        return;
                    }
                    var status = _this.computeCompletedStatus();
                    var callback = current === Transition.ENTERING ? 'onShow' : 'onHide';
                    _this.setSafeState({
                        status: status,
                        animating: false
                    }, function () {
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, callback, null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.props, {
                            status: status
                        }));
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "updateStatus", function () {
                    var animating = _this.state.animating;
                    if (_this.nextStatus) {
                        _this.nextStatus = _this.computeNextStatus();
                        if (!animating)
                            _this.handleStart();
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeClasses", function () {
                    var _this$props = _this.props, animation = _this$props.animation, children = _this$props.children;
                    var _this$state = _this.state, animating = _this$state.animating, status = _this$state.status;
                    var childClasses = lodash_get__WEBPACK_IMPORTED_MODULE_9___default()(children, 'props.className');
                    var directional = lodash_includes__WEBPACK_IMPORTED_MODULE_8___default()(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].DIRECTIONAL_TRANSITIONS, animation);
                    if (directional) {
                        return classnames__WEBPACK_IMPORTED_MODULE_11___default()(animation, childClasses, Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(animating, 'animating'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(status === Transition.ENTERING, 'in'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(status === Transition.EXITING, 'out'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(status === Transition.EXITED, 'hidden'), Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(status !== Transition.EXITED, 'visible'), 'transition');
                    }
                    return classnames__WEBPACK_IMPORTED_MODULE_11___default()(animation, childClasses, Object(_lib__WEBPACK_IMPORTED_MODULE_14__["useKeyOnly"])(animating, 'animating transition'));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeCompletedStatus", function () {
                    var unmountOnHide = _this.props.unmountOnHide;
                    var status = _this.state.status;
                    if (status === Transition.ENTERING)
                        return Transition.ENTERED;
                    return unmountOnHide ? Transition.UNMOUNTED : Transition.EXITED;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeInitialStatuses", function () {
                    var _this$props2 = _this.props, visible = _this$props2.visible, mountOnShow = _this$props2.mountOnShow, transitionOnMount = _this$props2.transitionOnMount, unmountOnHide = _this$props2.unmountOnHide;
                    if (visible) {
                        if (transitionOnMount) {
                            return {
                                initial: Transition.EXITED,
                                next: Transition.ENTERING
                            };
                        }
                        return {
                            initial: Transition.ENTERED
                        };
                    }
                    if (mountOnShow || unmountOnHide)
                        return {
                            initial: Transition.UNMOUNTED
                        };
                    return {
                        initial: Transition.EXITED
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeNextStatus", function () {
                    var _this$state2 = _this.state, animating = _this$state2.animating, status = _this$state2.status;
                    if (animating)
                        return status === Transition.ENTERING ? Transition.EXITING : Transition.ENTERING;
                    return status === Transition.ENTERED ? Transition.EXITING : Transition.ENTERING;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeStatuses", function (props) {
                    var status = _this.state.status;
                    var visible = props.visible;
                    if (visible) {
                        return {
                            current: status === Transition.UNMOUNTED && Transition.EXITED,
                            next: status !== Transition.ENTERING && status !== Transition.ENTERED && Transition.ENTERING
                        };
                    }
                    return {
                        next: (status === Transition.ENTERING || status === Transition.ENTERED) && Transition.EXITING
                    };
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeStyle", function () {
                    var _this$props3 = _this.props, children = _this$props3.children, duration = _this$props3.duration;
                    var status = _this.state.status;
                    var childStyle = lodash_get__WEBPACK_IMPORTED_MODULE_9___default()(children, 'props.style');
                    var type = TRANSITION_TYPE[status];
                    var animationDuration = type && "".concat(Object(_lib__WEBPACK_IMPORTED_MODULE_14__["normalizeTransitionDuration"])(duration, type), "ms");
                    return _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, childStyle, {
                        animationDuration: animationDuration
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "setSafeState", function () {
                    var _this2;
                    return _this.mounted && (_this2 = _this).setState.apply(_this2, arguments);
                });
                var _this$computeInitialS = _this.computeInitialStatuses(), _status = _this$computeInitialS.initial, next = _this$computeInitialS.next;
                _this.nextStatus = next;
                _this.state = {
                    status: _status
                };
                return _this;
            } // ----------------------------------------
            // Lifecycle
            // ----------------------------------------
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Transition, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.mounted = true;
                        this.updateStatus();
                    }
                }, {
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        var _this$computeStatuses = this.computeStatuses(nextProps), status = _this$computeStatuses.current, next = _this$computeStatuses.next;
                        this.nextStatus = next;
                        if (status)
                            this.setSafeState({
                                status: status
                            });
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate() {
                        this.updateStatus();
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        this.mounted = false;
                    } // ----------------------------------------
                    // Callback handling
                    // ----------------------------------------
                }, {
                    key: "render",
                    // ----------------------------------------
                    // Render
                    // ----------------------------------------
                    value: function render() {
                        var children = this.props.children;
                        var status = this.state.status;
                        if (status === Transition.UNMOUNTED)
                            return null;
                        return Object(react__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(children, {
                            className: this.computeClasses(),
                            style: this.computeStyle()
                        });
                    }
                }]);
            return Transition;
        }(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "defaultProps", {
            animation: 'fade',
            duration: 500,
            visible: true,
            mountOnShow: true,
            transitionOnMount: false,
            unmountOnHide: false
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "ENTERED", 'ENTERED');
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "ENTERING", 'ENTERING');
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "EXITED", 'EXITED');
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "EXITING", 'EXITING');
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "UNMOUNTED", 'UNMOUNTED');
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "Group", _TransitionGroup__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Transition, "handledProps", ["animation", "children", "duration", "mountOnShow", "onComplete", "onHide", "onShow", "onStart", "reactKey", "transitionOnMount", "unmountOnHide", "visible"]);
        Transition.propTypes = true ? {
            /** Named animation event to used. Must be defined in CSS. */
            animation: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_14__["SUI"].TRANSITIONS),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.element.isRequired,
            /** Duration of the CSS transition animation in milliseconds. */
            duration: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.shape({
                    hide: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number,
                    show: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number
                }), prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** Show the component; triggers the enter or exit animation. */
            visible: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Wait until the first "enter" transition to mount the component (add it to the DOM). */
            mountOnShow: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /**
             * Callback on each transition that changes visibility to shown.
             *
             * @param {null}
             * @param {object} data - All props with status.
             */
            onComplete: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Callback on each transition that changes visibility to hidden.
             *
             * @param {null}
             * @param {object} data - All props with status.
             */
            onHide: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Callback on each transition that changes visibility to shown.
             *
             * @param {null}
             * @param {object} data - All props with status.
             */
            onShow: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Callback on animation start.
             *
             * @param {null}
             * @param {object} data - All props with status.
             */
            onStart: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /** React's key of the element. */
            reactKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** Run the enter animation when the component mounts, if it is initially shown. */
            transitionOnMount: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Unmount the component (remove it from the DOM) when it is not shown. */
            unmountOnHide: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 542 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return TransitionGroup; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(410);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80);
        /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(243);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(543);
        /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
        /* harmony import */ var _Transition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(541);
        /**
         * A Transition.Group animates children as they mount and unmount.
         */
        var TransitionGroup = 
        /*#__PURE__*/
        function (_React$Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(TransitionGroup, _React$Component);
            function TransitionGroup() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TransitionGroup);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(TransitionGroup)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleOnHide", function (nothing, childProps) {
                    var reactKey = childProps.reactKey;
                    _this.setState(function (state) {
                        var children = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, state.children);
                        delete children[reactKey];
                        return {
                            children: children
                        };
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "wrapChild", function (child) {
                    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
                    var _this$props = _this.props, animation = _this$props.animation, duration = _this$props.duration;
                    var key = child.key;
                    var _options$visible = options.visible, visible = _options$visible === void 0 ? true : _options$visible, _options$transitionOn = options.transitionOnMount, transitionOnMount = _options$transitionOn === void 0 ? false : _options$transitionOn;
                    return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(_Transition__WEBPACK_IMPORTED_MODULE_16__["default"], {
                        animation: animation,
                        duration: duration,
                        key: key,
                        onHide: _this.handleOnHide,
                        reactKey: key,
                        transitionOnMount: transitionOnMount,
                        visible: visible
                    }, child);
                });
                var _children = _this.props.children;
                _this.state = {
                    children: lodash_mapValues__WEBPACK_IMPORTED_MODULE_12___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getChildMapping"])(_children), function (child) {
                        return _this.wrapChild(child);
                    })
                };
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TransitionGroup, [{
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        var _this2 = this;
                        var prevMapping = this.state.children;
                        var nextMapping = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getChildMapping"])(nextProps.children);
                        var children = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["mergeChildMappings"])(prevMapping, nextMapping);
                        lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default()(children, function (child, key) {
                            var hasPrev = lodash_has__WEBPACK_IMPORTED_MODULE_10___default()(prevMapping, key);
                            var hasNext = lodash_has__WEBPACK_IMPORTED_MODULE_10___default()(nextMapping, key);
                            var prevChild = prevMapping[key];
                            var isLeaving = !lodash_get__WEBPACK_IMPORTED_MODULE_9___default()(prevChild, 'props.visible'); // Heads up!
                            // An item is new (entering), it will be picked from `nextChildren`, so it should be wrapped
                            if (hasNext && (!hasPrev || isLeaving)) {
                                children[key] = _this2.wrapChild(child, {
                                    transitionOnMount: true
                                });
                                return;
                            } // Heads up!
                            // An item is old (exiting), it will be picked from `prevChildren`, so it has been already
                            // wrapped, so should be only updated
                            if (!hasNext && hasPrev && !isLeaving) {
                                children[key] = Object(react__WEBPACK_IMPORTED_MODULE_14__["cloneElement"])(prevChild, {
                                    visible: false
                                });
                                return;
                            } // Heads up!
                            // An item item hasn't changed transition states, but it will be picked from `nextChildren`,
                            // so we should wrap it again
                            var _prevChild$props = prevChild.props, visible = _prevChild$props.visible, transitionOnMount = _prevChild$props.transitionOnMount;
                            children[key] = _this2.wrapChild(child, {
                                transitionOnMount: transitionOnMount,
                                visible: visible
                            });
                        });
                        this.setState({
                            children: children
                        });
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var children = this.state.children;
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getElementType"])(TransitionGroup, this.props);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getUnhandledProps"])(TransitionGroup, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(ElementType, rest, lodash_values__WEBPACK_IMPORTED_MODULE_8___default()(children));
                    }
                }]);
            return TransitionGroup;
        }(react__WEBPACK_IMPORTED_MODULE_14___default.a.Component);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(TransitionGroup, "defaultProps", {
            animation: 'fade',
            duration: 500
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(TransitionGroup, "handledProps", ["animation", "as", "children", "duration"]);
        TransitionGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].as,
            /** Named animation event to used. Must be defined in CSS. */
            animation: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_15__["SUI"].TRANSITIONS),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.node,
            /** Duration of the CSS transition animation in milliseconds. */
            duration: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.shape({
                    hide: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number.isRequired,
                    show: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number.isRequired
                }), prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string])
        } : undefined;
        /***/ 
    }),
    /* 543 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseAssignValue = __webpack_require__(252), baseForOwn = __webpack_require__(184), baseIteratee = __webpack_require__(201);
        /**
         * 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;
        }
        module.exports = mapValues;
        /***/ 
    }),
    /* 544 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Visibility__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(545);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Visibility__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 545 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Visibility; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(243);
        /* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(153);
        /**
         * Visibility provides a set of callbacks for when a content appears in the viewport.
         */
        var Visibility = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(Visibility, _Component);
            function Visibility() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this, Visibility);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Visibility)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "calculations", {
                    bottomPassed: false,
                    bottomVisible: false,
                    fits: false,
                    passing: false,
                    offScreen: false,
                    onScreen: false,
                    topPassed: false,
                    topVisible: false
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "firedCallbacks", []);
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "fire", function (_ref, value) {
                    var callback = _ref.callback, name = _ref.name;
                    var reverse = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
                    var _this$props = _this.props, continuous = _this$props.continuous, once = _this$props.once; // Heads up! For the execution is required:
                    // - current value correspond to the fired direction
                    // - `continuous` is true or calculation values are different
                    var matchesDirection = _this.calculations[value] !== reverse;
                    var executionPossible = continuous || _this.calculations[value] !== _this.oldCalculations[value];
                    if (matchesDirection && executionPossible)
                        _this.execute(callback, name); // Heads up! We should remove callback from the happened when it's not `once`
                    if (!once)
                        _this.firedCallbacks = lodash_without__WEBPACK_IMPORTED_MODULE_12___default()(_this.firedCallbacks, name);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleUpdate", function () {
                    if (_this.ticking)
                        return;
                    _this.ticking = true;
                    _this.frameId = requestAnimationFrame(_this.update);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "update", function () {
                    if (!_this.mounted)
                        return;
                    _this.ticking = false;
                    _this.oldCalculations = _this.calculations;
                    _this.calculations = _this.computeCalculations();
                    _this.pageYOffset = window.pageYOffset;
                    var _this$props2 = _this.props, onBottomPassed = _this$props2.onBottomPassed, onBottomPassedReverse = _this$props2.onBottomPassedReverse, onBottomVisible = _this$props2.onBottomVisible, onBottomVisibleReverse = _this$props2.onBottomVisibleReverse, onPassing = _this$props2.onPassing, onPassingReverse = _this$props2.onPassingReverse, onTopPassed = _this$props2.onTopPassed, onTopPassedReverse = _this$props2.onTopPassedReverse, onTopVisible = _this$props2.onTopVisible, onTopVisibleReverse = _this$props2.onTopVisibleReverse, onOffScreen = _this$props2.onOffScreen, onOnScreen = _this$props2.onOnScreen, updateOn = _this$props2.updateOn;
                    var forward = {
                        bottomPassed: {
                            callback: onBottomPassed,
                            name: 'onBottomPassed'
                        },
                        bottomVisible: {
                            callback: onBottomVisible,
                            name: 'onBottomVisible'
                        },
                        passing: {
                            callback: onPassing,
                            name: 'onPassing'
                        },
                        offScreen: {
                            callback: onOffScreen,
                            name: 'onOffScreen'
                        },
                        onScreen: {
                            callback: onOnScreen,
                            name: 'onOnScreen'
                        },
                        topPassed: {
                            callback: onTopPassed,
                            name: 'onTopPassed'
                        },
                        topVisible: {
                            callback: onTopVisible,
                            name: 'onTopVisible'
                        }
                    };
                    var reverse = {
                        bottomPassed: {
                            callback: onBottomPassedReverse,
                            name: 'onBottomPassedReverse'
                        },
                        bottomVisible: {
                            callback: onBottomVisibleReverse,
                            name: 'onBottomVisibleReverse'
                        },
                        passing: {
                            callback: onPassingReverse,
                            name: 'onPassingReverse'
                        },
                        topPassed: {
                            callback: onTopPassedReverse,
                            name: 'onTopPassedReverse'
                        },
                        topVisible: {
                            callback: onTopVisibleReverse,
                            name: 'onTopVisibleReverse'
                        }
                    };
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onUpdate', null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.props, {
                        calculations: _this.calculations
                    }));
                    _this.fireOnPassed(); // Heads up! Reverse callbacks should be fired first
                    lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default()(reverse, function (data, value) {
                        return _this.fire(data, value, true);
                    });
                    lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default()(forward, function (data, value) {
                        return _this.fire(data, value);
                    });
                    if (updateOn === 'repaint')
                        _this.handleUpdate();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(Visibility, [{
                    key: "componentWillReceiveProps",
                    // ----------------------------------------
                    // Lifecycle
                    // ----------------------------------------
                    value: function componentWillReceiveProps(_ref2) {
                        var continuous = _ref2.continuous, once = _ref2.once, context = _ref2.context, updateOn = _ref2.updateOn;
                        var cleanHappened = continuous !== this.props.continuous || once !== this.props.once || updateOn !== this.props.updateOn; // Heads up! We should clean up array of happened callbacks, if values of these props are changed
                        if (cleanHappened)
                            this.firedCallbacks = [];
                        if (context !== this.props.context || updateOn !== this.props.updateOn) {
                            this.unattachHandlers(this.props.context);
                            this.attachHandlers(context, updateOn);
                        }
                    }
                }, {
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.mounted = true;
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_16__["isBrowser"])())
                            return;
                        var _this$props3 = this.props, context = _this$props3.context, fireOnMount = _this$props3.fireOnMount, updateOn = _this$props3.updateOn;
                        this.pageYOffset = window.pageYOffset;
                        this.attachHandlers(context, updateOn);
                        if (fireOnMount)
                            this.update();
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        var context = this.props.context;
                        this.unattachHandlers(context);
                        this.mounted = false;
                    }
                }, {
                    key: "attachHandlers",
                    value: function attachHandlers(context, updateOn) {
                        if (updateOn === 'events') {
                            if (context) {
                                _lib__WEBPACK_IMPORTED_MODULE_16__["eventStack"].sub('resize', this.handleUpdate, {
                                    target: context
                                });
                                _lib__WEBPACK_IMPORTED_MODULE_16__["eventStack"].sub('scroll', this.handleUpdate, {
                                    target: context
                                });
                            }
                            return;
                        } // Heads up!
                        // We will deal with `repaint` there
                        this.handleUpdate();
                    }
                }, {
                    key: "unattachHandlers",
                    value: function unattachHandlers(context) {
                        if (context) {
                            _lib__WEBPACK_IMPORTED_MODULE_16__["eventStack"].unsub('resize', this.handleUpdate, {
                                target: context
                            });
                            _lib__WEBPACK_IMPORTED_MODULE_16__["eventStack"].unsub('scroll', this.handleUpdate, {
                                target: context
                            });
                        }
                        if (this.frameId)
                            cancelAnimationFrame(this.frameId);
                    } // ----------------------------------------
                    // Callback handling
                    // ----------------------------------------
                }, {
                    key: "execute",
                    value: function execute(callback, name) {
                        var continuous = this.props.continuous;
                        if (!callback)
                            return; // Heads up! When `continuous` is true, callback will be fired always
                        if (!continuous && lodash_includes__WEBPACK_IMPORTED_MODULE_13___default()(this.firedCallbacks, name))
                            return;
                        callback(null, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, this.props, {
                            calculations: this.calculations
                        }));
                        this.firedCallbacks.push(name);
                    }
                }, {
                    key: "fireOnPassed",
                    value: function fireOnPassed() {
                        var _this2 = this;
                        var _this$calculations = this.calculations, percentagePassed = _this$calculations.percentagePassed, pixelsPassed = _this$calculations.pixelsPassed;
                        var onPassed = this.props.onPassed;
                        lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default()(onPassed, function (callback, passed) {
                            var pixelsValue = Number(passed);
                            if (pixelsValue && pixelsPassed >= pixelsValue) {
                                _this2.execute(callback, passed);
                                return;
                            }
                            var matchPercentage = "".concat(passed).match(/^(\d+)%$/);
                            if (!matchPercentage)
                                return;
                            var percentageValue = Number(matchPercentage[1]) / 100;
                            if (percentagePassed >= percentageValue)
                                _this2.execute(callback, passed);
                        });
                    }
                }, {
                    key: "computeCalculations",
                    // ----------------------------------------
                    // Helpers
                    // ----------------------------------------
                    value: function computeCalculations() {
                        var offset = this.props.offset;
                        var _this$ref$getBounding = this.ref.getBoundingClientRect(), bottom = _this$ref$getBounding.bottom, height = _this$ref$getBounding.height, top = _this$ref$getBounding.top, width = _this$ref$getBounding.width;
                        var _normalizeOffset = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["normalizeOffset"])(offset), _normalizeOffset2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_normalizeOffset, 2), topOffset = _normalizeOffset2[0], bottomOffset = _normalizeOffset2[1];
                        var direction = window.pageYOffset > this.pageYOffset ? 'down' : 'up';
                        var topPassed = top < topOffset;
                        var bottomPassed = bottom < bottomOffset;
                        var pixelsPassed = bottomPassed ? 0 : Math.max(top * -1, 0);
                        var percentagePassed = pixelsPassed / height;
                        var bottomVisible = bottom >= bottomOffset && bottom <= window.innerHeight;
                        var topVisible = top >= topOffset && top <= window.innerHeight;
                        var fits = topVisible && bottomVisible;
                        var passing = topPassed && !bottomPassed;
                        var onScreen = (topVisible || topPassed) && !bottomPassed;
                        var offScreen = !onScreen;
                        return {
                            bottomPassed: bottomPassed,
                            bottomVisible: bottomVisible,
                            direction: direction,
                            fits: fits,
                            height: height,
                            passing: passing,
                            percentagePassed: percentagePassed,
                            pixelsPassed: pixelsPassed,
                            offScreen: offScreen,
                            onScreen: onScreen,
                            topPassed: topPassed,
                            topVisible: topVisible,
                            width: width
                        };
                    } // ----------------------------------------
                    // Refs
                    // ----------------------------------------
                }, {
                    key: "render",
                    // ----------------------------------------
                    // Render
                    // ----------------------------------------
                    value: function render() {
                        var children = this.props.children;
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["getElementType"])(Visibility, this.props);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["getUnhandledProps"])(Visibility, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_15___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            ref: this.handleRef
                        }), children);
                    }
                }]);
            return Visibility;
        }(react__WEBPACK_IMPORTED_MODULE_15__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Visibility, "defaultProps", {
            context: Object(_lib__WEBPACK_IMPORTED_MODULE_16__["isBrowser"])() ? window : null,
            continuous: false,
            offset: [0, 0],
            once: true,
            updateOn: 'events'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Visibility, "handledProps", ["as", "children", "context", "continuous", "fireOnMount", "offset", "onBottomPassed", "onBottomPassedReverse", "onBottomVisible", "onBottomVisibleReverse", "onOffScreen", "onOnScreen", "onPassed", "onPassing", "onPassingReverse", "onTopPassed", "onTopPassedReverse", "onTopVisible", "onTopVisibleReverse", "onUpdate", "once", "updateOn"]);
        Visibility.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.node,
            /** Context which visibility should attach onscroll events. */
            context: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.object,
            /**
             * When set to true a callback will occur anytime an element passes a condition not just immediately after the
             * threshold is met.
             */
            continuous: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.bool,
            /** Fires callbacks immediately after mount. */
            fireOnMount: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.bool,
            /**
             * Element's bottom edge has passed top of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onBottomPassed: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's bottom edge has not passed top of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onBottomPassedReverse: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's bottom edge has passed bottom of screen
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onBottomVisible: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's bottom edge has not passed bottom of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onBottomVisibleReverse: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Value that context should be adjusted in pixels. Useful for making content appear below content fixed to the
             * page.
             */
            offset: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.string]))]),
            /** When set to false a callback will occur each time an element passes the threshold for a condition. */
            once: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.bool,
            /** Element is not visible on the screen. */
            onPassed: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.object,
            /**
             * Any part of an element is visible on screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onPassing: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top has not passed top of screen but bottom has.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onPassingReverse: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element is not visible on the screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onOffScreen: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element is visible on the screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onOnScreen: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top edge has passed top of the screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onTopPassed: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top edge has not passed top of the screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onTopPassedReverse: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top edge has passed bottom of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onTopVisible: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top edge has not passed bottom of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onTopVisibleReverse: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Element's top edge has passed bottom of screen.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onUpdate: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func,
            /**
             * Allows to choose the mode of the position calculations:
             * - `events` - (default) update and fire callbacks only on scroll/resize events
             * - `repaint` - update and fire callbacks on browser repaint (animation frames)
             */
            updateOn: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.oneOf(['events', 'repaint'])
        } : undefined;
        /***/ 
    }),
    /* 546 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(547);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 547 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(242);
        /* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_each__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _BreadcrumbDivider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(548);
        /* harmony import */ var _BreadcrumbSection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(549);
        /**
         * A breadcrumb is used to show hierarchy between content.
         */
        function Breadcrumb(props) {
            var children = props.children, className = props.className, divider = props.divider, icon = props.icon, sections = props.sections, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', size, 'breadcrumb', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(Breadcrumb, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(Breadcrumb, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            var childElements = [];
            lodash_each__WEBPACK_IMPORTED_MODULE_2___default()(sections, function (section, index) {
                // section
                var breadcrumbElement = _BreadcrumbSection__WEBPACK_IMPORTED_MODULE_8__["default"].create(section);
                childElements.push(breadcrumbElement); // divider
                if (index !== sections.length - 1) {
                    var key = "".concat(breadcrumbElement.key, "_divider") || JSON.stringify(section);
                    childElements.push(_BreadcrumbDivider__WEBPACK_IMPORTED_MODULE_7__["default"].create({
                        content: divider,
                        icon: icon,
                        key: key
                    }));
                }
            });
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), childElements);
        }
        Breadcrumb.handledProps = ["as", "children", "className", "divider", "icon", "sections", "size"];
        Breadcrumb.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Shorthand for primary content of the Breadcrumb.Divider. */
            divider: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].disallow(['icon']), _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand]),
            /** For use with the sections prop. Render as an `Icon` component with `divider` class instead of a `div` in
             *  Breadcrumb.Divider. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].disallow(['divider']), _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand]),
            /** Shorthand array of props for Breadcrumb.Section. */
            sections: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** Size of Breadcrumb. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].SIZES, 'medium'))
        } : undefined;
        Breadcrumb.Divider = _BreadcrumbDivider__WEBPACK_IMPORTED_MODULE_7__["default"];
        Breadcrumb.Section = _BreadcrumbSection__WEBPACK_IMPORTED_MODULE_8__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Breadcrumb);
        /***/ 
    }),
    /* 548 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(462);
        /**
         * A divider sub-component for Breadcrumb component.
         */
        function BreadcrumbDivider(props) {
            var children = props.children, className = props.className, content = props.content, icon = props.icon;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('divider', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(BreadcrumbDivider, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(BreadcrumbDivider, props);
            if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(icon)) {
                return _elements_Icon__WEBPACK_IMPORTED_MODULE_7__["default"].create(icon, {
                    defaultProps: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                        className: classes
                    }),
                    autoGenerateKey: false
                });
            }
            if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(content)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children) ? '/' : children);
        }
        BreadcrumbDivider.handledProps = ["as", "children", "className", "content", "icon"];
        BreadcrumbDivider.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** Render as an `Icon` component with `divider` class instead of a `div`. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand
        } : undefined;
        BreadcrumbDivider.create = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["createShorthandFactory"])(BreadcrumbDivider, function (icon) {
            return {
                icon: icon
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (BreadcrumbDivider);
        /***/ 
    }),
    /* 549 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return BreadcrumbSection; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /**
         * A section sub-component for Breadcrumb component.
         */
        var BreadcrumbSection = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(BreadcrumbSection, _Component);
            function BreadcrumbSection() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BreadcrumbSection);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(BreadcrumbSection)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeElementType", function () {
                    var _this$props = _this.props, link = _this$props.link, onClick = _this$props.onClick;
                    if (link || onClick)
                        return 'a';
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    return lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClick', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(BreadcrumbSection, [{
                    key: "render",
                    value: function render() {
                        var _this$props2 = this.props, active = _this$props2.active, children = _this$props2.children, className = _this$props2.className, content = _this$props2.content, href = _this$props2.href;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(active, 'active'), 'section', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(BreadcrumbSection, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(BreadcrumbSection, this.props, this.computeElementType);
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            href: href,
                            onClick: this.handleClick
                        }), _lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(children) ? content : children);
                    }
                }]);
            return BreadcrumbSection;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(BreadcrumbSection, "handledProps", ["active", "as", "children", "className", "content", "href", "link", "onClick"]);
        BreadcrumbSection.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** Style as the currently active section. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** Render as an `a` tag instead of a `div` and adds the href attribute. */
            href: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].disallow(['link']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string]),
            /** Render as an `a` tag instead of a `div`. */
            link: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].disallow(['href']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool]),
            /**
             * Called on click. When passed, the component will render as an `a`
             * tag by default instead of a `div`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func
        } : undefined;
        BreadcrumbSection.create = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthandFactory"])(BreadcrumbSection, function (content) {
            return {
                content: content,
                link: true
            };
        });
        /***/ 
    }),
    /* 550 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(551);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Form__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 551 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _FormButton__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(552);
        /* harmony import */ var _FormCheckbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(554);
        /* harmony import */ var _FormDropdown__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(555);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(553);
        /* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(556);
        /* harmony import */ var _FormInput__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(557);
        /* harmony import */ var _FormRadio__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(560);
        /* harmony import */ var _FormSelect__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(561);
        /* harmony import */ var _FormTextArea__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(562);
        /**
         * A Form displays a set of related user input fields in a structured way.
         * @see Button
         * @see Checkbox
         * @see Dropdown
         * @see Input
         * @see Message
         * @see Radio
         * @see Select
         * @see Visibility
         */
        var Form = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Form, _Component);
            function Form() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Form);
                for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
                    _args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Form)).call.apply(_getPrototypeOf2, [this].concat(_args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleSubmit", function (e) {
                    var action = _this.props.action; // Heads up! Third party libs can pass own data as first argument, we need to check that it has preventDefault()
                    // method.
                    if (typeof action !== 'string')
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(e, 'preventDefault');
                    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
                        args[_key2 - 1] = arguments[_key2];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default.a.apply(void 0, [_this.props, 'onSubmit', e, _this.props].concat(args));
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Form, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, action = _this$props.action, children = _this$props.children, className = _this$props.className, error = _this$props.error, inverted = _this$props.inverted, loading = _this$props.loading, reply = _this$props.reply, size = _this$props.size, success = _this$props.success, unstackable = _this$props.unstackable, warning = _this$props.warning, widths = _this$props.widths;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(reply, 'reply'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(success, 'success'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(unstackable, 'unstackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(warning, 'warning'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useWidthProp"])(widths, null, true), 'form', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(Form, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(Form, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            action: action,
                            className: classes,
                            onSubmit: this.handleSubmit
                        }), children);
                    }
                }]);
            return Form;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "defaultProps", {
            as: 'form'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Field", _FormField__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Button", _FormButton__WEBPACK_IMPORTED_MODULE_14__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Checkbox", _FormCheckbox__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Dropdown", _FormDropdown__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Group", _FormGroup__WEBPACK_IMPORTED_MODULE_18__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Input", _FormInput__WEBPACK_IMPORTED_MODULE_19__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Radio", _FormRadio__WEBPACK_IMPORTED_MODULE_20__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "Select", _FormSelect__WEBPACK_IMPORTED_MODULE_21__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "TextArea", _FormTextArea__WEBPACK_IMPORTED_MODULE_22__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Form, "handledProps", ["action", "as", "children", "className", "error", "inverted", "loading", "onSubmit", "reply", "size", "success", "unstackable", "warning", "widths"]);
        Form.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** The HTML form action */
            action: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Automatically show any error Message children. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A form can have its color inverted for contrast. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Automatically show a loading indicator. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** The HTML form submit handler. */
            onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** A comment can contain a form to reply to a comment. This may have arbitrary content. */
            reply: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A form can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_9___default()(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].SIZES, 'medium')),
            /** Automatically show any success Message children. */
            success: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A form can prevent itself from stacking on mobile. */
            unstackable: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Automatically show any warning Message children. */
            warning: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Forms can automatically divide fields to be equal width. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['equal'])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Form);
        /***/ 
    }),
    /* 552 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _elements_Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(434);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Button} />.
         * @see Button
         * @see Form
         */
        function FormButton(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormButton, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormButton, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormButton.handledProps = ["as", "control"];
        FormButton.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormButton.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _elements_Button__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormButton);
        /***/ 
    }),
    /* 553 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(153);
        /* harmony import */ var _modules_Checkbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(507);
        /* harmony import */ var _addons_Radio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(505);
        /**
         * A field is a form element containing a label and an input.
         * @see Form
         * @see Button
         * @see Checkbox
         * @see Dropdown
         * @see Input
         * @see Radio
         * @see Select
         * @see Visibility
         */
        function FormField(props) {
            var children = props.children, className = props.className, content = props.content, control = props.control, disabled = props.disabled, error = props.error, inline = props.inline, label = props.label, required = props.required, type = props.type, width = props.width;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_4___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_7__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_7__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_7__["useKeyOnly"])(inline, 'inline'), Object(_lib__WEBPACK_IMPORTED_MODULE_7__["useKeyOnly"])(required, 'required'), Object(_lib__WEBPACK_IMPORTED_MODULE_7__["useWidthProp"])(width, 'wide'), 'field', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_7__["getUnhandledProps"])(FormField, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_7__["getElementType"])(FormField, props); // ----------------------------------------
            // No Control
            // ----------------------------------------
            if (lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(control)) {
                if (lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(label)) {
                    return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                        className: classes
                    }), _lib__WEBPACK_IMPORTED_MODULE_7__["childrenUtils"].isNil(children) ? content : children);
                }
                return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), Object(_lib__WEBPACK_IMPORTED_MODULE_7__["createHTMLLabel"])(label, {
                    autoGenerateKey: false
                }));
            } // ----------------------------------------
            // Checkbox/Radio Control
            // ----------------------------------------
            var controlProps = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                content: content,
                children: children,
                disabled: disabled,
                required: required,
                type: type // wrap HTML checkboxes/radios in the label
            });
            if (control === 'input' && (type === 'checkbox' || type === 'radio')) {
                return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, {
                    className: classes
                }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("label", null, Object(react__WEBPACK_IMPORTED_MODULE_6__["createElement"])(control, controlProps), " ", label));
            } // pass label prop to controls that support it
            if (control === _modules_Checkbox__WEBPACK_IMPORTED_MODULE_8__["default"] || control === _addons_Radio__WEBPACK_IMPORTED_MODULE_9__["default"]) {
                return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, {
                    className: classes
                }, Object(react__WEBPACK_IMPORTED_MODULE_6__["createElement"])(control, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, controlProps, {
                    label: label
                })));
            } // ----------------------------------------
            // Other Control
            // ----------------------------------------
            return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, {
                className: classes
            }, Object(_lib__WEBPACK_IMPORTED_MODULE_7__["createHTMLLabel"])(label, {
                defaultProps: {
                    htmlFor: lodash_get__WEBPACK_IMPORTED_MODULE_2___default()(controlProps, 'id')
                },
                autoGenerateKey: false
            }), Object(react__WEBPACK_IMPORTED_MODULE_6__["createElement"])(control, controlProps));
        }
        FormField.handledProps = ["as", "children", "className", "content", "control", "disabled", "error", "inline", "label", "required", "type", "width"];
        FormField.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].contentShorthand,
            /**
             * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input').
             * Extra FormField props are passed to the control component.
             * Mutually exclusive with children.
             */
            control: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].some([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['button', 'input', 'select', 'textarea'])]),
            /** Individual fields may be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
            /** Individual fields may display an error state. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
            /** A field can have its label next to instead of above it. */
            inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
            // Heads Up!
            // Do not disallow children with `label` shorthand
            // The `control` might accept a `label` prop and `children`
            /** Mutually exclusive with children. */
            label: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object]),
            /** A field can show that input is mandatory. */
            required: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
            /** Passed to the control component (i.e. <input type='password' />) */
            type: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].demand(['control'])]),
            /** A field can specify its width in grid columns */
            width: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_7__["SUI"].WIDTHS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FormField);
        /***/ 
    }),
    /* 554 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(507);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Checkbox} />.
         * @see Checkbox
         * @see Form
         */
        function FormCheckbox(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormCheckbox, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormCheckbox, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormCheckbox.handledProps = ["as", "control"];
        FormCheckbox.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormCheckbox.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _modules_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormCheckbox);
        /***/ 
    }),
    /* 555 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(513);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Dropdown} />.
         * @see Dropdown
         * @see Form
         */
        function FormDropdown(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormDropdown, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormDropdown, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormDropdown.handledProps = ["as", "control"];
        FormDropdown.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormDropdown.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _modules_Dropdown__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormDropdown);
        /***/ 
    }),
    /* 556 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A set of fields can appear grouped together.
         * @see Form
         */
        function FormGroup(props) {
            var children = props.children, className = props.className, grouped = props.grouped, inline = props.inline, unstackable = props.unstackable, widths = props.widths;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(grouped, 'grouped'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(inline, 'inline'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(unstackable, 'unstackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useWidthProp"])(widths, null, true), 'fields', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(FormGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(FormGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), children);
        }
        FormGroup.handledProps = ["as", "children", "className", "grouped", "inline", "unstackable", "widths"];
        FormGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Fields can show related choices. */
            grouped: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].disallow(['inline']), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]),
            /** Multiple fields may be inline in a row. */
            inline: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].disallow(['grouped']), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]),
            /** A form group can prevent itself from stacking on mobile. */
            unstackable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Fields Groups can specify their width in grid columns or automatically divide fields to be equal width. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].WIDTHS).concat(['equal']))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FormGroup);
        /***/ 
    }),
    /* 557 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _elements_Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(558);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Input} />.
         * @see Form
         * @see Input
         */
        function FormInput(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormInput, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormInput, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormInput.handledProps = ["as", "control"];
        FormInput.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormInput.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _elements_Input__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormInput);
        /***/ 
    }),
    /* 558 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(559);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Input__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 559 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(153);
        /* harmony import */ var _elements_Button__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(434);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(462);
        /* harmony import */ var _elements_Label__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(527);
        /**
         * An Input is a field used to elicit a response from a user.
         * @see Button
         * @see Form
         * @see Icon
         * @see Label
         */
        var Input = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(Input, _Component);
            function Input() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this, Input);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Input)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeIcon", function () {
                    var _this$props = _this.props, loading = _this$props.loading, icon = _this$props.icon;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_14___default()(icon))
                        return icon;
                    if (loading)
                        return 'spinner';
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "computeTabIndex", function () {
                    var _this$props2 = _this.props, disabled = _this$props2.disabled, tabIndex = _this$props2.tabIndex;
                    if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_14___default()(tabIndex))
                        return tabIndex;
                    if (disabled)
                        return -1;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "focus", function () {
                    return _this.inputRef.focus();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "select", function () {
                    return _this.inputRef.select();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleChange", function (e) {
                    var value = lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(e, 'target.value');
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(_this.props, 'onChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.props, {
                        value: value
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleChildOverrides", function (child, defaultProps) {
                    return _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, defaultProps, child.props, {
                        ref: function ref(c) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(child, 'ref', c);
                            _this.handleInputRef(c);
                        }
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "handleInputRef", function (c) {
                    return _this.inputRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default()(_this)), "partitionProps", function () {
                    var _this$props3 = _this.props, disabled = _this$props3.disabled, type = _this$props3.type;
                    var tabIndex = _this.computeTabIndex();
                    var unhandled = Object(_lib__WEBPACK_IMPORTED_MODULE_18__["getUnhandledProps"])(Input, _this.props);
                    var _partitionHTMLProps = Object(_lib__WEBPACK_IMPORTED_MODULE_18__["partitionHTMLProps"])(unhandled), _partitionHTMLProps2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_partitionHTMLProps, 2), htmlInputProps = _partitionHTMLProps2[0], rest = _partitionHTMLProps2[1];
                    return [_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, htmlInputProps, {
                            disabled: disabled,
                            type: type,
                            tabIndex: tabIndex,
                            onChange: _this.handleChange,
                            ref: _this.handleInputRef
                        }), rest];
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(Input, [{
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props4 = this.props, action = _this$props4.action, actionPosition = _this$props4.actionPosition, children = _this$props4.children, className = _this$props4.className, disabled = _this$props4.disabled, error = _this$props4.error, fluid = _this$props4.fluid, focus = _this$props4.focus, icon = _this$props4.icon, iconPosition = _this$props4.iconPosition, input = _this$props4.input, inverted = _this$props4.inverted, label = _this$props4.label, labelPosition = _this$props4.labelPosition, loading = _this$props4.loading, size = _this$props4.size, transparent = _this$props4.transparent, type = _this$props4.type;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_15___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(focus, 'focus'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(transparent, 'transparent'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useValueAndKey"])(actionPosition, 'action') || Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(action, 'action'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useValueAndKey"])(iconPosition, 'icon') || Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(icon || loading, 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useValueAndKey"])(labelPosition, 'labeled') || Object(_lib__WEBPACK_IMPORTED_MODULE_18__["useKeyOnly"])(label, 'labeled'), 'input', className);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_18__["getElementType"])(Input, this.props);
                        var _this$partitionProps = this.partitionProps(), _this$partitionProps2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_this$partitionProps, 2), htmlInputProps = _this$partitionProps2[0], rest = _this$partitionProps2[1]; // Render with children
                        // ----------------------------------------
                        if (!_lib__WEBPACK_IMPORTED_MODULE_18__["childrenUtils"].isNil(children)) {
                            // add htmlInputProps to the `<input />` child
                            var childElements = lodash_map__WEBPACK_IMPORTED_MODULE_11___default()(react__WEBPACK_IMPORTED_MODULE_17__["Children"].toArray(children), function (child) {
                                if (child.type !== 'input')
                                    return child;
                                return Object(react__WEBPACK_IMPORTED_MODULE_17__["cloneElement"])(child, _this2.handleChildOverrides(child, htmlInputProps));
                            });
                            return react__WEBPACK_IMPORTED_MODULE_17___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes
                            }), childElements);
                        } // Render Shorthand
                        // ----------------------------------------
                        var actionElement = _elements_Button__WEBPACK_IMPORTED_MODULE_19__["default"].create(action, {
                            autoGenerateKey: false
                        });
                        var labelElement = _elements_Label__WEBPACK_IMPORTED_MODULE_21__["default"].create(label, {
                            defaultProps: {
                                className: classnames__WEBPACK_IMPORTED_MODULE_15___default()('label', // add 'left|right corner'
                                lodash_includes__WEBPACK_IMPORTED_MODULE_10___default()(labelPosition, 'corner') && labelPosition)
                            },
                            autoGenerateKey: false
                        });
                        return react__WEBPACK_IMPORTED_MODULE_17___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), actionPosition === 'left' && actionElement, labelPosition !== 'right' && labelElement, Object(_lib__WEBPACK_IMPORTED_MODULE_18__["createHTMLInput"])(input || type, {
                            defaultProps: htmlInputProps,
                            autoGenerateKey: false
                        }), _elements_Icon__WEBPACK_IMPORTED_MODULE_20__["default"].create(this.computeIcon(), {
                            autoGenerateKey: false
                        }), actionPosition !== 'left' && actionElement, labelPosition === 'right' && labelElement);
                    }
                }]);
            return Input;
        }(react__WEBPACK_IMPORTED_MODULE_17__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Input, "defaultProps", {
            type: 'text'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default()(Input, "handledProps", ["action", "actionPosition", "as", "children", "className", "disabled", "error", "fluid", "focus", "icon", "iconPosition", "input", "inverted", "label", "labelPosition", "loading", "onChange", "size", "tabIndex", "transparent", "type"]);
        Input.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_18__["customPropTypes"].as,
            /** An Input can be formatted to alert the user to an action they may perform. */
            action: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_18__["customPropTypes"].itemShorthand]),
            /** An action can appear along side an Input on the left or right. */
            actionPosition: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOf(['left']),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.string,
            /** An Input field can show that it is disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** An Input field can show the data contains errors. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** Take on the size of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** An Input field can show a user is currently interacting with it. */
            focus: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** Optional Icon to display inside the Input. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_18__["customPropTypes"].itemShorthand]),
            /** An Icon can appear inside an Input on the left or right. */
            iconPosition: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOf(['left']),
            /** Shorthand for creating the HTML Input. */
            input: _lib__WEBPACK_IMPORTED_MODULE_18__["customPropTypes"].itemShorthand,
            /** Format to appear on dark backgrounds. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** Optional Label to display along side the Input. */
            label: _lib__WEBPACK_IMPORTED_MODULE_18__["customPropTypes"].itemShorthand,
            /** A Label can appear outside an Input on the left or right. */
            labelPosition: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOf(['left', 'right', 'left corner', 'right corner']),
            /** An Icon Input field can show that it is currently loading data. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /**
             * Called on change.
             *
             * @param {ChangeEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and a proposed value.
             */
            onChange: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.func,
            /** An Input can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_18__["SUI"].SIZES),
            /** An Input can receive focus. */
            tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.string]),
            /** Transparent Input has no background. */
            transparent: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.bool,
            /** The HTML input type. */
            type: prop_types__WEBPACK_IMPORTED_MODULE_16___default.a.string
        } : undefined;
        Input.create = Object(_lib__WEBPACK_IMPORTED_MODULE_18__["createShorthandFactory"])(Input, function (type) {
            return {
                type: type
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Input);
        /***/ 
    }),
    /* 560 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _addons_Radio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(505);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Radio} />.
         * @see Form
         * @see Radio
         */
        function FormRadio(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormRadio, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormRadio, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormRadio.handledProps = ["as", "control"];
        FormRadio.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormRadio.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _addons_Radio__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormRadio);
        /***/ 
    }),
    /* 561 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(153);
        /* harmony import */ var _addons_Select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(511);
        /* harmony import */ var _modules_Dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(513);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={Select} />.
         * @see Form
         * @see Select
         */
        function FormSelect(props) {
            var control = props.control, options = props.options;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_3__["getUnhandledProps"])(FormSelect, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_3__["getElementType"])(FormSelect, props);
            return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control,
                options: options
            }));
        }
        FormSelect.handledProps = ["as", "control", "options"];
        FormSelect.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_3__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes.control,
            /** Array of Dropdown.Item props e.g. `{ text: '', value: '' }` */
            options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_modules_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].Item.propTypes)).isRequired
        } : undefined;
        FormSelect.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_6__["default"],
            control: _addons_Select__WEBPACK_IMPORTED_MODULE_4__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormSelect);
        /***/ 
    }),
    /* 562 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _addons_TextArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(536);
        /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(553);
        /**
         * Sugar for <Form.Field control={TextArea} />.
         * @see Form
         * @see TextArea
         */
        function FormTextArea(props) {
            var control = props.control;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(FormTextArea, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getElementType"])(FormTextArea, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                control: control
            }));
        }
        FormTextArea.handledProps = ["as", "control"];
        FormTextArea.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as,
            /** A FormField control prop. */
            control: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes.control
        } : undefined;
        FormTextArea.defaultProps = {
            as: _FormField__WEBPACK_IMPORTED_MODULE_4__["default"],
            control: _addons_TextArea__WEBPACK_IMPORTED_MODULE_3__["default"]
        };
        /* harmony default export */ __webpack_exports__["default"] = (FormTextArea);
        /***/ 
    }),
    /* 563 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(564);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Grid__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 564 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _GridColumn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(565);
        /* harmony import */ var _GridRow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(566);
        /**
         * A grid is used to harmonize negative space in a layout.
         */
        function Grid(props) {
            var celled = props.celled, centered = props.centered, children = props.children, className = props.className, columns = props.columns, container = props.container, divided = props.divided, doubling = props.doubling, inverted = props.inverted, padded = props.padded, relaxed = props.relaxed, reversed = props.reversed, stackable = props.stackable, stretched = props.stretched, textAlign = props.textAlign, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(container, 'container'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(doubling, 'doubling'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(stackable, 'stackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(stretched, 'stretched'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(celled, 'celled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(divided, 'divided'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(padded, 'padded'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(relaxed, 'relaxed'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useMultipleProp"])(reversed, 'reversed'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useVerticalAlignProp"])(verticalAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useWidthProp"])(columns, 'column', true), 'grid', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(Grid, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(Grid, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), children);
        }
        Grid.handledProps = ["as", "celled", "centered", "children", "className", "columns", "container", "divided", "doubling", "inverted", "padded", "relaxed", "reversed", "stackable", "stretched", "textAlign", "verticalAlign"];
        Grid.Column = _GridColumn__WEBPACK_IMPORTED_MODULE_6__["default"];
        Grid.Row = _GridRow__WEBPACK_IMPORTED_MODULE_7__["default"];
        Grid.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** A grid can have rows divided into cells. */
            celled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['internally'])]),
            /** A grid can have its columns centered. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Represents column count per row in Grid. */
            columns: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].WIDTHS).concat(['equal'])),
            /** A grid can be combined with a container to use the available layout and alignment. */
            container: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A grid can have dividers between its columns. */
            divided: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['vertically'])]),
            /** A grid can double its column width on tablet and mobile sizes. */
            doubling: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A grid's colors can be inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A grid can preserve its vertical and horizontal gutters on first and last columns. */
            padded: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['horizontally', 'vertically'])]),
            /** A grid can increase its gutters to allow for more negative space. */
            relaxed: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['very'])]),
            /** A grid can specify that its columns should reverse order at different device sizes. */
            reversed: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].multipleProp(['computer', 'computer vertically', 'mobile', 'mobile vertically', 'tablet', 'tablet vertically']),
            /** A grid can have its columns stack on-top of each other after reaching mobile breakpoints. */
            stackable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A grid can stretch its contents to take up the entire grid height. */
            stretched: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A grid can specify its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS),
            /** A grid can specify its vertical alignment to have all its columns vertically centered. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Grid);
        /***/ 
    }),
    /* 565 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A column sub-component for Grid.
         */
        function GridColumn(props) {
            var children = props.children, className = props.className, computer = props.computer, color = props.color, floated = props.floated, largeScreen = props.largeScreen, mobile = props.mobile, only = props.only, stretched = props.stretched, tablet = props.tablet, textAlign = props.textAlign, verticalAlign = props.verticalAlign, widescreen = props.widescreen, width = props.width;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(color, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(stretched, 'stretched'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useMultipleProp"])(only, 'only'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useVerticalAlignProp"])(verticalAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(computer, 'wide computer'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(largeScreen, 'wide large screen'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(mobile, 'wide mobile'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(tablet, 'wide tablet'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(widescreen, 'wide widescreen'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useWidthProp"])(width, 'wide'), 'column', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(GridColumn, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(GridColumn, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), children);
        }
        GridColumn.handledProps = ["as", "children", "className", "color", "computer", "floated", "largeScreen", "mobile", "only", "stretched", "tablet", "textAlign", "verticalAlign", "widescreen", "width"];
        GridColumn.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** A grid column can be colored. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].COLORS),
            /** A column can specify a width for a computer. */
            computer: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['width']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)]),
            /** A column can sit flush against the left or right edge of a row. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].FLOATS),
            /** A column can specify a width for a large screen device. */
            largeScreen: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['width']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)]),
            /** A column can specify a width for a mobile device. */
            mobile: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['width']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)]),
            /** A column can appear only for a specific device, or screen sizes. */
            only: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].multipleProp(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].VISIBILITY),
            /** A column can stretch its contents to take up the entire grid or row height. */
            stretched: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A column can specify a width for a tablet device. */
            tablet: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['width']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)]),
            /** A column can specify its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].TEXT_ALIGNMENTS),
            /** A column can specify its vertical alignment to have all its columns vertically centered. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].VERTICAL_ALIGNMENTS),
            /** A column can specify a width for a wide screen device. */
            widescreen: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['width']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)]),
            /** Represents width of column. */
            width: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['computer', 'largeScreen', 'mobile', 'tablet', 'widescreen']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].WIDTHS)])
        } : undefined;
        GridColumn.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(GridColumn, function (children) {
            return {
                children: children
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (GridColumn);
        /***/ 
    }),
    /* 566 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A row sub-component for Grid.
         */
        function GridRow(props) {
            var centered = props.centered, children = props.children, className = props.className, color = props.color, columns = props.columns, divided = props.divided, only = props.only, reversed = props.reversed, stretched = props.stretched, textAlign = props.textAlign, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(color, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(divided, 'divided'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(stretched, 'stretched'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useMultipleProp"])(only, 'only'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useMultipleProp"])(reversed, 'reversed'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useVerticalAlignProp"])(verticalAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useWidthProp"])(columns, 'column', true), 'row', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(GridRow, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(GridRow, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), children);
        }
        GridRow.handledProps = ["as", "centered", "children", "className", "color", "columns", "divided", "only", "reversed", "stretched", "textAlign", "verticalAlign"];
        GridRow.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** A row can have its columns centered. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A grid row can be colored. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].COLORS),
            /** Represents column count per line in Row. */
            columns: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].WIDTHS).concat(['equal'])),
            /** A row can have dividers between its columns. */
            divided: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A row can appear only for a specific device, or screen sizes. */
            only: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].multipleProp(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].VISIBILITY),
            /** A row can specify that its columns should reverse order at different device sizes. */
            reversed: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].multipleProp(['computer', 'computer vertically', 'mobile', 'mobile vertically', 'tablet', 'tablet vertically']),
            /** A row can stretch its contents to take up the entire column height. */
            stretched: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A row can specify its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS),
            /** A row can specify its vertical alignment to have all its columns vertically centered. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (GridRow);
        /***/ 
    }),
    /* 567 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(568);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Message__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 568 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Message; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(462);
        /* harmony import */ var _MessageContent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(569);
        /* harmony import */ var _MessageHeader__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(570);
        /* harmony import */ var _MessageList__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(571);
        /* harmony import */ var _MessageItem__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(572);
        /**
         * A message displays information that explains nearby content.
         * @see Form
         */
        var Message = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Message, _Component);
            function Message() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Message);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Message)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleDismiss", function (e) {
                    var onDismiss = _this.props.onDismiss;
                    if (onDismiss)
                        onDismiss(e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Message, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, attached = _this$props.attached, children = _this$props.children, className = _this$props.className, color = _this$props.color, compact = _this$props.compact, content = _this$props.content, error = _this$props.error, floating = _this$props.floating, header = _this$props.header, hidden = _this$props.hidden, icon = _this$props.icon, info = _this$props.info, list = _this$props.list, negative = _this$props.negative, onDismiss = _this$props.onDismiss, positive = _this$props.positive, size = _this$props.size, success = _this$props.success, visible = _this$props.visible, warning = _this$props.warning;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(floating, 'floating'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(hidden, 'hidden'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(icon, 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(info, 'info'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(negative, 'negative'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(positive, 'positive'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(success, 'success'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(visible, 'visible'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(warning, 'warning'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOrValueAndKey"])(attached, 'attached'), 'message', className);
                        var dismissIcon = onDismiss && react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_elements_Icon__WEBPACK_IMPORTED_MODULE_14__["default"], {
                            name: "close",
                            onClick: this.handleDismiss
                        });
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(Message, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(Message, this.props);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes
                            }), dismissIcon, children);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), dismissIcon, _elements_Icon__WEBPACK_IMPORTED_MODULE_14__["default"].create(icon, {
                            autoGenerateKey: false
                        }), (!lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(header) || !lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(content) || !lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(list)) && react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_MessageContent__WEBPACK_IMPORTED_MODULE_15__["default"], null, _MessageHeader__WEBPACK_IMPORTED_MODULE_16__["default"].create(header, {
                            autoGenerateKey: false
                        }), _MessageList__WEBPACK_IMPORTED_MODULE_17__["default"].create(list, {
                            autoGenerateKey: false
                        }), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createHTMLParagraph"])(content, {
                            autoGenerateKey: false
                        })));
                    }
                }]);
            return Message;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Message, "Content", _MessageContent__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Message, "Header", _MessageHeader__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Message, "List", _MessageList__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Message, "Item", _MessageItem__WEBPACK_IMPORTED_MODULE_18__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Message, "handledProps", ["as", "attached", "children", "className", "color", "compact", "content", "error", "floating", "header", "hidden", "icon", "info", "list", "negative", "onDismiss", "positive", "size", "success", "visible", "warning"]);
        Message.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** A message can be formatted to attach itself to other content. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['bottom', 'top'])]),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** A message can be formatted to be different colors. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].COLORS),
            /** A message can only take up the width of its content. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /** A message may be formatted to display a negative message. Same as `negative`. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A message can float above content that it is related to. */
            floating: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Shorthand for MessageHeader. */
            header: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A message can be hidden. */
            hidden: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A message can contain an icon. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([_lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool]),
            /** A message may be formatted to display information. */
            info: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Array shorthand items for the MessageList. Mutually exclusive with children. */
            list: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].collectionShorthand,
            /** A message may be formatted to display a negative message. Same as `error`. */
            negative: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /**
             * A message that the user can choose to hide.
             * Called when the user clicks the "x" icon. This also adds the "x" icon.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** A message may be formatted to display a positive message.  Same as `success`. */
            positive: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A message can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_9___default()(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].SIZES, 'medium')),
            /** A message may be formatted to display a positive message.  Same as `positive`. */
            success: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A message can be set to visible to force itself to be shown. */
            visible: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A message may be formatted to display warning messages. */
            warning: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 569 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A message can contain a content.
         */
        function MessageContent(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(MessageContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(MessageContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        MessageContent.handledProps = ["as", "children", "className", "content"];
        MessageContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (MessageContent);
        /***/ 
    }),
    /* 570 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A message can contain a header.
         */
        function MessageHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(MessageHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(MessageHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        MessageHeader.handledProps = ["as", "children", "className", "content"];
        MessageHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        MessageHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(MessageHeader, function (val) {
            return {
                content: val
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (MessageHeader);
        /***/ 
    }),
    /* 571 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _MessageItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(572);
        /**
         * A message can contain a list of items.
         */
        function MessageList(props) {
            var children = props.children, className = props.className, items = props.items;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('list', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(MessageList, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(MessageList, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? lodash_map__WEBPACK_IMPORTED_MODULE_1___default()(items, _MessageItem__WEBPACK_IMPORTED_MODULE_6__["default"].create) : children);
        }
        MessageList.handledProps = ["as", "children", "className", "items"];
        MessageList.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand Message.Items. */
            items: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].collectionShorthand
        } : undefined;
        MessageList.defaultProps = {
            as: 'ul'
        };
        MessageList.create = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthandFactory"])(MessageList, function (val) {
            return {
                items: val
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (MessageList);
        /***/ 
    }),
    /* 572 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A message list can contain an item.
         */
        function MessageItem(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(MessageItem, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(MessageItem, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        MessageItem.handledProps = ["as", "children", "className", "content"];
        MessageItem.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        MessageItem.defaultProps = {
            as: 'li'
        };
        MessageItem.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(MessageItem, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (MessageItem);
        /***/ 
    }),
    /* 573 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(574);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Table__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 574 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _TableBody__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(575);
        /* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(576);
        /* harmony import */ var _TableFooter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(577);
        /* harmony import */ var _TableHeader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(578);
        /* harmony import */ var _TableHeaderCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(579);
        /* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(580);
        /**
         * A table displays a collections of data grouped into rows.
         */
        function Table(props) {
            var attached = props.attached, basic = props.basic, celled = props.celled, children = props.children, className = props.className, collapsing = props.collapsing, color = props.color, columns = props.columns, compact = props.compact, definition = props.definition, fixed = props.fixed, footerRow = props.footerRow, headerRow = props.headerRow, inverted = props.inverted, padded = props.padded, renderBodyRow = props.renderBodyRow, selectable = props.selectable, singleLine = props.singleLine, size = props.size, sortable = props.sortable, stackable = props.stackable, striped = props.striped, structured = props.structured, tableData = props.tableData, textAlign = props.textAlign, unstackable = props.unstackable, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(celled, 'celled'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(collapsing, 'collapsing'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(definition, 'definition'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(fixed, 'fixed'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(selectable, 'selectable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(singleLine, 'single line'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(sortable, 'sortable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(stackable, 'stackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(striped, 'striped'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(structured, 'structured'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(unstackable, 'unstackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(padded, 'padded'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useVerticalAlignProp"])(verticalAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useWidthProp"])(columns, 'column'), 'table', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(Table, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(Table, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), headerRow && react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_TableHeader__WEBPACK_IMPORTED_MODULE_10__["default"], null, _TableRow__WEBPACK_IMPORTED_MODULE_12__["default"].create(headerRow, {
                defaultProps: {
                    cellAs: 'th'
                }
            })), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_TableBody__WEBPACK_IMPORTED_MODULE_7__["default"], null, renderBodyRow && lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(tableData, function (data, index) {
                return _TableRow__WEBPACK_IMPORTED_MODULE_12__["default"].create(renderBodyRow(data, index));
            })), footerRow && react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_TableFooter__WEBPACK_IMPORTED_MODULE_9__["default"], null, _TableRow__WEBPACK_IMPORTED_MODULE_12__["default"].create(footerRow)));
        }
        Table.handledProps = ["as", "attached", "basic", "celled", "children", "className", "collapsing", "color", "columns", "compact", "definition", "fixed", "footerRow", "headerRow", "inverted", "padded", "renderBodyRow", "selectable", "singleLine", "size", "sortable", "stackable", "striped", "structured", "tableData", "textAlign", "unstackable", "verticalAlign"];
        Table.defaultProps = {
            as: 'table'
        };
        Table.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Attach table to other content */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['top', 'bottom'])]),
            /** A table can reduce its complexity to increase readability. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['very']), prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool]),
            /** A table may be divided each row into separate cells. */
            celled: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** A table can be collapsing, taking up only as much space as its rows. */
            collapsing: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can be given a color to distinguish it from other tables. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].COLORS),
            /** A table can specify its column count to divide its content evenly. */
            columns: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].WIDTHS),
            /** A table may sometimes need to be more compact to make more rows visible at a time. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['very'])]),
            /** A table may be formatted to emphasize a first column that defines a rows content. */
            definition: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /**
             * A table can use fixed a special faster form of table rendering that does not resize table cells based on content
             */
            fixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand for a TableRow to be placed within Table.Footer. */
            footerRow: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand,
            /** Shorthand for a TableRow to be placed within Table.Header. */
            headerRow: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].itemShorthand,
            /** A table's colors can be inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table may sometimes need to be more padded for legibility. */
            padded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['very'])]),
            /**
             * Mapped over `tableData` and should return shorthand for each Table.Row to be placed within Table.Body.
             *
             * @param {*} data - An element in the `tableData` array.
             * @param {number} index - The index of the current element in `tableData`.
             * @returns {*} Shorthand for a Table.Row.
             */
            renderBodyRow: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].disallow(['children']), _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].demand(['tableData']), prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]),
            /** A table can have its rows appear selectable. */
            selectable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can specify that its cell contents should remain on a single line and not wrap. */
            singleLine: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can also be small or large. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].SIZES, 'mini', 'tiny', 'medium', 'big', 'huge', 'massive')),
            /** A table may allow a user to sort contents by clicking on a table header. */
            sortable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can specify how it stacks table content responsively. */
            stackable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can stripe alternate rows of content with a darker color to increase contrast. */
            striped: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can be formatted to display complex structured data. */
            structured: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Data to be passed to the renderBodyRow function. */
            tableData: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].disallow(['children']), _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].demand(['renderBodyRow']), prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]),
            /** A table can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].TEXT_ALIGNMENTS, 'justified')),
            /** A table can specify how it stacks table content responsively. */
            unstackable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table can adjust its text alignment. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        Table.Body = _TableBody__WEBPACK_IMPORTED_MODULE_7__["default"];
        Table.Cell = _TableCell__WEBPACK_IMPORTED_MODULE_8__["default"];
        Table.Footer = _TableFooter__WEBPACK_IMPORTED_MODULE_9__["default"];
        Table.Header = _TableHeader__WEBPACK_IMPORTED_MODULE_10__["default"];
        Table.HeaderCell = _TableHeaderCell__WEBPACK_IMPORTED_MODULE_11__["default"];
        Table.Row = _TableRow__WEBPACK_IMPORTED_MODULE_12__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Table);
        /***/ 
    }),
    /* 575 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        function TableBody(props) {
            var children = props.children, className = props.className;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(TableBody, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(TableBody, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), children);
        }
        TableBody.handledProps = ["as", "children", "className"];
        TableBody.defaultProps = {
            as: 'tbody'
        };
        TableBody.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (TableBody);
        /***/ 
    }),
    /* 576 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(462);
        /**
         * A table row can have cells.
         */
        function TableCell(props) {
            var active = props.active, children = props.children, className = props.className, collapsing = props.collapsing, content = props.content, disabled = props.disabled, error = props.error, icon = props.icon, negative = props.negative, positive = props.positive, selectable = props.selectable, singleLine = props.singleLine, textAlign = props.textAlign, verticalAlign = props.verticalAlign, warning = props.warning, width = props.width;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(collapsing, 'collapsing'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(negative, 'negative'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(positive, 'positive'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(selectable, 'selectable'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(singleLine, 'single line'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(warning, 'warning'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useVerticalAlignProp"])(verticalAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useWidthProp"])(width, 'wide'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(TableCell, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(TableCell, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _elements_Icon__WEBPACK_IMPORTED_MODULE_6__["default"].create(icon), content);
        }
        TableCell.handledProps = ["active", "as", "children", "className", "collapsing", "content", "disabled", "error", "icon", "negative", "positive", "selectable", "singleLine", "textAlign", "verticalAlign", "warning", "width"];
        TableCell.defaultProps = {
            as: 'td'
        };
        TableCell.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** A cell can be active or selected by a user. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A cell can be collapsing so that it only uses as much space as required. */
            collapsing: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A cell can be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A cell may call attention to an error or a negative value. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Add an Icon by name, props object, or pass an <Icon /> */
            icon: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand,
            /** A cell may let a user know whether a value is bad. */
            negative: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A cell may let a user know whether a value is good. */
            positive: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A cell can be selectable. */
            selectable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A cell can specify that its contents should remain on a single line and not wrap. */
            singleLine: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A table cell can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified')),
            /** A table cell can adjust its text alignment. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].VERTICAL_ALIGNMENTS),
            /** A cell may warn a user. */
            warning: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A table can specify the width of individual columns independently. */
            width: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].WIDTHS)
        } : undefined;
        TableCell.create = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthandFactory"])(TableCell, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (TableCell);
        /***/ 
    }),
    /* 577 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _TableHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(578);
        /**
         * A table can have a footer.
         */
        function TableFooter(props) {
            var as = props.as;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(TableFooter, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_TableHeader__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                as: as
            }));
        }
        TableFooter.handledProps = ["as"];
        TableFooter.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_2__["customPropTypes"].as
        } : undefined;
        TableFooter.defaultProps = {
            as: 'tfoot'
        };
        /* harmony default export */ __webpack_exports__["default"] = (TableFooter);
        /***/ 
    }),
    /* 578 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A table can have a header.
         */
        function TableHeader(props) {
            var children = props.children, className = props.className, content = props.content, fullWidth = props.fullWidth;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(fullWidth, 'full-width'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(TableHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(TableHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        TableHeader.handledProps = ["as", "children", "className", "content", "fullWidth"];
        TableHeader.defaultProps = {
            as: 'thead'
        };
        TableHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A definition table can have a full width header or footer, filling in the gap left by the first column. */
            fullWidth: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (TableHeader);
        /***/ 
    }),
    /* 579 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(576);
        /**
         * A table can have a header cell.
         */
        function TableHeaderCell(props) {
            var as = props.as, className = props.className, sorted = props.sorted;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useValueAndKey"])(sorted, 'sorted'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(TableHeaderCell, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TableCell__WEBPACK_IMPORTED_MODULE_5__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                as: as,
                className: classes
            }));
        }
        TableHeaderCell.handledProps = ["as", "className", "sorted"];
        TableHeaderCell.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** A header cell can be sorted in ascending or descending order. */
            sorted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['ascending', 'descending'])
        } : undefined;
        TableHeaderCell.defaultProps = {
            as: 'th'
        };
        /* harmony default export */ __webpack_exports__["default"] = (TableHeaderCell);
        /***/ 
    }),
    /* 580 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(576);
        /**
         * A table can have rows.
         */
        function TableRow(props) {
            var active = props.active, cellAs = props.cellAs, cells = props.cells, children = props.children, className = props.className, disabled = props.disabled, error = props.error, negative = props.negative, positive = props.positive, textAlign = props.textAlign, verticalAlign = props.verticalAlign, warning = props.warning;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(negative, 'negative'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(positive, 'positive'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(warning, 'warning'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useVerticalAlignProp"])(verticalAlign), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(TableRow, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(TableRow, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(cells, function (cell) {
                return _TableCell__WEBPACK_IMPORTED_MODULE_7__["default"].create(cell, {
                    defaultProps: {
                        as: cellAs
                    }
                });
            }));
        }
        TableRow.handledProps = ["active", "as", "cellAs", "cells", "children", "className", "disabled", "error", "negative", "positive", "textAlign", "verticalAlign", "warning"];
        TableRow.defaultProps = {
            as: 'tr',
            cellAs: 'td'
        };
        TableRow.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** A row can be active or selected by a user. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** An element type to render as (string or function). */
            cellAs: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Shorthand array of props for TableCell. */
            cells: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** A row can be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A row may call attention to an error or a negative value. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A row may let a user know whether a value is bad. */
            negative: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A row may let a user know whether a value is good. */
            positive: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A table row can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].TEXT_ALIGNMENTS, 'justified')),
            /** A table row can adjust its vertical alignment. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].VERTICAL_ALIGNMENTS),
            /** A row may warn a user. */
            warning: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
        } : undefined;
        TableRow.create = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["createShorthandFactory"])(TableRow, function (cells) {
            return {
                cells: cells
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (TableRow);
        /***/ 
    }),
    /* 581 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(582);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Container__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 582 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A container limits content to a maximum width.
         */
        function Container(props) {
            var children = props.children, className = props.className, content = props.content, fluid = props.fluid, text = props.text, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(text, 'text'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useTextAlignProp"])(textAlign), 'container', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Container, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Container, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Container.handledProps = ["as", "children", "className", "content", "fluid", "text", "textAlign"];
        Container.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Container has no maximum width. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Reduce maximum width to more naturally accommodate text. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Align container text. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].TEXT_ALIGNMENTS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Container);
        /***/ 
    }),
    /* 583 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(584);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Divider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 584 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A divider visually segments content into groups.
         */
        function Divider(props) {
            var children = props.children, className = props.className, clearing = props.clearing, content = props.content, fitted = props.fitted, hidden = props.hidden, horizontal = props.horizontal, inverted = props.inverted, section = props.section, vertical = props.vertical;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(clearing, 'clearing'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(fitted, 'fitted'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(hidden, 'hidden'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(section, 'section'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(vertical, 'vertical'), 'divider', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Divider, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Divider, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Divider.handledProps = ["as", "children", "className", "clearing", "content", "fitted", "hidden", "horizontal", "inverted", "section", "vertical"];
        Divider.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Divider can clear the content above it. */
            clearing: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Divider can be fitted without any space above or below it. */
            fitted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Divider can divide content without creating a dividing line. */
            hidden: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Divider can segment content horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Divider can have its colours inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Divider can provide greater margins to divide sections of content. */
            section: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Divider can segment content vertically. */
            vertical: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Divider);
        /***/ 
    }),
    /* 585 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(586);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Header__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 586 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(462);
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(532);
        /* harmony import */ var _HeaderSubheader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(587);
        /* harmony import */ var _HeaderContent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(588);
        /**
         * A header provides a short summary of content
         */
        function Header(props) {
            var attached = props.attached, block = props.block, children = props.children, className = props.className, color = props.color, content = props.content, disabled = props.disabled, dividing = props.dividing, floated = props.floated, icon = props.icon, image = props.image, inverted = props.inverted, size = props.size, sub = props.sub, subheader = props.subheader, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(block, 'block'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(dividing, 'dividing'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(icon === true, 'icon'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(image === true, 'image'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(sub, 'sub'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), 'header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(Header, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(Header, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            var iconElement = _elements_Icon__WEBPACK_IMPORTED_MODULE_6__["default"].create(icon, {
                autoGenerateKey: false
            });
            var imageElement = _elements_Image__WEBPACK_IMPORTED_MODULE_7__["default"].create(image, {
                autoGenerateKey: false
            });
            var subheaderElement = _HeaderSubheader__WEBPACK_IMPORTED_MODULE_8__["default"].create(subheader, {
                autoGenerateKey: false
            });
            if (iconElement || imageElement) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), iconElement || imageElement, (content || subheaderElement) && react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_HeaderContent__WEBPACK_IMPORTED_MODULE_9__["default"], null, content, subheaderElement));
            }
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), content, subheaderElement);
        }
        Header.handledProps = ["as", "attached", "block", "children", "className", "color", "content", "disabled", "dividing", "floated", "icon", "image", "inverted", "size", "sub", "subheader", "textAlign"];
        Header.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Attach header  to other content, like a segment. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['top', 'bottom'])]),
            /** Format header to appear inside a content block. */
            block: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Color of the header. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** Show that the header is inactive. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Divide header from the content below it. */
            dividing: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Header can sit to the left or right of other content. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].FLOATS),
            /** Add an icon by icon name or pass an Icon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].disallow(['image']), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand])]),
            /** Add an image by img src or pass an Image. */
            image: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].disallow(['icon']), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand])]),
            /** Inverts the color of the header for dark backgrounds. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Content headings are sized with em and are based on the font-size of their container. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'big', 'massive', 'mini')),
            /** Headers may be formatted to label smaller or de-emphasized content. */
            sub: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for Header.Subheader. */
            subheader: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand,
            /** Align header content. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS)
        } : undefined;
        Header.Content = _HeaderContent__WEBPACK_IMPORTED_MODULE_9__["default"];
        Header.Subheader = _HeaderSubheader__WEBPACK_IMPORTED_MODULE_8__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Header);
        /***/ 
    }),
    /* 587 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * Headers may contain subheaders.
         */
        function HeaderSubheader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('sub header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(HeaderSubheader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(HeaderSubheader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        HeaderSubheader.handledProps = ["as", "children", "className", "content"];
        HeaderSubheader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        HeaderSubheader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(HeaderSubheader, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (HeaderSubheader);
        /***/ 
    }),
    /* 588 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * Header content wraps the main content when there is an adjacent Icon or Image.
         */
        function HeaderContent(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(HeaderContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(HeaderContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        HeaderContent.handledProps = ["as", "children", "className", "content"];
        HeaderContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (HeaderContent);
        /***/ 
    }),
    /* 589 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(590);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _List__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 590 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _ListContent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(591);
        /* harmony import */ var _ListDescription__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(592);
        /* harmony import */ var _ListHeader__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(593);
        /* harmony import */ var _ListIcon__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(594);
        /* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(595);
        /* harmony import */ var _ListList__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(596);
        /**
         * A list groups related content.
         */
        var List = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(List, _Component);
            function List() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, List);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(List)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleItemOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, itemProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(predefinedProps, 'onClick', e, itemProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onItemClick', e, itemProps);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(List, [{
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props = this.props, animated = _this$props.animated, bulleted = _this$props.bulleted, celled = _this$props.celled, children = _this$props.children, className = _this$props.className, content = _this$props.content, divided = _this$props.divided, floated = _this$props.floated, horizontal = _this$props.horizontal, inverted = _this$props.inverted, items = _this$props.items, link = _this$props.link, ordered = _this$props.ordered, relaxed = _this$props.relaxed, selection = _this$props.selection, size = _this$props.size, verticalAlign = _this$props.verticalAlign;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(animated, 'animated'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(bulleted, 'bulleted'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(celled, 'celled'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(divided, 'divided'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(link, 'link'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(ordered, 'ordered'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(selection, 'selection'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOrValueAndKey"])(relaxed, 'relaxed'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useVerticalAlignProp"])(verticalAlign), 'list', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(List, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(List, this.props);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                                role: "list",
                                className: classes
                            }, rest), children);
                        }
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                                role: "list",
                                className: classes
                            }, rest), content);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                            role: "list",
                            className: classes
                        }, rest), lodash_map__WEBPACK_IMPORTED_MODULE_8___default()(items, function (item) {
                            return _ListItem__WEBPACK_IMPORTED_MODULE_18__["default"].create(item, {
                                overrideProps: _this2.handleItemOverrides
                            });
                        }));
                    }
                }]);
            return List;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "Content", _ListContent__WEBPACK_IMPORTED_MODULE_14__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "Description", _ListDescription__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "Header", _ListHeader__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "Icon", _ListIcon__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "Item", _ListItem__WEBPACK_IMPORTED_MODULE_18__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "List", _ListList__WEBPACK_IMPORTED_MODULE_19__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(List, "handledProps", ["animated", "as", "bulleted", "celled", "children", "className", "content", "divided", "floated", "horizontal", "inverted", "items", "link", "onItemClick", "ordered", "relaxed", "selection", "size", "verticalAlign"]);
        List.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** A list can animate to set the current item apart from the list. */
            animated: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A list can mark items with a bullet. */
            bulleted: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A list can divide its items into cells. */
            celled: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /** A list can show divisions between content. */
            divided: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** An list can be floated left or right. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].FLOATS),
            /** A list can be formatted to have items appear horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A list can be inverted to appear on a dark background. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Shorthand array of props for ListItem. */
            items: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].collectionShorthand,
            /** A list can be specially formatted for navigation links. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /**
             * onClick handler for ListItem. Mutually exclusive with children.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All item props.
             */
            onItemClick: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func]),
            /** A list can be ordered numerically. */
            ordered: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A list can relax its padding to provide more negative space. */
            relaxed: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(['very'])]),
            /** A selection list formats list items as possible choices. */
            selection: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** A list can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].SIZES),
            /** An element inside a list can be vertically aligned. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_13__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (List);
        /***/ 
    }),
    /* 591 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _ListDescription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(592);
        /* harmony import */ var _ListHeader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(593);
        /**
         * A list item can contain a content.
         */
        function ListContent(props) {
            var children = props.children, className = props.className, content = props.content, description = props.description, floated = props.floated, header = props.header, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useVerticalAlignProp"])(verticalAlign), 'content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ListContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ListContent, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _ListHeader__WEBPACK_IMPORTED_MODULE_6__["default"].create(header), _ListDescription__WEBPACK_IMPORTED_MODULE_5__["default"].create(description), content);
        }
        ListContent.handledProps = ["as", "children", "className", "content", "description", "floated", "header", "verticalAlign"];
        ListContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for ListDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** An list content can be floated left or right. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].FLOATS),
            /** Shorthand for ListHeader. */
            header: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** An element inside a list can be vertically aligned. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        ListContent.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ListContent, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ListContent);
        /***/ 
    }),
    /* 592 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A list item can contain a description.
         */
        function ListDescription(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, 'description');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ListDescription, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ListDescription, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ListDescription.handledProps = ["as", "children", "className", "content"];
        ListDescription.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ListDescription.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ListDescription, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ListDescription);
        /***/ 
    }),
    /* 593 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A list item can contain a header.
         */
        function ListHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ListHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ListHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ListHeader.handledProps = ["as", "children", "className", "content"];
        ListHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ListHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ListHeader, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ListHeader);
        /***/ 
    }),
    /* 594 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _Icon_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(436);
        /**
         * A list item can contain an icon.
         */
        function ListIcon(props) {
            var className = props.className, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useVerticalAlignProp"])(verticalAlign), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ListIcon, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Icon_Icon__WEBPACK_IMPORTED_MODULE_5__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }));
        }
        ListIcon.handledProps = ["className", "verticalAlign"];
        ListIcon.propTypes = true ? {
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** An element inside a list can be vertically aligned. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        ListIcon.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ListIcon, function (name) {
            return {
                name: name
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ListIcon);
        /***/ 
    }),
    /* 595 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(339);
        /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(532);
        /* harmony import */ var _ListContent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(591);
        /* harmony import */ var _ListDescription__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(592);
        /* harmony import */ var _ListHeader__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(593);
        /* harmony import */ var _ListIcon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(594);
        /**
         * A list item can contain a set of items.
         */
        var ListItem = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ListItem, _Component);
            function ListItem() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ListItem);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ListItem)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var disabled = _this.props.disabled;
                    if (!disabled)
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onClick', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ListItem, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, content = _this$props.content, description = _this$props.description, disabled = _this$props.disabled, header = _this$props.header, icon = _this$props.icon, image = _this$props.image, value = _this$props.value;
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(ListItem, this.props);
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(ElementType !== 'li', 'item'), className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(ListItem, this.props);
                        var valueProp = ElementType === 'li' ? {
                            value: value
                        } : {
                            'data-value': value
                        };
                        if (!_lib__WEBPACK_IMPORTED_MODULE_13__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, valueProp, {
                                role: "listitem",
                                className: classes,
                                onClick: this.handleClick
                            }, rest), children);
                        }
                        var iconElement = _ListIcon__WEBPACK_IMPORTED_MODULE_18__["default"].create(icon, {
                            autoGenerateKey: false
                        });
                        var imageElement = _elements_Image__WEBPACK_IMPORTED_MODULE_14__["default"].create(image, {
                            autoGenerateKey: false
                        }); // See description of `content` prop for explanation about why this is necessary.
                        if (!Object(react__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(content) && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_8___default()(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, valueProp, {
                                role: "listitem",
                                className: classes,
                                onClick: this.handleClick
                            }, rest), iconElement || imageElement, _ListContent__WEBPACK_IMPORTED_MODULE_15__["default"].create(content, {
                                autoGenerateKey: false,
                                defaultProps: {
                                    header: header,
                                    description: description
                                }
                            }));
                        }
                        var headerElement = _ListHeader__WEBPACK_IMPORTED_MODULE_17__["default"].create(header, {
                            autoGenerateKey: false
                        });
                        var descriptionElement = _ListDescription__WEBPACK_IMPORTED_MODULE_16__["default"].create(description, {
                            autoGenerateKey: false
                        });
                        if (iconElement || imageElement) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, valueProp, {
                                role: "listitem",
                                className: classes,
                                onClick: this.handleClick
                            }, rest), iconElement || imageElement, (content || headerElement || descriptionElement) && react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_ListContent__WEBPACK_IMPORTED_MODULE_15__["default"], null, headerElement, descriptionElement, content));
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, valueProp, {
                            role: "listitem",
                            className: classes,
                            onClick: this.handleClick
                        }, rest), headerElement, descriptionElement, content);
                    }
                }]);
            return ListItem;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(ListItem, "handledProps", ["active", "as", "children", "className", "content", "description", "disabled", "header", "icon", "image", "onClick", "value"]);
        ListItem.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** A list item can active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /**
             * Shorthand for primary content.
             *
             * Heads up!
             *
             * This is handled slightly differently than the typical `content` prop since
             * the wrapping ListContent is not used when there's no icon or image.
             *
             * If you pass content as:
             * - an element/literal, it's treated as the sibling node to
             * header/description (whether wrapped in Item.Content or not).
             * - a props object, it forces the presence of Item.Content and passes those
             * props to it. If you pass a content prop within that props object, it
             * will be treated as the sibling node to header/description.
             */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** Shorthand for ListDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** A list item can disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Shorthand for ListHeader. */
            header: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand,
            /** Shorthand for ListIcon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].disallow(['image']), _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand]),
            /** Shorthand for Image. */
            image: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].disallow(['icon']), _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].itemShorthand]),
            /** A ListItem can be clicked */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** A value for an ordered list. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string
        } : undefined;
        ListItem.create = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createShorthandFactory"])(ListItem, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ListItem);
        /***/ 
    }),
    /* 596 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A list can contain a sub list.
         */
        function ListList(props) {
            var children = props.children, className = props.className, content = props.content;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ListList, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ListList, props);
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(ElementType !== 'ul' && ElementType !== 'ol', 'list'), className);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ListList.handledProps = ["as", "children", "className", "content"];
        ListList.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ListList);
        /***/ 
    }),
    /* 597 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(598);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Loader__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 598 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A loader alerts a user to wait for an activity to complete.
         * @see Dimmer
         */
        function Loader(props) {
            var active = props.active, children = props.children, className = props.className, content = props.content, disabled = props.disabled, indeterminate = props.indeterminate, inline = props.inline, inverted = props.inverted, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(indeterminate, 'indeterminate'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(children || content, 'text'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOrValueAndKey"])(inline, 'inline'), 'loader', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Loader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Loader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Loader.handledProps = ["active", "as", "children", "className", "content", "disabled", "indeterminate", "inline", "inverted", "size"];
        Loader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** A loader can be active or visible. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A loader can be disabled or hidden. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A loader can show it's unsure of how long a task will take. */
            indeterminate: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Loaders can appear inline with content. */
            inline: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['centered'])]),
            /** Loaders can have their colors inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Loaders can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].SIZES)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Loader);
        /***/ 
    }),
    /* 599 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Placeholder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(600);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Placeholder__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 600 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _PlaceholderHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(601);
        /* harmony import */ var _PlaceholderImage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(602);
        /* harmony import */ var _PlaceholderLine__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(603);
        /* harmony import */ var _PlaceholderParagraph__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(604);
        /**
         * A placeholder is used to reserve splace for content that soon will appear in a layout.
         */
        function Placeholder(props) {
            var children = props.children, className = props.className, content = props.content, fluid = props.fluid, inverted = props.inverted;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(inverted, 'inverted'), 'placeholder', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Placeholder, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Placeholder, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Placeholder.handledProps = ["as", "children", "className", "content", "fluid", "inverted"];
        Placeholder.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A fluid placeholder takes up the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A placeholder can have their colors inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        Placeholder.Header = _PlaceholderHeader__WEBPACK_IMPORTED_MODULE_5__["default"];
        Placeholder.Image = _PlaceholderImage__WEBPACK_IMPORTED_MODULE_6__["default"];
        Placeholder.Line = _PlaceholderLine__WEBPACK_IMPORTED_MODULE_7__["default"];
        Placeholder.Paragraph = _PlaceholderParagraph__WEBPACK_IMPORTED_MODULE_8__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Placeholder);
        /***/ 
    }),
    /* 601 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A placeholder can contain a header.
         */
        function PlaceholderHeader(props) {
            var children = props.children, className = props.className, content = props.content, image = props.image;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(image, 'image'), 'header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PlaceholderHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PlaceholderHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        PlaceholderHeader.handledProps = ["as", "children", "className", "content", "image"];
        PlaceholderHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A placeholder can contain an image. */
            image: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (PlaceholderHeader);
        /***/ 
    }),
    /* 602 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A placeholder can contain an image.
         */
        function PlaceholderImage(props) {
            var className = props.className, square = props.square, rectangular = props.rectangular;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(square, 'square'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(rectangular, 'rectangular'), 'image', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PlaceholderImage, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PlaceholderImage, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }));
        }
        PlaceholderImage.handledProps = ["as", "className", "rectangular", "square"];
        PlaceholderImage.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** An image can modify size correctly with responsive styles. */
            square: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['rectangular']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]),
            /** An image can modify size correctly with responsive styles. */
            rectangular: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].disallow(['square']), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (PlaceholderImage);
        /***/ 
    }),
    /* 603 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A placeholder can contain have lines of text.
         */
        function PlaceholderLine(props) {
            var className = props.className, length = props.length;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('line', length, className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PlaceholderLine, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PlaceholderLine, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }));
        }
        PlaceholderLine.handledProps = ["as", "className", "length"];
        PlaceholderLine.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** A line can specify how long its contents should appear. */
            length: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['full', 'very long', 'long', 'medium', 'short', 'very short'])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (PlaceholderLine);
        /***/ 
    }),
    /* 604 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A placeholder can contain a paragraph.
         */
        function PlaceholderParagraph(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('paragraph', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PlaceholderParagraph, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PlaceholderParagraph, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        PlaceholderParagraph.handledProps = ["as", "children", "className", "content"];
        PlaceholderParagraph.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (PlaceholderParagraph);
        /***/ 
    }),
    /* 605 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Rail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(606);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Rail__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 606 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A rail is used to show accompanying content outside the boundaries of the main view of a site.
         */
        function Rail(props) {
            var attached = props.attached, children = props.children, className = props.className, close = props.close, content = props.content, dividing = props.dividing, internal = props.internal, position = props.position, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', position, size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(dividing, 'dividing'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(internal, 'internal'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(close, 'close'), 'rail', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(Rail, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(Rail, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        Rail.handledProps = ["as", "attached", "children", "className", "close", "content", "dividing", "internal", "position", "size"];
        Rail.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** A rail can appear attached to the main viewport. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A rail can appear closer to the main viewport. */
            close: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['very'])]),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A rail can create a division between itself and a container. */
            dividing: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A rail can attach itself to the inside of a container. */
            internal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A rail can be presented on the left or right side of a container. */
            position: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].FLOATS).isRequired,
            /** A rail can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'medium'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Rail);
        /***/ 
    }),
    /* 607 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Reveal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(608);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Reveal__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 608 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _RevealContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(609);
        /**
         * A reveal displays additional content in place of previous content when activated.
         */
        function Reveal(props) {
            var active = props.active, animated = props.animated, children = props.children, className = props.className, content = props.content, disabled = props.disabled, instant = props.instant;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', animated, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(instant, 'instant'), 'reveal', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Reveal, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Reveal, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Reveal.handledProps = ["active", "animated", "as", "children", "className", "content", "disabled", "instant"];
        Reveal.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** An active reveal displays its hidden content. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** An animation name that will be applied to Reveal. */
            animated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['fade', 'small fade', 'move', 'move right', 'move up', 'move down', 'rotate', 'rotate left']),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A disabled reveal will not animate when hovered. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** An element can show its content without delay. */
            instant: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        Reveal.Content = _RevealContent__WEBPACK_IMPORTED_MODULE_5__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Reveal);
        /***/ 
    }),
    /* 609 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A content sub-component for the Reveal.
         */
        function RevealContent(props) {
            var children = props.children, className = props.className, content = props.content, hidden = props.hidden, visible = props.visible;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(hidden, 'hidden'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(visible, 'visible'), 'content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(RevealContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(RevealContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        RevealContent.handledProps = ["as", "children", "className", "content", "hidden", "visible"];
        RevealContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A reveal may contain content that is visible before interaction. */
            hidden: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** A reveal may contain content that is hidden before user interaction. */
            visible: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (RevealContent);
        /***/ 
    }),
    /* 610 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Segment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(611);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Segment__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 611 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _SegmentGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(612);
        /* harmony import */ var _SegmentInline__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(613);
        /**
         * A segment is used to create a grouping of related content.
         */
        function Segment(props) {
            var attached = props.attached, basic = props.basic, children = props.children, circular = props.circular, className = props.className, clearing = props.clearing, color = props.color, compact = props.compact, content = props.content, disabled = props.disabled, floated = props.floated, inverted = props.inverted, loading = props.loading, placeholder = props.placeholder, padded = props.padded, piled = props.piled, raised = props.raised, secondary = props.secondary, size = props.size, stacked = props.stacked, tertiary = props.tertiary, textAlign = props.textAlign, vertical = props.vertical;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(circular, 'circular'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(clearing, 'clearing'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(placeholder, 'placeholder'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(piled, 'piled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(raised, 'raised'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(secondary, 'secondary'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(stacked, 'stacked'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(tertiary, 'tertiary'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(vertical, 'vertical'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOrValueAndKey"])(padded, 'padded'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useValueAndKey"])(floated, 'floated'), 'segment', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(Segment, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(Segment, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        Segment.handledProps = ["as", "attached", "basic", "children", "circular", "className", "clearing", "color", "compact", "content", "disabled", "floated", "inverted", "loading", "padded", "piled", "placeholder", "raised", "secondary", "size", "stacked", "tertiary", "textAlign", "vertical"];
        Segment.Group = _SegmentGroup__WEBPACK_IMPORTED_MODULE_6__["default"];
        Segment.Inline = _SegmentInline__WEBPACK_IMPORTED_MODULE_7__["default"];
        Segment.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Attach segment to other content, like a header. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['top', 'bottom'])]),
            /** A basic segment has no special formatting. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** A segment can be circular. */
            circular: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A segment can clear floated content. */
            clearing: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Segment can be colored. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].COLORS),
            /** A segment may take up only as much space as is necessary. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A segment may show its content is disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Segment content can be floated to the left or right. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].FLOATS),
            /** A segment can have its colors inverted for contrast. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment may show its content is being loaded. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment can increase its padding. */
            padded: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['very'])]),
            /** A segment can be used to reserve space for conditionally displayed content. */
            placeholder: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Formatted to look like a pile of pages. */
            piled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment may be formatted to raise above the page. */
            raised: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment can be formatted to appear less noticeable. */
            secondary: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'medium')),
            /** Formatted to show it contains multiple pages. */
            stacked: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment can be formatted to appear even less noticeable. */
            tertiary: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Formats content to be aligned as part of a vertical group. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified')),
            /** Formats content to be aligned vertically. */
            vertical: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Segment);
        /***/ 
    }),
    /* 612 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A group of segments can be formatted to appear together.
         */
        function SegmentGroup(props) {
            var children = props.children, className = props.className, compact = props.compact, content = props.content, horizontal = props.horizontal, piled = props.piled, raised = props.raised, size = props.size, stacked = props.stacked;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(compact, 'compact'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(piled, 'piled'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(raised, 'raised'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(stacked, 'stacked'), 'segments', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(SegmentGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(SegmentGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        SegmentGroup.handledProps = ["as", "children", "className", "compact", "content", "horizontal", "piled", "raised", "size", "stacked"];
        SegmentGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A segment may take up only as much space as is necessary. */
            compact: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** Formats content to be aligned horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Formatted to look like a pile of pages. */
            piled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment group may be formatted to raise above the page. */
            raised: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A segment group can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'medium')),
            /** Formatted to show it contains multiple pages. */
            stacked: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SegmentGroup);
        /***/ 
    }),
    /* 613 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A placeholder segment can be inline.
         */
        function SegmentInline(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('inline', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(SegmentInline, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(SegmentInline, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        SegmentInline.handledProps = ["as", "children", "className", "content"];
        SegmentInline.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SegmentInline);
        /***/ 
    }),
    /* 614 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Step__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(615);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Step__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 615 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(462);
        /* harmony import */ var _StepContent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(616);
        /* harmony import */ var _StepDescription__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(617);
        /* harmony import */ var _StepGroup__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(619);
        /* harmony import */ var _StepTitle__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(618);
        /**
         * A step shows the completion status of an activity in a series of activities.
         */
        var Step = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Step, _Component);
            function Step() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Step);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Step)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeElementType", function () {
                    var onClick = _this.props.onClick;
                    if (onClick)
                        return 'a';
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var disabled = _this.props.disabled;
                    if (!disabled)
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClick', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Step, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, completed = _this$props.completed, content = _this$props.content, description = _this$props.description, disabled = _this$props.disabled, href = _this$props.href, icon = _this$props.icon, link = _this$props.link, title = _this$props.title;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(completed, 'completed'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(link, 'link'), 'step', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Step, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(Step, this.props, this.computeElementType);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                href: href,
                                onClick: this.handleClick
                            }), children);
                        }
                        if (!_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                href: href,
                                onClick: this.handleClick
                            }), content);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            href: href,
                            onClick: this.handleClick
                        }), _elements_Icon__WEBPACK_IMPORTED_MODULE_13__["default"].create(icon, {
                            autoGenerateKey: false
                        }), _StepContent__WEBPACK_IMPORTED_MODULE_14__["default"].create({
                            description: description,
                            title: title
                        }, {
                            autoGenerateKey: false
                        }));
                    }
                }]);
            return Step;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Step, "Content", _StepContent__WEBPACK_IMPORTED_MODULE_14__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Step, "Description", _StepDescription__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Step, "Group", _StepGroup__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Step, "Title", _StepTitle__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Step, "handledProps", ["active", "as", "children", "className", "completed", "content", "description", "disabled", "href", "icon", "link", "onClick", "ordered", "title"]);
        Step.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** A step can be highlighted as active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** A step can show that a user has completed it. */
            completed: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** Shorthand for StepDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** Show that the Loader is inactive. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Render as an `a` tag instead of a `div` and adds the href attribute. */
            href: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Shorthand for Icon. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** A step can be link. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /**
             * Called on click. When passed, the component will render as an `a`
             * tag by default instead of a `div`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** A step can show a ordered sequence of steps. Passed from StepGroup. */
            ordered: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Shorthand for StepTitle. */
            title: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand
        } : undefined;
        Step.create = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createShorthandFactory"])(Step, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Step);
        /***/ 
    }),
    /* 616 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _StepDescription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(617);
        /* harmony import */ var _StepTitle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(618);
        /**
         * A step can contain a content.
         */
        function StepContent(props) {
            var children = props.children, className = props.className, content = props.content, description = props.description, title = props.title;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(StepContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(StepContent, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _StepTitle__WEBPACK_IMPORTED_MODULE_6__["default"].create(title, {
                autoGenerateKey: false
            }), _StepDescription__WEBPACK_IMPORTED_MODULE_5__["default"].create(description, {
                autoGenerateKey: false
            }));
        }
        StepContent.handledProps = ["as", "children", "className", "content", "description", "title"];
        StepContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for StepDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for StepTitle. */
            title: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        StepContent.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(StepContent, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (StepContent);
        /***/ 
    }),
    /* 617 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        function StepDescription(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('description', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(StepDescription, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(StepDescription, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        StepDescription.handledProps = ["as", "children", "className", "content"];
        StepDescription.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        StepDescription.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(StepDescription, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (StepDescription);
        /***/ 
    }),
    /* 618 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A step can contain a title.
         */
        function StepTitle(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('title', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(StepTitle, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(StepTitle, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        StepTitle.handledProps = ["as", "children", "className", "content"];
        StepTitle.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        StepTitle.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(StepTitle, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (StepTitle);
        /***/ 
    }),
    /* 619 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(410);
        /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(187);
        /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(620);
        /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(153);
        /* harmony import */ var _Step__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(615);
        var numberMap = true ? lodash_pickBy__WEBPACK_IMPORTED_MODULE_6___default()(_lib__WEBPACK_IMPORTED_MODULE_10__["numberToWordMap"], function (val, key) {
            return key <= 8;
        }) : undefined;
        ;
        /**
         * A set of steps.
         */
        function StepGroup(props) {
            var attached = props.attached, children = props.children, className = props.className, content = props.content, fluid = props.fluid, items = props.items, ordered = props.ordered, size = props.size, stackable = props.stackable, unstackable = props.unstackable, vertical = props.vertical, widths = props.widths;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_7___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useKeyOnly"])(ordered, 'ordered'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useKeyOnly"])(unstackable, 'unstackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useKeyOnly"])(vertical, 'vertical'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useKeyOrValueAndKey"])(attached, 'attached'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useValueAndKey"])(stackable, 'stackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_10__["useWidthProp"])(widths), 'steps', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["getUnhandledProps"])(StepGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["getElementType"])(StepGroup, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_10__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_10__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), lodash_map__WEBPACK_IMPORTED_MODULE_5___default()(items, function (item) {
                return _Step__WEBPACK_IMPORTED_MODULE_11__["default"].create(item);
            }));
        }
        StepGroup.handledProps = ["as", "attached", "children", "className", "content", "fluid", "items", "ordered", "size", "stackable", "unstackable", "vertical", "widths"];
        StepGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].as,
            /** Steps can be attached to other elements. */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(['top', 'bottom'])]),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].contentShorthand,
            /** A fluid step takes up the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** Shorthand array of props for Step. */
            items: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].collectionShorthand,
            /** A step can show a ordered sequence of steps. */
            ordered: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** Steps can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_4___default()(_lib__WEBPACK_IMPORTED_MODULE_10__["SUI"].SIZES, 'medium')),
            /** A step can stack vertically only on smaller screens. */
            stackable: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(['tablet']),
            /** A step can prevent itself from stacking on mobile. */
            unstackable: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** A step can be displayed stacked vertically. */
            vertical: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** Steps can be divided evenly inside their parent. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(numberMap)).concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(numberMap).map(Number)), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(numberMap))))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (StepGroup);
        /***/ 
    }),
    /* 620 */
    /***/ (function (module, exports, __webpack_require__) {
        var arrayMap = __webpack_require__(132), baseIteratee = __webpack_require__(201), basePickBy = __webpack_require__(360), getAllKeysIn = __webpack_require__(324);
        /**
         * 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 = baseIteratee(predicate);
            return basePickBy(object, props, function (value, path) {
                return predicate(value, path[0]);
            });
        }
        module.exports = pickBy;
        /***/ 
    }),
    /* 621 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _AccordionAccordion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(622);
        /* harmony import */ var _AccordionContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(625);
        /* harmony import */ var _AccordionPanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(623);
        /* harmony import */ var _AccordionTitle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(624);
        /**
         * An accordion allows users to toggle the display of sections of content.
         */
        function Accordion(props) {
            var className = props.className, fluid = props.fluid, inverted = props.inverted, styled = props.styled;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(styled, 'styled'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Accordion, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AccordionAccordion__WEBPACK_IMPORTED_MODULE_5__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }));
        }
        Accordion.handledProps = ["className", "fluid", "inverted", "styled"];
        Accordion.propTypes = true ? {
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Format to take up the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Format for dark backgrounds. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Adds some basic styling to accordion panels. */
            styled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        Accordion.Accordion = _AccordionAccordion__WEBPACK_IMPORTED_MODULE_5__["default"];
        Accordion.Content = _AccordionContent__WEBPACK_IMPORTED_MODULE_6__["default"];
        Accordion.Panel = _AccordionPanel__WEBPACK_IMPORTED_MODULE_7__["default"];
        Accordion.Title = _AccordionTitle__WEBPACK_IMPORTED_MODULE_8__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Accordion);
        /***/ 
    }),
    /* 622 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return AccordionAccordion; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(266);
        /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(153);
        /* harmony import */ var _AccordionPanel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(623);
        /**
         * An Accordion can contain sub-accordions.
         */
        var AccordionAccordion = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(AccordionAccordion, _Component);
            function AccordionAccordion() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, AccordionAccordion);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(AccordionAccordion)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "computeNewIndex", function (index) {
                    var exclusive = _this.props.exclusive;
                    var activeIndex = _this.state.activeIndex;
                    if (exclusive)
                        return index === activeIndex ? -1 : index; // check to see if index is in array, and remove it, if not then add it
                    return lodash_includes__WEBPACK_IMPORTED_MODULE_12___default()(activeIndex, index) ? lodash_without__WEBPACK_IMPORTED_MODULE_11___default()(activeIndex, index) : _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(activeIndex).concat([index]);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleTitleClick", function (e, titleProps) {
                    var index = titleProps.index;
                    _this.trySetState({
                        activeIndex: _this.computeNewIndex(index)
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default()(_this.props, 'onTitleClick', e, titleProps);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "isIndexActive", function (index) {
                    var exclusive = _this.props.exclusive;
                    var activeIndex = _this.state.activeIndex;
                    return exclusive ? activeIndex === index : lodash_includes__WEBPACK_IMPORTED_MODULE_12___default()(activeIndex, index);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(AccordionAccordion, [{
                    key: "getInitialAutoControlledState",
                    value: function getInitialAutoControlledState(_ref) {
                        var exclusive = _ref.exclusive;
                        return {
                            activeIndex: exclusive ? -1 : []
                        };
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props = this.props, className = _this$props.className, children = _this$props.children, panels = _this$props.panels;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_13___default()('accordion', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["getUnhandledProps"])(AccordionAccordion, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["getElementType"])(AccordionAccordion, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_15___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), _lib__WEBPACK_IMPORTED_MODULE_16__["childrenUtils"].isNil(children) ? lodash_map__WEBPACK_IMPORTED_MODULE_9___default()(panels, function (panel, index) {
                            return _AccordionPanel__WEBPACK_IMPORTED_MODULE_17__["default"].create(panel, {
                                defaultProps: {
                                    active: _this2.isIndexActive(index),
                                    index: index,
                                    onTitleClick: _this2.handleTitleClick
                                }
                            });
                        }) : children);
                    }
                }]);
            return AccordionAccordion;
        }(_lib__WEBPACK_IMPORTED_MODULE_16__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(AccordionAccordion, "defaultProps", {
            exclusive: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(AccordionAccordion, "autoControlledProps", ['activeIndex']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(AccordionAccordion, "handledProps", ["activeIndex", "as", "children", "className", "defaultActiveIndex", "exclusive", "onTitleClick", "panels"]);
        AccordionAccordion.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].as,
            /** Index of the currently active panel. */
            activeIndex: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number])]),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.string,
            /** Initial activeIndex value. */
            defaultActiveIndex: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.number])]),
            /** Only allow one panel open at a time. */
            exclusive: prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.bool,
            /**
             * Called when a panel title is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All item props.
             */
            onTitleClick: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.func]),
            /** Shorthand array of props for Accordion. */
            panels: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].disallow(['children']), prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default.a.shape({
                    content: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].itemShorthand,
                    title: _lib__WEBPACK_IMPORTED_MODULE_16__["customPropTypes"].itemShorthand
                }))])
        } : undefined;
        AccordionAccordion.create = Object(_lib__WEBPACK_IMPORTED_MODULE_16__["createShorthandFactory"])(AccordionAccordion, function (content) {
            return {
                content: content
            };
        });
        /***/ 
    }),
    /* 623 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(153);
        /* harmony import */ var _AccordionTitle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(624);
        /* harmony import */ var _AccordionContent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(625);
        /**
         * A panel sub-component for Accordion component.
         */
        var AccordionPanel = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(AccordionPanel, _Component);
            function AccordionPanel() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AccordionPanel);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(AccordionPanel)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this)), "handleTitleOverrides", function (predefinedProps) {
                    return {
                        onClick: function onClick(e, titleProps) {
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default()(predefinedProps, 'onClick', e, titleProps);
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_7___default()(_this.props, 'onTitleClick', e, titleProps);
                        }
                    };
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AccordionPanel, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, content = _this$props.content, index = _this$props.index, title = _this$props.title;
                        return [_AccordionTitle__WEBPACK_IMPORTED_MODULE_11__["default"].create(title, {
                                autoGenerateKey: false,
                                defaultProps: {
                                    active: active,
                                    index: index,
                                    key: 'title'
                                },
                                overrideProps: this.handleTitleOverrides
                            }), _AccordionContent__WEBPACK_IMPORTED_MODULE_12__["default"].create(content, {
                                autoGenerateKey: false,
                                defaultProps: {
                                    active: active,
                                    key: 'content'
                                }
                            })];
                    }
                }]);
            return AccordionPanel;
        }(react__WEBPACK_IMPORTED_MODULE_9__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(AccordionPanel, "handledProps", ["active", "content", "index", "onTitleClick", "title"]);
        AccordionPanel.propTypes = true ? {
            /** Whether or not the title is in the open state. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
            /** A shorthand for Accordion.Content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].itemShorthand,
            /** A panel index. */
            index: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string]),
            /**
             * Called when a panel title is clicked.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All item props.
             */
            onTitleClick: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func,
            /** A shorthand for Accordion.Title. */
            title: _lib__WEBPACK_IMPORTED_MODULE_10__["customPropTypes"].itemShorthand
        } : undefined;
        AccordionPanel.create = Object(_lib__WEBPACK_IMPORTED_MODULE_10__["createShorthandFactory"])(AccordionPanel, null);
        /* harmony default export */ __webpack_exports__["default"] = (AccordionPanel);
        /***/ 
    }),
    /* 624 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return AccordionTitle; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(368);
        /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(462);
        /**
         * A title sub-component for Accordion component.
         */
        var AccordionTitle = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(AccordionTitle, _Component);
            function AccordionTitle() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AccordionTitle);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(AccordionTitle)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    return lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onClick', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(AccordionTitle, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, children = _this$props.children, className = _this$props.className, content = _this$props.content;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(active, 'active'), 'title', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(AccordionTitle, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(AccordionTitle, this.props);
                        if (lodash_isNil__WEBPACK_IMPORTED_MODULE_8___default()(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                onClick: this.handleClick
                            }), children);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick
                        }), react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_elements_Icon__WEBPACK_IMPORTED_MODULE_14__["default"], {
                            name: "dropdown"
                        }), content);
                    }
                }]);
            return AccordionTitle;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(AccordionTitle, "handledProps", ["active", "as", "children", "className", "content", "index", "onClick"]);
        AccordionTitle.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** Whether or not the title is in the open state. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].contentShorthand,
            /** AccordionTitle index inside Accordion. */
            index: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number]),
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func
        } : undefined;
        AccordionTitle.create = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["createShorthandFactory"])(AccordionTitle, function (content) {
            return {
                content: content
            };
        });
        /***/ 
    }),
    /* 625 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A content sub-component for Accordion component.
         */
        function AccordionContent(props) {
            var active = props.active, children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(AccordionContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(AccordionContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        AccordionContent.handledProps = ["active", "as", "children", "className", "content"];
        AccordionContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Whether or not the content is visible. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        AccordionContent.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(AccordionContent, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (AccordionContent);
        /***/ 
    }),
    /* 626 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(627);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Embed__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 627 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Embed; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(462);
        /**
         * An embed displays content from other websites like YouTube videos or Google Maps.
         */
        var Embed = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Embed, _Component);
            function Embed() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Embed);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Embed)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleClick", function (e) {
                    var onClick = _this.props.onClick;
                    var active = _this.state.active;
                    if (onClick)
                        onClick(e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                            active: true
                        }));
                    if (!active)
                        _this.trySetState({
                            active: true
                        });
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Embed, [{
                    key: "getSrc",
                    value: function getSrc() {
                        var _this$props = this.props, _this$props$autoplay = _this$props.autoplay, autoplay = _this$props$autoplay === void 0 ? true : _this$props$autoplay, _this$props$brandedUI = _this$props.brandedUI, brandedUI = _this$props$brandedUI === void 0 ? false : _this$props$brandedUI, _this$props$color = _this$props.color, color = _this$props$color === void 0 ? '#444444' : _this$props$color, _this$props$hd = _this$props.hd, hd = _this$props$hd === void 0 ? true : _this$props$hd, id = _this$props.id, source = _this$props.source, url = _this$props.url;
                        if (source === 'youtube') {
                            return ["//www.youtube.com/embed/".concat(id), '?autohide=true', "&amp;autoplay=".concat(autoplay), "&amp;color=".concat(encodeURIComponent(color)), "&amp;hq=".concat(hd), '&amp;jsapi=false', "&amp;modestbranding=".concat(brandedUI), "&amp;rel=".concat(brandedUI ? 0 : 1)].join('');
                        }
                        if (source === 'vimeo') {
                            return ["//player.vimeo.com/video/".concat(id), '?api=false', "&amp;autoplay=".concat(autoplay), '&amp;byline=false', "&amp;color=".concat(encodeURIComponent(color)), '&amp;portrait=false', '&amp;title=false'].join('');
                        }
                        return url;
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props2 = this.props, aspectRatio = _this$props2.aspectRatio, className = _this$props2.className, icon = _this$props2.icon, placeholder = _this$props2.placeholder;
                        var active = this.state.active;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()('ui', aspectRatio, Object(_lib__WEBPACK_IMPORTED_MODULE_12__["useKeyOnly"])(active, 'active'), 'embed', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Embed, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(Embed, this.props);
                        var iconShorthand = icon !== undefined ? icon : 'video play';
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick
                        }), _elements_Icon__WEBPACK_IMPORTED_MODULE_13__["default"].create(iconShorthand, {
                            autoGenerateKey: false
                        }), placeholder && react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("img", {
                            className: "placeholder",
                            src: placeholder
                        }), this.renderEmbed());
                    }
                }, {
                    key: "renderEmbed",
                    value: function renderEmbed() {
                        var _this$props3 = this.props, children = _this$props3.children, content = _this$props3.content, iframe = _this$props3.iframe, source = _this$props3.source;
                        var active = this.state.active;
                        if (!active)
                            return null;
                        if (!_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(children))
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                                className: "embed"
                            }, children);
                        if (!_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(content))
                            return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                                className: "embed"
                            }, content);
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                            className: "embed"
                        }, Object(_lib__WEBPACK_IMPORTED_MODULE_12__["createHTMLIframe"])(_lib__WEBPACK_IMPORTED_MODULE_12__["childrenUtils"].isNil(iframe) ? this.getSrc() : iframe, {
                            defaultProps: {
                                allowFullScreen: false,
                                frameBorder: 0,
                                height: '100%',
                                scrolling: 'no',
                                src: this.getSrc(),
                                title: "Embedded content from ".concat(source, "."),
                                width: '100%'
                            },
                            autoGenerateKey: false
                        }));
                    }
                }]);
            return Embed;
        }(_lib__WEBPACK_IMPORTED_MODULE_12__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Embed, "autoControlledProps", ['active']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Embed, "handledProps", ["active", "as", "aspectRatio", "autoplay", "brandedUI", "children", "className", "color", "content", "defaultActive", "hd", "icon", "id", "iframe", "onClick", "placeholder", "source", "url"]);
        Embed.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** An embed can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** An embed can specify an alternative aspect ratio. */
            aspectRatio: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['4:3', '16:9', '21:9']),
            /** Setting to true or false will force autoplay. */
            autoplay: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool]),
            /** Whether to show networks branded UI like title cards, or after video calls to action. */
            brandedUI: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool]),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Specifies a default chrome color with Vimeo or YouTube. */
            color: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string]),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].contentShorthand,
            /** Initial value of active. */
            defaultActive: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Whether to prefer HD content. */
            hd: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool]),
            /** Specifies an icon to use with placeholder content. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand,
            /** Specifies an id for source. */
            id: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string]),
            /** Shorthand for HTML iframe. */
            iframe: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].demand(['source']), _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].itemShorthand]),
            /**
             * Сalled on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and proposed value.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** A placeholder image for embed. */
            placeholder: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Specifies a source to use. */
            source: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].disallow(['sourceUrl']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['youtube', 'vimeo'])]),
            /** Specifies a url to use for embed. */
            url: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].disallow(['source']), prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string])
        } : undefined;
        /***/ 
    }),
    /* 628 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(629);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Popup__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 629 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "POSITIONS", function () { return POSITIONS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Popup; });
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(358);
        /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(459);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_reduce__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(630);
        /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(84);
        /* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(543);
        /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(402);
        /* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(lodash_isNumber__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(409);
        /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_18__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_20__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(153);
        /* harmony import */ var _addons_Portal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(443);
        /* harmony import */ var _PopupContent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(632);
        /* harmony import */ var _PopupHeader__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(633);
        var POSITIONS = ['top left', 'top right', 'bottom right', 'bottom left', 'right center', 'left center', 'top center', 'bottom center'];
        /**
         * A Popup displays additional information on top of a page.
         */
        var Popup = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Popup, _Component);
            function Popup() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Popup);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Popup)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "state", {});
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "hideOnScroll", function (e) {
                    _this.setState({
                        closed: true
                    });
                    _lib__WEBPACK_IMPORTED_MODULE_21__["eventStack"].unsub('scroll', _this.hideOnScroll, {
                        target: window
                    });
                    setTimeout(function () {
                        if (_this.mounted)
                            _this.setState({
                                closed: false
                            });
                    }, 50);
                    _this.handleClose(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleClose", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(_this.props, 'onClose', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleOpen", function (e) {
                    _this.coords = _this.getContext().getBoundingClientRect();
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(_this.props, 'onOpen', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalMount", function (e) {
                    var hideOnScroll = _this.props.hideOnScroll;
                    if (hideOnScroll)
                        _lib__WEBPACK_IMPORTED_MODULE_21__["eventStack"].sub('scroll', _this.hideOnScroll, {
                            target: window
                        });
                    if (_this.getContext()) {
                        _this.setPopupStyle(_this.props.position);
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(_this.props, 'onMount', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePortalUnmount", function (e) {
                    var hideOnScroll = _this.props.hideOnScroll;
                    if (hideOnScroll)
                        _lib__WEBPACK_IMPORTED_MODULE_21__["eventStack"].unsub('scroll', _this.hideOnScroll, {
                            target: window
                        });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_12___default()(_this.props, 'onUnmount', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handlePopupRef", function (popupRef) {
                    _this.popupCoords = popupRef ? popupRef.getBoundingClientRect() : null;
                    _this.setPopupStyle();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleTriggerRef", function (triggerRef) {
                    _this.triggerRef = triggerRef;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "getContext", function () {
                    return _this.props.context || _this.triggerRef;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Popup, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        this.mounted = true;
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps) {
                        // if horizontal/vertical offsets change, re-calculate the CSS style
                        var _this$props = this.props, horizontalOffset = _this$props.horizontalOffset, verticalOffset = _this$props.verticalOffset;
                        if (horizontalOffset !== prevProps.horizontalOffset || verticalOffset !== prevProps.verticalOffset) {
                            this.setPopupStyle();
                        }
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        this.mounted = false;
                    }
                }, {
                    key: "computePopupStyle",
                    value: function computePopupStyle(positions) {
                        var style = {
                            position: 'absolute'
                        };
                        var context = this.getContext(); // Do not access window/document when server side rendering
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_21__["isBrowser"])())
                            return style;
                        var _this$props2 = this.props, horizontalOffset = _this$props2.horizontalOffset, verticalOffset = _this$props2.verticalOffset;
                        var _window = window, pageYOffset = _window.pageYOffset, pageXOffset = _window.pageXOffset;
                        var _document$documentEle = document.documentElement, clientWidth = _document$documentEle.clientWidth, clientHeight = _document$documentEle.clientHeight;
                        var coords = this.coords || context.getBoundingClientRect();
                        if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(positions, 'right')) {
                            style.right = Math.round(clientWidth - (coords.right + pageXOffset));
                            style.left = 'auto';
                        }
                        else if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(positions, 'left')) {
                            style.left = Math.round(coords.left + pageXOffset);
                            style.right = 'auto';
                        }
                        else {
                            // if not left nor right, we are horizontally centering the element
                            var xOffset = (coords.width - this.popupCoords.width) / 2;
                            style.left = Math.round(coords.left + xOffset + pageXOffset);
                            style.right = 'auto';
                        }
                        if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(positions, 'top')) {
                            style.bottom = Math.round(clientHeight - (coords.top + pageYOffset));
                            style.top = 'auto';
                        }
                        else if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(positions, 'bottom')) {
                            style.top = Math.round(coords.bottom + pageYOffset);
                            style.bottom = 'auto';
                        }
                        else {
                            // if not top nor bottom, we are vertically centering the element
                            var yOffset = (coords.height + this.popupCoords.height) / 2;
                            style.top = Math.round(coords.bottom + pageYOffset - yOffset);
                            style.bottom = 'auto';
                            var _xOffset = this.popupCoords.width + 8;
                            if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(positions, 'right')) {
                                style.right -= _xOffset;
                            }
                            else {
                                style.left -= _xOffset;
                            }
                        }
                        if (horizontalOffset) {
                            if (lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default()(style.right)) {
                                style.right -= horizontalOffset;
                            }
                            else {
                                style.left -= horizontalOffset;
                            }
                        }
                        if (verticalOffset) {
                            if (lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default()(style.top)) {
                                style.top += verticalOffset;
                            }
                            else {
                                style.bottom += verticalOffset;
                            }
                        }
                        return style;
                    } // check if the style would display
                    // the popup outside of the view port
                }, {
                    key: "isStyleInViewport",
                    value: function isStyleInViewport(style) {
                        var _window2 = window, pageYOffset = _window2.pageYOffset, pageXOffset = _window2.pageXOffset;
                        var _document$documentEle2 = document.documentElement, clientWidth = _document$documentEle2.clientWidth, clientHeight = _document$documentEle2.clientHeight;
                        var element = {
                            top: style.top,
                            left: style.left,
                            width: this.popupCoords.width,
                            height: this.popupCoords.height
                        };
                        if (lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default()(style.right)) {
                            element.left = clientWidth - style.right - element.width;
                        }
                        if (lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default()(style.bottom)) {
                            element.top = clientHeight - style.bottom - element.height;
                        } // hidden on top
                        if (element.top < pageYOffset)
                            return false; // hidden on the bottom
                        if (element.top + element.height > pageYOffset + clientHeight)
                            return false; // hidden the left
                        if (element.left < pageXOffset)
                            return false; // hidden on the right
                        if (element.left + element.width > pageXOffset + clientWidth)
                            return false;
                        return true;
                    }
                }, {
                    key: "setPopupStyle",
                    value: function setPopupStyle() {
                        var context = this.getContext();
                        if (!this.coords && !context || !this.popupCoords)
                            return;
                        var position = this.props.position;
                        var style = this.computePopupStyle(position);
                        var keepInViewPort = this.props.keepInViewPort;
                        if (keepInViewPort) {
                            // Lets detect if the popup is out of the viewport and adjust
                            // the position accordingly
                            var positions = lodash_without__WEBPACK_IMPORTED_MODULE_17___default()(POSITIONS, position).concat([position]);
                            for (var i = 0; !this.isStyleInViewport(style) && i < positions.length; i += 1) {
                                style = this.computePopupStyle(positions[i]);
                                position = positions[i];
                            }
                        } // Append 'px' to every numerical values in the style
                        style = lodash_mapValues__WEBPACK_IMPORTED_MODULE_14___default()(style, function (value) {
                            return lodash_isNumber__WEBPACK_IMPORTED_MODULE_15___default()(value) ? "".concat(value, "px") : value;
                        });
                        this.setState({
                            style: style,
                            position: position
                        });
                    }
                }, {
                    key: "getPortalProps",
                    value: function getPortalProps() {
                        var portalProps = {};
                        var _this$props3 = this.props, on = _this$props3.on, hoverable = _this$props3.hoverable;
                        var normalizedOn = lodash_isArray__WEBPACK_IMPORTED_MODULE_13___default()(on) ? on : [on];
                        if (hoverable) {
                            portalProps.closeOnPortalMouseLeave = true;
                            portalProps.mouseLeaveDelay = 300;
                        }
                        if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(normalizedOn, 'click')) {
                            portalProps.openOnTriggerClick = true;
                            portalProps.closeOnTriggerClick = true;
                            portalProps.closeOnDocumentClick = true;
                        }
                        if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(normalizedOn, 'focus')) {
                            portalProps.openOnTriggerFocus = true;
                            portalProps.closeOnTriggerBlur = true;
                        }
                        if (lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(normalizedOn, 'hover')) {
                            portalProps.openOnTriggerMouseEnter = true;
                            portalProps.closeOnTriggerMouseLeave = true; // Taken from SUI: https://git.io/vPmCm
                            portalProps.mouseLeaveDelay = 70;
                            portalProps.mouseEnterDelay = 50;
                        }
                        return portalProps;
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props4 = this.props, basic = _this$props4.basic, children = _this$props4.children, className = _this$props4.className, content = _this$props4.content, flowing = _this$props4.flowing, header = _this$props4.header, inverted = _this$props4.inverted, size = _this$props4.size, trigger = _this$props4.trigger, wide = _this$props4.wide;
                        var _this$state = this.state, position = _this$state.position, closed = _this$state.closed;
                        var style = lodash_assign__WEBPACK_IMPORTED_MODULE_11___default()({}, this.state.style, this.props.style);
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_18___default()('ui', position, size, Object(_lib__WEBPACK_IMPORTED_MODULE_21__["useKeyOrValueAndKey"])(wide, 'wide'), Object(_lib__WEBPACK_IMPORTED_MODULE_21__["useKeyOnly"])(basic, 'basic'), Object(_lib__WEBPACK_IMPORTED_MODULE_21__["useKeyOnly"])(flowing, 'flowing'), Object(_lib__WEBPACK_IMPORTED_MODULE_21__["useKeyOnly"])(inverted, 'inverted'), 'popup transition visible', className);
                        if (closed)
                            return trigger;
                        var unhandled = Object(_lib__WEBPACK_IMPORTED_MODULE_21__["getUnhandledProps"])(Popup, this.props);
                        var portalPropNames = _addons_Portal__WEBPACK_IMPORTED_MODULE_22__["default"].handledProps;
                        var rest = lodash_reduce__WEBPACK_IMPORTED_MODULE_10___default()(unhandled, function (acc, val, key) {
                            if (!lodash_includes__WEBPACK_IMPORTED_MODULE_16___default()(portalPropNames, key))
                                acc[key] = val;
                            return acc;
                        }, {});
                        var portalProps = lodash_pick__WEBPACK_IMPORTED_MODULE_9___default()(unhandled, portalPropNames);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_21__["getElementType"])(Popup, this.props);
                        var popupJSX = react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                            className: classes,
                            style: style,
                            ref: this.handlePopupRef
                        }), children, _lib__WEBPACK_IMPORTED_MODULE_21__["childrenUtils"].isNil(children) && _PopupHeader__WEBPACK_IMPORTED_MODULE_24__["default"].create(header, {
                            autoGenerateKey: false
                        }), _lib__WEBPACK_IMPORTED_MODULE_21__["childrenUtils"].isNil(children) && _PopupContent__WEBPACK_IMPORTED_MODULE_23__["default"].create(content, {
                            autoGenerateKey: false
                        }));
                        var mergedPortalProps = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, this.getPortalProps(), portalProps);
                        return react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_addons_Portal__WEBPACK_IMPORTED_MODULE_22__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, mergedPortalProps, {
                            onClose: this.handleClose,
                            onMount: this.handlePortalMount,
                            onOpen: this.handleOpen,
                            onUnmount: this.handlePortalUnmount,
                            trigger: trigger,
                            triggerRef: this.handleTriggerRef
                        }), popupJSX);
                    }
                }]);
            return Popup;
        }(react__WEBPACK_IMPORTED_MODULE_20__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Popup, "defaultProps", {
            position: 'top left',
            on: 'hover',
            keepInViewPort: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Popup, "Content", _PopupContent__WEBPACK_IMPORTED_MODULE_23__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Popup, "Header", _PopupHeader__WEBPACK_IMPORTED_MODULE_24__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Popup, "handledProps", ["as", "basic", "children", "className", "content", "context", "flowing", "header", "hideOnScroll", "horizontalOffset", "hoverable", "inverted", "keepInViewPort", "on", "onClose", "onMount", "onOpen", "onUnmount", "position", "size", "style", "trigger", "verticalOffset", "wide"]);
        Popup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_21__["customPropTypes"].as,
            /** Display the popup without the pointing arrow. */
            basic: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.string,
            /** Simple text content for the popover. */
            content: _lib__WEBPACK_IMPORTED_MODULE_21__["customPropTypes"].itemShorthand,
            /** Existing element the pop-up should be bound to. */
            context: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.object,
            /** A flowing Popup has no maximum width and continues to flow to fit its content. */
            flowing: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool,
            /** Takes up the entire width of its offset container. */
            // TODO: implement the Popup fluid layout
            // fluid: PropTypes.bool,
            /** Header displayed above the content in bold. */
            header: _lib__WEBPACK_IMPORTED_MODULE_21__["customPropTypes"].itemShorthand,
            /** Hide the Popup when scrolling the window. */
            hideOnScroll: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool,
            /** Whether the popup should not close on hover. */
            hoverable: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool,
            /** Invert the colors of the Popup. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool,
            /** Horizontal offset in pixels to be applied to the Popup. */
            horizontalOffset: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.number,
            /** Vertical offset in pixels to be applied to the Popup. */
            verticalOffset: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.number,
            /** Events triggering the popup. */
            on: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOf(['hover', 'click', 'focus']), prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOf(['hover', 'click', 'focus']))]),
            /**
             * Called when a close event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClose: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.func,
            /**
             * Called when the portal is mounted on the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onMount: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.func,
            /**
             * Called when an open event happens.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onOpen: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.func,
            /**
             * Called when the portal is unmounted from the DOM.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onUnmount: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.func,
            /** Position for the popover. */
            position: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOf(POSITIONS),
            /** Popup size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_17___default()(_lib__WEBPACK_IMPORTED_MODULE_21__["SUI"].SIZES, 'medium', 'big', 'massive')),
            /** Custom Popup style. */
            style: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.object,
            /** Element to be rendered in-place where the popup is defined. */
            trigger: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.node,
            /** Popup width. */
            wide: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.oneOf(['very'])]),
            /** Element to be rendered within the confines of the viewport whenever possible. */
            keepInViewPort: prop_types__WEBPACK_IMPORTED_MODULE_19___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 630 */
    /***/ (function (module, exports, __webpack_require__) {
        var assignValue = __webpack_require__(312), copyObject = __webpack_require__(311), createAssigner = __webpack_require__(631), isArrayLike = __webpack_require__(173), isPrototype = __webpack_require__(197), keys = __webpack_require__(187);
        /** Used for built-in method references. */
        var objectProto = Object.prototype;
        /** Used to check objects for own properties. */
        var hasOwnProperty = objectProto.hasOwnProperty;
        /**
         * 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]);
                }
            }
        });
        module.exports = assign;
        /***/ 
    }),
    /* 631 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseRest = __webpack_require__(145), isIterateeCall = __webpack_require__(262);
        /**
         * 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;
        /***/ 
    }),
    /* 632 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return PopupContent; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A PopupContent displays the content body of a Popover.
         */
        function PopupContent(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PopupContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PopupContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        PopupContent.handledProps = ["as", "children", "className", "content"];
        PopupContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** The content of the Popup */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Classes to add to the Popup content className. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        PopupContent.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(PopupContent, function (children) {
            return {
                children: children
            };
        });
        /***/ 
    }),
    /* 633 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return PopupHeader; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A PopupHeader displays a header in a Popover.
         */
        function PopupHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(PopupHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(PopupHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        PopupHeader.handledProps = ["as", "children", "className", "content"];
        PopupHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        PopupHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(PopupHeader, function (children) {
            return {
                children: children
            };
        });
        /***/ 
    }),
    /* 634 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Progress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(635);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Progress__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 635 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_round__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(636);
        /* harmony import */ var lodash_round__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_round__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(638);
        /* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(174);
        /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
        /**
         * A progress bar shows the progression of a task.
         */
        var Progress = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Progress, _Component);
            function Progress() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Progress);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Progress)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "calculatePercent", function () {
                    var _this$props = _this.props, percent = _this$props.percent, total = _this$props.total, value = _this$props.value;
                    if (!lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(percent))
                        return percent;
                    if (!lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(total) && !lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(value))
                        return value / total * 100;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "computeValueText", function (percent) {
                    var _this$props2 = _this.props, progress = _this$props2.progress, total = _this$props2.total, value = _this$props2.value;
                    if (progress === 'value')
                        return value;
                    if (progress === 'ratio')
                        return "".concat(value, "/").concat(total);
                    return "".concat(percent, "%");
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "getPercent", function () {
                    var _this$props3 = _this.props, precision = _this$props3.precision, progress = _this$props3.progress, total = _this$props3.total, value = _this$props3.value;
                    var percent = lodash_clamp__WEBPACK_IMPORTED_MODULE_9___default()(_this.calculatePercent(), 0, 100);
                    if (!lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(total) && !lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(value) && progress === 'value') {
                        return value / total * 100;
                    }
                    if (progress === 'value')
                        return value;
                    if (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(precision))
                        return percent;
                    return lodash_round__WEBPACK_IMPORTED_MODULE_8___default()(percent, precision);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "isAutoSuccess", function () {
                    var _this$props4 = _this.props, autoSuccess = _this$props4.autoSuccess, percent = _this$props4.percent, total = _this$props4.total, value = _this$props4.value;
                    return autoSuccess && (percent >= 100 || value >= total);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "renderLabel", function () {
                    var _this$props5 = _this.props, children = _this$props5.children, content = _this$props5.content, label = _this$props5.label;
                    if (!_lib__WEBPACK_IMPORTED_MODULE_15__["childrenUtils"].isNil(children))
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("div", {
                            className: "label"
                        }, children);
                    if (!_lib__WEBPACK_IMPORTED_MODULE_15__["childrenUtils"].isNil(content))
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("div", {
                            className: "label"
                        }, content);
                    return Object(_lib__WEBPACK_IMPORTED_MODULE_15__["createHTMLDivision"])(label, {
                        autoGenerateKey: false,
                        defaultProps: {
                            className: 'label'
                        }
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "renderProgress", function (percent) {
                    var _this$props6 = _this.props, precision = _this$props6.precision, progress = _this$props6.progress;
                    if (!progress && lodash_isUndefined__WEBPACK_IMPORTED_MODULE_10___default()(precision))
                        return;
                    return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("div", {
                        className: "progress"
                    }, _this.computeValueText(percent));
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Progress, [{
                    key: "render",
                    value: function render() {
                        var _this$props7 = this.props, active = _this$props7.active, attached = _this$props7.attached, className = _this$props7.className, color = _this$props7.color, disabled = _this$props7.disabled, error = _this$props7.error, indicating = _this$props7.indicating, inverted = _this$props7.inverted, size = _this$props7.size, success = _this$props7.success, warning = _this$props7.warning;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_12___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(active || indicating, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(error, 'error'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(indicating, 'indicating'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(success || this.isAutoSuccess(), 'success'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(warning, 'warning'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useValueAndKey"])(attached, 'attached'), 'progress', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getUnhandledProps"])(Progress, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getElementType"])(Progress, this.props);
                        var percent = this.getPercent() || 0;
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            "data-percent": Math.floor(percent)
                        }), react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("div", {
                            className: "bar",
                            style: {
                                width: "".concat(percent, "%")
                            }
                        }, this.renderProgress(percent)), this.renderLabel());
                    }
                }]);
            return Progress;
        }(react__WEBPACK_IMPORTED_MODULE_14__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Progress, "handledProps", ["active", "as", "attached", "autoSuccess", "children", "className", "color", "content", "disabled", "error", "indicating", "inverted", "label", "percent", "precision", "progress", "size", "success", "total", "value", "warning"]);
        Progress.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].as,
            /** A progress bar can show activity. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A progress bar can attach to and show the progress of an element (i.e. Card or Segment). */
            attached: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(['top', 'bottom']),
            /** Whether success state should automatically trigger when progress completes. */
            autoSuccess: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string,
            /** A progress bar can have different colors. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_15__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].contentShorthand,
            /** A progress bar be disabled. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A progress bar can show a error state. */
            error: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** An indicating progress bar visually indicates the current level of progress of a task. */
            indicating: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A progress bar can have its colors inverted. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** Can be set to either to display progress as percent or ratio. */
            label: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].itemShorthand,
            /** Current percent complete. */
            percent: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['total', 'value']), prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string])]),
            /** Decimal point precision for calculated progress. */
            precision: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number,
            /** A progress bar can contain a text value indicating current progress. */
            progress: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(['percent', 'ratio', 'value'])]),
            /** A progress bar can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_11___default()(_lib__WEBPACK_IMPORTED_MODULE_15__["SUI"].SIZES, 'mini', 'huge', 'massive')),
            /** A progress bar can show a success state. */
            success: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** For use with value. Together, these will calculate the percent. Mutually excludes percent. */
            total: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].demand(['value']), _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['percent']), prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string])]),
            /** For use with total. Together, these will calculate the percent. Mutually excludes percent. */
            value: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].disallow(['percent']), prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string])]),
            /** A progress bar can show a warning state. */
            warning: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Progress);
        /***/ 
    }),
    /* 636 */
    /***/ (function (module, exports, __webpack_require__) {
        var createRound = __webpack_require__(637);
        /**
         * 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');
        module.exports = round;
        /***/ 
    }),
    /* 637 */
    /***/ (function (module, exports, __webpack_require__) {
        var toInteger = __webpack_require__(177), toNumber = __webpack_require__(179), toString = __webpack_require__(130);
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMin = Math.min;
        /**
         * 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) {
                    // 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);
            };
        }
        module.exports = createRound;
        /***/ 
    }),
    /* 638 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseClamp = __webpack_require__(176), toNumber = __webpack_require__(179);
        /**
         * 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);
        }
        module.exports = clamp;
        /***/ 
    }),
    /* 639 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Rating__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(640);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Rating__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 640 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Rating; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(641);
        /* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_times__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
        /* harmony import */ var _RatingIcon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(642);
        /**
         * A rating indicates user interest in content.
         */
        var Rating = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Rating, _Component);
            function Rating() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Rating);
                for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
                    _args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Rating)).call.apply(_getPrototypeOf2, [this].concat(_args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleIconClick", function (e, _ref) {
                    var index = _ref.index;
                    var _this$props = _this.props, clearable = _this$props.clearable, disabled = _this$props.disabled, maxRating = _this$props.maxRating, onRate = _this$props.onRate;
                    var rating = _this.state.rating;
                    if (disabled)
                        return; // default newRating is the clicked icon
                    // allow toggling a binary rating
                    // allow clearing ratings
                    var newRating = index + 1;
                    if (clearable === 'auto' && maxRating === 1) {
                        newRating = +!rating;
                    }
                    else if (clearable === true && newRating === rating) {
                        newRating = 0;
                    } // set rating
                    _this.trySetState({
                        rating: newRating
                    }, {
                        isSelecting: false
                    });
                    if (onRate)
                        onRate(e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                            rating: newRating
                        }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleIconMouseEnter", function (e, _ref2) {
                    var index = _ref2.index;
                    if (_this.props.disabled)
                        return;
                    _this.setState({
                        selectedIndex: index,
                        isSelecting: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleMouseLeave", function () {
                    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
                        args[_key2] = arguments[_key2];
                    }
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default.a.apply(void 0, [_this.props, 'onMouseLeave'].concat(args));
                    if (_this.props.disabled)
                        return;
                    _this.setState({
                        selectedIndex: -1,
                        isSelecting: false
                    });
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Rating, [{
                    key: "render",
                    value: function render() {
                        var _this2 = this;
                        var _this$props2 = this.props, className = _this$props2.className, disabled = _this$props2.disabled, icon = _this$props2.icon, maxRating = _this$props2.maxRating, size = _this$props2.size;
                        var _this$state = this.state, rating = _this$state.rating, selectedIndex = _this$state.selectedIndex, isSelecting = _this$state.isSelecting;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_12___default()('ui', icon, size, Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(disabled, 'disabled'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(isSelecting && !disabled && selectedIndex >= 0, 'selected'), 'rating', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getUnhandledProps"])(Rating, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getElementType"])(Rating, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            role: "radiogroup",
                            onMouseLeave: this.handleMouseLeave
                        }), lodash_times__WEBPACK_IMPORTED_MODULE_9___default()(maxRating, function (i) {
                            return react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(_RatingIcon__WEBPACK_IMPORTED_MODULE_16__["default"], {
                                active: rating >= i + 1,
                                "aria-checked": rating === i + 1,
                                "aria-posinset": i + 1,
                                "aria-setsize": maxRating,
                                index: i,
                                key: i,
                                onClick: _this2.handleIconClick,
                                onMouseEnter: _this2.handleIconMouseEnter,
                                selected: selectedIndex >= i && isSelecting
                            });
                        }));
                    }
                }]);
            return Rating;
        }(_lib__WEBPACK_IMPORTED_MODULE_15__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Rating, "autoControlledProps", ['rating']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Rating, "defaultProps", {
            clearable: 'auto',
            maxRating: 1
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Rating, "Icon", _RatingIcon__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Rating, "handledProps", ["as", "className", "clearable", "defaultRating", "disabled", "icon", "maxRating", "onRate", "rating", "size"]);
        Rating.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string,
            /**
             * You can clear the rating by clicking on the current start rating.
             * By default a rating will be only clearable if there is 1 icon.
             * Setting to `true`/`false` will allow or disallow a user to clear their rating.
             */
            clearable: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(['auto'])]),
            /** The initial rating value. */
            defaultRating: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string]),
            /** You can disable or enable interactive rating.  Makes a read-only rating. */
            disabled: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.bool,
            /** A rating can use a set of star or heart icons. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(['star', 'heart']),
            /** The total number of icons. */
            maxRating: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string]),
            /**
             * Called after user selects a new rating.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and proposed rating.
             */
            onRate: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.func,
            /** The current number of active icons. */
            rating: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.string]),
            /** A progress bar can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_13___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_11___default()(_lib__WEBPACK_IMPORTED_MODULE_15__["SUI"].SIZES, 'medium', 'big'))
        } : undefined;
        /***/ 
    }),
    /* 641 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseTimes = __webpack_require__(189), castFunction = __webpack_require__(245), toInteger = __webpack_require__(177);
        /** Used as references for various `Number` constants. */
        var MAX_SAFE_INTEGER = 9007199254740991;
        /** Used as references for the maximum length and index of an array. */
        var MAX_ARRAY_LENGTH = 4294967295;
        /* Built-in method references for those with the same name as other `lodash` methods. */
        var nativeMin = Math.min;
        /**
         * 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 = castFunction(iteratee);
            n -= MAX_ARRAY_LENGTH;
            var result = baseTimes(length, iteratee);
            while (++index < n) {
                iteratee(index);
            }
            return result;
        }
        module.exports = times;
        /***/ 
    }),
    /* 642 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return RatingIcon; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(445);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(keyboard_key__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(153);
        /**
         * An internal icon sub-component for Rating component
         */
        var RatingIcon = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(RatingIcon, _Component);
            function RatingIcon() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, RatingIcon);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(RatingIcon)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleKeyUp", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onKeyUp', e, _this.props);
                    switch (keyboard_key__WEBPACK_IMPORTED_MODULE_10___default.a.getCode(e)) {
                        case keyboard_key__WEBPACK_IMPORTED_MODULE_10___default.a.Enter:
                        case keyboard_key__WEBPACK_IMPORTED_MODULE_10___default.a.Spacebar:
                            e.preventDefault();
                            lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onClick', e, _this.props);
                            break;
                        default:
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleMouseEnter", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onMouseEnter', e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(RatingIcon, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, className = _this$props.className, selected = _this$props.selected;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_13__["useKeyOnly"])(selected, 'selected'), 'icon', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getUnhandledProps"])(RatingIcon, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_13__["getElementType"])(RatingIcon, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick,
                            onKeyUp: this.handleKeyUp,
                            onMouseEnter: this.handleMouseEnter,
                            tabIndex: 0,
                            role: "radio"
                        }));
                    }
                }]);
            return RatingIcon;
        }(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(RatingIcon, "defaultProps", {
            as: 'i'
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(RatingIcon, "handledProps", ["active", "as", "className", "index", "onClick", "onKeyUp", "onMouseEnter", "selected"]);
        RatingIcon.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_13__["customPropTypes"].as,
            /** Indicates activity of an icon. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
            /** An index of icon inside Rating. */
            index: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.number,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /**
             * Called on keyup.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onKeyUp: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /**
             * Called on mouseenter.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
            /** Indicates selection of an icon. */
            selected: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 643 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(644);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Search__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 644 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Search; });
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247);
        /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(645);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(515);
        /* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(238);
        /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var lodash_partialRight__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(647);
        /* harmony import */ var lodash_partialRight__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(lodash_partialRight__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var lodash_inRange__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(413);
        /* harmony import */ var lodash_inRange__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/ __webpack_require__.n(lodash_inRange__WEBPACK_IMPORTED_MODULE_14__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_15__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_16__);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(459);
        /* harmony import */ var lodash_reduce__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/ __webpack_require__.n(lodash_reduce__WEBPACK_IMPORTED_MODULE_17__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_18__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_19__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_20__);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(445);
        /* harmony import */ var keyboard_key__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/ __webpack_require__.n(keyboard_key__WEBPACK_IMPORTED_MODULE_21__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_23__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(153);
        /* harmony import */ var _elements_Input__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(558);
        /* harmony import */ var _SearchCategory__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(648);
        /* harmony import */ var _SearchResult__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(649);
        /* harmony import */ var _SearchResults__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(650);
        /**
         * A search module allows a user to query for results from a selection of data
         */
        var Search = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_9___default()(Search, _Component);
            function Search() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this, Search);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Search)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleResultSelect", function (e, result) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_18___default()(_this.props, 'onResultSelect', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props, {
                        result: result
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleSelectionChange", function (e) {
                    var result = _this.getSelectedResult();
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_18___default()(_this.props, 'onSelectionChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props, {
                        result: result
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "closeOnEscape", function (e) {
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.Escape)
                        return;
                    e.preventDefault();
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "moveSelectionOnKeyDown", function (e) {
                    switch (keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.getCode(e)) {
                        case keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.ArrowDown:
                            e.preventDefault();
                            _this.moveSelectionBy(e, 1);
                            break;
                        case keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.ArrowUp:
                            e.preventDefault();
                            _this.moveSelectionBy(e, -1);
                            break;
                        default:
                            break;
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "selectItemOnEnter", function (e) {
                    if (keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.getCode(e) !== keyboard_key__WEBPACK_IMPORTED_MODULE_21___default.a.Enter)
                        return;
                    var result = _this.getSelectedResult(); // prevent selecting null if there was no selected item value
                    if (!result)
                        return;
                    e.preventDefault(); // notify the onResultSelect prop that the user is trying to change value
                    _this.setValue(result.title);
                    _this.handleResultSelect(e, result);
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "closeOnDocumentClick", function (e) {
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleMouseDown", function (e) {
                    _this.isMouseDown = true;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_18___default()(_this.props, 'onMouseDown', e, _this.props);
                    _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].sub('mouseup', _this.handleDocumentMouseUp);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleDocumentMouseUp", function () {
                    _this.isMouseDown = false;
                    _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('mouseup', _this.handleDocumentMouseUp);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleInputClick", function (e) {
                    // prevent closeOnDocumentClick()
                    e.nativeEvent.stopImmediatePropagation();
                    _this.tryOpen();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleItemClick", function (e, _ref) {
                    var id = _ref.id;
                    var result = _this.getSelectedResult(id); // prevent closeOnDocumentClick()
                    e.nativeEvent.stopImmediatePropagation(); // notify the onResultSelect prop that the user is trying to change value
                    _this.setValue(result.title);
                    _this.handleResultSelect(e, result);
                    _this.close();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleFocus", function (e) {
                    var onFocus = _this.props.onFocus;
                    if (onFocus)
                        onFocus(e, _this.props);
                    _this.setState({
                        focus: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleBlur", function (e) {
                    var onBlur = _this.props.onBlur;
                    if (onBlur)
                        onBlur(e, _this.props);
                    _this.setState({
                        focus: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "handleSearchChange", function (e) {
                    // prevent propagating to this.props.onChange()
                    e.stopPropagation();
                    var minCharacters = _this.props.minCharacters;
                    var open = _this.state.open;
                    var newQuery = e.target.value;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_18___default()(_this.props, 'onSearchChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props, {
                        value: newQuery
                    })); // open search dropdown on search query
                    if (newQuery.length < minCharacters) {
                        _this.close();
                    }
                    else if (!open) {
                        _this.tryOpen(newQuery);
                    }
                    _this.setValue(newQuery);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "getFlattenedResults", function () {
                    var _this$props = _this.props, category = _this$props.category, results = _this$props.results;
                    return !category ? results : lodash_reduce__WEBPACK_IMPORTED_MODULE_17___default()(results, function (memo, categoryData) {
                        return memo.concat(categoryData.results);
                    }, []);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "getSelectedResult", function () {
                    var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.state.selectedIndex;
                    var results = _this.getFlattenedResults();
                    return lodash_get__WEBPACK_IMPORTED_MODULE_16___default()(results, index);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "setValue", function (value) {
                    var selectFirstResult = _this.props.selectFirstResult;
                    _this.trySetState({
                        value: value
                    }, {
                        selectedIndex: selectFirstResult ? 0 : -1
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "moveSelectionBy", function (e, offset) {
                    var selectedIndex = _this.state.selectedIndex;
                    var results = _this.getFlattenedResults();
                    var lastIndex = results.length - 1; // next is after last, wrap to beginning
                    // next is before first, wrap to end
                    var nextIndex = selectedIndex + offset;
                    if (nextIndex > lastIndex)
                        nextIndex = 0;
                    else if (nextIndex < 0)
                        nextIndex = lastIndex;
                    _this.setState({
                        selectedIndex: nextIndex
                    });
                    _this.scrollSelectedItemIntoView();
                    _this.handleSelectionChange(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "scrollSelectedItemIntoView", function () {
                    // Do not access document when server side rendering
                    if (!Object(_lib__WEBPACK_IMPORTED_MODULE_24__["isBrowser"])())
                        return;
                    var menu = document.querySelector('.ui.search.active.visible .results.visible');
                    var item = menu.querySelector('.result.active');
                    if (!item)
                        return;
                    var isOutOfUpperView = item.offsetTop < menu.scrollTop;
                    var isOutOfLowerView = item.offsetTop + item.clientHeight > menu.scrollTop + menu.clientHeight;
                    if (isOutOfUpperView) {
                        menu.scrollTop = item.offsetTop;
                    }
                    else if (isOutOfLowerView) {
                        menu.scrollTop = item.offsetTop + item.clientHeight - menu.clientHeight;
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "tryOpen", function () {
                    var currentValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.state.value;
                    var minCharacters = _this.props.minCharacters;
                    if (currentValue.length < minCharacters)
                        return;
                    _this.open();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "open", function () {
                    _this.trySetState({
                        open: true
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "close", function () {
                    _this.trySetState({
                        open: false
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderSearchInput", function (rest) {
                    var _this$props2 = _this.props, icon = _this$props2.icon, input = _this$props2.input;
                    var value = _this.state.value;
                    return _elements_Input__WEBPACK_IMPORTED_MODULE_25__["default"].create(input, {
                        autoGenerateKey: false,
                        defaultProps: _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default()({}, rest, {
                            icon: icon,
                            input: {
                                className: 'prompt',
                                tabIndex: '0',
                                autoComplete: 'off'
                            },
                            onChange: _this.handleSearchChange,
                            onClick: _this.handleInputClick,
                            value: value
                        })
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderNoResults", function () {
                    var _this$props3 = _this.props, noResultsDescription = _this$props3.noResultsDescription, noResultsMessage = _this$props3.noResultsMessage;
                    return react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div", {
                        className: "message empty"
                    }, react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div", {
                        className: "header"
                    }, noResultsMessage), noResultsDescription && react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div", {
                        className: "description"
                    }, noResultsDescription));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderResult", function (_ref2, index, _array) {
                    var childKey = _ref2.childKey, result = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref2, ["childKey"]);
                    var offset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
                    var resultRenderer = _this.props.resultRenderer;
                    var selectedIndex = _this.state.selectedIndex;
                    var offsetIndex = index + offset;
                    return react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement(_SearchResult__WEBPACK_IMPORTED_MODULE_27__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
                        key: childKey || result.title,
                        active: selectedIndex === offsetIndex,
                        onClick: _this.handleItemClick,
                        renderer: resultRenderer
                    }, result, {
                        id: offsetIndex // Used to lookup the result on item click
                    }));
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderResults", function () {
                    var results = _this.props.results;
                    return lodash_map__WEBPACK_IMPORTED_MODULE_15___default()(results, _this.renderResult);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderCategories", function () {
                    var _this$props4 = _this.props, categoryRenderer = _this$props4.categoryRenderer, categories = _this$props4.results;
                    var selectedIndex = _this.state.selectedIndex;
                    var count = 0;
                    return lodash_map__WEBPACK_IMPORTED_MODULE_15___default()(categories, function (_ref3) {
                        var childKey = _ref3.childKey, category = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref3, ["childKey"]);
                        var categoryProps = _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_3___default()({
                            key: childKey || category.name,
                            active: lodash_inRange__WEBPACK_IMPORTED_MODULE_14___default()(selectedIndex, count, count + category.results.length),
                            renderer: categoryRenderer
                        }, category);
                        var renderFn = lodash_partialRight__WEBPACK_IMPORTED_MODULE_13___default()(_this.renderResult, count);
                        count += category.results.length;
                        return react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement(_SearchCategory__WEBPACK_IMPORTED_MODULE_26__["default"], categoryProps, category.results.map(renderFn));
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderMenuContent", function () {
                    var _this$props5 = _this.props, category = _this$props5.category, showNoResults = _this$props5.showNoResults, results = _this$props5.results;
                    if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_12___default()(results)) {
                        return showNoResults ? _this.renderNoResults() : null;
                    }
                    return category ? _this.renderCategories() : _this.renderResults();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10___default()(_this)), "renderResultsMenu", function () {
                    var open = _this.state.open;
                    var resultsClasses = open ? 'visible' : '';
                    var menuContent = _this.renderMenuContent();
                    if (!menuContent)
                        return;
                    return react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement(_SearchResults__WEBPACK_IMPORTED_MODULE_28__["default"], {
                        className: resultsClasses
                    }, menuContent);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(Search, [{
                    key: "componentWillMount",
                    value: function componentWillMount() {
                        var _this$state = this.state, open = _this$state.open, value = _this$state.value;
                        this.setValue(value);
                        if (open)
                            this.open();
                    }
                }, {
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Search.prototype), "componentWillReceiveProps", this).call(this, nextProps);
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_24__["shallowEqual"])(nextProps.value, this.props.value)) {
                            this.setValue(nextProps.value);
                        }
                    }
                }, {
                    key: "shouldComponentUpdate",
                    value: function shouldComponentUpdate(nextProps, nextState) {
                        return !Object(_lib__WEBPACK_IMPORTED_MODULE_24__["shallowEqual"])(nextProps, this.props) || !Object(_lib__WEBPACK_IMPORTED_MODULE_24__["shallowEqual"])(nextState, this.state);
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps, prevState) {
                        // eslint-disable-line complexity
                        // focused / blurred
                        if (!prevState.focus && this.state.focus) {
                            if (!this.isMouseDown) {
                                this.tryOpen();
                            }
                            if (this.state.open) {
                                _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].sub('keydown', [this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                            }
                        }
                        else if (prevState.focus && !this.state.focus) {
                            if (!this.isMouseDown) {
                                this.close();
                            }
                            _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('keydown', [this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                        } // opened / closed
                        if (!prevState.open && this.state.open) {
                            this.open();
                            _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].sub('click', this.closeOnDocumentClick);
                            _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].sub('keydown', [this.closeOnEscape, this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                        }
                        else if (prevState.open && !this.state.open) {
                            this.close();
                            _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('click', this.closeOnDocumentClick);
                            _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('keydown', [this.closeOnEscape, this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                        }
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('click', this.closeOnDocumentClick);
                        _lib__WEBPACK_IMPORTED_MODULE_24__["eventStack"].unsub('keydown', [this.closeOnEscape, this.moveSelectionOnKeyDown, this.selectItemOnEnter]);
                    } // ----------------------------------------
                    // Document Event Handlers
                    // ----------------------------------------
                }, {
                    key: "render",
                    value: function render() {
                        var _this$state2 = this.state, searchClasses = _this$state2.searchClasses, focus = _this$state2.focus, open = _this$state2.open;
                        var _this$props6 = this.props, aligned = _this$props6.aligned, category = _this$props6.category, className = _this$props6.className, fluid = _this$props6.fluid, loading = _this$props6.loading, size = _this$props6.size; // Classes
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_20___default()('ui', open && 'active visible', size, searchClasses, Object(_lib__WEBPACK_IMPORTED_MODULE_24__["useKeyOnly"])(category, 'category'), Object(_lib__WEBPACK_IMPORTED_MODULE_24__["useKeyOnly"])(focus, 'focus'), Object(_lib__WEBPACK_IMPORTED_MODULE_24__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_24__["useKeyOnly"])(loading, 'loading'), Object(_lib__WEBPACK_IMPORTED_MODULE_24__["useValueAndKey"])(aligned, 'aligned'), 'search', className);
                        var unhandled = Object(_lib__WEBPACK_IMPORTED_MODULE_24__["getUnhandledProps"])(Search, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_24__["getElementType"])(Search, this.props);
                        var _partitionHTMLProps = Object(_lib__WEBPACK_IMPORTED_MODULE_24__["partitionHTMLProps"])(unhandled, {
                            htmlProps: _lib__WEBPACK_IMPORTED_MODULE_24__["htmlInputAttrs"]
                        }), _partitionHTMLProps2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_partitionHTMLProps, 2), htmlInputProps = _partitionHTMLProps2[0], rest = _partitionHTMLProps2[1];
                        return react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                            className: classes,
                            onBlur: this.handleBlur,
                            onFocus: this.handleFocus,
                            onMouseDown: this.handleMouseDown
                        }), this.renderSearchInput(htmlInputProps), this.renderResultsMenu());
                    }
                }]);
            return Search;
        }(_lib__WEBPACK_IMPORTED_MODULE_24__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "defaultProps", {
            icon: 'search',
            input: 'text',
            minCharacters: 1,
            noResultsMessage: 'No results found.',
            showNoResults: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "autoControlledProps", ['open', 'value']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "Category", _SearchCategory__WEBPACK_IMPORTED_MODULE_26__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "Result", _SearchResult__WEBPACK_IMPORTED_MODULE_27__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "Results", _SearchResults__WEBPACK_IMPORTED_MODULE_28__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11___default()(Search, "handledProps", ["aligned", "as", "category", "categoryRenderer", "className", "defaultOpen", "defaultValue", "fluid", "icon", "input", "loading", "minCharacters", "noResultsDescription", "noResultsMessage", "onBlur", "onFocus", "onMouseDown", "onResultSelect", "onSearchChange", "onSelectionChange", "open", "resultRenderer", "results", "selectFirstResult", "showNoResults", "size", "value"]);
        Search.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_24__["customPropTypes"].as,
            // ------------------------------------
            // Behavior
            // ------------------------------------
            /** Initial value of open. */
            defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** Initial value. */
            defaultValue: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.string,
            /** Shorthand for Icon. */
            icon: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.object]),
            /** Minimum characters to query for results */
            minCharacters: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.number,
            /** Additional text for "No Results" message with less emphasis. */
            noResultsDescription: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.node,
            /** Message to display when there are no results. */
            noResultsMessage: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.node,
            /** Controls whether or not the results menu is displayed. */
            open: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /**
             * One of:
             * - array of Search.Result props e.g. `{ title: '', description: '' }` or
             * - object of categories e.g. `{ name: '', results: [{ title: '', description: '' }]`
             */
            results: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.shape(_SearchResult__WEBPACK_IMPORTED_MODULE_27__["default"].propTypes)), prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.shape(_SearchCategory__WEBPACK_IMPORTED_MODULE_26__["default"].propTypes)]),
            /** Whether the search should automatically select the first result after searching. */
            selectFirstResult: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** Whether a "no results" message should be shown if no results are found. */
            showNoResults: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** Current value of the search input. Creates a controlled component. */
            value: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.string,
            // ------------------------------------
            // Rendering
            // ------------------------------------
            /**
             * Renders the SearchCategory contents.
             *
             * @param {object} props - The SearchCategory props object.
             * @returns {*} - Renderable SearchCategory contents.
             */
            categoryRenderer: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Renders the SearchResult contents.
             *
             * @param {object} props - The SearchResult props object.
             * @returns {*} - Renderable SearchResult contents.
             */
            resultRenderer: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            // ------------------------------------
            // Callbacks
            // ------------------------------------
            /**
             * Called on blur.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onBlur: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Called on focus.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onFocus: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Called on mousedown.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onMouseDown: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Called when a result is selected.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onResultSelect: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Called on search input change.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props, includes current value of search input.
             */
            onSearchChange: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            /**
             * Called when the active selection index is changed.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onSelectionChange: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.func,
            // ------------------------------------
            // Style
            // ------------------------------------
            /** A search can have its results aligned to its left or right container edge. */
            aligned: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.string,
            /** A search can display results from remote content ordered by categories. */
            category: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.string,
            /** A search can have its results take up the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** A search input can take up the width of its container. */
            input: _lib__WEBPACK_IMPORTED_MODULE_24__["customPropTypes"].itemShorthand,
            /** A search can show a loading indicator. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.bool,
            /** A search can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_22___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_19___default()(_lib__WEBPACK_IMPORTED_MODULE_24__["SUI"].SIZES, 'medium'))
        } : undefined;
        /***/ 
    }),
    /* 645 */
    /***/ (function (module, exports, __webpack_require__) {
        var objectWithoutPropertiesLoose = __webpack_require__(646);
        function _objectWithoutProperties(source, excluded) {
            if (source == null)
                return {};
            var target = objectWithoutPropertiesLoose(source, excluded);
            var key, i;
            if (Object.getOwnPropertySymbols) {
                var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
                for (i = 0; i < sourceSymbolKeys.length; i++) {
                    key = sourceSymbolKeys[i];
                    if (excluded.indexOf(key) >= 0)
                        continue;
                    if (!Object.prototype.propertyIsEnumerable.call(source, key))
                        continue;
                    target[key] = source[key];
                }
            }
            return target;
        }
        module.exports = _objectWithoutProperties;
        /***/ 
    }),
    /* 646 */
    /***/ (function (module, exports) {
        function _objectWithoutPropertiesLoose(source, excluded) {
            if (source == null)
                return {};
            var target = {};
            var sourceKeys = Object.keys(source);
            var key, i;
            for (i = 0; i < sourceKeys.length; i++) {
                key = sourceKeys[i];
                if (excluded.indexOf(key) >= 0)
                    continue;
                target[key] = source[key];
            }
            return target;
        }
        module.exports = _objectWithoutPropertiesLoose;
        /***/ 
    }),
    /* 647 */
    /***/ (function (module, exports, __webpack_require__) {
        var baseRest = __webpack_require__(145), createWrap = __webpack_require__(277), getHolder = __webpack_require__(305), replaceHolders = __webpack_require__(307);
        /** Used to compose bitmasks for function metadata. */
        var WRAP_PARTIAL_RIGHT_FLAG = 64;
        /**
         * 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);
        });
        // Assign default placeholders.
        partialRight.placeholder = {};
        module.exports = partialRight;
        /***/ 
    }),
    /* 648 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        function SearchCategory(props) {
            var active = props.active, children = props.children, className = props.className, content = props.content, renderer = props.renderer;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), 'category', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(SearchCategory, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(SearchCategory, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
                className: "name"
            }, renderer(props)), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
                className: "results"
            }, _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children));
        }
        SearchCategory.handledProps = ["active", "as", "children", "className", "content", "name", "renderer", "results"];
        SearchCategory.defaultProps = {
            renderer: function renderer(_ref) {
                var name = _ref.name;
                return name;
            }
        };
        SearchCategory.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** The item currently selected by keyboard shortcut. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Display name. */
            name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /**
             * Renders the category contents.
             *
             * @param {object} props - The SearchCategory props object.
             * @returns {*} - Renderable category contents.
             */
            renderer: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
            /** Array of Search.Result props. */
            results: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SearchCategory);
        /***/ 
    }),
    /* 649 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return SearchResult; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(153);
        // Note: You technically only need the 'content' wrapper when there's an
        // image. However, optionally wrapping it makes this function a lot more
        // complicated and harder to read. Since always wrapping it doesn't affect
        // the style in any way let's just do that.
        //
        // Note: To avoid requiring a wrapping div, we return an array here so to
        // prevent rendering issues each node needs a unique key.
        var defaultRenderer = function defaultRenderer(_ref) {
            var image = _ref.image, price = _ref.price, title = _ref.title, description = _ref.description;
            return [image && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("div", {
                    key: "image",
                    className: "image"
                }, Object(_lib__WEBPACK_IMPORTED_MODULE_11__["createHTMLImage"])(image, {
                    autoGenerateKey: false
                })), react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("div", {
                    key: "content",
                    className: "content"
                }, price && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("div", {
                    className: "price"
                }, price), title && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("div", {
                    className: "title"
                }, title), description && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement("div", {
                    className: "description"
                }, description))];
        };
        defaultRenderer.handledProps = [];
        var SearchResult = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(SearchResult, _Component);
            function SearchResult() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SearchResult);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(SearchResult)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var onClick = _this.props.onClick;
                    if (onClick)
                        onClick(e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SearchResult, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, active = _this$props.active, className = _this$props.className, renderer = _this$props.renderer;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_8___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_11__["useKeyOnly"])(active, 'active'), 'result', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_11__["getUnhandledProps"])(SearchResult, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_11__["getElementType"])(SearchResult, this.props); // Note: You technically only need the 'content' wrapper when there's an
                        // image. However, optionally wrapping it makes this function a lot more
                        // complicated and harder to read. Since always wrapping it doesn't affect
                        // the style in any way let's just do that.
                        return react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            onClick: this.handleClick
                        }), renderer(this.props));
                    }
                }]);
            return SearchResult;
        }(react__WEBPACK_IMPORTED_MODULE_10__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(SearchResult, "defaultProps", {
            renderer: defaultRenderer
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(SearchResult, "handledProps", ["active", "as", "className", "content", "description", "id", "image", "onClick", "price", "renderer", "title"]);
        SearchResult.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].as,
            /** The item currently selected by keyboard shortcut. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].contentShorthand,
            /** Additional text with less emphasis. */
            description: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /** A unique identifier. */
            id: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string]),
            /** Add an image to the item. */
            image: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /**
             * Called on click.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /** Customized text for price. */
            price: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /**
             * Renders the result contents.
             *
             * @param {object} props - The SearchResult props object.
             * @returns {*} - Renderable result contents.
             */
            renderer: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /** Display title. */
            title: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string.isRequired
        } : undefined;
        /***/ 
    }),
    /* 650 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        function SearchResults(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('results transition', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(SearchResults, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(SearchResults, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        SearchResults.handledProps = ["as", "children", "className", "content"];
        SearchResults.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SearchResults);
        /***/ 
    }),
    /* 651 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Sidebar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(652);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Sidebar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 652 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var _semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(395);
        /* harmony import */ var _semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(_semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _addons_Ref__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(446);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
        /* harmony import */ var _SidebarPushable__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(653);
        /* harmony import */ var _SidebarPusher__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(654);
        /**
         * A sidebar hides additional content beside a page.
         */
        var Sidebar = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Sidebar, _Component);
            function Sidebar() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Sidebar);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Sidebar)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "state", {});
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleAnimationStart", function () {
                    var _this$props = _this.props, duration = _this$props.duration, visible = _this$props.visible;
                    var callback = visible ? 'onVisible' : 'onHide';
                    _this.setState({
                        animating: true
                    }, function () {
                        clearTimeout(_this.animationTimer);
                        _this.animationTimer = setTimeout(_this.handleAnimationEnd, duration);
                        if (_this.skipNextCallback) {
                            _this.skipNextCallback = false;
                            return;
                        }
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, callback, null, _this.props);
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleAnimationEnd", function () {
                    var visible = _this.props.visible;
                    var callback = visible ? 'onShow' : 'onHidden';
                    _this.setState({
                        animating: false
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, callback, null, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleDocumentClick", function (e) {
                    if (!Object(_lib__WEBPACK_IMPORTED_MODULE_15__["doesNodeContainClick"])(_this.ref, e)) {
                        _this.skipNextCallback = true;
                        lodash_invoke__WEBPACK_IMPORTED_MODULE_9___default()(_this.props, 'onHide', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                            visible: false
                        }));
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleRef", function (c) {
                    return _this.ref = c;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Sidebar, [{
                    key: "componentDidUpdate",
                    value: function componentDidUpdate(prevProps) {
                        var prevVisible = prevProps.visible;
                        var currentVisible = this.props.visible;
                        if (prevVisible !== currentVisible)
                            this.handleAnimationStart();
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        clearTimeout(this.animationTimer);
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var _this$props2 = this.props, animation = _this$props2.animation, className = _this$props2.className, children = _this$props2.children, content = _this$props2.content, direction = _this$props2.direction, target = _this$props2.target, visible = _this$props2.visible, width = _this$props2.width;
                        var animating = this.state.animating;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_11___default()('ui', animation, direction, width, Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(animating, 'animating'), Object(_lib__WEBPACK_IMPORTED_MODULE_15__["useKeyOnly"])(visible, 'visible'), 'sidebar', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getUnhandledProps"])(Sidebar, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_15__["getElementType"])(Sidebar, this.props);
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_addons_Ref__WEBPACK_IMPORTED_MODULE_14__["default"], {
                            innerRef: this.handleRef
                        }, react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes
                        }), _lib__WEBPACK_IMPORTED_MODULE_15__["childrenUtils"].isNil(children) ? content : children, visible && react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_semantic_ui_react_event_stack__WEBPACK_IMPORTED_MODULE_10___default.a, {
                            name: "click",
                            on: this.handleDocumentClick,
                            target: target
                        })));
                    }
                }]);
            return Sidebar;
        }(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Sidebar, "defaultProps", {
            direction: 'left',
            duration: 500
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Sidebar, "autoControlledProps", ['visible']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Sidebar, "Pushable", _SidebarPushable__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Sidebar, "Pusher", _SidebarPusher__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Sidebar, "handledProps", ["animation", "as", "children", "className", "content", "direction", "duration", "onHidden", "onHide", "onShow", "onVisible", "target", "visible", "width"]);
        Sidebar.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].as,
            /** Animation style. */
            animation: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['overlay', 'push', 'scale down', 'uncover', 'slide out', 'slide along']),
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_15__["customPropTypes"].contentShorthand,
            /** Direction the sidebar should appear on. */
            direction: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['top', 'right', 'bottom', 'left']),
            /** Duration of sidebar animation. */
            duration: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /**
             * Called before a sidebar begins to animate out.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onHide: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Called after a sidebar has finished animating out.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onHidden: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Called when a sidebar has finished animating in.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onShow: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Called when a sidebar begins animating in.
             *
             * @param {null}
             * @param {object} data - All props.
             */
            onVisible: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /** A sidebar can handle clicks on the passed element. */
            target: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object,
            /** Controls whether or not the sidebar is visible on the page. */
            visible: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool,
            /** Sidebar width. */
            width: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['very thin', 'thin', 'wide', 'very wide'])
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Sidebar);
        /***/ 
    }),
    /* 653 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A pushable sub-component for Sidebar.
         */
        function SidebarPushable(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('pushable', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(SidebarPushable, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(SidebarPushable, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        SidebarPushable.handledProps = ["as", "children", "className", "content"];
        SidebarPushable.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SidebarPushable);
        /***/ 
    }),
    /* 654 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A pushable sub-component for Sidebar.
         */
        function SidebarPusher(props) {
            var className = props.className, dimmed = props.dimmed, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('pusher', Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(dimmed, 'dimmed'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(SidebarPusher, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(SidebarPusher, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        SidebarPusher.handledProps = ["as", "children", "className", "content", "dimmed"];
        SidebarPusher.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Controls whether or not the dim is displayed. */
            dimmed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (SidebarPusher);
        /***/ 
    }),
    /* 655 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Sticky__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(656);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Sticky__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 656 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Sticky; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153);
        /**
         * Sticky content stays fixed to the browser viewport while another column of content is visible on the page.
         */
        var Sticky = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Sticky, _Component);
            function Sticky() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Sticky);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Sticky)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "state", {
                    sticky: false
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "addListeners", function (props) {
                    var scrollContext = props.scrollContext;
                    if (scrollContext) {
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('resize', _this.handleUpdate, {
                            target: scrollContext
                        });
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].sub('scroll', _this.handleUpdate, {
                            target: scrollContext
                        });
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "removeListeners", function () {
                    var scrollContext = _this.props.scrollContext;
                    if (scrollContext) {
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('resize', _this.handleUpdate, {
                            target: scrollContext
                        });
                        _lib__WEBPACK_IMPORTED_MODULE_12__["eventStack"].unsub('scroll', _this.handleUpdate, {
                            target: scrollContext
                        });
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "update", function (e) {
                    var pushing = _this.state.pushing;
                    _this.ticking = false;
                    _this.assignRects();
                    if (pushing) {
                        if (_this.didReachStartingPoint())
                            return _this.stickToContextTop(e);
                        if (_this.didTouchScreenBottom())
                            return _this.stickToScreenBottom(e);
                        return _this.stickToContextBottom(e);
                    }
                    if (_this.isOversized()) {
                        if (_this.contextRect.top > 0)
                            return _this.stickToContextTop(e);
                        if (_this.contextRect.bottom < window.innerHeight)
                            return _this.stickToContextBottom(e);
                    }
                    if (_this.didTouchScreenTop()) {
                        if (_this.didReachContextBottom())
                            return _this.stickToContextBottom(e);
                        return _this.stickToScreenTop(e);
                    }
                    return _this.stickToContextTop(e);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleUpdate", function (e) {
                    if (!_this.ticking) {
                        _this.ticking = true;
                        _this.frameId = requestAnimationFrame(function () {
                            return _this.update(e);
                        });
                    }
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "assignRects", function () {
                    var context = _this.props.context;
                    _this.triggerRect = _this.triggerRef.getBoundingClientRect();
                    _this.contextRect = (context || document.body).getBoundingClientRect();
                    _this.stickyRect = _this.stickyRef.getBoundingClientRect();
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "didReachContextBottom", function () {
                    var offset = _this.props.offset;
                    return _this.stickyRect.height + offset >= _this.contextRect.bottom;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "didReachStartingPoint", function () {
                    return _this.stickyRect.top <= _this.triggerRect.top;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "didTouchScreenTop", function () {
                    return _this.triggerRect.top < _this.props.offset;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "didTouchScreenBottom", function () {
                    var bottomOffset = _this.props.bottomOffset;
                    return _this.contextRect.bottom + bottomOffset > window.innerHeight;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "isOversized", function () {
                    return _this.stickyRect.height > window.innerHeight;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "pushing", function (pushing) {
                    var possible = _this.props.pushing;
                    if (possible)
                        _this.setState({
                            pushing: pushing
                        });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "stick", function (e, bound) {
                    _this.setState({
                        bound: bound,
                        sticky: true
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onStick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "unstick", function (e, bound) {
                    _this.setState({
                        bound: bound,
                        sticky: false
                    });
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onUnstick', e, _this.props);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "stickToContextBottom", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onBottom', e, _this.props);
                    _this.stick(e, true);
                    _this.pushing(true);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "stickToContextTop", function (e) {
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_8___default()(_this.props, 'onTop', e, _this.props);
                    _this.unstick(e, false);
                    _this.pushing(false);
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "stickToScreenBottom", function (e) {
                    var bottom = _this.props.bottomOffset;
                    _this.stick(e, false);
                    _this.setState({
                        bottom: bottom,
                        top: null
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "stickToScreenTop", function (e) {
                    var top = _this.props.offset;
                    _this.stick(e, false);
                    _this.setState({
                        top: top,
                        bottom: null
                    });
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleStickyRef", function (c) {
                    return _this.stickyRef = c;
                });
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleTriggerRef", function (c) {
                    return _this.triggerRef = c;
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Sticky, [{
                    key: "componentDidMount",
                    value: function componentDidMount() {
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_12__["isBrowser"])())
                            return;
                        var active = this.props.active;
                        if (active) {
                            this.handleUpdate();
                            this.addListeners(this.props);
                        }
                    }
                }, {
                    key: "componentWillReceiveProps",
                    value: function componentWillReceiveProps(nextProps) {
                        var _this$props = this.props, current = _this$props.active, currentScrollContext = _this$props.scrollContext;
                        var next = nextProps.active, nextScrollContext = nextProps.scrollContext;
                        if (current === next) {
                            if (currentScrollContext !== nextScrollContext) {
                                this.removeListeners();
                                this.addListeners(nextProps);
                            }
                            return;
                        }
                        if (next) {
                            this.handleUpdate();
                            this.addListeners(nextProps);
                            return;
                        }
                        this.removeListeners();
                        this.setState({
                            sticky: false
                        });
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function componentWillUnmount() {
                        if (!Object(_lib__WEBPACK_IMPORTED_MODULE_12__["isBrowser"])())
                            return;
                        var active = this.props.active;
                        if (active) {
                            this.removeListeners();
                            cancelAnimationFrame(this.frameId);
                        }
                    } // ----------------------------------------
                    // Events
                    // ----------------------------------------
                }, {
                    key: "computeStyle",
                    value: function computeStyle() {
                        var _this$state = this.state, bottom = _this$state.bottom, bound = _this$state.bound, sticky = _this$state.sticky, top = _this$state.top;
                        if (!sticky)
                            return {};
                        return {
                            bottom: bound ? 0 : bottom,
                            top: bound ? undefined : top,
                            width: this.triggerRect.width
                        };
                    } // Return true when the component reached the bottom of the context
                }, {
                    key: "render",
                    // ----------------------------------------
                    // Render
                    // ----------------------------------------
                    value: function render() {
                        var _this$props2 = this.props, children = _this$props2.children, className = _this$props2.className;
                        var _this$state2 = this.state, bottom = _this$state2.bottom, bound = _this$state2.bound, sticky = _this$state2.sticky;
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getUnhandledProps"])(Sticky, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_12__["getElementType"])(Sticky, this.props);
                        var containerClasses = classnames__WEBPACK_IMPORTED_MODULE_9___default()(sticky && 'ui', sticky && 'stuck-container', sticky && (bound ? 'bound-container' : 'fixed-container'), className);
                        var elementClasses = classnames__WEBPACK_IMPORTED_MODULE_9___default()('ui', sticky && (bound ? 'bound bottom' : 'fixed'), sticky && !bound && (bottom === null ? 'top' : 'bottom'), 'sticky');
                        return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: containerClasses
                        }), react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                            ref: this.handleTriggerRef
                        }), react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
                            className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(elementClasses),
                            ref: this.handleStickyRef,
                            style: this.computeStyle()
                        }, children));
                    }
                }]);
            return Sticky;
        }(react__WEBPACK_IMPORTED_MODULE_11__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Sticky, "defaultProps", {
            active: true,
            bottomOffset: 0,
            offset: 0,
            scrollContext: Object(_lib__WEBPACK_IMPORTED_MODULE_12__["isBrowser"])() ? window : null
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Sticky, "handledProps", ["active", "as", "bottomOffset", "children", "className", "context", "offset", "onBottom", "onStick", "onTop", "onUnstick", "pushing", "scrollContext"]);
        Sticky.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_12__["customPropTypes"].as,
            /** A Sticky can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Offset in pixels from the bottom of the screen when fixing element to viewport. */
            bottomOffset: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,
            /** Context which sticky element should stick to. */
            context: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object,
            /** Offset in pixels from the top of the screen when fixing element to viewport. */
            offset: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.number,
            /**
             * Callback when element is bound to bottom of parent container.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onBottom: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Callback when element is fixed to page.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onStick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Callback when element is bound to top of parent container.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onTop: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /**
             * Callback when element is unfixed from page.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onUnstick: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
            /** Whether element should be "pushed" by the viewport, attaching to the bottom of the screen when scrolling up. */
            pushing: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
            /** Context which sticky should attach onscroll events. */
            scrollContext: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object
        } : undefined;
        /***/ 
    }),
    /* 657 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(658);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Tab__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 658 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(645);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(155);
        /* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(232);
        /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(138);
        /* harmony import */ var lodash_invoke__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/ __webpack_require__.n(lodash_invoke__WEBPACK_IMPORTED_MODULE_11__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(153);
        /* harmony import */ var _collections_Grid_Grid__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(564);
        /* harmony import */ var _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(565);
        /* harmony import */ var _collections_Menu_Menu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(489);
        /* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(659);
        /**
         * A Tab is a hidden section of content activated by a Menu.
         * @see Menu
         * @see Segment
         */
        var Tab = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Tab, _Component);
            function Tab() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Tab);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Tab)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)), "handleItemClick", function (e, _ref) {
                    var index = _ref.index;
                    lodash_invoke__WEBPACK_IMPORTED_MODULE_11___default()(_this.props, 'onTabChange', e, _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({}, _this.props, {
                        activeIndex: index
                    }));
                    _this.trySetState({
                        activeIndex: index
                    });
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Tab, [{
                    key: "getInitialAutoControlledState",
                    value: function getInitialAutoControlledState() {
                        return {
                            activeIndex: 0
                        };
                    }
                }, {
                    key: "renderItems",
                    value: function renderItems() {
                        var _this$props = this.props, panes = _this$props.panes, renderActiveOnly = _this$props.renderActiveOnly;
                        var activeIndex = this.state.activeIndex;
                        if (renderActiveOnly)
                            return lodash_invoke__WEBPACK_IMPORTED_MODULE_11___default()(lodash_get__WEBPACK_IMPORTED_MODULE_10___default()(panes, "[".concat(activeIndex, "]")), 'render', this.props);
                        return lodash_map__WEBPACK_IMPORTED_MODULE_9___default()(panes, function (_ref2, index) {
                            var pane = _ref2.pane;
                            return _TabPane__WEBPACK_IMPORTED_MODULE_18__["default"].create(pane, {
                                overrideProps: {
                                    active: index === activeIndex
                                }
                            });
                        });
                    }
                }, {
                    key: "renderMenu",
                    value: function renderMenu() {
                        var _this$props2 = this.props, menu = _this$props2.menu, panes = _this$props2.panes, menuPosition = _this$props2.menuPosition;
                        var activeIndex = this.state.activeIndex;
                        if (menu.tabular === true && menuPosition === 'right') {
                            menu.tabular = 'right';
                        }
                        return _collections_Menu_Menu__WEBPACK_IMPORTED_MODULE_17__["default"].create(menu, {
                            autoGenerateKey: false,
                            overrideProps: {
                                items: lodash_map__WEBPACK_IMPORTED_MODULE_9___default()(panes, 'menuItem'),
                                onItemClick: this.handleItemClick,
                                activeIndex: activeIndex
                            }
                        });
                    }
                }, {
                    key: "renderVertical",
                    value: function renderVertical(menu) {
                        var _this$props3 = this.props, grid = _this$props3.grid, menuPosition = _this$props3.menuPosition;
                        var paneWidth = grid.paneWidth, tabWidth = grid.tabWidth, gridProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(grid, ["paneWidth", "tabWidth"]);
                        var position = menuPosition || menu.props.tabular === 'right' && 'right' || 'left';
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_collections_Grid_Grid__WEBPACK_IMPORTED_MODULE_15__["default"], gridProps, position === 'left' && _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_16__["default"].create({
                            width: tabWidth,
                            children: menu
                        }, {
                            autoGenerateKey: false
                        }), _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_16__["default"].create({
                            width: paneWidth,
                            children: this.renderItems(),
                            stretched: true
                        }, {
                            autoGenerateKey: false
                        }), position === 'right' && _collections_Grid_GridColumn__WEBPACK_IMPORTED_MODULE_16__["default"].create({
                            width: tabWidth,
                            children: menu
                        }, {
                            autoGenerateKey: false
                        }));
                    }
                }, {
                    key: "render",
                    value: function render() {
                        var menu = this.renderMenu();
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getUnhandledProps"])(Tab, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_14__["getElementType"])(Tab, this.props);
                        if (menu.props.vertical) {
                            return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, rest, this.renderVertical(menu));
                        }
                        return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(ElementType, rest, menu.props.attached !== 'bottom' && menu, this.renderItems(), menu.props.attached === 'bottom' && menu);
                    }
                }]);
            return Tab;
        }(_lib__WEBPACK_IMPORTED_MODULE_14__["AutoControlledComponent"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Tab, "autoControlledProps", ['activeIndex']);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Tab, "defaultProps", {
            grid: {
                paneWidth: 12,
                tabWidth: 4
            },
            menu: {
                attached: true,
                tabular: true
            },
            renderActiveOnly: true
        });
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Tab, "Pane", _TabPane__WEBPACK_IMPORTED_MODULE_18__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(Tab, "handledProps", ["activeIndex", "as", "defaultActiveIndex", "grid", "menu", "menuPosition", "onTabChange", "panes", "renderActiveOnly"]);
        Tab.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].as,
            /** The initial activeIndex. */
            defaultActiveIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /** Index of the currently active tab. */
            activeIndex: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.string]),
            /**
             * Shorthand props for the Menu.
             * tabular, if true, will derive final value from `menuPosition`, otherwise set 'left' or 'right' explicitly.
             */
            menu: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object,
            /** Align vertical menu */
            menuPosition: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.oneOf(['left', 'right']),
            /** Shorthand props for the Grid. */
            grid: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.object,
            /**
             * Called on tab change.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props and proposed new activeIndex.
             * @param {object} data.activeIndex - The new proposed activeIndex.
             */
            onTabChange: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func,
            /**
             * Array of objects describing each Menu.Item and Tab.Pane:
             * { menuItem: 'Home', render: () => <Tab.Pane /> }
             * or
             * { menuItem: 'Home', pane: 'Welcome' }
             */
            panes: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.shape({
                menuItem: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].itemShorthand,
                pane: _lib__WEBPACK_IMPORTED_MODULE_14__["customPropTypes"].itemShorthand,
                render: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.func
            })),
            /** A Tab can render only active pane. */
            renderActiveOnly: prop_types__WEBPACK_IMPORTED_MODULE_12___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Tab);
        /***/ 
    }),
    /* 659 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _elements_Segment_Segment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(611);
        /**
         * A tab pane holds the content of a tab.
         */
        function TabPane(props) {
            var active = props.active, children = props.children, className = props.className, content = props.content, loading = props.loading;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(loading, 'loading'), 'tab', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(TabPane, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(TabPane, props);
            var calculatedDefaultProps = {};
            if (ElementType === _elements_Segment_Segment__WEBPACK_IMPORTED_MODULE_5__["default"]) {
                calculatedDefaultProps.attached = 'bottom';
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, calculatedDefaultProps, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        TabPane.handledProps = ["active", "as", "children", "className", "content", "loading"];
        TabPane.defaultProps = {
            as: _elements_Segment_Segment__WEBPACK_IMPORTED_MODULE_5__["default"],
            active: true
        };
        TabPane.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** A tab pane can be active. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** A Tab.Pane can display a loading indicator. */
            loading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        TabPane.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(TabPane, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (TabPane);
        /***/ 
    }),
    /* 660 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Advertisement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(661);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Advertisement__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 661 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An ad displays third-party promotional content.
         */
        function Advertisement(props) {
            var centered = props.centered, children = props.children, className = props.className, content = props.content, test = props.test, unit = props.unit;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('ui', unit, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(test, 'test'), 'ad', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Advertisement, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Advertisement, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes,
                "data-text": test
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Advertisement.handledProps = ["as", "centered", "children", "className", "content", "test", "unit"];
        Advertisement.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Center the advertisement. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Text to be displayed on the advertisement. */
            test: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string]),
            /** Varies the size of the advertisement. */
            unit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['medium rectangle', 'large rectangle', 'vertical rectangle', 'small rectangle', 'mobile banner', 'banner', 'vertical banner', 'top banner', 'half banner', 'button', 'square button', 'small button', 'skyscraper', 'wide skyscraper', 'leaderboard', 'large leaderboard', 'mobile leaderboard', 'billboard', 'panorama', 'netboard', 'half page', 'square', 'small square']).isRequired
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Advertisement);
        /***/ 
    }),
    /* 662 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function () { return Card; });
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71);
        /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
        /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
        /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76);
        /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
        /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
        /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(79);
        /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(153);
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(532);
        /* harmony import */ var _CardContent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(663);
        /* harmony import */ var _CardDescription__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(664);
        /* harmony import */ var _CardGroup__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(667);
        /* harmony import */ var _CardHeader__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(665);
        /* harmony import */ var _CardMeta__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(666);
        /**
         * A card displays site content in a manner similar to a playing card.
         */
        var Card = 
        /*#__PURE__*/
        function (_Component) {
            _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Card, _Component);
            function Card() {
                var _getPrototypeOf2;
                var _this;
                _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Card);
                for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                    args[_key] = arguments[_key];
                }
                _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (_getPrototypeOf2 = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Card)).call.apply(_getPrototypeOf2, [this].concat(args)));
                _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6___default()(_this)), "handleClick", function (e) {
                    var onClick = _this.props.onClick;
                    if (onClick)
                        onClick(e, _this.props);
                });
                return _this;
            }
            _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Card, [{
                    key: "render",
                    value: function render() {
                        var _this$props = this.props, centered = _this$props.centered, children = _this$props.children, className = _this$props.className, color = _this$props.color, content = _this$props.content, description = _this$props.description, extra = _this$props.extra, fluid = _this$props.fluid, header = _this$props.header, href = _this$props.href, image = _this$props.image, link = _this$props.link, meta = _this$props.meta, onClick = _this$props.onClick, raised = _this$props.raised;
                        var classes = classnames__WEBPACK_IMPORTED_MODULE_8___default()('ui', color, Object(_lib__WEBPACK_IMPORTED_MODULE_11__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_11__["useKeyOnly"])(fluid, 'fluid'), Object(_lib__WEBPACK_IMPORTED_MODULE_11__["useKeyOnly"])(link, 'link'), Object(_lib__WEBPACK_IMPORTED_MODULE_11__["useKeyOnly"])(raised, 'raised'), 'card', className);
                        var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_11__["getUnhandledProps"])(Card, this.props);
                        var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_11__["getElementType"])(Card, this.props, function () {
                            if (onClick)
                                return 'a';
                        });
                        if (!_lib__WEBPACK_IMPORTED_MODULE_11__["childrenUtils"].isNil(children)) {
                            return react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                href: href,
                                onClick: this.handleClick
                            }), children);
                        }
                        if (!_lib__WEBPACK_IMPORTED_MODULE_11__["childrenUtils"].isNil(content)) {
                            return react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                                className: classes,
                                href: href,
                                onClick: this.handleClick
                            }), content);
                        }
                        return react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                            className: classes,
                            href: href,
                            onClick: this.handleClick
                        }), _elements_Image__WEBPACK_IMPORTED_MODULE_12__["default"].create(image, {
                            autoGenerateKey: false
                        }), (description || header || meta) && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(_CardContent__WEBPACK_IMPORTED_MODULE_13__["default"], {
                            description: description,
                            header: header,
                            meta: meta
                        }), extra && react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(_CardContent__WEBPACK_IMPORTED_MODULE_13__["default"], {
                            extra: true
                        }, extra));
                    }
                }]);
            return Card;
        }(react__WEBPACK_IMPORTED_MODULE_10__["Component"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "Content", _CardContent__WEBPACK_IMPORTED_MODULE_13__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "Description", _CardDescription__WEBPACK_IMPORTED_MODULE_14__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "Group", _CardGroup__WEBPACK_IMPORTED_MODULE_15__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "Header", _CardHeader__WEBPACK_IMPORTED_MODULE_16__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "Meta", _CardMeta__WEBPACK_IMPORTED_MODULE_17__["default"]);
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Card, "handledProps", ["as", "centered", "children", "className", "color", "content", "description", "extra", "fluid", "header", "href", "image", "link", "meta", "onClick", "raised"]);
        Card.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].as,
            /** A Card can center itself inside its container. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /** A Card can be formatted to display different colors. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_11__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].contentShorthand,
            /** Shorthand for CardDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].itemShorthand,
            /** Shorthand for primary content of CardContent. */
            extra: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].contentShorthand,
            /** A Card can be formatted to take up the width of its container. */
            fluid: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /** Shorthand for CardHeader. */
            header: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].itemShorthand,
            /** Render as an `a` tag instead of a `div` and adds the href attribute. */
            href: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
            /** A card can contain an Image component. */
            image: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].itemShorthand,
            /** A card can be formatted to link to other content. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
            /** Shorthand for CardMeta. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_11__["customPropTypes"].itemShorthand,
            /**
             * Called on click. When passed, the component renders as an `a`
             * tag by default instead of a `div`.
             *
             * @param {SyntheticEvent} event - React's original SyntheticEvent.
             * @param {object} data - All props.
             */
            onClick: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
            /** A Card can be formatted to raise above the page. */
            raised: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool
        } : undefined;
        /***/ 
    }),
    /* 663 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _CardDescription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(664);
        /* harmony import */ var _CardHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(665);
        /* harmony import */ var _CardMeta__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(666);
        /**
         * A card can contain blocks of content or extra content meant to be formatted separately from the main content.
         */
        function CardContent(props) {
            var children = props.children, className = props.className, content = props.content, description = props.description, extra = props.extra, header = props.header, meta = props.meta, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(extra, 'extra'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), 'content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(CardContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(CardContent, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthand"])(_CardHeader__WEBPACK_IMPORTED_MODULE_7__["default"], function (val) {
                return {
                    content: val
                };
            }, header, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthand"])(_CardMeta__WEBPACK_IMPORTED_MODULE_8__["default"], function (val) {
                return {
                    content: val
                };
            }, meta, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthand"])(_CardDescription__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    content: val
                };
            }, description, {
                autoGenerateKey: false
            }));
        }
        CardContent.handledProps = ["as", "children", "className", "content", "description", "extra", "header", "meta", "textAlign"];
        CardContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** Shorthand for CardDescription. */
            description: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand,
            /** A card can contain extra content meant to be formatted separately from the main content. */
            extra: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for CardHeader. */
            header: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand,
            /** Shorthand for CardMeta. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].itemShorthand,
            /** A card content can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CardContent);
        /***/ 
    }),
    /* 664 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A card can contain a description with one or more paragraphs.
         */
        function CardDescription(props) {
            var children = props.children, className = props.className, content = props.content, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), 'description', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(CardDescription, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(CardDescription, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        CardDescription.handledProps = ["as", "children", "className", "content", "textAlign"];
        CardDescription.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A card content can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CardDescription);
        /***/ 
    }),
    /* 665 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A card can contain a header.
         */
        function CardHeader(props) {
            var children = props.children, className = props.className, content = props.content, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), 'header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(CardHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(CardHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        CardHeader.handledProps = ["as", "children", "className", "content", "textAlign"];
        CardHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A card header can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CardHeader);
        /***/ 
    }),
    /* 666 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A card can contain content metadata.
         */
        function CardMeta(props) {
            var children = props.children, className = props.className, content = props.content, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useTextAlignProp"])(textAlign), 'meta', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(CardMeta, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(CardMeta, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        CardMeta.handledProps = ["as", "children", "className", "content", "textAlign"];
        CardMeta.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A card meta can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].TEXT_ALIGNMENTS, 'justified'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CardMeta);
        /***/ 
    }),
    /* 667 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(662);
        /**
         * A group of cards.
         */
        function CardGroup(props) {
            var centered = props.centered, children = props.children, className = props.className, content = props.content, doubling = props.doubling, items = props.items, itemsPerRow = props.itemsPerRow, stackable = props.stackable, textAlign = props.textAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(centered, 'centered'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(doubling, 'doubling'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(stackable, 'stackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useTextAlignProp"])(textAlign), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useWidthProp"])(itemsPerRow), 'cards', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(CardGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(CardGroup, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            var itemsJSX = lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(items, function (item) {
                var key = item.key || [item.header, item.description].join('-');
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_Card__WEBPACK_IMPORTED_MODULE_7__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
                    key: key
                }, item));
            });
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), itemsJSX);
        }
        CardGroup.handledProps = ["as", "centered", "children", "className", "content", "doubling", "items", "itemsPerRow", "stackable", "textAlign"];
        CardGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** A group of cards can center itself inside its container. */
            centered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** A group of cards can double its column width for mobile. */
            doubling: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand array of props for Card. */
            items: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** A group of cards can set how many cards should exist in a row. */
            itemsPerRow: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].WIDTHS),
            /** A group of cards can automatically stack rows to a single columns on mobile devices. */
            stackable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A card group can adjust its text alignment. */
            textAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].TEXT_ALIGNMENTS, 'justified'))
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CardGroup);
        /***/ 
    }),
    /* 668 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Comment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(669);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Comment__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 669 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _CommentAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(670);
        /* harmony import */ var _CommentActions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(671);
        /* harmony import */ var _CommentAuthor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(672);
        /* harmony import */ var _CommentAvatar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(673);
        /* harmony import */ var _CommentContent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(674);
        /* harmony import */ var _CommentGroup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(675);
        /* harmony import */ var _CommentMetadata__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(676);
        /* harmony import */ var _CommentText__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(677);
        /**
         * A comment displays user feedback to site content.
         */
        function Comment(props) {
            var className = props.className, children = props.children, collapsed = props.collapsed, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(collapsed, 'collapsed'), 'comment', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Comment, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Comment, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        Comment.handledProps = ["as", "children", "className", "collapsed", "content"];
        Comment.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Comment can be collapsed, or hidden from view. */
            collapsed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        Comment.Author = _CommentAuthor__WEBPACK_IMPORTED_MODULE_7__["default"];
        Comment.Action = _CommentAction__WEBPACK_IMPORTED_MODULE_5__["default"];
        Comment.Actions = _CommentActions__WEBPACK_IMPORTED_MODULE_6__["default"];
        Comment.Avatar = _CommentAvatar__WEBPACK_IMPORTED_MODULE_8__["default"];
        Comment.Content = _CommentContent__WEBPACK_IMPORTED_MODULE_9__["default"];
        Comment.Group = _CommentGroup__WEBPACK_IMPORTED_MODULE_10__["default"];
        Comment.Metadata = _CommentMetadata__WEBPACK_IMPORTED_MODULE_11__["default"];
        Comment.Text = _CommentText__WEBPACK_IMPORTED_MODULE_12__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Comment);
        /***/ 
    }),
    /* 670 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain an action.
         */
        function CommentAction(props) {
            var active = props.active, className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(active, 'active'), className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentAction, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentAction, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentAction.handledProps = ["active", "as", "children", "className", "content"];
        CommentAction.defaultProps = {
            as: 'a'
        };
        CommentAction.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Style as the currently active action. */
            active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentAction);
        /***/ 
    }),
    /* 671 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain an list of actions a user may perform related to this comment.
         */
        function CommentActions(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('actions', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentActions, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentActions, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentActions.handledProps = ["as", "children", "className", "content"];
        CommentActions.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentActions);
        /***/ 
    }),
    /* 672 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain an author.
         */
        function CommentAuthor(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('author', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentAuthor, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentAuthor, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentAuthor.handledProps = ["as", "children", "className", "content"];
        CommentAuthor.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentAuthor);
        /***/ 
    }),
    /* 673 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain an image or avatar.
         */
        function CommentAvatar(props) {
            var className = props.className, src = props.src;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('avatar', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentAvatar, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentAvatar, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createHTMLImage"])(src, {
                autoGenerateKey: false
            }));
        }
        CommentAvatar.handledProps = ["as", "className", "src"];
        CommentAvatar.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Specifies the URL of the image. */
            src: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentAvatar);
        /***/ 
    }),
    /* 674 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain content.
         */
        function CommentContent(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, 'content');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentContent, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentContent.handledProps = ["as", "children", "className", "content"];
        CommentContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentContent);
        /***/ 
    }),
    /* 675 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * Comments can be grouped.
         */
        function CommentGroup(props) {
            var className = props.className, children = props.children, collapsed = props.collapsed, content = props.content, minimal = props.minimal, size = props.size, threaded = props.threaded;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(collapsed, 'collapsed'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(minimal, 'minimal'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(threaded, 'threaded'), 'comments', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(CommentGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(CommentGroup, props);
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentGroup.handledProps = ["as", "children", "className", "collapsed", "content", "minimal", "size", "threaded"];
        CommentGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Comments can be collapsed, or hidden from view. */
            collapsed: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** Comments can hide extra information unless a user shows intent to interact with a comment. */
            minimal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Comments can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'medium')),
            /** A comment list can be threaded to showing the relationship between conversations. */
            threaded: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentGroup);
        /***/ 
    }),
    /* 676 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain metadata about the comment, an arbitrary amount of metadata may be defined.
         */
        function CommentMetadata(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('metadata', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentMetadata, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentMetadata, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentMetadata.handledProps = ["as", "children", "className", "content"];
        CommentMetadata.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentMetadata);
        /***/ 
    }),
    /* 677 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A comment can contain text.
         */
        function CommentText(props) {
            var className = props.className, children = props.children, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, 'text');
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(CommentText, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(CommentText, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        CommentText.handledProps = ["as", "children", "className", "content"];
        CommentText.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (CommentText);
        /***/ 
    }),
    /* 678 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Feed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(679);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Feed__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 679 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(645);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(153);
        /* harmony import */ var _FeedContent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(680);
        /* harmony import */ var _FeedDate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(681);
        /* harmony import */ var _FeedEvent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(687);
        /* harmony import */ var _FeedExtra__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(682);
        /* harmony import */ var _FeedLabel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(688);
        /* harmony import */ var _FeedLike__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(684);
        /* harmony import */ var _FeedMeta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(683);
        /* harmony import */ var _FeedSummary__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(685);
        /* harmony import */ var _FeedUser__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(686);
        /**
         * A feed presents user activity chronologically.
         */
        function Feed(props) {
            var children = props.children, className = props.className, events = props.events, size = props.size;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_4___default()('ui', size, 'feed', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_7__["getUnhandledProps"])(Feed, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_7__["getElementType"])(Feed, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_7__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), children);
            }
            var eventElements = lodash_map__WEBPACK_IMPORTED_MODULE_3___default()(events, function (eventProps) {
                var childKey = eventProps.childKey, date = eventProps.date, meta = eventProps.meta, summary = eventProps.summary, eventData = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(eventProps, ["childKey", "date", "meta", "summary"]);
                var finalKey = childKey || [date, meta, summary].join('-');
                return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_FeedEvent__WEBPACK_IMPORTED_MODULE_10__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
                    date: date,
                    key: finalKey,
                    meta: meta,
                    summary: summary
                }, eventData));
            });
            return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), eventElements);
        }
        Feed.handledProps = ["as", "children", "className", "events", "size"];
        Feed.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
            /** Shorthand array of props for FeedEvent. */
            events: _lib__WEBPACK_IMPORTED_MODULE_7__["customPropTypes"].collectionShorthand,
            /** A feed can have different sizes. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_2___default()(_lib__WEBPACK_IMPORTED_MODULE_7__["SUI"].SIZES, 'mini', 'tiny', 'medium', 'big', 'huge', 'massive'))
        } : undefined;
        Feed.Content = _FeedContent__WEBPACK_IMPORTED_MODULE_8__["default"];
        Feed.Date = _FeedDate__WEBPACK_IMPORTED_MODULE_9__["default"];
        Feed.Event = _FeedEvent__WEBPACK_IMPORTED_MODULE_10__["default"];
        Feed.Extra = _FeedExtra__WEBPACK_IMPORTED_MODULE_11__["default"];
        Feed.Label = _FeedLabel__WEBPACK_IMPORTED_MODULE_12__["default"];
        Feed.Like = _FeedLike__WEBPACK_IMPORTED_MODULE_13__["default"];
        Feed.Meta = _FeedMeta__WEBPACK_IMPORTED_MODULE_14__["default"];
        Feed.Summary = _FeedSummary__WEBPACK_IMPORTED_MODULE_15__["default"];
        Feed.User = _FeedUser__WEBPACK_IMPORTED_MODULE_16__["default"];
        /* harmony default export */ __webpack_exports__["default"] = (Feed);
        /***/ 
    }),
    /* 680 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _FeedDate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(681);
        /* harmony import */ var _FeedExtra__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(682);
        /* harmony import */ var _FeedMeta__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(683);
        /* harmony import */ var _FeedSummary__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(685);
        function FeedContent(props) {
            var children = props.children, className = props.className, content = props.content, extraImages = props.extraImages, extraText = props.extraText, date = props.date, meta = props.meta, summary = props.summary;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedContent, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedDate__WEBPACK_IMPORTED_MODULE_5__["default"], function (val) {
                return {
                    content: val
                };
            }, date, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedSummary__WEBPACK_IMPORTED_MODULE_8__["default"], function (val) {
                return {
                    content: val
                };
            }, summary, {
                autoGenerateKey: false
            }), content, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedExtra__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    text: true,
                    content: val
                };
            }, extraText, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedExtra__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    images: val
                };
            }, extraImages, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedMeta__WEBPACK_IMPORTED_MODULE_7__["default"], function (val) {
                return {
                    content: val
                };
            }, meta, {
                autoGenerateKey: false
            }));
        }
        FeedContent.handledProps = ["as", "children", "className", "content", "date", "extraImages", "extraText", "meta", "summary"];
        FeedContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** An event can contain a date. */
            date: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedExtra with images. */
            extraImages: _FeedExtra__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes.images,
            /** Shorthand for FeedExtra with text. */
            extraText: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedMeta. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedSummary. */
            summary: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedContent);
        /***/ 
    }),
    /* 681 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An event or an event summary can contain a date.
         */
        function FeedDate(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('date', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedDate, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedDate, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        FeedDate.handledProps = ["as", "children", "className", "content"];
        FeedDate.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedDate);
        /***/ 
    }),
    /* 682 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /**
         * A feed can contain an extra content.
         */
        function FeedExtra(props) {
            var children = props.children, className = props.className, content = props.content, images = props.images, text = props.text;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(images, 'images'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(content || text, 'text'), 'extra', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(FeedExtra, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(FeedExtra, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            } // TODO need a "collection factory" to handle creating multiple image elements and their keys
            var imageElements = lodash_map__WEBPACK_IMPORTED_MODULE_1___default()(images, function (image, index) {
                var key = [index, image].join('-');
                return Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createHTMLImage"])(image, {
                    key: key
                });
            });
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), content, imageElements);
        }
        FeedExtra.handledProps = ["as", "children", "className", "content", "images", "text"];
        FeedExtra.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** An event can contain additional information like a set of images. */
            images: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].every([_lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].disallow(['text']), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].collectionShorthand])]),
            /** An event can contain additional text information. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedExtra);
        /***/ 
    }),
    /* 683 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _FeedLike__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(684);
        /**
         * A feed can contain a meta.
         */
        function FeedMeta(props) {
            var children = props.children, className = props.className, content = props.content, like = props.like;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('meta', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedMeta, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedMeta, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedLike__WEBPACK_IMPORTED_MODULE_5__["default"], function (val) {
                return {
                    content: val
                };
            }, like, {
                autoGenerateKey: false
            }), content);
        }
        FeedMeta.handledProps = ["as", "children", "className", "content", "like"];
        FeedMeta.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for FeedLike. */
            like: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedMeta);
        /***/ 
    }),
    /* 684 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(462);
        /**
         * A feed can contain a like element.
         */
        function FeedLike(props) {
            var children = props.children, className = props.className, content = props.content, icon = props.icon;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('like', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedLike, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedLike, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _elements_Icon__WEBPACK_IMPORTED_MODULE_5__["default"].create(icon, {
                autoGenerateKey: false
            }), content);
        }
        FeedLike.handledProps = ["as", "children", "className", "content", "icon"];
        FeedLike.defaultProps = {
            as: 'a'
        };
        FeedLike.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for icon. Mutually exclusive with children. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedLike);
        /***/ 
    }),
    /* 685 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _FeedDate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(681);
        /* harmony import */ var _FeedUser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(686);
        /**
         * A feed can contain a summary.
         */
        function FeedSummary(props) {
            var children = props.children, className = props.className, content = props.content, date = props.date, user = props.user;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('summary', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedSummary, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedSummary, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedUser__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    content: val
                };
            }, user, {
                autoGenerateKey: false
            }), content, Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedDate__WEBPACK_IMPORTED_MODULE_5__["default"], function (val) {
                return {
                    content: val
                };
            }, date, {
                autoGenerateKey: false
            }));
        }
        FeedSummary.handledProps = ["as", "children", "className", "content", "date", "user"];
        FeedSummary.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for FeedDate. */
            date: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedUser. */
            user: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedSummary);
        /***/ 
    }),
    /* 686 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A feed can contain a user element.
         */
        function FeedUser(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('user', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedUser, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedUser, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        FeedUser.handledProps = ["as", "children", "className", "content"];
        FeedUser.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        FeedUser.defaultProps = {
            as: 'a'
        };
        /* harmony default export */ __webpack_exports__["default"] = (FeedUser);
        /***/ 
    }),
    /* 687 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _FeedContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(680);
        /* harmony import */ var _FeedLabel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(688);
        /**
         * A feed contains an event.
         */
        function FeedEvent(props) {
            var content = props.content, children = props.children, className = props.className, date = props.date, extraImages = props.extraImages, extraText = props.extraText, image = props.image, icon = props.icon, meta = props.meta, summary = props.summary;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('event', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedEvent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedEvent, props);
            var hasContentProp = content || date || extraImages || extraText || meta || summary;
            var contentProps = {
                content: content,
                date: date,
                extraImages: extraImages,
                extraText: extraText,
                meta: meta,
                summary: summary
            };
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedLabel__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    icon: val
                };
            }, icon, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthand"])(_FeedLabel__WEBPACK_IMPORTED_MODULE_6__["default"], function (val) {
                return {
                    image: val
                };
            }, image, {
                autoGenerateKey: false
            }), hasContentProp && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FeedContent__WEBPACK_IMPORTED_MODULE_5__["default"], contentProps), children);
        }
        FeedEvent.handledProps = ["as", "children", "className", "content", "date", "extraImages", "extraText", "icon", "image", "meta", "summary"];
        FeedEvent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for FeedContent. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedDate. */
            date: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedExtra with images. */
            extraImages: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedExtra with content. */
            extraText: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** An event can contain icon label. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** An event can contain image label. */
            image: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedMeta. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for FeedSummary. */
            summary: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedEvent);
        /***/ 
    }),
    /* 688 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _elements_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(462);
        /**
         * An event can contain an image or icon label.
         */
        function FeedLabel(props) {
            var children = props.children, className = props.className, content = props.content, icon = props.icon, image = props.image;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('label', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(FeedLabel, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(FeedLabel, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), content, _elements_Icon__WEBPACK_IMPORTED_MODULE_5__["default"].create(icon, {
                autoGenerateKey: false
            }), Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createHTMLImage"])(image));
        }
        FeedLabel.handledProps = ["as", "children", "className", "content", "icon", "image"];
        FeedLabel.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** An event can contain icon label. */
            icon: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** An event can contain image label. */
            image: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (FeedLabel);
        /***/ 
    }),
    /* 689 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(690);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Item__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 690 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _ItemContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(691);
        /* harmony import */ var _ItemDescription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(693);
        /* harmony import */ var _ItemExtra__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(694);
        /* harmony import */ var _ItemGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(696);
        /* harmony import */ var _ItemHeader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(692);
        /* harmony import */ var _ItemImage__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(697);
        /* harmony import */ var _ItemMeta__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(695);
        /**
         * An item view presents large collections of site content for display.
         */
        function Item(props) {
            var children = props.children, className = props.className, content = props.content, description = props.description, extra = props.extra, header = props.header, image = props.image, meta = props.meta;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('item', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(Item, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(Item, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _ItemImage__WEBPACK_IMPORTED_MODULE_10__["default"].create(image, {
                autoGenerateKey: false
            }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ItemContent__WEBPACK_IMPORTED_MODULE_5__["default"], {
                content: content,
                description: description,
                extra: extra,
                header: header,
                meta: meta
            }));
        }
        Item.handledProps = ["as", "children", "className", "content", "description", "extra", "header", "image", "meta"];
        Item.Content = _ItemContent__WEBPACK_IMPORTED_MODULE_5__["default"];
        Item.Description = _ItemDescription__WEBPACK_IMPORTED_MODULE_6__["default"];
        Item.Extra = _ItemExtra__WEBPACK_IMPORTED_MODULE_7__["default"];
        Item.Group = _ItemGroup__WEBPACK_IMPORTED_MODULE_8__["default"];
        Item.Header = _ItemHeader__WEBPACK_IMPORTED_MODULE_9__["default"];
        Item.Image = _ItemImage__WEBPACK_IMPORTED_MODULE_10__["default"];
        Item.Meta = _ItemMeta__WEBPACK_IMPORTED_MODULE_11__["default"];
        Item.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for ItemContent component. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for ItemDescription component. */
            description: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemExtra component. */
            extra: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemHeader component. */
            header: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemImage component. */
            image: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemMeta component. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (Item);
        /***/ 
    }),
    /* 691 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /* harmony import */ var _ItemHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(692);
        /* harmony import */ var _ItemDescription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(693);
        /* harmony import */ var _ItemExtra__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(694);
        /* harmony import */ var _ItemMeta__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(695);
        /**
         * An item can contain content.
         */
        function ItemContent(props) {
            var children = props.children, className = props.className, content = props.content, description = props.description, extra = props.extra, header = props.header, meta = props.meta, verticalAlign = props.verticalAlign;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useVerticalAlignProp"])(verticalAlign), 'content', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ItemContent, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ItemContent, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _ItemHeader__WEBPACK_IMPORTED_MODULE_5__["default"].create(header, {
                autoGenerateKey: false
            }), _ItemMeta__WEBPACK_IMPORTED_MODULE_8__["default"].create(meta, {
                autoGenerateKey: false
            }), _ItemDescription__WEBPACK_IMPORTED_MODULE_6__["default"].create(description, {
                autoGenerateKey: false
            }), _ItemExtra__WEBPACK_IMPORTED_MODULE_7__["default"].create(extra, {
                autoGenerateKey: false
            }), content);
        }
        ItemContent.handledProps = ["as", "children", "className", "content", "description", "extra", "header", "meta", "verticalAlign"];
        ItemContent.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Shorthand for ItemDescription component. */
            description: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemExtra component. */
            extra: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemHeader component. */
            header: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Shorthand for ItemMeta component. */
            meta: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].itemShorthand,
            /** Content can specify its vertical alignment. */
            verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_4__["SUI"].VERTICAL_ALIGNMENTS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ItemContent);
        /***/ 
    }),
    /* 692 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An item can contain a header.
         */
        function ItemHeader(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('header', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ItemHeader, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ItemHeader, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ItemHeader.handledProps = ["as", "children", "className", "content"];
        ItemHeader.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ItemHeader.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ItemHeader, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ItemHeader);
        /***/ 
    }),
    /* 693 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An item can contain a description with a single or multiple paragraphs.
         */
        function ItemDescription(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('description', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ItemDescription, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ItemDescription, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ItemDescription.handledProps = ["as", "children", "className", "content"];
        ItemDescription.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ItemDescription.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ItemDescription, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ItemDescription);
        /***/ 
    }),
    /* 694 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An item can contain extra content meant to be formatted separately from the main content.
         */
        function ItemExtra(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('extra', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ItemExtra, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ItemExtra, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ItemExtra.handledProps = ["as", "children", "className", "content"];
        ItemExtra.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ItemExtra.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ItemExtra, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ItemExtra);
        /***/ 
    }),
    /* 695 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * An item can contain content metadata.
         */
        function ItemMeta(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('meta', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(ItemMeta, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(ItemMeta, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        ItemMeta.handledProps = ["as", "children", "className", "content"];
        ItemMeta.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        ItemMeta.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(ItemMeta, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ItemMeta);
        /***/ 
    }),
    /* 696 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(645);
        /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(690);
        /**
         * A group of items.
         */
        function ItemGroup(props) {
            var children = props.children, className = props.className, content = props.content, divided = props.divided, items = props.items, link = props.link, relaxed = props.relaxed, unstackable = props.unstackable;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(divided, 'divided'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(link, 'link'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(unstackable, 'unstackable'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOrValueAndKey"])(relaxed, 'relaxed'), 'items', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(ItemGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(ItemGroup, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                    className: classes
                }), content);
            }
            var itemsJSX = lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(items, function (item) {
                var childKey = item.childKey, itemProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(item, ["childKey"]);
                var finalKey = childKey || [itemProps.content, itemProps.description, itemProps.header, itemProps.meta].join('-');
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_Item__WEBPACK_IMPORTED_MODULE_7__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, itemProps, {
                    key: finalKey
                }));
            });
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, rest, {
                className: classes
            }), itemsJSX);
        }
        ItemGroup.handledProps = ["as", "children", "className", "content", "divided", "items", "link", "relaxed", "unstackable"];
        ItemGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** Items can be divided to better distinguish between grouped content. */
            divided: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Shorthand array of props for Item. */
            items: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** An item can be formatted so that the entire contents link to another page. */
            link: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A group of items can relax its padding to provide more negative space. */
            relaxed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['very'])]),
            /** Prevent items from stacking on mobile. */
            unstackable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (ItemGroup);
        /***/ 
    }),
    /* 697 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(153);
        /* harmony import */ var _elements_Image__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(532);
        /**
         * An item can contain an image.
         */
        function ItemImage(props) {
            var size = props.size;
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["getUnhandledProps"])(ItemImage, props);
            return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_elements_Image__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                size: size,
                ui: !!size,
                wrapped: true
            }));
        }
        ItemImage.handledProps = ["size"];
        ItemImage.propTypes = true ? {
            /** An image may appear at different sizes. */
            size: _elements_Image__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.size
        } : undefined;
        ItemImage.create = Object(_lib__WEBPACK_IMPORTED_MODULE_2__["createShorthandFactory"])(ItemImage, function (src) {
            return {
                src: src
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (ItemImage);
        /***/ 
    }),
    /* 698 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(699);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        /***/ 
    }),
    /* 699 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(153);
        /* harmony import */ var _StatisticGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(700);
        /* harmony import */ var _StatisticLabel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(701);
        /* harmony import */ var _StatisticValue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(702);
        /**
         * A statistic emphasizes the current value of an attribute.
         */
        function Statistic(props) {
            var children = props.children, className = props.className, color = props.color, content = props.content, floated = props.floated, horizontal = props.horizontal, inverted = props.inverted, label = props.label, size = props.size, text = props.text, value = props.value;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useValueAndKey"])(floated, 'floated'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_5__["useKeyOnly"])(inverted, 'inverted'), 'statistic', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getUnhandledProps"])(Statistic, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["getElementType"])(Statistic, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_5__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _StatisticValue__WEBPACK_IMPORTED_MODULE_8__["default"].create(value, {
                defaultProps: {
                    text: text
                },
                autoGenerateKey: false
            }), _StatisticLabel__WEBPACK_IMPORTED_MODULE_7__["default"].create(label, {
                autoGenerateKey: false
            }));
        }
        Statistic.handledProps = ["as", "children", "className", "color", "content", "floated", "horizontal", "inverted", "label", "size", "text", "value"];
        Statistic.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
            /** A statistic can be formatted to be different colors. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A statistic can sit to the left or right of other content. */
            floated: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].FLOATS),
            /** A statistic can present its measurement horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** A statistic can be formatted to fit on a dark background. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Label content of the Statistic. */
            label: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand,
            /** A statistic can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_5__["SUI"].SIZES, 'big', 'massive', 'medium')),
            /** Format the StatisticValue with smaller font size to fit nicely beside number values. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
            /** Value content of the Statistic. */
            value: _lib__WEBPACK_IMPORTED_MODULE_5__["customPropTypes"].contentShorthand
        } : undefined;
        Statistic.Group = _StatisticGroup__WEBPACK_IMPORTED_MODULE_6__["default"];
        Statistic.Label = _StatisticLabel__WEBPACK_IMPORTED_MODULE_7__["default"];
        Statistic.Value = _StatisticValue__WEBPACK_IMPORTED_MODULE_8__["default"];
        Statistic.create = Object(_lib__WEBPACK_IMPORTED_MODULE_5__["createShorthandFactory"])(Statistic, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (Statistic);
        /***/ 
    }),
    /* 700 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(437);
        /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
        /* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(153);
        /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(699);
        /**
         * A group of statistics.
         */
        function StatisticGroup(props) {
            var children = props.children, className = props.className, color = props.color, content = props.content, horizontal = props.horizontal, inverted = props.inverted, items = props.items, size = props.size, widths = props.widths;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('ui', color, size, Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(horizontal, 'horizontal'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useKeyOnly"])(inverted, 'inverted'), Object(_lib__WEBPACK_IMPORTED_MODULE_6__["useWidthProp"])(widths), 'statistics', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getUnhandledProps"])(StatisticGroup, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_6__["getElementType"])(StatisticGroup, props);
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(children)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), children);
            }
            if (!_lib__WEBPACK_IMPORTED_MODULE_6__["childrenUtils"].isNil(content)) {
                return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                    className: classes
                }), content);
            }
            return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), lodash_map__WEBPACK_IMPORTED_MODULE_2___default()(items, function (item) {
                return _Statistic__WEBPACK_IMPORTED_MODULE_7__["default"].create(item);
            }));
        }
        StatisticGroup.handledProps = ["as", "children", "className", "color", "content", "horizontal", "inverted", "items", "size", "widths"];
        StatisticGroup.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
            /** A statistic group can be formatted to be different colors. */
            color: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].COLORS),
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].contentShorthand,
            /** A statistic group can present its measurement horizontally. */
            horizontal: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** A statistic group can be formatted to fit on a dark background. */
            inverted: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
            /** Array of props for Statistic. */
            items: _lib__WEBPACK_IMPORTED_MODULE_6__["customPropTypes"].collectionShorthand,
            /** A statistic group can vary in size. */
            size: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].SIZES, 'big', 'massive', 'medium')),
            /** A statistic group can have its items divided evenly. */
            widths: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(_lib__WEBPACK_IMPORTED_MODULE_6__["SUI"].WIDTHS)
        } : undefined;
        /* harmony default export */ __webpack_exports__["default"] = (StatisticGroup);
        /***/ 
    }),
    /* 701 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A statistic can contain a label to help provide context for the presented value.
         */
        function StatisticLabel(props) {
            var children = props.children, className = props.className, content = props.content;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('label', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(StatisticLabel, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(StatisticLabel, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        StatisticLabel.handledProps = ["as", "children", "className", "content"];
        StatisticLabel.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand
        } : undefined;
        StatisticLabel.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(StatisticLabel, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (StatisticLabel);
        /***/ 
    }),
    /* 702 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
        /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(405);
        /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
        /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(153);
        /**
         * A statistic can contain a numeric, icon, image, or text value.
         */
        function StatisticValue(props) {
            var children = props.children, className = props.className, content = props.content, text = props.text;
            var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_lib__WEBPACK_IMPORTED_MODULE_4__["useKeyOnly"])(text, 'text'), 'value', className);
            var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getUnhandledProps"])(StatisticValue, props);
            var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["getElementType"])(StatisticValue, props);
            return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rest, {
                className: classes
            }), _lib__WEBPACK_IMPORTED_MODULE_4__["childrenUtils"].isNil(children) ? content : children);
        }
        StatisticValue.handledProps = ["as", "children", "className", "content", "text"];
        StatisticValue.propTypes = true ? {
            /** An element type to render as (string or function). */
            as: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].as,
            /** Primary content. */
            children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
            /** Additional classes. */
            className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
            /** Shorthand for primary content. */
            content: _lib__WEBPACK_IMPORTED_MODULE_4__["customPropTypes"].contentShorthand,
            /** Format the value with smaller font size to fit nicely beside number values. */
            text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
        } : undefined;
        StatisticValue.create = Object(_lib__WEBPACK_IMPORTED_MODULE_4__["createShorthandFactory"])(StatisticValue, function (content) {
            return {
                content: content
            };
        });
        /* harmony default export */ __webpack_exports__["default"] = (StatisticValue);
        /***/ 
    }),
    /* 703 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2017 Chris Baker <mail.chris.baker@gmail.com>
         *
         * 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 React = __webpack_require__(9);
        var PropTypes = __webpack_require__(24);
        function createElement(name, type) {
            function CreateElement(props) {
                return React.createElement(type, props, props.children);
            }
            CreateElement.displayName = name;
            CreateElement.propTypes = {
                children: PropTypes.node
            };
            CreateElement.defaultProps = {
                children: undefined
            };
            return CreateElement;
        }
        var Svg = module.exports = createElement('Svg', 'svg');
        Svg.Circle = createElement('Circle', 'circle');
        Svg.ClipPath = createElement('ClipPath', 'clipPath');
        Svg.Defs = createElement('Defs', 'defs');
        Svg.Ellipse = createElement('Ellipse', 'ellipse');
        Svg.G = createElement('G', 'g');
        Svg.Image = createElement('Image', 'image');
        Svg.Line = createElement('Line', 'line');
        Svg.LinearGradient = createElement('LinearGradient', 'linearGradient');
        Svg.Path = createElement('Path', 'path');
        Svg.Polygon = createElement('Polygon', 'polygon');
        Svg.Polyline = createElement('Polyline', 'polyline');
        Svg.RadialGradient = createElement('RadialGradient', 'radialGradient');
        Svg.Rect = createElement('Rect', 'rect');
        Svg.Stop = createElement('Stop', 'stop');
        Svg.Svg = createElement('Svg', 'svg');
        Svg.Symbol = createElement('Symbol', 'symbol');
        Svg.Text = createElement('Text', 'text');
        Svg.TextPath = createElement('TextPath', 'textPath');
        Svg.TSpan = createElement('TSpan', 'tspan');
        Svg.Use = createElement('Use', 'use');
        /***/ 
    }),
    /* 704 */
    /***/ (function (module, exports, __webpack_require__) {
        module.exports = __webpack_require__(705);
        /***/ 
    }),
    /* 705 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
        (function (global, factory) {
            if (true) {
                !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(706), __webpack_require__(707), __webpack_require__(24), __webpack_require__(739), __webpack_require__(740), __webpack_require__(741)], __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 {
                var mod;
            }
        })(this, function (exports, _palette, _react, _propTypes, _webfontloader, _mappings) {
            'use strict';
            Object.defineProperty(exports, "__esModule", {
                value: true
            });
            Object.keys(_palette).forEach(function (key) {
                if (key === "default" || key === "__esModule")
                    return;
                Object.defineProperty(exports, key, {
                    enumerable: true,
                    get: function () {
                        return _palette[key];
                    }
                });
            });
            var _react2 = _interopRequireDefault(_react);
            var _propTypes2 = _interopRequireDefault(_propTypes);
            var _webfontloader2 = _interopRequireDefault(_webfontloader);
            function _interopRequireDefault(obj) {
                return obj && obj.__esModule ? obj : {
                    default: 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;
            };
            function _objectWithoutProperties(obj, keys) {
                var target = {};
                for (var i in obj) {
                    if (keys.indexOf(i) >= 0)
                        continue;
                    if (!Object.prototype.hasOwnProperty.call(obj, i))
                        continue;
                    target[i] = obj[i];
                }
                return target;
            }
            function _classCallCheck(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);
                    }
                }
                return function (Constructor, protoProps, staticProps) {
                    if (protoProps)
                        defineProperties(Constructor.prototype, protoProps);
                    if (staticProps)
                        defineProperties(Constructor, staticProps);
                    return Constructor;
                };
            }();
            function _possibleConstructorReturn(self, call) {
                if (!self) {
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
                }
                return call && (typeof call === "object" || typeof call === "function") ? call : self;
            }
            function _inherits(subClass, superClass) {
                if (typeof superClass !== "function" && superClass !== null) {
                    throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
                }
                subClass.prototype = Object.create(superClass && superClass.prototype, {
                    constructor: {
                        value: subClass,
                        enumerable: false,
                        writable: true,
                        configurable: true
                    }
                });
                if (superClass)
                    Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
            }
            var MaterialIcon = function (_Component) {
                _inherits(MaterialIcon, _Component);
                function MaterialIcon(props) {
                    _classCallCheck(this, MaterialIcon);
                    var _this = _possibleConstructorReturn(this, (MaterialIcon.__proto__ || Object.getPrototypeOf(MaterialIcon)).call(this, props));
                    var preloader = _this.props.preloader;
                    _this.state = {
                        element: preloader
                    };
                    _this.onFontActive = _this.onFontActive.bind(_this);
                    _this.processProps = _this.processProps.bind(_this);
                    _webfontloader2.default.load({
                        google: {
                            families: ['Material+Icons']
                        },
                        timeout: 5000,
                        fontactive: _this.onFontActive
                    });
                    return _this;
                }
                _createClass(MaterialIcon, [{
                        key: 'componentDidMount',
                        value: function componentDidMount() { }
                    }, {
                        key: 'onFontActive',
                        value: function onFontActive(fontFamily, fvd) {
                            var _processProps = this.processProps(), icon = _processProps.icon, styleOverride = _processProps.styleOverride, clsName = _processProps.clsName, other = _objectWithoutProperties(_processProps, ['icon', 'styleOverride', 'clsName']);
                            this.setState({ element: _react2.default.createElement('i', _extends({}, other, { className: clsName, style: styleOverride }), icon) });
                        }
                    }, {
                        key: 'processProps',
                        value: function processProps() {
                            var _props = this.props, size = _props.size, invert = _props.invert, inactive = _props.inactive, style = _props.style, className = _props.className, color = _props.color, icon = _props.icon, other = _objectWithoutProperties(_props, ['size', 'invert', 'inactive', 'style', 'className', 'color', 'icon']);
                            var sizeMapped = _mappings.sizes[size] || parseInt(size) || _mappings.sizes['small'];
                            var defaultColor = invert && 'invert' ? _mappings.light : _mappings.dark;
                            var inactiveColor = inactive && 'inactive' ? _mappings.mdInactive : '';
                            var propStyle = style || {};
                            var styleOverride = Object.assign(propStyle, { color: color ? color : '', fontSize: sizeMapped });
                            var clsName = className || 'material-icons ' + sizeMapped + ' ' + defaultColor + ' ' + inactiveColor;
                            return _extends({
                                icon: icon, styleOverride: styleOverride, clsName: clsName
                            }, other);
                        }
                    }, {
                        key: 'render',
                        value: function render() {
                            var _processProps2 = this.processProps(), styleOverride = _processProps2.styleOverride, clsName = _processProps2.clsName, other = _objectWithoutProperties(_processProps2, ['styleOverride', 'clsName']);
                            return this.state.element || _react2.default.createElement('i', _extends({}, other, { className: clsName, style: styleOverride }));
                        }
                    }]);
                return MaterialIcon;
            }(_react.Component);
            MaterialIcon.propTypes = {
                icon: _propTypes2.default.string.isRequired,
                size: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
                invert: _propTypes2.default.bool,
                inactive: _propTypes2.default.bool
            };
            exports.default = MaterialIcon;
        });
        /***/ 
    }),
    /* 706 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
        (function (global, factory) {
            if (true) {
                !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __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 {
                var mod;
            }
        })(this, function (exports) {
            'use strict';
            Object.defineProperty(exports, "__esModule", {
                value: true
            });
            var colorPalette = exports.colorPalette = {
                red: { default: '#f44336', _500: '#f44336', _50: '#ffebee', _100: '#ffcdd2', _200: '#ef9a9a', _300: '#e57373', _400: '#ef5350', _600: '#e53935', _700: '#d32f2f', _800: '#c62828', _900: '#b71c1c', A100: '#ff8a80', A200: '#ff5252', A400: '#ff1744', A700: '#d_50000' },
                pink: { default: '#E91E63', _500: '#E91E63', _50: '#FCE4EC', _100: '#F8BBD0', _200: '#F48FB1', _300: '#F06292', _400: '#EC407A', _600: '#D81B60', _700: '#C2185B', _800: '#AD1457', _900: '#880E4F', A100: '#FF80AB', A200: '#FF4081', A400: '#F_50057', A700: '#C51162' },
                purple: { default: '#9C27B0', _500: '#9C27B0', _50: '#F3E5F5', _100: '#E1BEE7', _200: '#CE93D8', _300: '#BA68C8', _400: '#AB47BC', _600: '#8E24AA', _700: '#7B1FA2', _800: '#6A1B9A', _900: '#4A148C', A100: '#EA80FC', A200: '#E040FB', A400: '#D_500F9', A700: '#AA00FF' },
                deepPurple: { default: '#673AB7', _500: '#673AB7', _50: '#EDE7F6', _100: '#D1C4E9', _200: '#B39DDB', _300: '#9575CD', _400: '#7E57C2', _600: '#5E35B1', _700: '#512DA8', _800: '#4527A0', _900: '#311B92', A100: '#B388FF', A200: '#7C4DFF', A400: '#651FFF', A700: '#6200EA' },
                indigo: { default: '#3F51B5', _500: '#3F51B5', _50: '#E8EAF6', _100: '#C5CAE9', _200: '#9FA8DA', _300: '#7986CB', _400: '#5C6BC0', _600: '#3949AB', _700: '#303F9F', _800: '#283593', _900: '#1A237E', A100: '#8C9EFF', A200: '#536DFE', A400: '#3D5AFE', A700: '#304FFE' },
                blue: { default: '#2196F3', _500: '#2196F3', _50: '#E3F2FD', _100: '#BBDEFB', _200: '#90CAF9', _300: '#64B5F6', _400: '#42A5F5', _600: '#1E88E5', _700: '#1976D2', _800: '#1565C0', _900: '#0D47A1', A100: '#82B1FF', A200: '#448AFF', A400: '#2979FF', A700: '#2962FF' },
                lightBlue: { default: '#03A9F4', _500: '#03A9F4', _50: '#E1F5FE', _100: '#B3E5FC', _200: '#81D4FA', _300: '#4FC3F7', _400: '#29B6F6', _600: '#039BE5', _700: '#0288D1', _800: '#0277BD', _900: '#01579B', A100: '#80D8FF', A200: '#40C4FF', A400: '#00B0FF', A700: '#0091EA' },
                cyan: { default: '#00BCD4', _500: '#00BCD4', _50: '#E0F7FA', _100: '#B2EBF2', _200: '#80DEEA', _300: '#4DD0E1', _400: '#26C6DA', _600: '#00ACC1', _700: '#0097A7', _800: '#00838F', _900: '#006064', A100: '#84FFFF', A200: '#18FFFF', A400: '#00E5FF', A700: '#00B8D4' },
                teal: { default: '#009688', _500: '#009688', _50: '#E0F2F1', _100: '#B2DFDB', _200: '#80CBC4', _300: '#4DB6AC', _400: '#26A69A', _600: '#00897B', _700: '#00796B', _800: '#00695C', _900: '#004D40', A100: '#A7FFEB', A200: '#64FFDA', A400: '#1DE9B6', A700: '#00BFA5' },
                green: { default: '#4CAF50', _500: '#4CAF50', _50: '#E8F5E9', _100: '#C8E6C9', _200: '#A5D6A7', _300: '#81C784', _400: '#66BB6A', _600: '#43A047', _700: '#388E3C', _800: '#2E7D32', _900: '#1B5E20', A100: '#B9F6CA', A200: '#69F0AE', A400: '#00E676', A700: '#00C853' },
                lightGreen: { default: '#8BC34A', _500: '#8BC34A', _50: '#F1F8E9', _100: '#DCEDC8', _200: '#C5E1A5', _300: '#AED581', _400: '#9CCC65', _600: '#7CB342', _700: '#689F38', _800: '#558B2F', _900: '#33691E', A100: '#CCFF90', A200: '#B2FF59', A400: '#76FF03', A700: '#64DD17' },
                lime: { default: '#CDDC39', _500: '#CDDC39', _50: '#F9FBE7', _100: '#F0F4C3', _200: '#E6EE9C', _300: '#DCE775', _400: '#D4E157', _600: '#C0CA33', _700: '#AFB42B', _800: '#9E9D24', _900: '#827717', A100: '#F4FF81', A200: '#EEFF41', A400: '#C6FF00', A700: '#AEEA00' },
                yellow: { default: '#FFEB3B', _500: '#FFEB3B', _50: '#FFFDE7', _100: '#FFF9C4', _200: '#FFF59D', _300: '#FFF176', _400: '#FFEE58', _600: '#FDD835', _700: '#FBC02D', _800: '#F9A825', _900: '#F57F17', A100: '#FFFF8D', A200: '#FFFF00', A400: '#FFEA00', A700: '#FFD600' },
                amber: { default: '#FFC107', _500: '#FFC107', _50: '#FFF8E1', _100: '#FFECB3', _200: '#FFE082', _300: '#FFD54F', _400: '#FFCA28', _600: '#FFB300', _700: '#FFA000', _800: '#FF8F00', _900: '#FF6F00', A100: '#FFE57F', A200: '#FFD740', A400: '#FFC400', A700: '#FFAB00' },
                orange: { default: '#FF9800', _500: '#FF9800', _50: '#FFF3E0', _100: '#FFE0B2', _200: '#FFCC80', _300: '#FFB74D', _400: '#FFA726', _600: '#FB8C00', _700: '#F57C00', _800: '#EF6C00', _900: '#E65100', A100: '#FFD180', A200: '#FFAB40', A400: '#FF9100', A700: '#FF6D00' },
                deepOrange: { default: '#FF5722', _500: '#FF5722', _50: '#FBE9E7', _100: '#FFCCBC', _200: '#FFAB91', _300: '#FF8A65', _400: '#FF7043', _600: '#F4511E', _700: '#E64A19', _800: '#D84315', _900: '#BF360C', A100: '#FF9E80', A200: '#FF6E40', A400: '#FF3D00', A700: '#DD2C00' },
                brown: { default: '#795548', _500: '#795548', _50: '#EFEBE9', _100: '#D7CCC8', _200: '#BCAAA4', _300: '#A1887F', _400: '#8D6E63', _600: '#6D4C41', _700: '#5D4037', _800: '#4E342E', _900: '#3E2723' },
                grey: { default: '#9E9E9E', _500: '#9E9E9E', _50: '#FAFAFA', _100: '#F5F5F5', _200: '#EEEEEE', _300: '#E0E0E0', _400: '#BDBDBD', _600: '#757575', _700: '#616161', _800: '#424242', _900: '#212121' },
                blueGrey: { default: '#607D8B', _500: '#607D8B', _50: '#ECEFF1', _100: '#CFD8DC', _200: '#B0BEC5', _300: '#90A4AE', _400: '#78909C', _600: '#546E7A', _700: '#455A64', _800: '#37474F', _900: '#263238' }
            };
        });
        /***/ 
    }),
    /* 707 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        module.exports = __webpack_require__(708);
        /***/ 
    }),
    /* 708 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _assign = __webpack_require__(11);
        var ReactBaseClasses = __webpack_require__(709);
        var ReactChildren = __webpack_require__(718);
        var ReactDOMFactories = __webpack_require__(726);
        var ReactElement = __webpack_require__(720);
        var ReactPropTypes = __webpack_require__(733);
        var ReactVersion = __webpack_require__(735);
        var createReactClass = __webpack_require__(736);
        var onlyChild = __webpack_require__(738);
        var createElement = ReactElement.createElement;
        var createFactory = ReactElement.createFactory;
        var cloneElement = ReactElement.cloneElement;
        if (true) {
            var lowPriorityWarning = __webpack_require__(717);
            var canDefineProperty = __webpack_require__(714);
            var ReactElementValidator = __webpack_require__(727);
            var didWarnPropTypesDeprecated = false;
            createElement = ReactElementValidator.createElement;
            createFactory = ReactElementValidator.createFactory;
            cloneElement = ReactElementValidator.cloneElement;
        }
        var __spread = _assign;
        var createMixin = function (mixin) {
            return mixin;
        };
        if (true) {
            var warnedForSpread = false;
            var warnedForCreateMixin = false;
            __spread = function () {
                lowPriorityWarning(warnedForSpread, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.');
                warnedForSpread = true;
                return _assign.apply(null, arguments);
            };
            createMixin = function (mixin) {
                lowPriorityWarning(warnedForCreateMixin, 'React.createMixin is deprecated and should not be used. ' + 'In React v16.0, it will be removed. ' + 'You can use this mixin directly instead. ' + 'See https://fb.me/createmixin-was-never-implemented for more info.');
                warnedForCreateMixin = true;
                return mixin;
            };
        }
        var React = {
            // Modern
            Children: {
                map: ReactChildren.map,
                forEach: ReactChildren.forEach,
                count: ReactChildren.count,
                toArray: ReactChildren.toArray,
                only: onlyChild
            },
            Component: ReactBaseClasses.Component,
            PureComponent: ReactBaseClasses.PureComponent,
            createElement: createElement,
            cloneElement: cloneElement,
            isValidElement: ReactElement.isValidElement,
            // Classic
            PropTypes: ReactPropTypes,
            createClass: createReactClass,
            createFactory: createFactory,
            createMixin: createMixin,
            // This looks DOM specific but these are actually isomorphic helpers
            // since they are just generating DOM strings.
            DOM: ReactDOMFactories,
            version: ReactVersion,
            // Deprecated hook for JSX spread, don't use this for anything.
            __spread: __spread
        };
        if (true) {
            var warnedForCreateClass = false;
            if (canDefineProperty) {
                Object.defineProperty(React, 'PropTypes', {
                    get: function () {
                        lowPriorityWarning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated,' + ' and will be removed in  React v16.0.' + ' Use the latest available v15.* prop-types package from npm instead.' + ' For info on usage, compatibility, migration and more, see ' + 'https://fb.me/prop-types-docs');
                        didWarnPropTypesDeprecated = true;
                        return ReactPropTypes;
                    }
                });
                Object.defineProperty(React, 'createClass', {
                    get: function () {
                        lowPriorityWarning(warnedForCreateClass, 'Accessing createClass via the main React package is deprecated,' + ' and will be removed in React v16.0.' + " Use a plain JavaScript class instead. If you're not yet " + 'ready to migrate, create-react-class v15.* is available ' + 'on npm as a temporary, drop-in replacement. ' + 'For more info see https://fb.me/react-create-class');
                        warnedForCreateClass = true;
                        return createReactClass;
                    }
                });
            }
            // React.DOM factories are deprecated. Wrap these methods so that
            // invocations of the React.DOM namespace and alert users to switch
            // to the `react-dom-factories` package.
            React.DOM = {};
            var warnedForFactories = false;
            Object.keys(ReactDOMFactories).forEach(function (factory) {
                React.DOM[factory] = function () {
                    if (!warnedForFactories) {
                        lowPriorityWarning(false, 'Accessing factories like React.DOM.%s has been deprecated ' + 'and will be removed in v16.0+. Use the ' + 'react-dom-factories package instead. ' + ' Version 1.0 provides a drop-in replacement.' + ' For more info, see https://fb.me/react-dom-factories', factory);
                        warnedForFactories = true;
                    }
                    return ReactDOMFactories[factory].apply(ReactDOMFactories, arguments);
                };
            });
        }
        module.exports = React;
        /***/ 
    }),
    /* 709 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _prodInvariant = __webpack_require__(710), _assign = __webpack_require__(11);
        var ReactNoopUpdateQueue = __webpack_require__(711);
        var canDefineProperty = __webpack_require__(714);
        var emptyObject = __webpack_require__(715);
        var invariant = __webpack_require__(716);
        var lowPriorityWarning = __webpack_require__(717);
        /**
         * Base class helpers for the updating state of a component.
         */
        function ReactComponent(props, context, updater) {
            this.props = props;
            this.context = context;
            this.refs = emptyObject;
            // We initialize the default updater but the real one gets injected by the
            // renderer.
            this.updater = updater || ReactNoopUpdateQueue;
        }
        ReactComponent.prototype.isReactComponent = {};
        /**
         * Sets a subset of the state. Always use this to mutate
         * state. You should treat `this.state` as immutable.
         *
         * There is no guarantee that `this.state` will be immediately updated, so
         * accessing `this.state` after calling this method may return the old value.
         *
         * There is no guarantee that calls to `setState` will run synchronously,
         * as they may eventually be batched together.  You can provide an optional
         * callback that will be executed when the call to setState is actually
         * completed.
         *
         * When a function is provided to setState, it will be called at some point in
         * the future (not synchronously). It will be called with the up to date
         * component arguments (state, props, context). These values can be different
         * from this.* because your function may be called after receiveProps but before
         * shouldComponentUpdate, and this new state, props, and context will not yet be
         * assigned to this.
         *
         * @param {object|function} partialState Next partial state or function to
         *        produce next partial state to be merged with current state.
         * @param {?function} callback Called after state is updated.
         * @final
         * @protected
         */
        ReactComponent.prototype.setState = function (partialState, callback) {
            !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? true ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : undefined : void 0;
            this.updater.enqueueSetState(this, partialState);
            if (callback) {
                this.updater.enqueueCallback(this, callback, 'setState');
            }
        };
        /**
         * Forces an update. This should only be invoked when it is known with
         * certainty that we are **not** in a DOM transaction.
         *
         * You may want to call this when you know that some deeper aspect of the
         * component's state has changed but `setState` was not called.
         *
         * This will not invoke `shouldComponentUpdate`, but it will invoke
         * `componentWillUpdate` and `componentDidUpdate`.
         *
         * @param {?function} callback Called after update is complete.
         * @final
         * @protected
         */
        ReactComponent.prototype.forceUpdate = function (callback) {
            this.updater.enqueueForceUpdate(this);
            if (callback) {
                this.updater.enqueueCallback(this, callback, 'forceUpdate');
            }
        };
        /**
         * Deprecated APIs. These APIs used to exist on classic React classes but since
         * we would like to deprecate them, we're not going to move them over to this
         * modern base class. Instead, we define a getter that warns if it's accessed.
         */
        if (true) {
            var deprecatedAPIs = {
                isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
                replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
            };
            var defineDeprecationWarning = function (methodName, info) {
                if (canDefineProperty) {
                    Object.defineProperty(ReactComponent.prototype, methodName, {
                        get: function () {
                            lowPriorityWarning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
                            return undefined;
                        }
                    });
                }
            };
            for (var fnName in deprecatedAPIs) {
                if (deprecatedAPIs.hasOwnProperty(fnName)) {
                    defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
                }
            }
        }
        /**
         * Base class helpers for the updating state of a component.
         */
        function ReactPureComponent(props, context, updater) {
            // Duplicated from ReactComponent.
            this.props = props;
            this.context = context;
            this.refs = emptyObject;
            // We initialize the default updater but the real one gets injected by the
            // renderer.
            this.updater = updater || ReactNoopUpdateQueue;
        }
        function ComponentDummy() { }
        ComponentDummy.prototype = ReactComponent.prototype;
        ReactPureComponent.prototype = new ComponentDummy();
        ReactPureComponent.prototype.constructor = ReactPureComponent;
        // Avoid an extra prototype jump for these methods.
        _assign(ReactPureComponent.prototype, ReactComponent.prototype);
        ReactPureComponent.prototype.isPureReactComponent = true;
        module.exports = {
            Component: ReactComponent,
            PureComponent: ReactPureComponent
        };
        /***/ 
    }),
    /* 710 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        /**
         * WARNING: DO NOT manually require this module.
         * This is a replacement for `invariant(...)` used by the error code system
         * and will _only_ be required by the corresponding babel pass.
         * It always throws.
         */
        function reactProdInvariant(code) {
            var argCount = arguments.length - 1;
            var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
            for (var argIdx = 0; argIdx < argCount; argIdx++) {
                message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
            }
            message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
            var error = new Error(message);
            error.name = 'Invariant Violation';
            error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
            throw error;
        }
        module.exports = reactProdInvariant;
        /***/ 
    }),
    /* 711 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2015-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var warning = __webpack_require__(712);
        function warnNoop(publicInstance, callerName) {
            if (true) {
                var constructor = publicInstance.constructor;
                true ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : undefined;
            }
        }
        /**
         * This is the abstract API for an update queue.
         */
        var ReactNoopUpdateQueue = {
            /**
             * Checks whether or not this composite component is mounted.
             * @param {ReactClass} publicInstance The instance we want to test.
             * @return {boolean} True if mounted, false otherwise.
             * @protected
             * @final
             */
            isMounted: function (publicInstance) {
                return false;
            },
            /**
             * Enqueue a callback that will be executed after all the pending updates
             * have processed.
             *
             * @param {ReactClass} publicInstance The instance to use as `this` context.
             * @param {?function} callback Called after state is updated.
             * @internal
             */
            enqueueCallback: function (publicInstance, callback) { },
            /**
             * Forces an update. This should only be invoked when it is known with
             * certainty that we are **not** in a DOM transaction.
             *
             * You may want to call this when you know that some deeper aspect of the
             * component's state has changed but `setState` was not called.
             *
             * This will not invoke `shouldComponentUpdate`, but it will invoke
             * `componentWillUpdate` and `componentDidUpdate`.
             *
             * @param {ReactClass} publicInstance The instance that should rerender.
             * @internal
             */
            enqueueForceUpdate: function (publicInstance) {
                warnNoop(publicInstance, 'forceUpdate');
            },
            /**
             * Replaces all of the state. Always use this or `setState` to mutate state.
             * You should treat `this.state` as immutable.
             *
             * There is no guarantee that `this.state` will be immediately updated, so
             * accessing `this.state` after calling this method may return the old value.
             *
             * @param {ReactClass} publicInstance The instance that should rerender.
             * @param {object} completeState Next state.
             * @internal
             */
            enqueueReplaceState: function (publicInstance, completeState) {
                warnNoop(publicInstance, 'replaceState');
            },
            /**
             * Sets a subset of the state. This only exists because _pendingState is
             * internal. This provides a merging strategy that is not available to deep
             * properties which is confusing. TODO: Expose pendingState or don't use it
             * during the merge.
             *
             * @param {ReactClass} publicInstance The instance that should rerender.
             * @param {object} partialState Next partial state to be merged with state.
             * @internal
             */
            enqueueSetState: function (publicInstance, partialState) {
                warnNoop(publicInstance, 'setState');
            }
        };
        module.exports = ReactNoopUpdateQueue;
        /***/ 
    }),
    /* 712 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var emptyFunction = __webpack_require__(713);
        /**
         * Similar to invariant but only logs a warning if the condition is not met.
         * This can be used to log issues in development environments in critical
         * paths. Removing the logging code for production environments will keep the
         * same logic and follow the same code paths.
         */
        var warning = emptyFunction;
        if (true) {
            var printWarning = function printWarning(format) {
                for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                    args[_key - 1] = arguments[_key];
                }
                var argIndex = 0;
                var message = 'Warning: ' + format.replace(/%s/g, function () {
                    return args[argIndex++];
                });
                if (typeof console !== 'undefined') {
                    console.error(message);
                }
                try {
                    // --- Welcome to debugging React ---
                    // This error was thrown as a convenience so that you can use this stack
                    // to find the callsite that caused this warning to fire.
                    throw new Error(message);
                }
                catch (x) { }
            };
            warning = function warning(condition, format) {
                if (format === undefined) {
                    throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
                }
                if (format.indexOf('Failed Composite propType: ') === 0) {
                    return; // Ignore CompositeComponent proptype check.
                }
                if (!condition) {
                    for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
                        args[_key2 - 2] = arguments[_key2];
                    }
                    printWarning.apply(undefined, [format].concat(args));
                }
            };
        }
        module.exports = warning;
        /***/ 
    }),
    /* 713 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        function makeEmptyFunction(arg) {
            return function () {
                return arg;
            };
        }
        /**
         * This function accepts and discards inputs; it has no side effects. This is
         * primarily useful idiomatically for overridable function endpoints which
         * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
         */
        var emptyFunction = function emptyFunction() { };
        emptyFunction.thatReturns = makeEmptyFunction;
        emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
        emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
        emptyFunction.thatReturnsNull = makeEmptyFunction(null);
        emptyFunction.thatReturnsThis = function () {
            return this;
        };
        emptyFunction.thatReturnsArgument = function (arg) {
            return arg;
        };
        module.exports = emptyFunction;
        /***/ 
    }),
    /* 714 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        var canDefineProperty = false;
        if (true) {
            try {
                // $FlowFixMe https://github.com/facebook/flow/issues/285
                Object.defineProperty({}, 'x', { get: function () { } });
                canDefineProperty = true;
            }
            catch (x) {
                // IE will fail on defineProperty
            }
        }
        module.exports = canDefineProperty;
        /***/ 
    }),
    /* 715 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var emptyObject = {};
        if (true) {
            Object.freeze(emptyObject);
        }
        module.exports = emptyObject;
        /***/ 
    }),
    /* 716 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        /**
         * Use invariant() to assert state which your program assumes to be true.
         *
         * Provide sprintf-style format (only %s is supported) and arguments
         * to provide information about what broke and what you were
         * expecting.
         *
         * The invariant message will be stripped in production, but the invariant
         * will remain to ensure logic does not differ in production.
         */
        var validateFormat = function validateFormat(format) { };
        if (true) {
            validateFormat = function validateFormat(format) {
                if (format === undefined) {
                    throw new Error('invariant requires an error message argument');
                }
            };
        }
        function invariant(condition, format, a, b, c, d, e, f) {
            validateFormat(format);
            if (!condition) {
                var error;
                if (format === undefined) {
                    error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
                }
                else {
                    var args = [a, b, c, d, e, f];
                    var argIndex = 0;
                    error = new Error(format.replace(/%s/g, function () {
                        return args[argIndex++];
                    }));
                    error.name = 'Invariant Violation';
                }
                error.framesToPop = 1; // we don't care about invariant's own frame
                throw error;
            }
        }
        module.exports = invariant;
        /***/ 
    }),
    /* 717 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        /**
         * Forked from fbjs/warning:
         * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
         *
         * Only change is we use console.warn instead of console.error,
         * and do nothing when 'console' is not supported.
         * This really simplifies the code.
         * ---
         * Similar to invariant but only logs a warning if the condition is not met.
         * This can be used to log issues in development environments in critical
         * paths. Removing the logging code for production environments will keep the
         * same logic and follow the same code paths.
         */
        var lowPriorityWarning = function () { };
        if (true) {
            var printWarning = function (format) {
                for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                    args[_key - 1] = arguments[_key];
                }
                var argIndex = 0;
                var message = 'Warning: ' + format.replace(/%s/g, function () {
                    return args[argIndex++];
                });
                if (typeof console !== 'undefined') {
                    console.warn(message);
                }
                try {
                    // --- Welcome to debugging React ---
                    // This error was thrown as a convenience so that you can use this stack
                    // to find the callsite that caused this warning to fire.
                    throw new Error(message);
                }
                catch (x) { }
            };
            lowPriorityWarning = function (condition, format) {
                if (format === undefined) {
                    throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
                }
                if (!condition) {
                    for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
                        args[_key2 - 2] = arguments[_key2];
                    }
                    printWarning.apply(undefined, [format].concat(args));
                }
            };
        }
        module.exports = lowPriorityWarning;
        /***/ 
    }),
    /* 718 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var PooledClass = __webpack_require__(719);
        var ReactElement = __webpack_require__(720);
        var emptyFunction = __webpack_require__(713);
        var traverseAllChildren = __webpack_require__(723);
        var twoArgumentPooler = PooledClass.twoArgumentPooler;
        var fourArgumentPooler = PooledClass.fourArgumentPooler;
        var userProvidedKeyEscapeRegex = /\/+/g;
        function escapeUserProvidedKey(text) {
            return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
        }
        /**
         * PooledClass representing the bookkeeping associated with performing a child
         * traversal. Allows avoiding binding callbacks.
         *
         * @constructor ForEachBookKeeping
         * @param {!function} forEachFunction Function to perform traversal with.
         * @param {?*} forEachContext Context to perform context with.
         */
        function ForEachBookKeeping(forEachFunction, forEachContext) {
            this.func = forEachFunction;
            this.context = forEachContext;
            this.count = 0;
        }
        ForEachBookKeeping.prototype.destructor = function () {
            this.func = null;
            this.context = null;
            this.count = 0;
        };
        PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);
        function forEachSingleChild(bookKeeping, child, name) {
            var func = bookKeeping.func, context = bookKeeping.context;
            func.call(context, child, bookKeeping.count++);
        }
        /**
         * Iterates through children that are typically specified as `props.children`.
         *
         * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach
         *
         * The provided forEachFunc(child, index) will be called for each
         * leaf child.
         *
         * @param {?*} children Children tree container.
         * @param {function(*, int)} forEachFunc
         * @param {*} forEachContext Context for forEachContext.
         */
        function forEachChildren(children, forEachFunc, forEachContext) {
            if (children == null) {
                return children;
            }
            var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
            traverseAllChildren(children, forEachSingleChild, traverseContext);
            ForEachBookKeeping.release(traverseContext);
        }
        /**
         * PooledClass representing the bookkeeping associated with performing a child
         * mapping. Allows avoiding binding callbacks.
         *
         * @constructor MapBookKeeping
         * @param {!*} mapResult Object containing the ordered map of results.
         * @param {!function} mapFunction Function to perform mapping with.
         * @param {?*} mapContext Context to perform mapping with.
         */
        function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
            this.result = mapResult;
            this.keyPrefix = keyPrefix;
            this.func = mapFunction;
            this.context = mapContext;
            this.count = 0;
        }
        MapBookKeeping.prototype.destructor = function () {
            this.result = null;
            this.keyPrefix = null;
            this.func = null;
            this.context = null;
            this.count = 0;
        };
        PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
        function mapSingleChildIntoContext(bookKeeping, child, childKey) {
            var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context;
            var mappedChild = func.call(context, child, bookKeeping.count++);
            if (Array.isArray(mappedChild)) {
                mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
            }
            else if (mappedChild != null) {
                if (ReactElement.isValidElement(mappedChild)) {
                    mappedChild = ReactElement.cloneAndReplaceKey(mappedChild, 
                    // Keep both the (mapped) and old keys if they differ, just as
                    // traverseAllChildren used to do for objects as children
                    keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
                }
                result.push(mappedChild);
            }
        }
        function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
            var escapedPrefix = '';
            if (prefix != null) {
                escapedPrefix = escapeUserProvidedKey(prefix) + '/';
            }
            var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
            traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
            MapBookKeeping.release(traverseContext);
        }
        /**
         * Maps children that are typically specified as `props.children`.
         *
         * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map
         *
         * The provided mapFunction(child, key, index) will be called for each
         * leaf child.
         *
         * @param {?*} children Children tree container.
         * @param {function(*, int)} func The map function.
         * @param {*} context Context for mapFunction.
         * @return {object} Object containing the ordered map of results.
         */
        function mapChildren(children, func, context) {
            if (children == null) {
                return children;
            }
            var result = [];
            mapIntoWithKeyPrefixInternal(children, result, null, func, context);
            return result;
        }
        function forEachSingleChildDummy(traverseContext, child, name) {
            return null;
        }
        /**
         * Count the number of children that are typically specified as
         * `props.children`.
         *
         * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count
         *
         * @param {?*} children Children tree container.
         * @return {number} The number of children.
         */
        function countChildren(children, context) {
            return traverseAllChildren(children, forEachSingleChildDummy, null);
        }
        /**
         * Flatten a children object (typically specified as `props.children`) and
         * return an array with appropriately re-keyed children.
         *
         * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray
         */
        function toArray(children) {
            var result = [];
            mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
            return result;
        }
        var ReactChildren = {
            forEach: forEachChildren,
            map: mapChildren,
            mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
            count: countChildren,
            toArray: toArray
        };
        module.exports = ReactChildren;
        /***/ 
    }),
    /* 719 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        var _prodInvariant = __webpack_require__(710);
        var invariant = __webpack_require__(716);
        /**
         * Static poolers. Several custom versions for each potential number of
         * arguments. A completely generic pooler is easy to implement, but would
         * require accessing the `arguments` object. In each of these, `this` refers to
         * the Class itself, not an instance. If any others are needed, simply add them
         * here, or in their own files.
         */
        var oneArgumentPooler = function (copyFieldsFrom) {
            var Klass = this;
            if (Klass.instancePool.length) {
                var instance = Klass.instancePool.pop();
                Klass.call(instance, copyFieldsFrom);
                return instance;
            }
            else {
                return new Klass(copyFieldsFrom);
            }
        };
        var twoArgumentPooler = function (a1, a2) {
            var Klass = this;
            if (Klass.instancePool.length) {
                var instance = Klass.instancePool.pop();
                Klass.call(instance, a1, a2);
                return instance;
            }
            else {
                return new Klass(a1, a2);
            }
        };
        var threeArgumentPooler = function (a1, a2, a3) {
            var Klass = this;
            if (Klass.instancePool.length) {
                var instance = Klass.instancePool.pop();
                Klass.call(instance, a1, a2, a3);
                return instance;
            }
            else {
                return new Klass(a1, a2, a3);
            }
        };
        var fourArgumentPooler = function (a1, a2, a3, a4) {
            var Klass = this;
            if (Klass.instancePool.length) {
                var instance = Klass.instancePool.pop();
                Klass.call(instance, a1, a2, a3, a4);
                return instance;
            }
            else {
                return new Klass(a1, a2, a3, a4);
            }
        };
        var standardReleaser = function (instance) {
            var Klass = this;
            !(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : undefined : void 0;
            instance.destructor();
            if (Klass.instancePool.length < Klass.poolSize) {
                Klass.instancePool.push(instance);
            }
        };
        var DEFAULT_POOL_SIZE = 10;
        var DEFAULT_POOLER = oneArgumentPooler;
        /**
         * Augments `CopyConstructor` to be a poolable class, augmenting only the class
         * itself (statically) not adding any prototypical fields. Any CopyConstructor
         * you give this may have a `poolSize` property, and will look for a
         * prototypical `destructor` on instances.
         *
         * @param {Function} CopyConstructor Constructor that can be used to reset.
         * @param {Function} pooler Customizable pooler.
         */
        var addPoolingTo = function (CopyConstructor, pooler) {
            // Casting as any so that flow ignores the actual implementation and trusts
            // it to match the type we declared
            var NewKlass = CopyConstructor;
            NewKlass.instancePool = [];
            NewKlass.getPooled = pooler || DEFAULT_POOLER;
            if (!NewKlass.poolSize) {
                NewKlass.poolSize = DEFAULT_POOL_SIZE;
            }
            NewKlass.release = standardReleaser;
            return NewKlass;
        };
        var PooledClass = {
            addPoolingTo: addPoolingTo,
            oneArgumentPooler: oneArgumentPooler,
            twoArgumentPooler: twoArgumentPooler,
            threeArgumentPooler: threeArgumentPooler,
            fourArgumentPooler: fourArgumentPooler
        };
        module.exports = PooledClass;
        /***/ 
    }),
    /* 720 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _assign = __webpack_require__(11);
        var ReactCurrentOwner = __webpack_require__(721);
        var warning = __webpack_require__(712);
        var canDefineProperty = __webpack_require__(714);
        var hasOwnProperty = Object.prototype.hasOwnProperty;
        var REACT_ELEMENT_TYPE = __webpack_require__(722);
        var RESERVED_PROPS = {
            key: true,
            ref: true,
            __self: true,
            __source: true
        };
        var specialPropKeyWarningShown, specialPropRefWarningShown;
        function hasValidRef(config) {
            if (true) {
                if (hasOwnProperty.call(config, 'ref')) {
                    var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
                    if (getter && getter.isReactWarning) {
                        return false;
                    }
                }
            }
            return config.ref !== undefined;
        }
        function hasValidKey(config) {
            if (true) {
                if (hasOwnProperty.call(config, 'key')) {
                    var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
                    if (getter && getter.isReactWarning) {
                        return false;
                    }
                }
            }
            return config.key !== undefined;
        }
        function defineKeyPropWarningGetter(props, displayName) {
            var warnAboutAccessingKey = function () {
                if (!specialPropKeyWarningShown) {
                    specialPropKeyWarningShown = true;
                    true ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : undefined;
                }
            };
            warnAboutAccessingKey.isReactWarning = true;
            Object.defineProperty(props, 'key', {
                get: warnAboutAccessingKey,
                configurable: true
            });
        }
        function defineRefPropWarningGetter(props, displayName) {
            var warnAboutAccessingRef = function () {
                if (!specialPropRefWarningShown) {
                    specialPropRefWarningShown = true;
                    true ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : undefined;
                }
            };
            warnAboutAccessingRef.isReactWarning = true;
            Object.defineProperty(props, 'ref', {
                get: warnAboutAccessingRef,
                configurable: true
            });
        }
        /**
         * Factory method to create a new React element. This no longer adheres to
         * the class pattern, so do not use new to call it. Also, no instanceof check
         * will work. Instead test $$typeof field against Symbol.for('react.element') to check
         * if something is a React Element.
         *
         * @param {*} type
         * @param {*} key
         * @param {string|object} ref
         * @param {*} self A *temporary* helper to detect places where `this` is
         * different from the `owner` when React.createElement is called, so that we
         * can warn. We want to get rid of owner and replace string `ref`s with arrow
         * functions, and as long as `this` and owner are the same, there will be no
         * change in behavior.
         * @param {*} source An annotation object (added by a transpiler or otherwise)
         * indicating filename, line number, and/or other information.
         * @param {*} owner
         * @param {*} props
         * @internal
         */
        var ReactElement = function (type, key, ref, self, source, owner, props) {
            var element = {
                // This tag allow us to uniquely identify this as a React Element
                $$typeof: REACT_ELEMENT_TYPE,
                // Built-in properties that belong on the element
                type: type,
                key: key,
                ref: ref,
                props: props,
                // Record the component responsible for creating this element.
                _owner: owner
            };
            if (true) {
                // The validation flag is currently mutative. We put it on
                // an external backing store so that we can freeze the whole object.
                // This can be replaced with a WeakMap once they are implemented in
                // commonly used development environments.
                element._store = {};
                // To make comparing ReactElements easier for testing purposes, we make
                // the validation flag non-enumerable (where possible, which should
                // include every environment we run tests in), so the test framework
                // ignores it.
                if (canDefineProperty) {
                    Object.defineProperty(element._store, 'validated', {
                        configurable: false,
                        enumerable: false,
                        writable: true,
                        value: false
                    });
                    // self and source are DEV only properties.
                    Object.defineProperty(element, '_self', {
                        configurable: false,
                        enumerable: false,
                        writable: false,
                        value: self
                    });
                    // Two elements created in two different places should be considered
                    // equal for testing purposes and therefore we hide it from enumeration.
                    Object.defineProperty(element, '_source', {
                        configurable: false,
                        enumerable: false,
                        writable: false,
                        value: source
                    });
                }
                else {
                    element._store.validated = false;
                    element._self = self;
                    element._source = source;
                }
                if (Object.freeze) {
                    Object.freeze(element.props);
                    Object.freeze(element);
                }
            }
            return element;
        };
        /**
         * Create and return a new ReactElement of the given type.
         * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement
         */
        ReactElement.createElement = function (type, config, children) {
            var propName;
            // Reserved names are extracted
            var props = {};
            var key = null;
            var ref = null;
            var self = null;
            var source = null;
            if (config != null) {
                if (hasValidRef(config)) {
                    ref = config.ref;
                }
                if (hasValidKey(config)) {
                    key = '' + config.key;
                }
                self = config.__self === undefined ? null : config.__self;
                source = config.__source === undefined ? null : config.__source;
                // Remaining properties are added to a new props object
                for (propName in config) {
                    if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
                        props[propName] = config[propName];
                    }
                }
            }
            // Children can be more than one argument, and those are transferred onto
            // the newly allocated props object.
            var childrenLength = arguments.length - 2;
            if (childrenLength === 1) {
                props.children = children;
            }
            else if (childrenLength > 1) {
                var childArray = Array(childrenLength);
                for (var i = 0; i < childrenLength; i++) {
                    childArray[i] = arguments[i + 2];
                }
                if (true) {
                    if (Object.freeze) {
                        Object.freeze(childArray);
                    }
                }
                props.children = childArray;
            }
            // Resolve default props
            if (type && type.defaultProps) {
                var defaultProps = type.defaultProps;
                for (propName in defaultProps) {
                    if (props[propName] === undefined) {
                        props[propName] = defaultProps[propName];
                    }
                }
            }
            if (true) {
                if (key || ref) {
                    if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
                        var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
                        if (key) {
                            defineKeyPropWarningGetter(props, displayName);
                        }
                        if (ref) {
                            defineRefPropWarningGetter(props, displayName);
                        }
                    }
                }
            }
            return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
        };
        /**
         * Return a function that produces ReactElements of a given type.
         * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory
         */
        ReactElement.createFactory = function (type) {
            var factory = ReactElement.createElement.bind(null, type);
            // Expose the type on the factory and the prototype so that it can be
            // easily accessed on elements. E.g. `<Foo />.type === Foo`.
            // This should not be named `constructor` since this may not be the function
            // that created the element, and it may not even be a constructor.
            // Legacy hook TODO: Warn if this is accessed
            factory.type = type;
            return factory;
        };
        ReactElement.cloneAndReplaceKey = function (oldElement, newKey) {
            var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
            return newElement;
        };
        /**
         * Clone and return a new ReactElement using element as the starting point.
         * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
         */
        ReactElement.cloneElement = function (element, config, children) {
            var propName;
            // Original props are copied
            var props = _assign({}, element.props);
            // Reserved names are extracted
            var key = element.key;
            var ref = element.ref;
            // Self is preserved since the owner is preserved.
            var self = element._self;
            // Source is preserved since cloneElement is unlikely to be targeted by a
            // transpiler, and the original source is probably a better indicator of the
            // true owner.
            var source = element._source;
            // Owner will be preserved, unless ref is overridden
            var owner = element._owner;
            if (config != null) {
                if (hasValidRef(config)) {
                    // Silently steal the ref from the parent.
                    ref = config.ref;
                    owner = ReactCurrentOwner.current;
                }
                if (hasValidKey(config)) {
                    key = '' + config.key;
                }
                // Remaining properties override existing props
                var defaultProps;
                if (element.type && element.type.defaultProps) {
                    defaultProps = element.type.defaultProps;
                }
                for (propName in config) {
                    if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
                        if (config[propName] === undefined && defaultProps !== undefined) {
                            // Resolve default props
                            props[propName] = defaultProps[propName];
                        }
                        else {
                            props[propName] = config[propName];
                        }
                    }
                }
            }
            // Children can be more than one argument, and those are transferred onto
            // the newly allocated props object.
            var childrenLength = arguments.length - 2;
            if (childrenLength === 1) {
                props.children = children;
            }
            else if (childrenLength > 1) {
                var childArray = Array(childrenLength);
                for (var i = 0; i < childrenLength; i++) {
                    childArray[i] = arguments[i + 2];
                }
                props.children = childArray;
            }
            return ReactElement(element.type, key, ref, self, source, owner, props);
        };
        /**
         * Verifies the object is a ReactElement.
         * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement
         * @param {?object} object
         * @return {boolean} True if `object` is a valid component.
         * @final
         */
        ReactElement.isValidElement = function (object) {
            return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
        };
        module.exports = ReactElement;
        /***/ 
    }),
    /* 721 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        /**
         * Keeps track of the current owner.
         *
         * The current owner is the component who should own any components that are
         * currently being constructed.
         */
        var ReactCurrentOwner = {
            /**
             * @internal
             * @type {ReactComponent}
             */
            current: null
        };
        module.exports = ReactCurrentOwner;
        /***/ 
    }),
    /* 722 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        // The Symbol used to tag the ReactElement type. If there is no native Symbol
        // nor polyfill, then a plain number is used for performance.
        var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
        module.exports = REACT_ELEMENT_TYPE;
        /***/ 
    }),
    /* 723 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _prodInvariant = __webpack_require__(710);
        var ReactCurrentOwner = __webpack_require__(721);
        var REACT_ELEMENT_TYPE = __webpack_require__(722);
        var getIteratorFn = __webpack_require__(724);
        var invariant = __webpack_require__(716);
        var KeyEscapeUtils = __webpack_require__(725);
        var warning = __webpack_require__(712);
        var SEPARATOR = '.';
        var SUBSEPARATOR = ':';
        /**
         * This is inlined from ReactElement since this file is shared between
         * isomorphic and renderers. We could extract this to a
         *
         */
        /**
         * TODO: Test that a single child and an array with one item have the same key
         * pattern.
         */
        var didWarnAboutMaps = false;
        /**
         * Generate a key string that identifies a component within a set.
         *
         * @param {*} component A component that could contain a manual key.
         * @param {number} index Index that is used if a manual key is not provided.
         * @return {string}
         */
        function getComponentKey(component, index) {
            // Do some typechecking here since we call this blindly. We want to ensure
            // that we don't block potential future ES APIs.
            if (component && typeof component === 'object' && component.key != null) {
                // Explicit key
                return KeyEscapeUtils.escape(component.key);
            }
            // Implicit key determined by the index in the set
            return index.toString(36);
        }
        /**
         * @param {?*} children Children tree container.
         * @param {!string} nameSoFar Name of the key path so far.
         * @param {!function} callback Callback to invoke with each child found.
         * @param {?*} traverseContext Used to pass information throughout the traversal
         * process.
         * @return {!number} The number of children in this subtree.
         */
        function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
            var type = typeof children;
            if (type === 'undefined' || type === 'boolean') {
                // All of the above are perceived as null.
                children = null;
            }
            if (children === null || type === 'string' || type === 'number' ||
                // The following is inlined from ReactElement. This means we can optimize
                // some checks. React Fiber also inlines this logic for similar purposes.
                type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
                callback(traverseContext, children, 
                // If it's the only child, treat the name as if it was wrapped in an array
                // so that it's consistent if the number of children grows.
                nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
                return 1;
            }
            var child;
            var nextName;
            var subtreeCount = 0; // Count of children found in the current subtree.
            var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
            if (Array.isArray(children)) {
                for (var i = 0; i < children.length; i++) {
                    child = children[i];
                    nextName = nextNamePrefix + getComponentKey(child, i);
                    subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
                }
            }
            else {
                var iteratorFn = getIteratorFn(children);
                if (iteratorFn) {
                    var iterator = iteratorFn.call(children);
                    var step;
                    if (iteratorFn !== children.entries) {
                        var ii = 0;
                        while (!(step = iterator.next()).done) {
                            child = step.value;
                            nextName = nextNamePrefix + getComponentKey(child, ii++);
                            subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
                        }
                    }
                    else {
                        if (true) {
                            var mapsAsChildrenAddendum = '';
                            if (ReactCurrentOwner.current) {
                                var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
                                if (mapsAsChildrenOwnerName) {
                                    mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
                                }
                            }
                            true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : undefined;
                            didWarnAboutMaps = true;
                        }
                        // Iterator will provide entry [k,v] tuples rather than values.
                        while (!(step = iterator.next()).done) {
                            var entry = step.value;
                            if (entry) {
                                child = entry[1];
                                nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
                                subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
                            }
                        }
                    }
                }
                else if (type === 'object') {
                    var addendum = '';
                    if (true) {
                        addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
                        if (children._isReactElement) {
                            addendum = " It looks like you're using an element created by a different " + 'version of React. Make sure to use only one copy of React.';
                        }
                        if (ReactCurrentOwner.current) {
                            var name = ReactCurrentOwner.current.getName();
                            if (name) {
                                addendum += ' Check the render method of `' + name + '`.';
                            }
                        }
                    }
                    var childrenString = String(children);
                    true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : undefined : undefined;
                }
            }
            return subtreeCount;
        }
        /**
         * Traverses children that are typically specified as `props.children`, but
         * might also be specified through attributes:
         *
         * - `traverseAllChildren(this.props.children, ...)`
         * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
         *
         * The `traverseContext` is an optional argument that is passed through the
         * entire traversal. It can be used to store accumulations or anything else that
         * the callback might find relevant.
         *
         * @param {?*} children Children tree object.
         * @param {!function} callback To invoke upon traversing each child.
         * @param {?*} traverseContext Context for traversal.
         * @return {!number} The number of children in this subtree.
         */
        function traverseAllChildren(children, callback, traverseContext) {
            if (children == null) {
                return 0;
            }
            return traverseAllChildrenImpl(children, '', callback, traverseContext);
        }
        module.exports = traverseAllChildren;
        /***/ 
    }),
    /* 724 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        /* global Symbol */
        var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
        var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
        /**
         * Returns the iterator method function contained on the iterable object.
         *
         * Be sure to invoke the function with the iterable as context:
         *
         *     var iteratorFn = getIteratorFn(myIterable);
         *     if (iteratorFn) {
         *       var iterator = iteratorFn.call(myIterable);
         *       ...
         *     }
         *
         * @param {?object} maybeIterable
         * @return {?function}
         */
        function getIteratorFn(maybeIterable) {
            var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
            if (typeof iteratorFn === 'function') {
                return iteratorFn;
            }
        }
        module.exports = getIteratorFn;
        /***/ 
    }),
    /* 725 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        /**
         * Escape and wrap key so it is safe to use as a reactid
         *
         * @param {string} key to be escaped.
         * @return {string} the escaped key.
         */
        function escape(key) {
            var escapeRegex = /[=:]/g;
            var escaperLookup = {
                '=': '=0',
                ':': '=2'
            };
            var escapedString = ('' + key).replace(escapeRegex, function (match) {
                return escaperLookup[match];
            });
            return '$' + escapedString;
        }
        /**
         * Unescape and unwrap key for human-readable display
         *
         * @param {string} key to unescape.
         * @return {string} the unescaped key.
         */
        function unescape(key) {
            var unescapeRegex = /(=0|=2)/g;
            var unescaperLookup = {
                '=0': '=',
                '=2': ':'
            };
            var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
            return ('' + keySubstring).replace(unescapeRegex, function (match) {
                return unescaperLookup[match];
            });
        }
        var KeyEscapeUtils = {
            escape: escape,
            unescape: unescape
        };
        module.exports = KeyEscapeUtils;
        /***/ 
    }),
    /* 726 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var ReactElement = __webpack_require__(720);
        /**
         * Create a factory that creates HTML tag elements.
         *
         * @private
         */
        var createDOMFactory = ReactElement.createFactory;
        if (true) {
            var ReactElementValidator = __webpack_require__(727);
            createDOMFactory = ReactElementValidator.createFactory;
        }
        /**
         * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
         *
         * @public
         */
        var ReactDOMFactories = {
            a: createDOMFactory('a'),
            abbr: createDOMFactory('abbr'),
            address: createDOMFactory('address'),
            area: createDOMFactory('area'),
            article: createDOMFactory('article'),
            aside: createDOMFactory('aside'),
            audio: createDOMFactory('audio'),
            b: createDOMFactory('b'),
            base: createDOMFactory('base'),
            bdi: createDOMFactory('bdi'),
            bdo: createDOMFactory('bdo'),
            big: createDOMFactory('big'),
            blockquote: createDOMFactory('blockquote'),
            body: createDOMFactory('body'),
            br: createDOMFactory('br'),
            button: createDOMFactory('button'),
            canvas: createDOMFactory('canvas'),
            caption: createDOMFactory('caption'),
            cite: createDOMFactory('cite'),
            code: createDOMFactory('code'),
            col: createDOMFactory('col'),
            colgroup: createDOMFactory('colgroup'),
            data: createDOMFactory('data'),
            datalist: createDOMFactory('datalist'),
            dd: createDOMFactory('dd'),
            del: createDOMFactory('del'),
            details: createDOMFactory('details'),
            dfn: createDOMFactory('dfn'),
            dialog: createDOMFactory('dialog'),
            div: createDOMFactory('div'),
            dl: createDOMFactory('dl'),
            dt: createDOMFactory('dt'),
            em: createDOMFactory('em'),
            embed: createDOMFactory('embed'),
            fieldset: createDOMFactory('fieldset'),
            figcaption: createDOMFactory('figcaption'),
            figure: createDOMFactory('figure'),
            footer: createDOMFactory('footer'),
            form: createDOMFactory('form'),
            h1: createDOMFactory('h1'),
            h2: createDOMFactory('h2'),
            h3: createDOMFactory('h3'),
            h4: createDOMFactory('h4'),
            h5: createDOMFactory('h5'),
            h6: createDOMFactory('h6'),
            head: createDOMFactory('head'),
            header: createDOMFactory('header'),
            hgroup: createDOMFactory('hgroup'),
            hr: createDOMFactory('hr'),
            html: createDOMFactory('html'),
            i: createDOMFactory('i'),
            iframe: createDOMFactory('iframe'),
            img: createDOMFactory('img'),
            input: createDOMFactory('input'),
            ins: createDOMFactory('ins'),
            kbd: createDOMFactory('kbd'),
            keygen: createDOMFactory('keygen'),
            label: createDOMFactory('label'),
            legend: createDOMFactory('legend'),
            li: createDOMFactory('li'),
            link: createDOMFactory('link'),
            main: createDOMFactory('main'),
            map: createDOMFactory('map'),
            mark: createDOMFactory('mark'),
            menu: createDOMFactory('menu'),
            menuitem: createDOMFactory('menuitem'),
            meta: createDOMFactory('meta'),
            meter: createDOMFactory('meter'),
            nav: createDOMFactory('nav'),
            noscript: createDOMFactory('noscript'),
            object: createDOMFactory('object'),
            ol: createDOMFactory('ol'),
            optgroup: createDOMFactory('optgroup'),
            option: createDOMFactory('option'),
            output: createDOMFactory('output'),
            p: createDOMFactory('p'),
            param: createDOMFactory('param'),
            picture: createDOMFactory('picture'),
            pre: createDOMFactory('pre'),
            progress: createDOMFactory('progress'),
            q: createDOMFactory('q'),
            rp: createDOMFactory('rp'),
            rt: createDOMFactory('rt'),
            ruby: createDOMFactory('ruby'),
            s: createDOMFactory('s'),
            samp: createDOMFactory('samp'),
            script: createDOMFactory('script'),
            section: createDOMFactory('section'),
            select: createDOMFactory('select'),
            small: createDOMFactory('small'),
            source: createDOMFactory('source'),
            span: createDOMFactory('span'),
            strong: createDOMFactory('strong'),
            style: createDOMFactory('style'),
            sub: createDOMFactory('sub'),
            summary: createDOMFactory('summary'),
            sup: createDOMFactory('sup'),
            table: createDOMFactory('table'),
            tbody: createDOMFactory('tbody'),
            td: createDOMFactory('td'),
            textarea: createDOMFactory('textarea'),
            tfoot: createDOMFactory('tfoot'),
            th: createDOMFactory('th'),
            thead: createDOMFactory('thead'),
            time: createDOMFactory('time'),
            title: createDOMFactory('title'),
            tr: createDOMFactory('tr'),
            track: createDOMFactory('track'),
            u: createDOMFactory('u'),
            ul: createDOMFactory('ul'),
            'var': createDOMFactory('var'),
            video: createDOMFactory('video'),
            wbr: createDOMFactory('wbr'),
            // SVG
            circle: createDOMFactory('circle'),
            clipPath: createDOMFactory('clipPath'),
            defs: createDOMFactory('defs'),
            ellipse: createDOMFactory('ellipse'),
            g: createDOMFactory('g'),
            image: createDOMFactory('image'),
            line: createDOMFactory('line'),
            linearGradient: createDOMFactory('linearGradient'),
            mask: createDOMFactory('mask'),
            path: createDOMFactory('path'),
            pattern: createDOMFactory('pattern'),
            polygon: createDOMFactory('polygon'),
            polyline: createDOMFactory('polyline'),
            radialGradient: createDOMFactory('radialGradient'),
            rect: createDOMFactory('rect'),
            stop: createDOMFactory('stop'),
            svg: createDOMFactory('svg'),
            text: createDOMFactory('text'),
            tspan: createDOMFactory('tspan')
        };
        module.exports = ReactDOMFactories;
        /***/ 
    }),
    /* 727 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        /**
         * ReactElementValidator provides a wrapper around a element factory
         * which validates the props passed to the element. This is intended to be
         * used only in DEV and could be replaced by a static type checker for languages
         * that support it.
         */
        var ReactCurrentOwner = __webpack_require__(721);
        var ReactComponentTreeHook = __webpack_require__(728);
        var ReactElement = __webpack_require__(720);
        var checkReactTypeSpec = __webpack_require__(729);
        var canDefineProperty = __webpack_require__(714);
        var getIteratorFn = __webpack_require__(724);
        var warning = __webpack_require__(712);
        var lowPriorityWarning = __webpack_require__(717);
        function getDeclarationErrorAddendum() {
            if (ReactCurrentOwner.current) {
                var name = ReactCurrentOwner.current.getName();
                if (name) {
                    return ' Check the render method of `' + name + '`.';
                }
            }
            return '';
        }
        function getSourceInfoErrorAddendum(elementProps) {
            if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
                var source = elementProps.__source;
                var fileName = source.fileName.replace(/^.*[\\\/]/, '');
                var lineNumber = source.lineNumber;
                return ' Check your code at ' + fileName + ':' + lineNumber + '.';
            }
            return '';
        }
        /**
         * Warn if there's no key explicitly set on dynamic arrays of children or
         * object keys are not valid. This allows us to keep track of children between
         * updates.
         */
        var ownerHasKeyUseWarning = {};
        function getCurrentComponentErrorInfo(parentType) {
            var info = getDeclarationErrorAddendum();
            if (!info) {
                var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
                if (parentName) {
                    info = ' Check the top-level render call using <' + parentName + '>.';
                }
            }
            return info;
        }
        /**
         * Warn if the element doesn't have an explicit key assigned to it.
         * This element is in an array. The array could grow and shrink or be
         * reordered. All children that haven't already been validated are required to
         * have a "key" property assigned to it. Error statuses are cached so a warning
         * will only be shown once.
         *
         * @internal
         * @param {ReactElement} element Element that requires a key.
         * @param {*} parentType element's parent's type.
         */
        function validateExplicitKey(element, parentType) {
            if (!element._store || element._store.validated || element.key != null) {
                return;
            }
            element._store.validated = true;
            var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
            var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
            if (memoizer[currentComponentErrorInfo]) {
                return;
            }
            memoizer[currentComponentErrorInfo] = true;
            // Usually the current owner is the offender, but if it accepts children as a
            // property, it may be the creator of the child that's responsible for
            // assigning it a key.
            var childOwner = '';
            if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
                // Give the component that originally created this child.
                childOwner = ' It was passed a child from ' + element._owner.getName() + '.';
            }
            true ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : undefined;
        }
        /**
         * Ensure that every element either is passed in a static location, in an
         * array with an explicit keys property defined, or in an object literal
         * with valid key property.
         *
         * @internal
         * @param {ReactNode} node Statically passed child of any type.
         * @param {*} parentType node's parent's type.
         */
        function validateChildKeys(node, parentType) {
            if (typeof node !== 'object') {
                return;
            }
            if (Array.isArray(node)) {
                for (var i = 0; i < node.length; i++) {
                    var child = node[i];
                    if (ReactElement.isValidElement(child)) {
                        validateExplicitKey(child, parentType);
                    }
                }
            }
            else if (ReactElement.isValidElement(node)) {
                // This element was passed in a valid location.
                if (node._store) {
                    node._store.validated = true;
                }
            }
            else if (node) {
                var iteratorFn = getIteratorFn(node);
                // Entry iterators provide implicit keys.
                if (iteratorFn) {
                    if (iteratorFn !== node.entries) {
                        var iterator = iteratorFn.call(node);
                        var step;
                        while (!(step = iterator.next()).done) {
                            if (ReactElement.isValidElement(step.value)) {
                                validateExplicitKey(step.value, parentType);
                            }
                        }
                    }
                }
            }
        }
        /**
         * Given an element, validate that its props follow the propTypes definition,
         * provided by the type.
         *
         * @param {ReactElement} element
         */
        function validatePropTypes(element) {
            var componentClass = element.type;
            if (typeof componentClass !== 'function') {
                return;
            }
            var name = componentClass.displayName || componentClass.name;
            if (componentClass.propTypes) {
                checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
            }
            if (typeof componentClass.getDefaultProps === 'function') {
                true ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : undefined;
            }
        }
        var ReactElementValidator = {
            createElement: function (type, props, children) {
                var validType = typeof type === 'string' || typeof type === 'function';
                // We warn in this case but don't throw. We expect the element creation to
                // succeed and there will likely be errors in render.
                if (!validType) {
                    if (typeof type !== 'function' && typeof type !== 'string') {
                        var info = '';
                        if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
                            info += ' You likely forgot to export your component from the file ' + "it's defined in.";
                        }
                        var sourceInfo = getSourceInfoErrorAddendum(props);
                        if (sourceInfo) {
                            info += sourceInfo;
                        }
                        else {
                            info += getDeclarationErrorAddendum();
                        }
                        info += ReactComponentTreeHook.getCurrentStackAddendum();
                        var currentSource = props !== null && props !== undefined && props.__source !== undefined ? props.__source : null;
                        ReactComponentTreeHook.pushNonStandardWarningStack(true, currentSource);
                        true ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : undefined;
                        ReactComponentTreeHook.popNonStandardWarningStack();
                    }
                }
                var element = ReactElement.createElement.apply(this, arguments);
                // The result can be nullish if a mock or a custom function is used.
                // TODO: Drop this when these are no longer allowed as the type argument.
                if (element == null) {
                    return element;
                }
                // Skip key warning if the type isn't valid since our key validation logic
                // doesn't expect a non-string/function type and can throw confusing errors.
                // We don't want exception behavior to differ between dev and prod.
                // (Rendering will throw with a helpful message and as soon as the type is
                // fixed, the key warnings will appear.)
                if (validType) {
                    for (var i = 2; i < arguments.length; i++) {
                        validateChildKeys(arguments[i], type);
                    }
                }
                validatePropTypes(element);
                return element;
            },
            createFactory: function (type) {
                var validatedFactory = ReactElementValidator.createElement.bind(null, type);
                // Legacy hook TODO: Warn if this is accessed
                validatedFactory.type = type;
                if (true) {
                    if (canDefineProperty) {
                        Object.defineProperty(validatedFactory, 'type', {
                            enumerable: false,
                            get: function () {
                                lowPriorityWarning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
                                Object.defineProperty(this, 'type', {
                                    value: type
                                });
                                return type;
                            }
                        });
                    }
                }
                return validatedFactory;
            },
            cloneElement: function (element, props, children) {
                var newElement = ReactElement.cloneElement.apply(this, arguments);
                for (var i = 2; i < arguments.length; i++) {
                    validateChildKeys(arguments[i], newElement.type);
                }
                validatePropTypes(newElement);
                return newElement;
            }
        };
        module.exports = ReactElementValidator;
        /***/ 
    }),
    /* 728 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2016-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        var _prodInvariant = __webpack_require__(710);
        var ReactCurrentOwner = __webpack_require__(721);
        var invariant = __webpack_require__(716);
        var warning = __webpack_require__(712);
        function isNative(fn) {
            // Based on isNative() from Lodash
            var funcToString = Function.prototype.toString;
            var hasOwnProperty = Object.prototype.hasOwnProperty;
            var reIsNative = RegExp('^' + funcToString
                // Take an example native function source for comparison
                .call(hasOwnProperty
            // Strip regex characters so we can use it for regex
            ).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&'
            // Remove hasOwnProperty from the template to make it generic
            ).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
            try {
                var source = funcToString.call(fn);
                return reIsNative.test(source);
            }
            catch (err) {
                return false;
            }
        }
        var canUseCollections = 
        // Array.from
        typeof Array.from === 'function' &&
            // Map
            typeof Map === 'function' && isNative(Map) &&
            // Map.prototype.keys
            Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
            // Set
            typeof Set === 'function' && isNative(Set) &&
            // Set.prototype.keys
            Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
        var setItem;
        var getItem;
        var removeItem;
        var getItemIDs;
        var addRoot;
        var removeRoot;
        var getRootIDs;
        if (canUseCollections) {
            var itemMap = new Map();
            var rootIDSet = new Set();
            setItem = function (id, item) {
                itemMap.set(id, item);
            };
            getItem = function (id) {
                return itemMap.get(id);
            };
            removeItem = function (id) {
                itemMap['delete'](id);
            };
            getItemIDs = function () {
                return Array.from(itemMap.keys());
            };
            addRoot = function (id) {
                rootIDSet.add(id);
            };
            removeRoot = function (id) {
                rootIDSet['delete'](id);
            };
            getRootIDs = function () {
                return Array.from(rootIDSet.keys());
            };
        }
        else {
            var itemByKey = {};
            var rootByKey = {};
            // Use non-numeric keys to prevent V8 performance issues:
            // https://github.com/facebook/react/pull/7232
            var getKeyFromID = function (id) {
                return '.' + id;
            };
            var getIDFromKey = function (key) {
                return parseInt(key.substr(1), 10);
            };
            setItem = function (id, item) {
                var key = getKeyFromID(id);
                itemByKey[key] = item;
            };
            getItem = function (id) {
                var key = getKeyFromID(id);
                return itemByKey[key];
            };
            removeItem = function (id) {
                var key = getKeyFromID(id);
                delete itemByKey[key];
            };
            getItemIDs = function () {
                return Object.keys(itemByKey).map(getIDFromKey);
            };
            addRoot = function (id) {
                var key = getKeyFromID(id);
                rootByKey[key] = true;
            };
            removeRoot = function (id) {
                var key = getKeyFromID(id);
                delete rootByKey[key];
            };
            getRootIDs = function () {
                return Object.keys(rootByKey).map(getIDFromKey);
            };
        }
        var unmountedIDs = [];
        function purgeDeep(id) {
            var item = getItem(id);
            if (item) {
                var childIDs = item.childIDs;
                removeItem(id);
                childIDs.forEach(purgeDeep);
            }
        }
        function describeComponentFrame(name, source, ownerName) {
            return '\n    in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
        }
        function getDisplayName(element) {
            if (element == null) {
                return '#empty';
            }
            else if (typeof element === 'string' || typeof element === 'number') {
                return '#text';
            }
            else if (typeof element.type === 'string') {
                return element.type;
            }
            else {
                return element.type.displayName || element.type.name || 'Unknown';
            }
        }
        function describeID(id) {
            var name = ReactComponentTreeHook.getDisplayName(id);
            var element = ReactComponentTreeHook.getElement(id);
            var ownerID = ReactComponentTreeHook.getOwnerID(id);
            var ownerName;
            if (ownerID) {
                ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
            }
            true ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : undefined;
            return describeComponentFrame(name, element && element._source, ownerName);
        }
        var ReactComponentTreeHook = {
            onSetChildren: function (id, nextChildIDs) {
                var item = getItem(id);
                !item ? true ? invariant(false, 'Item must have been set') : undefined : void 0;
                item.childIDs = nextChildIDs;
                for (var i = 0; i < nextChildIDs.length; i++) {
                    var nextChildID = nextChildIDs[i];
                    var nextChild = getItem(nextChildID);
                    !nextChild ? true ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : undefined : void 0;
                    !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? true ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : undefined : void 0;
                    !nextChild.isMounted ? true ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : undefined : void 0;
                    if (nextChild.parentID == null) {
                        nextChild.parentID = id;
                        // TODO: This shouldn't be necessary but mounting a new root during in
                        // componentWillMount currently causes not-yet-mounted components to
                        // be purged from our tree data so their parent id is missing.
                    }
                    !(nextChild.parentID === id) ? true ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : undefined : void 0;
                }
            },
            onBeforeMountComponent: function (id, element, parentID) {
                var item = {
                    element: element,
                    parentID: parentID,
                    text: null,
                    childIDs: [],
                    isMounted: false,
                    updateCount: 0
                };
                setItem(id, item);
            },
            onBeforeUpdateComponent: function (id, element) {
                var item = getItem(id);
                if (!item || !item.isMounted) {
                    // We may end up here as a result of setState() in componentWillUnmount().
                    // In this case, ignore the element.
                    return;
                }
                item.element = element;
            },
            onMountComponent: function (id) {
                var item = getItem(id);
                !item ? true ? invariant(false, 'Item must have been set') : undefined : void 0;
                item.isMounted = true;
                var isRoot = item.parentID === 0;
                if (isRoot) {
                    addRoot(id);
                }
            },
            onUpdateComponent: function (id) {
                var item = getItem(id);
                if (!item || !item.isMounted) {
                    // We may end up here as a result of setState() in componentWillUnmount().
                    // In this case, ignore the element.
                    return;
                }
                item.updateCount++;
            },
            onUnmountComponent: function (id) {
                var item = getItem(id);
                if (item) {
                    // We need to check if it exists.
                    // `item` might not exist if it is inside an error boundary, and a sibling
                    // error boundary child threw while mounting. Then this instance never
                    // got a chance to mount, but it still gets an unmounting event during
                    // the error boundary cleanup.
                    item.isMounted = false;
                    var isRoot = item.parentID === 0;
                    if (isRoot) {
                        removeRoot(id);
                    }
                }
                unmountedIDs.push(id);
            },
            purgeUnmountedComponents: function () {
                if (ReactComponentTreeHook._preventPurging) {
                    // Should only be used for testing.
                    return;
                }
                for (var i = 0; i < unmountedIDs.length; i++) {
                    var id = unmountedIDs[i];
                    purgeDeep(id);
                }
                unmountedIDs.length = 0;
            },
            isMounted: function (id) {
                var item = getItem(id);
                return item ? item.isMounted : false;
            },
            getCurrentStackAddendum: function (topElement) {
                var info = '';
                if (topElement) {
                    var name = getDisplayName(topElement);
                    var owner = topElement._owner;
                    info += describeComponentFrame(name, topElement._source, owner && owner.getName());
                }
                var currentOwner = ReactCurrentOwner.current;
                var id = currentOwner && currentOwner._debugID;
                info += ReactComponentTreeHook.getStackAddendumByID(id);
                return info;
            },
            getStackAddendumByID: function (id) {
                var info = '';
                while (id) {
                    info += describeID(id);
                    id = ReactComponentTreeHook.getParentID(id);
                }
                return info;
            },
            getChildIDs: function (id) {
                var item = getItem(id);
                return item ? item.childIDs : [];
            },
            getDisplayName: function (id) {
                var element = ReactComponentTreeHook.getElement(id);
                if (!element) {
                    return null;
                }
                return getDisplayName(element);
            },
            getElement: function (id) {
                var item = getItem(id);
                return item ? item.element : null;
            },
            getOwnerID: function (id) {
                var element = ReactComponentTreeHook.getElement(id);
                if (!element || !element._owner) {
                    return null;
                }
                return element._owner._debugID;
            },
            getParentID: function (id) {
                var item = getItem(id);
                return item ? item.parentID : null;
            },
            getSource: function (id) {
                var item = getItem(id);
                var element = item ? item.element : null;
                var source = element != null ? element._source : null;
                return source;
            },
            getText: function (id) {
                var element = ReactComponentTreeHook.getElement(id);
                if (typeof element === 'string') {
                    return element;
                }
                else if (typeof element === 'number') {
                    return '' + element;
                }
                else {
                    return null;
                }
            },
            getUpdateCount: function (id) {
                var item = getItem(id);
                return item ? item.updateCount : 0;
            },
            getRootIDs: getRootIDs,
            getRegisteredIDs: getItemIDs,
            pushNonStandardWarningStack: function (isCreatingElement, currentSource) {
                if (typeof console.reactStack !== 'function') {
                    return;
                }
                var stack = [];
                var currentOwner = ReactCurrentOwner.current;
                var id = currentOwner && currentOwner._debugID;
                try {
                    if (isCreatingElement) {
                        stack.push({
                            name: id ? ReactComponentTreeHook.getDisplayName(id) : null,
                            fileName: currentSource ? currentSource.fileName : null,
                            lineNumber: currentSource ? currentSource.lineNumber : null
                        });
                    }
                    while (id) {
                        var element = ReactComponentTreeHook.getElement(id);
                        var parentID = ReactComponentTreeHook.getParentID(id);
                        var ownerID = ReactComponentTreeHook.getOwnerID(id);
                        var ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null;
                        var source = element && element._source;
                        stack.push({
                            name: ownerName,
                            fileName: source ? source.fileName : null,
                            lineNumber: source ? source.lineNumber : null
                        });
                        id = parentID;
                    }
                }
                catch (err) {
                    // Internal state is messed up.
                    // Stop building the stack (it's just a nice to have).
                }
                console.reactStack(stack);
            },
            popNonStandardWarningStack: function () {
                if (typeof console.reactStackEnd !== 'function') {
                    return;
                }
                console.reactStackEnd();
            }
        };
        module.exports = ReactComponentTreeHook;
        /***/ 
    }),
    /* 729 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /* WEBPACK VAR INJECTION */ (function (process) {
            var _prodInvariant = __webpack_require__(710);
            var ReactPropTypeLocationNames = __webpack_require__(731);
            var ReactPropTypesSecret = __webpack_require__(732);
            var invariant = __webpack_require__(716);
            var warning = __webpack_require__(712);
            var ReactComponentTreeHook;
            if (typeof process !== 'undefined' && process.env && "none" === 'test') {
                // Temporary hack.
                // Inline requires don't work well with Jest:
                // https://github.com/facebook/react/issues/7240
                // Remove the inline requires when we don't need them anymore:
                // https://github.com/facebook/react/pull/7178
                ReactComponentTreeHook = __webpack_require__(728);
            }
            var loggedTypeFailures = {};
            /**
             * Assert that the values match with the type specs.
             * Error messages are memorized and will only be shown once.
             *
             * @param {object} typeSpecs Map of name to a ReactPropType
             * @param {object} values Runtime values that need to be type-checked
             * @param {string} location e.g. "prop", "context", "child context"
             * @param {string} componentName Name of the component for error messages.
             * @param {?object} element The React element that is being type-checked
             * @param {?number} debugID The React component instance that is being type-checked
             * @private
             */
            function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
                for (var typeSpecName in typeSpecs) {
                    if (typeSpecs.hasOwnProperty(typeSpecName)) {
                        var error;
                        // Prop type validation may throw. In case they do, we don't want to
                        // fail the render phase where it didn't fail before. So we log it.
                        // After these have been cleaned up, we'll let them throw.
                        try {
                            // This is intentionally an invariant that gets caught. It's the same
                            // behavior as without this statement except with a better message.
                            !(typeof typeSpecs[typeSpecName] === 'function') ? true ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : undefined : void 0;
                            error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
                        }
                        catch (ex) {
                            error = ex;
                        }
                        true ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : undefined;
                        if (error instanceof Error && !(error.message in loggedTypeFailures)) {
                            // Only monitor this failure once because there tends to be a lot of the
                            // same error.
                            loggedTypeFailures[error.message] = true;
                            var componentStackInfo = '';
                            if (true) {
                                if (!ReactComponentTreeHook) {
                                    ReactComponentTreeHook = __webpack_require__(728);
                                }
                                if (debugID !== null) {
                                    componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
                                }
                                else if (element !== null) {
                                    componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
                                }
                            }
                            true ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : undefined;
                        }
                    }
                }
            }
            module.exports = checkReactTypeSpec;
            /* WEBPACK VAR INJECTION */ 
        }.call(this, __webpack_require__(730)));
        /***/ 
    }),
    /* 730 */
    /***/ (function (module, exports) {
        // shim for using process in browser
        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);
                }
            }
        }
        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;
        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);
        }
        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; };
        /***/ 
    }),
    /* 731 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        var ReactPropTypeLocationNames = {};
        if (true) {
            ReactPropTypeLocationNames = {
                prop: 'prop',
                context: 'context',
                childContext: 'child context'
            };
        }
        module.exports = ReactPropTypeLocationNames;
        /***/ 
    }),
    /* 732 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         *
         */
        var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
        module.exports = ReactPropTypesSecret;
        /***/ 
    }),
    /* 733 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _require = __webpack_require__(720), isValidElement = _require.isValidElement;
        var factory = __webpack_require__(734);
        module.exports = factory(isValidElement);
        /***/ 
    }),
    /* 734 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         */
        // React 15.5 references this module, and assumes PropTypes are still callable in production.
        // Therefore we re-export development-only version with all the PropTypes checks here.
        // However if one is migrating to the `prop-types` npm library, they will go through the
        // `index.js` entry point, and it will branch depending on the environment.
        var factory = __webpack_require__(25);
        module.exports = function (isValidElement) {
            // It is still allowed in 15.5.
            var throwOnDirectAccess = false;
            return factory(isValidElement, throwOnDirectAccess);
        };
        /***/ 
    }),
    /* 735 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        module.exports = '15.6.2';
        /***/ 
    }),
    /* 736 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _require = __webpack_require__(709), Component = _require.Component;
        var _require2 = __webpack_require__(720), isValidElement = _require2.isValidElement;
        var ReactNoopUpdateQueue = __webpack_require__(711);
        var factory = __webpack_require__(737);
        module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue);
        /***/ 
    }),
    /* 737 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _assign = __webpack_require__(11);
        var emptyObject = __webpack_require__(715);
        var _invariant = __webpack_require__(716);
        if (true) {
            var warning = __webpack_require__(712);
        }
        var MIXINS_KEY = 'mixins';
        // Helper function to allow the creation of anonymous functions which do not
        // have .name set to the name of the variable being assigned to.
        function identity(fn) {
            return fn;
        }
        var ReactPropTypeLocationNames;
        if (true) {
            ReactPropTypeLocationNames = {
                prop: 'prop',
                context: 'context',
                childContext: 'child context'
            };
        }
        else { }
        function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
            /**
             * Policies that describe methods in `ReactClassInterface`.
             */
            var injectedMixins = [];
            /**
             * Composite components are higher-level components that compose other composite
             * or host components.
             *
             * To create a new type of `ReactClass`, pass a specification of
             * your new class to `React.createClass`. The only requirement of your class
             * specification is that you implement a `render` method.
             *
             *   var MyComponent = React.createClass({
             *     render: function() {
             *       return <div>Hello World</div>;
             *     }
             *   });
             *
             * The class specification supports a specific protocol of methods that have
             * special meaning (e.g. `render`). See `ReactClassInterface` for
             * more the comprehensive protocol. Any other properties and methods in the
             * class specification will be available on the prototype.
             *
             * @interface ReactClassInterface
             * @internal
             */
            var ReactClassInterface = {
                /**
                 * An array of Mixin objects to include when defining your component.
                 *
                 * @type {array}
                 * @optional
                 */
                mixins: 'DEFINE_MANY',
                /**
                 * An object containing properties and methods that should be defined on
                 * the component's constructor instead of its prototype (static methods).
                 *
                 * @type {object}
                 * @optional
                 */
                statics: 'DEFINE_MANY',
                /**
                 * Definition of prop types for this component.
                 *
                 * @type {object}
                 * @optional
                 */
                propTypes: 'DEFINE_MANY',
                /**
                 * Definition of context types for this component.
                 *
                 * @type {object}
                 * @optional
                 */
                contextTypes: 'DEFINE_MANY',
                /**
                 * Definition of context types this component sets for its children.
                 *
                 * @type {object}
                 * @optional
                 */
                childContextTypes: 'DEFINE_MANY',
                // ==== Definition methods ====
                /**
                 * Invoked when the component is mounted. Values in the mapping will be set on
                 * `this.props` if that prop is not specified (i.e. using an `in` check).
                 *
                 * This method is invoked before `getInitialState` and therefore cannot rely
                 * on `this.state` or use `this.setState`.
                 *
                 * @return {object}
                 * @optional
                 */
                getDefaultProps: 'DEFINE_MANY_MERGED',
                /**
                 * Invoked once before the component is mounted. The return value will be used
                 * as the initial value of `this.state`.
                 *
                 *   getInitialState: function() {
                 *     return {
                 *       isOn: false,
                 *       fooBaz: new BazFoo()
                 *     }
                 *   }
                 *
                 * @return {object}
                 * @optional
                 */
                getInitialState: 'DEFINE_MANY_MERGED',
                /**
                 * @return {object}
                 * @optional
                 */
                getChildContext: 'DEFINE_MANY_MERGED',
                /**
                 * Uses props from `this.props` and state from `this.state` to render the
                 * structure of the component.
                 *
                 * No guarantees are made about when or how often this method is invoked, so
                 * it must not have side effects.
                 *
                 *   render: function() {
                 *     var name = this.props.name;
                 *     return <div>Hello, {name}!</div>;
                 *   }
                 *
                 * @return {ReactComponent}
                 * @required
                 */
                render: 'DEFINE_ONCE',
                // ==== Delegate methods ====
                /**
                 * Invoked when the component is initially created and about to be mounted.
                 * This may have side effects, but any external subscriptions or data created
                 * by this method must be cleaned up in `componentWillUnmount`.
                 *
                 * @optional
                 */
                componentWillMount: 'DEFINE_MANY',
                /**
                 * Invoked when the component has been mounted and has a DOM representation.
                 * However, there is no guarantee that the DOM node is in the document.
                 *
                 * Use this as an opportunity to operate on the DOM when the component has
                 * been mounted (initialized and rendered) for the first time.
                 *
                 * @param {DOMElement} rootNode DOM element representing the component.
                 * @optional
                 */
                componentDidMount: 'DEFINE_MANY',
                /**
                 * Invoked before the component receives new props.
                 *
                 * Use this as an opportunity to react to a prop transition by updating the
                 * state using `this.setState`. Current props are accessed via `this.props`.
                 *
                 *   componentWillReceiveProps: function(nextProps, nextContext) {
                 *     this.setState({
                 *       likesIncreasing: nextProps.likeCount > this.props.likeCount
                 *     });
                 *   }
                 *
                 * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
                 * transition may cause a state change, but the opposite is not true. If you
                 * need it, you are probably looking for `componentWillUpdate`.
                 *
                 * @param {object} nextProps
                 * @optional
                 */
                componentWillReceiveProps: 'DEFINE_MANY',
                /**
                 * Invoked while deciding if the component should be updated as a result of
                 * receiving new props, state and/or context.
                 *
                 * Use this as an opportunity to `return false` when you're certain that the
                 * transition to the new props/state/context will not require a component
                 * update.
                 *
                 *   shouldComponentUpdate: function(nextProps, nextState, nextContext) {
                 *     return !equal(nextProps, this.props) ||
                 *       !equal(nextState, this.state) ||
                 *       !equal(nextContext, this.context);
                 *   }
                 *
                 * @param {object} nextProps
                 * @param {?object} nextState
                 * @param {?object} nextContext
                 * @return {boolean} True if the component should update.
                 * @optional
                 */
                shouldComponentUpdate: 'DEFINE_ONCE',
                /**
                 * Invoked when the component is about to update due to a transition from
                 * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
                 * and `nextContext`.
                 *
                 * Use this as an opportunity to perform preparation before an update occurs.
                 *
                 * NOTE: You **cannot** use `this.setState()` in this method.
                 *
                 * @param {object} nextProps
                 * @param {?object} nextState
                 * @param {?object} nextContext
                 * @param {ReactReconcileTransaction} transaction
                 * @optional
                 */
                componentWillUpdate: 'DEFINE_MANY',
                /**
                 * Invoked when the component's DOM representation has been updated.
                 *
                 * Use this as an opportunity to operate on the DOM when the component has
                 * been updated.
                 *
                 * @param {object} prevProps
                 * @param {?object} prevState
                 * @param {?object} prevContext
                 * @param {DOMElement} rootNode DOM element representing the component.
                 * @optional
                 */
                componentDidUpdate: 'DEFINE_MANY',
                /**
                 * Invoked when the component is about to be removed from its parent and have
                 * its DOM representation destroyed.
                 *
                 * Use this as an opportunity to deallocate any external resources.
                 *
                 * NOTE: There is no `componentDidUnmount` since your component will have been
                 * destroyed by that point.
                 *
                 * @optional
                 */
                componentWillUnmount: 'DEFINE_MANY',
                /**
                 * Replacement for (deprecated) `componentWillMount`.
                 *
                 * @optional
                 */
                UNSAFE_componentWillMount: 'DEFINE_MANY',
                /**
                 * Replacement for (deprecated) `componentWillReceiveProps`.
                 *
                 * @optional
                 */
                UNSAFE_componentWillReceiveProps: 'DEFINE_MANY',
                /**
                 * Replacement for (deprecated) `componentWillUpdate`.
                 *
                 * @optional
                 */
                UNSAFE_componentWillUpdate: 'DEFINE_MANY',
                // ==== Advanced methods ====
                /**
                 * Updates the component's currently mounted DOM representation.
                 *
                 * By default, this implements React's rendering and reconciliation algorithm.
                 * Sophisticated clients may wish to override this.
                 *
                 * @param {ReactReconcileTransaction} transaction
                 * @internal
                 * @overridable
                 */
                updateComponent: 'OVERRIDE_BASE'
            };
            /**
             * Similar to ReactClassInterface but for static methods.
             */
            var ReactClassStaticInterface = {
                /**
                 * This method is invoked after a component is instantiated and when it
                 * receives new props. Return an object to update state in response to
                 * prop changes. Return null to indicate no change to state.
                 *
                 * If an object is returned, its keys will be merged into the existing state.
                 *
                 * @return {object || null}
                 * @optional
                 */
                getDerivedStateFromProps: 'DEFINE_MANY_MERGED'
            };
            /**
             * Mapping from class specification keys to special processing functions.
             *
             * Although these are declared like instance properties in the specification
             * when defining classes using `React.createClass`, they are actually static
             * and are accessible on the constructor instead of the prototype. Despite
             * being static, they must be defined outside of the "statics" key under
             * which all other static methods are defined.
             */
            var RESERVED_SPEC_KEYS = {
                displayName: function (Constructor, displayName) {
                    Constructor.displayName = displayName;
                },
                mixins: function (Constructor, mixins) {
                    if (mixins) {
                        for (var i = 0; i < mixins.length; i++) {
                            mixSpecIntoComponent(Constructor, mixins[i]);
                        }
                    }
                },
                childContextTypes: function (Constructor, childContextTypes) {
                    if (true) {
                        validateTypeDef(Constructor, childContextTypes, 'childContext');
                    }
                    Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
                },
                contextTypes: function (Constructor, contextTypes) {
                    if (true) {
                        validateTypeDef(Constructor, contextTypes, 'context');
                    }
                    Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
                },
                /**
                 * Special case getDefaultProps which should move into statics but requires
                 * automatic merging.
                 */
                getDefaultProps: function (Constructor, getDefaultProps) {
                    if (Constructor.getDefaultProps) {
                        Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
                    }
                    else {
                        Constructor.getDefaultProps = getDefaultProps;
                    }
                },
                propTypes: function (Constructor, propTypes) {
                    if (true) {
                        validateTypeDef(Constructor, propTypes, 'prop');
                    }
                    Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
                },
                statics: function (Constructor, statics) {
                    mixStaticSpecIntoComponent(Constructor, statics);
                },
                autobind: function () { }
            };
            function validateTypeDef(Constructor, typeDef, location) {
                for (var propName in typeDef) {
                    if (typeDef.hasOwnProperty(propName)) {
                        // use a warning instead of an _invariant so components
                        // don't show up in prod but only in __DEV__
                        if (true) {
                            warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' +
                                'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName);
                        }
                    }
                }
            }
            function validateMethodOverride(isAlreadyDefined, name) {
                var specPolicy = ReactClassInterface.hasOwnProperty(name)
                    ? ReactClassInterface[name]
                    : null;
                // Disallow overriding of base class methods unless explicitly allowed.
                if (ReactClassMixin.hasOwnProperty(name)) {
                    _invariant(specPolicy === 'OVERRIDE_BASE', 'ReactClassInterface: You are attempting to override ' +
                        '`%s` from your class specification. Ensure that your method names ' +
                        'do not overlap with React methods.', name);
                }
                // Disallow defining methods more than once unless explicitly allowed.
                if (isAlreadyDefined) {
                    _invariant(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', 'ReactClassInterface: You are attempting to define ' +
                        '`%s` on your component more than once. This conflict may be due ' +
                        'to a mixin.', name);
                }
            }
            /**
             * Mixin helper which handles policy validation and reserved
             * specification keys when building React classes.
             */
            function mixSpecIntoComponent(Constructor, spec) {
                if (!spec) {
                    if (true) {
                        var typeofSpec = typeof spec;
                        var isMixinValid = typeofSpec === 'object' && spec !== null;
                        if (true) {
                            warning(isMixinValid, "%s: You're attempting to include a mixin that is either null " +
                                'or not an object. Check the mixins included by the component, ' +
                                'as well as any mixins they include themselves. ' +
                                'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec);
                        }
                    }
                    return;
                }
                _invariant(typeof spec !== 'function', "ReactClass: You're attempting to " +
                    'use a component class or function as a mixin. Instead, just use a ' +
                    'regular object.');
                _invariant(!isValidElement(spec), "ReactClass: You're attempting to " +
                    'use a component as a mixin. Instead, just use a regular object.');
                var proto = Constructor.prototype;
                var autoBindPairs = proto.__reactAutoBindPairs;
                // By handling mixins before any other properties, we ensure the same
                // chaining order is applied to methods with DEFINE_MANY policy, whether
                // mixins are listed before or after these methods in the spec.
                if (spec.hasOwnProperty(MIXINS_KEY)) {
                    RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
                }
                for (var name in spec) {
                    if (!spec.hasOwnProperty(name)) {
                        continue;
                    }
                    if (name === MIXINS_KEY) {
                        // We have already handled mixins in a special case above.
                        continue;
                    }
                    var property = spec[name];
                    var isAlreadyDefined = proto.hasOwnProperty(name);
                    validateMethodOverride(isAlreadyDefined, name);
                    if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
                        RESERVED_SPEC_KEYS[name](Constructor, property);
                    }
                    else {
                        // Setup methods on prototype:
                        // The following member methods should not be automatically bound:
                        // 1. Expected ReactClass methods (in the "interface").
                        // 2. Overridden methods (that were mixed in).
                        var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
                        var isFunction = typeof property === 'function';
                        var shouldAutoBind = isFunction &&
                            !isReactClassMethod &&
                            !isAlreadyDefined &&
                            spec.autobind !== false;
                        if (shouldAutoBind) {
                            autoBindPairs.push(name, property);
                            proto[name] = property;
                        }
                        else {
                            if (isAlreadyDefined) {
                                var specPolicy = ReactClassInterface[name];
                                // These cases should already be caught by validateMethodOverride.
                                _invariant(isReactClassMethod &&
                                    (specPolicy === 'DEFINE_MANY_MERGED' ||
                                        specPolicy === 'DEFINE_MANY'), 'ReactClass: Unexpected spec policy %s for key %s ' +
                                    'when mixing in component specs.', specPolicy, name);
                                // For methods which are defined more than once, call the existing
                                // methods before calling the new property, merging if appropriate.
                                if (specPolicy === 'DEFINE_MANY_MERGED') {
                                    proto[name] = createMergedResultFunction(proto[name], property);
                                }
                                else if (specPolicy === 'DEFINE_MANY') {
                                    proto[name] = createChainedFunction(proto[name], property);
                                }
                            }
                            else {
                                proto[name] = property;
                                if (true) {
                                    // Add verbose displayName to the function, which helps when looking
                                    // at profiling tools.
                                    if (typeof property === 'function' && spec.displayName) {
                                        proto[name].displayName = spec.displayName + '_' + name;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            function mixStaticSpecIntoComponent(Constructor, statics) {
                if (!statics) {
                    return;
                }
                for (var name in statics) {
                    var property = statics[name];
                    if (!statics.hasOwnProperty(name)) {
                        continue;
                    }
                    var isReserved = name in RESERVED_SPEC_KEYS;
                    _invariant(!isReserved, 'ReactClass: You are attempting to define a reserved ' +
                        'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' +
                        'as an instance property instead; it will still be accessible on the ' +
                        'constructor.', name);
                    var isAlreadyDefined = name in Constructor;
                    if (isAlreadyDefined) {
                        var specPolicy = ReactClassStaticInterface.hasOwnProperty(name)
                            ? ReactClassStaticInterface[name]
                            : null;
                        _invariant(specPolicy === 'DEFINE_MANY_MERGED', 'ReactClass: You are attempting to define ' +
                            '`%s` on your component more than once. This conflict may be ' +
                            'due to a mixin.', name);
                        Constructor[name] = createMergedResultFunction(Constructor[name], property);
                        return;
                    }
                    Constructor[name] = property;
                }
            }
            /**
             * Merge two objects, but throw if both contain the same key.
             *
             * @param {object} one The first object, which is mutated.
             * @param {object} two The second object
             * @return {object} one after it has been mutated to contain everything in two.
             */
            function mergeIntoWithNoDuplicateKeys(one, two) {
                _invariant(one && two && typeof one === 'object' && typeof two === 'object', 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.');
                for (var key in two) {
                    if (two.hasOwnProperty(key)) {
                        _invariant(one[key] === undefined, 'mergeIntoWithNoDuplicateKeys(): ' +
                            'Tried to merge two objects with the same key: `%s`. This conflict ' +
                            'may be due to a mixin; in particular, this may be caused by two ' +
                            'getInitialState() or getDefaultProps() methods returning objects ' +
                            'with clashing keys.', key);
                        one[key] = two[key];
                    }
                }
                return one;
            }
            /**
             * Creates a function that invokes two functions and merges their return values.
             *
             * @param {function} one Function to invoke first.
             * @param {function} two Function to invoke second.
             * @return {function} Function that invokes the two argument functions.
             * @private
             */
            function createMergedResultFunction(one, two) {
                return function mergedResult() {
                    var a = one.apply(this, arguments);
                    var b = two.apply(this, arguments);
                    if (a == null) {
                        return b;
                    }
                    else if (b == null) {
                        return a;
                    }
                    var c = {};
                    mergeIntoWithNoDuplicateKeys(c, a);
                    mergeIntoWithNoDuplicateKeys(c, b);
                    return c;
                };
            }
            /**
             * Creates a function that invokes two functions and ignores their return vales.
             *
             * @param {function} one Function to invoke first.
             * @param {function} two Function to invoke second.
             * @return {function} Function that invokes the two argument functions.
             * @private
             */
            function createChainedFunction(one, two) {
                return function chainedFunction() {
                    one.apply(this, arguments);
                    two.apply(this, arguments);
                };
            }
            /**
             * Binds a method to the component.
             *
             * @param {object} component Component whose method is going to be bound.
             * @param {function} method Method to be bound.
             * @return {function} The bound method.
             */
            function bindAutoBindMethod(component, method) {
                var boundMethod = method.bind(component);
                if (true) {
                    boundMethod.__reactBoundContext = component;
                    boundMethod.__reactBoundMethod = method;
                    boundMethod.__reactBoundArguments = null;
                    var componentName = component.constructor.displayName;
                    var _bind = boundMethod.bind;
                    boundMethod.bind = function (newThis) {
                        for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                            args[_key - 1] = arguments[_key];
                        }
                        // User is trying to bind() an autobound method; we effectively will
                        // ignore the value of "this" that the user is trying to use, so
                        // let's warn.
                        if (newThis !== component && newThis !== null) {
                            if (true) {
                                warning(false, 'bind(): React component methods may only be bound to the ' +
                                    'component instance. See %s', componentName);
                            }
                        }
                        else if (!args.length) {
                            if (true) {
                                warning(false, 'bind(): You are binding a component method to the component. ' +
                                    'React does this for you automatically in a high-performance ' +
                                    'way, so you can safely remove this call. See %s', componentName);
                            }
                            return boundMethod;
                        }
                        var reboundMethod = _bind.apply(boundMethod, arguments);
                        reboundMethod.__reactBoundContext = component;
                        reboundMethod.__reactBoundMethod = method;
                        reboundMethod.__reactBoundArguments = args;
                        return reboundMethod;
                    };
                }
                return boundMethod;
            }
            /**
             * Binds all auto-bound methods in a component.
             *
             * @param {object} component Component whose method is going to be bound.
             */
            function bindAutoBindMethods(component) {
                var pairs = component.__reactAutoBindPairs;
                for (var i = 0; i < pairs.length; i += 2) {
                    var autoBindKey = pairs[i];
                    var method = pairs[i + 1];
                    component[autoBindKey] = bindAutoBindMethod(component, method);
                }
            }
            var IsMountedPreMixin = {
                componentDidMount: function () {
                    this.__isMounted = true;
                }
            };
            var IsMountedPostMixin = {
                componentWillUnmount: function () {
                    this.__isMounted = false;
                }
            };
            /**
             * Add more to the ReactClass base class. These are all legacy features and
             * therefore not already part of the modern ReactComponent.
             */
            var ReactClassMixin = {
                /**
                 * TODO: This will be deprecated because state should always keep a consistent
                 * type signature and the only use case for this, is to avoid that.
                 */
                replaceState: function (newState, callback) {
                    this.updater.enqueueReplaceState(this, newState, callback);
                },
                /**
                 * Checks whether or not this composite component is mounted.
                 * @return {boolean} True if mounted, false otherwise.
                 * @protected
                 * @final
                 */
                isMounted: function () {
                    if (true) {
                        warning(this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' +
                            'subscriptions and pending requests in componentWillUnmount to ' +
                            'prevent memory leaks.', (this.constructor && this.constructor.displayName) ||
                            this.name ||
                            'Component');
                        this.__didWarnIsMounted = true;
                    }
                    return !!this.__isMounted;
                }
            };
            var ReactClassComponent = function () { };
            _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
            /**
             * Creates a composite component class given a class specification.
             * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
             *
             * @param {object} spec Class specification (which must define `render`).
             * @return {function} Component constructor function.
             * @public
             */
            function createClass(spec) {
                // To keep our warnings more understandable, we'll use a little hack here to
                // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
                // unnecessarily identify a class without displayName as 'Constructor'.
                var Constructor = identity(function (props, context, updater) {
                    // This constructor gets overridden by mocks. The argument is used
                    // by mocks to assert on what gets mounted.
                    if (true) {
                        warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' +
                            'JSX instead. See: https://fb.me/react-legacyfactory');
                    }
                    // Wire up auto-binding
                    if (this.__reactAutoBindPairs.length) {
                        bindAutoBindMethods(this);
                    }
                    this.props = props;
                    this.context = context;
                    this.refs = emptyObject;
                    this.updater = updater || ReactNoopUpdateQueue;
                    this.state = null;
                    // ReactClasses doesn't have constructors. Instead, they use the
                    // getInitialState and componentWillMount methods for initialization.
                    var initialState = this.getInitialState ? this.getInitialState() : null;
                    if (true) {
                        // We allow auto-mocks to proceed as if they're returning null.
                        if (initialState === undefined &&
                            this.getInitialState._isMockFunction) {
                            // This is probably bad practice. Consider warning here and
                            // deprecating this convenience.
                            initialState = null;
                        }
                    }
                    _invariant(typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent');
                    this.state = initialState;
                });
                Constructor.prototype = new ReactClassComponent();
                Constructor.prototype.constructor = Constructor;
                Constructor.prototype.__reactAutoBindPairs = [];
                injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
                mixSpecIntoComponent(Constructor, IsMountedPreMixin);
                mixSpecIntoComponent(Constructor, spec);
                mixSpecIntoComponent(Constructor, IsMountedPostMixin);
                // Initialize the defaultProps property after all mixins have been merged.
                if (Constructor.getDefaultProps) {
                    Constructor.defaultProps = Constructor.getDefaultProps();
                }
                if (true) {
                    // This is a tag to indicate that the use of these method names is ok,
                    // since it's used with createClass. If it's not, then it's likely a
                    // mistake so we'll warn you to use the static property, property
                    // initializer or constructor respectively.
                    if (Constructor.getDefaultProps) {
                        Constructor.getDefaultProps.isReactClassApproved = {};
                    }
                    if (Constructor.prototype.getInitialState) {
                        Constructor.prototype.getInitialState.isReactClassApproved = {};
                    }
                }
                _invariant(Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.');
                if (true) {
                    warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' +
                        'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
                        'The name is phrased as a question because the function is ' +
                        'expected to return a value.', spec.displayName || 'A component');
                    warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' +
                        'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component');
                    warning(!Constructor.prototype.UNSAFE_componentWillRecieveProps, '%s has a method called UNSAFE_componentWillRecieveProps(). ' +
                        'Did you mean UNSAFE_componentWillReceiveProps()?', spec.displayName || 'A component');
                }
                // Reduce time spent doing lookups by setting these on the prototype.
                for (var methodName in ReactClassInterface) {
                    if (!Constructor.prototype[methodName]) {
                        Constructor.prototype[methodName] = null;
                    }
                }
                return Constructor;
            }
            return createClass;
        }
        module.exports = factory;
        /***/ 
    }),
    /* 738 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        /**
         * Copyright (c) 2013-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
         *
         */
        var _prodInvariant = __webpack_require__(710);
        var ReactElement = __webpack_require__(720);
        var invariant = __webpack_require__(716);
        /**
         * Returns the first child in a collection of children and verifies that there
         * is only one child in the collection.
         *
         * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only
         *
         * The current implementation of this function assumes that a single child gets
         * passed without a wrapper, but the purpose of this helper function is to
         * abstract away the particular structure of children.
         *
         * @param {?object} children Child collection structure.
         * @return {ReactElement} The first and only `ReactElement` contained in the
         * structure.
         */
        function onlyChild(children) {
            !ReactElement.isValidElement(children) ? true ? invariant(false, 'React.Children.only expected to receive a single React element child.') : undefined : void 0;
            return children;
        }
        module.exports = onlyChild;
        /***/ 
    }),
    /* 739 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_RESULT__; /* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */
        (function () {
            function aa(a, b, c) { return a.call.apply(a.bind, arguments); }
            function ba(a, b, c) { if (!a)
                throw Error(); if (2 < arguments.length) {
                var d = Array.prototype.slice.call(arguments, 2);
                return function () { var c = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(c, d); return a.apply(b, c); };
            } return function () { return a.apply(b, arguments); }; }
            function p(a, b, c) { p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? aa : ba; return p.apply(null, arguments); }
            var q = Date.now || function () { return +new Date; };
            function ca(a, b) { this.a = a; this.o = b || a; this.c = this.o.document; }
            var da = !!window.FontFace;
            function t(a, b, c, d) { b = a.c.createElement(b); if (c)
                for (var e in c)
                    c.hasOwnProperty(e) && ("style" == e ? b.style.cssText = c[e] : b.setAttribute(e, c[e])); d && b.appendChild(a.c.createTextNode(d)); return b; }
            function u(a, b, c) { a = a.c.getElementsByTagName(b)[0]; a || (a = document.documentElement); a.insertBefore(c, a.lastChild); }
            function v(a) { a.parentNode && a.parentNode.removeChild(a); }
            function w(a, b, c) { b = b || []; c = c || []; for (var d = a.className.split(/\s+/), e = 0; e < b.length; e += 1) {
                for (var f = !1, g = 0; g < d.length; g += 1)
                    if (b[e] === d[g]) {
                        f = !0;
                        break;
                    }
                f || d.push(b[e]);
            } b = []; for (e = 0; e < d.length; e += 1) {
                f = !1;
                for (g = 0; g < c.length; g += 1)
                    if (d[e] === c[g]) {
                        f = !0;
                        break;
                    }
                f || b.push(d[e]);
            } a.className = b.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, ""); }
            function y(a, b) { for (var c = a.className.split(/\s+/), d = 0, e = c.length; d < e; d++)
                if (c[d] == b)
                    return !0; return !1; }
            function ea(a) { return a.o.location.hostname || a.a.location.hostname; }
            function z(a, b, c) { function d() { m && e && f && (m(g), m = null); } b = t(a, "link", { rel: "stylesheet", href: b, media: "all" }); var e = !1, f = !0, g = null, m = c || null; da ? (b.onload = function () { e = !0; d(); }, b.onerror = function () { e = !0; g = Error("Stylesheet failed to load"); d(); }) : setTimeout(function () { e = !0; d(); }, 0); u(a, "head", b); }
            function A(a, b, c, d) { var e = a.c.getElementsByTagName("head")[0]; if (e) {
                var f = t(a, "script", { src: b }), g = !1;
                f.onload = f.onreadystatechange = function () { g || this.readyState && "loaded" != this.readyState && "complete" != this.readyState || (g = !0, c && c(null), f.onload = f.onreadystatechange = null, "HEAD" == f.parentNode.tagName && e.removeChild(f)); };
                e.appendChild(f);
                setTimeout(function () { g || (g = !0, c && c(Error("Script load timeout"))); }, d || 5E3);
                return f;
            } return null; }
            ;
            function B() { this.a = 0; this.c = null; }
            function C(a) { a.a++; return function () { a.a--; D(a); }; }
            function E(a, b) { a.c = b; D(a); }
            function D(a) { 0 == a.a && a.c && (a.c(), a.c = null); }
            ;
            function F(a) { this.a = a || "-"; }
            F.prototype.c = function (a) { for (var b = [], c = 0; c < arguments.length; c++)
                b.push(arguments[c].replace(/[\W_]+/g, "").toLowerCase()); return b.join(this.a); };
            function G(a, b) { this.c = a; this.f = 4; this.a = "n"; var c = (b || "n4").match(/^([nio])([1-9])$/i); c && (this.a = c[1], this.f = parseInt(c[2], 10)); }
            function fa(a) { return H(a) + " " + (a.f + "00") + " 300px " + I(a.c); }
            function I(a) { var b = []; a = a.split(/,\s*/); for (var c = 0; c < a.length; c++) {
                var d = a[c].replace(/['"]/g, "");
                -1 != d.indexOf(" ") || /^\d/.test(d) ? b.push("'" + d + "'") : b.push(d);
            } return b.join(","); }
            function J(a) { return a.a + a.f; }
            function H(a) { var b = "normal"; "o" === a.a ? b = "oblique" : "i" === a.a && (b = "italic"); return b; }
            function ga(a) { var b = 4, c = "n", d = null; a && ((d = a.match(/(normal|oblique|italic)/i)) && d[1] && (c = d[1].substr(0, 1).toLowerCase()), (d = a.match(/([1-9]00|normal|bold)/i)) && d[1] && (/bold/i.test(d[1]) ? b = 7 : /[1-9]00/.test(d[1]) && (b = parseInt(d[1].substr(0, 1), 10)))); return c + b; }
            ;
            function ha(a, b) { this.c = a; this.f = a.o.document.documentElement; this.h = b; this.a = new F("-"); this.j = !1 !== b.events; this.g = !1 !== b.classes; }
            function ia(a) { a.g && w(a.f, [a.a.c("wf", "loading")]); K(a, "loading"); }
            function L(a) { if (a.g) {
                var b = y(a.f, a.a.c("wf", "active")), c = [], d = [a.a.c("wf", "loading")];
                b || c.push(a.a.c("wf", "inactive"));
                w(a.f, c, d);
            } K(a, "inactive"); }
            function K(a, b, c) { if (a.j && a.h[b])
                if (c)
                    a.h[b](c.c, J(c));
                else
                    a.h[b](); }
            ;
            function ja() { this.c = {}; }
            function ka(a, b, c) { var d = [], e; for (e in b)
                if (b.hasOwnProperty(e)) {
                    var f = a.c[e];
                    f && d.push(f(b[e], c));
                } return d; }
            ;
            function M(a, b) { this.c = a; this.f = b; this.a = t(this.c, "span", { "aria-hidden": "true" }, this.f); }
            function N(a) { u(a.c, "body", a.a); }
            function O(a) { return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(a.c) + ";" + ("font-style:" + H(a) + ";font-weight:" + (a.f + "00") + ";"); }
            ;
            function P(a, b, c, d, e, f) { this.g = a; this.j = b; this.a = d; this.c = c; this.f = e || 3E3; this.h = f || void 0; }
            P.prototype.start = function () { var a = this.c.o.document, b = this, c = q(), d = new Promise(function (d, e) { function f() { q() - c >= b.f ? e() : a.fonts.load(fa(b.a), b.h).then(function (a) { 1 <= a.length ? d() : setTimeout(f, 25); }, function () { e(); }); } f(); }), e = null, f = new Promise(function (a, d) { e = setTimeout(d, b.f); }); Promise.race([f, d]).then(function () { e && (clearTimeout(e), e = null); b.g(b.a); }, function () { b.j(b.a); }); };
            function Q(a, b, c, d, e, f, g) {
                this.v = a;
                this.B = b;
                this.c = c;
                this.a = d;
                this.s = g || "BESbswy";
                this.f = {};
                this.w = e || 3E3;
                this.u = f || null;
                this.m = this.j = this.h = this.g = null;
                this.g = new M(this.c, this.s);
                this.h = new M(this.c, this.s);
                this.j = new M(this.c, this.s);
                this.m = new M(this.c, this.s);
                a = new G(this.a.c + ",serif", J(this.a));
                a = O(a);
                this.g.a.style.cssText = a;
                a = new G(this.a.c + ",sans-serif", J(this.a));
                a = O(a);
                this.h.a.style.cssText = a;
                a = new G("serif", J(this.a));
                a = O(a);
                this.j.a.style.cssText = a;
                a = new G("sans-serif", J(this.a));
                a =
                    O(a);
                this.m.a.style.cssText = a;
                N(this.g);
                N(this.h);
                N(this.j);
                N(this.m);
            }
            var R = { D: "serif", C: "sans-serif" }, S = null;
            function T() { if (null === S) {
                var a = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
                S = !!a && (536 > parseInt(a[1], 10) || 536 === parseInt(a[1], 10) && 11 >= parseInt(a[2], 10));
            } return S; }
            Q.prototype.start = function () { this.f.serif = this.j.a.offsetWidth; this.f["sans-serif"] = this.m.a.offsetWidth; this.A = q(); U(this); };
            function la(a, b, c) { for (var d in R)
                if (R.hasOwnProperty(d) && b === a.f[R[d]] && c === a.f[R[d]])
                    return !0; return !1; }
            function U(a) { var b = a.g.a.offsetWidth, c = a.h.a.offsetWidth, d; (d = b === a.f.serif && c === a.f["sans-serif"]) || (d = T() && la(a, b, c)); d ? q() - a.A >= a.w ? T() && la(a, b, c) && (null === a.u || a.u.hasOwnProperty(a.a.c)) ? V(a, a.v) : V(a, a.B) : ma(a) : V(a, a.v); }
            function ma(a) { setTimeout(p(function () { U(this); }, a), 50); }
            function V(a, b) { setTimeout(p(function () { v(this.g.a); v(this.h.a); v(this.j.a); v(this.m.a); b(this.a); }, a), 0); }
            ;
            function W(a, b, c) { this.c = a; this.a = b; this.f = 0; this.m = this.j = !1; this.s = c; }
            var X = null;
            W.prototype.g = function (a) { var b = this.a; b.g && w(b.f, [b.a.c("wf", a.c, J(a).toString(), "active")], [b.a.c("wf", a.c, J(a).toString(), "loading"), b.a.c("wf", a.c, J(a).toString(), "inactive")]); K(b, "fontactive", a); this.m = !0; na(this); };
            W.prototype.h = function (a) { var b = this.a; if (b.g) {
                var c = y(b.f, b.a.c("wf", a.c, J(a).toString(), "active")), d = [], e = [b.a.c("wf", a.c, J(a).toString(), "loading")];
                c || d.push(b.a.c("wf", a.c, J(a).toString(), "inactive"));
                w(b.f, d, e);
            } K(b, "fontinactive", a); na(this); };
            function na(a) { 0 == --a.f && a.j && (a.m ? (a = a.a, a.g && w(a.f, [a.a.c("wf", "active")], [a.a.c("wf", "loading"), a.a.c("wf", "inactive")]), K(a, "active")) : L(a.a)); }
            ;
            function oa(a) { this.j = a; this.a = new ja; this.h = 0; this.f = this.g = !0; }
            oa.prototype.load = function (a) { this.c = new ca(this.j, a.context || this.j); this.g = !1 !== a.events; this.f = !1 !== a.classes; pa(this, new ha(this.c, a), a); };
            function qa(a, b, c, d, e) {
                var f = 0 == --a.h;
                (a.f || a.g) && setTimeout(function () {
                    var a = e || null, m = d || null || {};
                    if (0 === c.length && f)
                        L(b.a);
                    else {
                        b.f += c.length;
                        f && (b.j = f);
                        var h, l = [];
                        for (h = 0; h < c.length; h++) {
                            var k = c[h], n = m[k.c], r = b.a, x = k;
                            r.g && w(r.f, [r.a.c("wf", x.c, J(x).toString(), "loading")]);
                            K(r, "fontloading", x);
                            r = null;
                            if (null === X)
                                if (window.FontFace) {
                                    var x = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), xa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
                                    X = x ? 42 < parseInt(x[1], 10) : xa ? !1 : !0;
                                }
                                else
                                    X = !1;
                            X ? r = new P(p(b.g, b), p(b.h, b), b.c, k, b.s, n) : r = new Q(p(b.g, b), p(b.h, b), b.c, k, b.s, a, n);
                            l.push(r);
                        }
                        for (h = 0; h < l.length; h++)
                            l[h].start();
                    }
                }, 0);
            }
            function pa(a, b, c) { var d = [], e = c.timeout; ia(b); var d = ka(a.a, c, a.c), f = new W(a.c, b, e); a.h = d.length; b = 0; for (c = d.length; b < c; b++)
                d[b].load(function (b, d, c) { qa(a, f, b, d, c); }); }
            ;
            function ra(a, b) { this.c = a; this.a = b; }
            ra.prototype.load = function (a) {
                function b() { if (f["__mti_fntLst" + d]) {
                    var c = f["__mti_fntLst" + d](), e = [], h;
                    if (c)
                        for (var l = 0; l < c.length; l++) {
                            var k = c[l].fontfamily;
                            void 0 != c[l].fontStyle && void 0 != c[l].fontWeight ? (h = c[l].fontStyle + c[l].fontWeight, e.push(new G(k, h))) : e.push(new G(k));
                        }
                    a(e);
                }
                else
                    setTimeout(function () { b(); }, 50); }
                var c = this, d = c.a.projectId, e = c.a.version;
                if (d) {
                    var f = c.c.o;
                    A(this.c, (c.a.api || "https://fast.fonts.net/jsapi") + "/" + d + ".js" + (e ? "?v=" + e : ""), function (e) {
                        e ? a([]) : (f["__MonotypeConfiguration__" +
                            d] = function () { return c.a; }, b());
                    }).id = "__MonotypeAPIScript__" + d;
                }
                else
                    a([]);
            };
            function sa(a, b) { this.c = a; this.a = b; }
            sa.prototype.load = function (a) { var b, c, d = this.a.urls || [], e = this.a.families || [], f = this.a.testStrings || {}, g = new B; b = 0; for (c = d.length; b < c; b++)
                z(this.c, d[b], C(g)); var m = []; b = 0; for (c = e.length; b < c; b++)
                if (d = e[b].split(":"), d[1])
                    for (var h = d[1].split(","), l = 0; l < h.length; l += 1)
                        m.push(new G(d[0], h[l]));
                else
                    m.push(new G(d[0])); E(g, function () { a(m, f); }); };
            function ta(a, b) { a ? this.c = a : this.c = ua; this.a = []; this.f = []; this.g = b || ""; }
            var ua = "https://fonts.googleapis.com/css";
            function va(a, b) { for (var c = b.length, d = 0; d < c; d++) {
                var e = b[d].split(":");
                3 == e.length && a.f.push(e.pop());
                var f = "";
                2 == e.length && "" != e[1] && (f = ":");
                a.a.push(e.join(f));
            } }
            function wa(a) { if (0 == a.a.length)
                throw Error("No fonts to load!"); if (-1 != a.c.indexOf("kit="))
                return a.c; for (var b = a.a.length, c = [], d = 0; d < b; d++)
                c.push(a.a[d].replace(/ /g, "+")); b = a.c + "?family=" + c.join("%7C"); 0 < a.f.length && (b += "&subset=" + a.f.join(",")); 0 < a.g.length && (b += "&text=" + encodeURIComponent(a.g)); return b; }
            ;
            function ya(a) { this.f = a; this.a = []; this.c = {}; }
            var za = { latin: "BESbswy", "latin-ext": "\u00e7\u00f6\u00fc\u011f\u015f", cyrillic: "\u0439\u044f\u0416", greek: "\u03b1\u03b2\u03a3", khmer: "\u1780\u1781\u1782", Hanuman: "\u1780\u1781\u1782" }, Aa = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Ba = { i: "i", italic: "i", n: "n", normal: "n" }, Ca = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
            function Da(a) {
                for (var b = a.f.length, c = 0; c < b; c++) {
                    var d = a.f[c].split(":"), e = d[0].replace(/\+/g, " "), f = ["n4"];
                    if (2 <= d.length) {
                        var g;
                        var m = d[1];
                        g = [];
                        if (m)
                            for (var m = m.split(","), h = m.length, l = 0; l < h; l++) {
                                var k;
                                k = m[l];
                                if (k.match(/^[\w-]+$/)) {
                                    var n = Ca.exec(k.toLowerCase());
                                    if (null == n)
                                        k = "";
                                    else {
                                        k = n[2];
                                        k = null == k || "" == k ? "n" : Ba[k];
                                        n = n[1];
                                        if (null == n || "" == n)
                                            n = "4";
                                        else
                                            var r = Aa[n], n = r ? r : isNaN(n) ? "4" : n.substr(0, 1);
                                        k = [k, n].join("");
                                    }
                                }
                                else
                                    k = "";
                                k && g.push(k);
                            }
                        0 < g.length && (f = g);
                        3 == d.length && (d = d[2], g = [], d = d ? d.split(",") :
                            g, 0 < d.length && (d = za[d[0]]) && (a.c[e] = d));
                    }
                    a.c[e] || (d = za[e]) && (a.c[e] = d);
                    for (d = 0; d < f.length; d += 1)
                        a.a.push(new G(e, f[d]));
                }
            }
            ;
            function Ea(a, b) { this.c = a; this.a = b; }
            var Fa = { Arimo: !0, Cousine: !0, Tinos: !0 };
            Ea.prototype.load = function (a) { var b = new B, c = this.c, d = new ta(this.a.api, this.a.text), e = this.a.families; va(d, e); var f = new ya(e); Da(f); z(c, wa(d), C(b)); E(b, function () { a(f.a, f.c, Fa); }); };
            function Ga(a, b) { this.c = a; this.a = b; }
            Ga.prototype.load = function (a) { var b = this.a.id, c = this.c.o; b ? A(this.c, (this.a.api || "https://use.typekit.net") + "/" + b + ".js", function (b) { if (b)
                a([]);
            else if (c.Typekit && c.Typekit.config && c.Typekit.config.fn) {
                b = c.Typekit.config.fn;
                for (var e = [], f = 0; f < b.length; f += 2)
                    for (var g = b[f], m = b[f + 1], h = 0; h < m.length; h++)
                        e.push(new G(g, m[h]));
                try {
                    c.Typekit.load({ events: !1, classes: !1, async: !0 });
                }
                catch (l) { }
                a(e);
            } }, 2E3) : a([]); };
            function Ha(a, b) { this.c = a; this.f = b; this.a = []; }
            Ha.prototype.load = function (a) { var b = this.f.id, c = this.c.o, d = this; b ? (c.__webfontfontdeckmodule__ || (c.__webfontfontdeckmodule__ = {}), c.__webfontfontdeckmodule__[b] = function (b, c) { for (var g = 0, m = c.fonts.length; g < m; ++g) {
                var h = c.fonts[g];
                d.a.push(new G(h.name, ga("font-weight:" + h.weight + ";font-style:" + h.style)));
            } a(d.a); }, A(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ea(this.c) + "/" + b + ".js", function (b) { b && a([]); })) : a([]); };
            var Y = new oa(window);
            Y.a.c.custom = function (a, b) { return new sa(b, a); };
            Y.a.c.fontdeck = function (a, b) { return new Ha(b, a); };
            Y.a.c.monotype = function (a, b) { return new ra(b, a); };
            Y.a.c.typekit = function (a, b) { return new Ga(b, a); };
            Y.a.c.google = function (a, b) { return new Ea(b, a); };
            var Z = { load: p(Y.load, Y) };
            true ? !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return Z; }).call(exports, __webpack_require__, exports, module),
                __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
        }());
        /***/ 
    }),
    /* 740 */
    /***/ (function (module, exports, __webpack_require__) {
        var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
        (function (global, factory) {
            if (true) {
                !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __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 {
                var mod;
            }
        })(this, function (exports) {
            'use strict';
            Object.defineProperty(exports, "__esModule", {
                value: true
            });
            var sizes = exports.sizes = {
                tiny: 'md-18',
                small: 'md-24',
                medium: 'md-36',
                large: 'md-48'
            };
            var light = exports.light = 'md-light';
            var dark = exports.dark = 'md-dark';
            var mdInactive = exports.mdInactive = 'md-inactive';
        });
        /***/ 
    }),
    /* 741 */
    /***/ (function (module, exports, __webpack_require__) {
        var content = __webpack_require__(742);
        if (typeof content === 'string')
            content = [[module.i, content, '']];
        var transform;
        var insertInto;
        var options = { "hmr": true };
        options.transform = transform;
        options.insertInto = undefined;
        var update = __webpack_require__(4)(content, options);
        if (content.locals)
            module.exports = content.locals;
        if (false) { }
        /***/ 
    }),
    /* 742 */
    /***/ (function (module, exports, __webpack_require__) {
        exports = module.exports = __webpack_require__(3)(false);
        // imports
        // module
        exports.push([module.i, "/*@import url('https://fonts.googleapis.com/css?family=Material+Icons');*/\n\n@font-face {\n  font-family: 'Material Icons';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/fonts/Material-Design-Iconic-Font.eot); /* For IE6-8 */\n  src: local('Material Icons'),\n    local('MaterialIcons-Regular'),\n    url(https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/fonts/Material-Design-Iconic-Font.woff2) format('woff2'),\n    url(https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/fonts/Material-Design-Iconic-Font.woff) format('woff'),\n    url(https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/fonts/Material-Design-Iconic-Font.ttf) format('truetype');\n}\n\n.material-icons {\n  font-family: 'Material Icons';\n  font-weight: normal;\n  font-style: normal;\n  font-size: 24px;  /* Preferred icon size */\n  display: inline-block;\n  line-height: 1;\n  text-transform: none;\n  letter-spacing: normal;\n  word-wrap: normal;\n  white-space: nowrap;\n  direction: ltr;\n\n  /* Support for all WebKit browsers. */\n  -webkit-font-smoothing: antialiased;\n  /* Support for Safari and Chrome. */\n  text-rendering: optimizeLegibility;\n\n  /* Support for Firefox. */\n  -moz-osx-font-smoothing: grayscale;\n\n  /* Support for IE. */\n  font-feature-settings: 'liga';\n  -webkit-font-feature-settings: 'liga';\n}\n\n/* Rules for sizing the icon. */\n.material-icons.md-18 { font-size: 18px; }\n.material-icons.md-24 { font-size: 24px; }\n.material-icons.md-36 { font-size: 36px; }\n.material-icons.md-48 { font-size: 48px; }\n\n/* Rules for using icons as black on a light background. */\n.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }\n.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }\n\n/* Rules for using icons as white on a dark background. */\n.material-icons.md-light { color: rgba(255, 255, 255, 1); }\n.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }\n\n/* Toggle icon display \n.material-icons.show { display: block }\n.material-icons.show { display: none }\n*/", ""]);
        // exports
        /***/ 
    }),
    /* 743 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gradient", function () { return Gradient; });
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _config_Resource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__);
        var Gradient = function () {
            return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Defs"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "jovian", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#FFFFFF" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#f6e9e0" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#600000" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "iron", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#FFFFFF" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#dddcdb" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#c9d3d8" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "hotsuperearth", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#ffcc7f" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#fc6b11" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "hotjupiter", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#FFFFFF" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#f4af0e" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#f41d1d" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "hotstone", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#ffcc7f" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#fc6b11" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "stone", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#0047ba" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "80%", stopColor: "#4286f4" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#4286f4" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "coldstone", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#f2f2f7" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#8bb1ed" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "neptunian", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#b0b0e8" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#9595e2" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#a5a5d1" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "superearth", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#4286f4" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#4286f4" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "coldsuperearth", gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "30%", stopColor: "#f2f2f7" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#8bb1ed" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "Star0", cx: "50%", cy: "0%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#164dff" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "blue" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "StarTop0", cx: "50%", cy: "100%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "#164dff" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "blue" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "Star1", cx: "50%", cy: "0%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "white" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#fffdd6" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "StarTop1", cx: "50%", cy: "100%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "white" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#fffdd6" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "Star2", cx: "50%", cy: "0%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "orange" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#ff6a00" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "StarTop2", cx: "50%", cy: "100%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "orange" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#ff6a00" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "Star3", cx: "50%", cy: "0%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "red" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#fc2c02" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "StarTop3", cx: "50%", cy: "100%", r: "50%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "0%", stopColor: "red" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "60%", stopColor: "#fc2c02" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "100%", stopColor: "#black", stopOpacity: 0 })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "" + _config_Resource__WEBPACK_IMPORTED_MODULE_1__["resource"].color[3], gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "10%", stopColor: "#ff6a00" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "50%", stopColor: "red" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "80%", stopColor: "#50607a" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "" + _config_Resource__WEBPACK_IMPORTED_MODULE_1__["resource"].color[2], gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "10%", stopColor: "#ff6a00" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "50%", stopColor: "orange" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "80%", stopColor: "#50607a" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "" + _config_Resource__WEBPACK_IMPORTED_MODULE_1__["resource"].color[1], gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "10%", stopColor: "#fffdd6" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "50%", stopColor: "white" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "80%", stopColor: "#50607a" })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["RadialGradient"], { id: "" + _config_Resource__WEBPACK_IMPORTED_MODULE_1__["resource"].color[0], gradientUnits: "objectBoundingBox", fx: "30%", fy: "30%" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "10%", stopColor: "#164dff" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "50%", stopColor: "blue" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_2__["Stop"], { offset: "80%", stopColor: "#50607a" }))));
        };
        /***/ 
    }),
    /* 744 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(745);
        /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _service_getConstellations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(746);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67);
        /* harmony import */ var _siderealtime___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(747);
        /* harmony import */ var _service_getPlanets__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var Map = /** @class */ (function (_super) {
            __extends(Map, _super);
            function Map() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                _this.state = {
                    constlines: {},
                    stars: {},
                    longitude: -90,
                    latitude: 40,
                    siderealtime: '',
                    planets: []
                };
                _this.init = function () {
                    var _a = _this.state, constlines = _a.constlines, planets = _a.planets, stars = _a.stars;
                    var lineStyle = {
                        color: '#fff',
                        weight: 5,
                        opacity: 1
                    };
                    leaflet__WEBPACK_IMPORTED_MODULE_1__["geoJSON"](constlines, {
                        style: lineStyle,
                        onEachFeature: _this.onEachFeature
                    }).addTo(_this._map);
                    var planetIcon = leaflet__WEBPACK_IMPORTED_MODULE_1__["icon"]({
                        iconUrl: '/img/ic_launcher_web.png',
                        iconSize: [60, 60]
                    });
                    planets.map(function (planet) {
                        var planetmarker = leaflet__WEBPACK_IMPORTED_MODULE_1__["marker"]([
                            planet.coordinate.latitude,
                            planet.coordinate.longitude
                        ], { icon: planetIcon })
                            .bindTooltip(planet.name, { direction: 'left' })
                            .openTooltip()
                            .addTo(_this._map);
                        planetmarker.addEventListener('click', function () {
                            return _this.props.history.push({
                                pathname: "system/" + planet.star.name,
                                state: { star: planet.star }
                            });
                        });
                    });
                    var starIcon = leaflet__WEBPACK_IMPORTED_MODULE_1__["icon"]({
                        iconUrl: '/img/smarker.png',
                        iconSize: [60, 60]
                    });
                    leaflet__WEBPACK_IMPORTED_MODULE_1__["geoJSON"](stars, {
                        pointToLayer: function (feature, latlng) {
                            return leaflet__WEBPACK_IMPORTED_MODULE_1__["marker"](latlng, { icon: starIcon })
                                .bindTooltip(feature.properties.name, { direction: 'left' })
                                .openTooltip()
                                .addTo(_this._map);
                        }
                    }).addTo(_this._map);
                };
                _this.updatetime = function (position) {
                    _this.setState({ siderealtime: Object(_siderealtime___WEBPACK_IMPORTED_MODULE_4__["default"])(position) });
                    setInterval(function () {
                        _this.setState({ siderealtime: Object(_siderealtime___WEBPACK_IMPORTED_MODULE_4__["default"])(position) });
                    }, 60000);
                };
                _this.onEachFeature = function (feature, layer) {
                    var options = {
                        radius: 100,
                        fillColor: 'white',
                        color: 'white',
                        weight: 0,
                        opacity: 0,
                        fillOpacity: 0
                    };
                    var coord = feature.geometry.coordinates;
                    if (feature.properties.constellation != null) {
                        var marker = leaflet__WEBPACK_IMPORTED_MODULE_1__["circleMarker"]([coord[0][1], coord[0][0]], options)
                            .addTo(_this._map)
                            .bindTooltip(feature.properties.constellation, {
                            permanent: true,
                            direction: 'left'
                        })
                            .openTooltip();
                        marker.addEventListener('click', function () {
                            return _this.props.history.push({
                                pathname: "constellation/" + feature.properties.constellationid,
                                state: { constellation: feature.properties.constellationid }
                            });
                        });
                    }
                    options = {
                        radius: 6,
                        fillColor: 'white',
                        color: 'white',
                        weight: 1,
                        opacity: 1,
                        fillOpacity: 1
                    };
                    coord.map(function (p) {
                        leaflet__WEBPACK_IMPORTED_MODULE_1__["circleMarker"]([p[1], p[0]], options).addTo(_this._map);
                    });
                };
                return _this;
            }
            Map.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    var _a, longitude, latitude, constlines, stars, planets;
                    var _this = this;
                    return __generator(this, function (_b) {
                        switch (_b.label) {
                            case 0:
                                if (navigator.geolocation) {
                                    navigator.geolocation.getCurrentPosition(function (position) {
                                        return _this.updatetime(position.coords.longitude);
                                    });
                                }
                                _a = this.state, longitude = _a.longitude, latitude = _a.latitude;
                                this._map = leaflet__WEBPACK_IMPORTED_MODULE_1__["map"]('map', {
                                    zoom: 5,
                                    minZoom: 4,
                                    worldCopyJump: true,
                                    center: [latitude, longitude]
                                });
                                return [4 /*yield*/, Object(_service_getConstellations__WEBPACK_IMPORTED_MODULE_2__["GetConstellationsLines"])()];
                            case 1:
                                constlines = _b.sent();
                                return [4 /*yield*/, Object(_service_getConstellations__WEBPACK_IMPORTED_MODULE_2__["GetStarsMarkers"])()];
                            case 2:
                                stars = _b.sent();
                                return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_5__["GetHabitablePlanets"])()];
                            case 3:
                                planets = (_b.sent());
                                this._map.on('moveend', function () {
                                    var _a = _this._map.getCenter(), lng = _a.lng, lat = _a.lat;
                                    _this.setState({ longitude: lng, latitude: lat });
                                });
                                leaflet__WEBPACK_IMPORTED_MODULE_1__["tileLayer"]('/img/tile.png', {}).addTo(this._map);
                                this.setState({ constlines: constlines, planets: planets, stars: stars }, function () { return _this.init(); });
                                return [2 /*return*/];
                        }
                    });
                });
            };
            Map.prototype.render = function () {
                var _a = this.state, longitude = _a.longitude, latitude = _a.latitude, siderealtime = _a.siderealtime;
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Group, { widths: "three" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Value, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: "compass outline" }), Math.round(100 * latitude) / 100), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Label, null, 'Declination')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Value, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: "clock" }), siderealtime), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Label, null, 'Sidereal time')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Value, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: "compass" }), Math.round(100 * (12 + (-1 * longitude) / 15)) / 100), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Statistic"].Label, null, 'Right ascension'))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: "map" })));
            };
            return Map;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Map);
        /***/ 
    }),
    /* 745 */
    /***/ (function (module, exports, __webpack_require__) {
        /* @preserve
         * Leaflet 1.3.4, a JS library for interactive maps. http://leafletjs.com
         * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade
         */
        (function (global, factory) {
            true ? factory(exports) :
                undefined;
        }(this, (function (exports) {
            'use strict';
            var version = "1.3.4";
            /*
             * @namespace Util
             *
             * Various utility functions, used by Leaflet internally.
             */
            var freeze = Object.freeze;
            Object.freeze = function (obj) { return obj; };
            // @function extend(dest: Object, src?: Object): Object
            // Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.
            function extend(dest) {
                var i, j, len, src;
                for (j = 1, len = arguments.length; j < len; j++) {
                    src = arguments[j];
                    for (i in src) {
                        dest[i] = src[i];
                    }
                }
                return dest;
            }
            // @function create(proto: Object, properties?: Object): Object
            // Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)
            var create = Object.create || (function () {
                function F() { }
                return function (proto) {
                    F.prototype = proto;
                    return new F();
                };
            })();
            // @function bind(fn: Function, …): Function
            // Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
            // Has a `L.bind()` shortcut.
            function bind(fn, obj) {
                var slice = Array.prototype.slice;
                if (fn.bind) {
                    return fn.bind.apply(fn, slice.call(arguments, 1));
                }
                var args = slice.call(arguments, 2);
                return function () {
                    return fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);
                };
            }
            // @property lastId: Number
            // Last unique ID used by [`stamp()`](#util-stamp)
            var lastId = 0;
            // @function stamp(obj: Object): Number
            // Returns the unique ID of an object, assigning it one if it doesn't have it.
            function stamp(obj) {
                /*eslint-disable */
                obj._leaflet_id = obj._leaflet_id || ++lastId;
                return obj._leaflet_id;
                /* eslint-enable */
            }
            // @function throttle(fn: Function, time: Number, context: Object): Function
            // Returns a function which executes function `fn` with the given scope `context`
            // (so that the `this` keyword refers to `context` inside `fn`'s code). The function
            // `fn` will be called no more than one time per given amount of `time`. The arguments
            // received by the bound function will be any arguments passed when binding the
            // function, followed by any arguments passed when invoking the bound function.
            // Has an `L.throttle` shortcut.
            function throttle(fn, time, context) {
                var lock, args, wrapperFn, later;
                later = function () {
                    // reset lock and call if queued
                    lock = false;
                    if (args) {
                        wrapperFn.apply(context, args);
                        args = false;
                    }
                };
                wrapperFn = function () {
                    if (lock) {
                        // called too soon, queue to call later
                        args = arguments;
                    }
                    else {
                        // call and lock until later
                        fn.apply(context, arguments);
                        setTimeout(later, time);
                        lock = true;
                    }
                };
                return wrapperFn;
            }
            // @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number
            // Returns the number `num` modulo `range` in such a way so it lies within
            // `range[0]` and `range[1]`. The returned value will be always smaller than
            // `range[1]` unless `includeMax` is set to `true`.
            function wrapNum(x, range, includeMax) {
                var max = range[1], min = range[0], d = max - min;
                return x === max && includeMax ? x : ((x - min) % d + d) % d + min;
            }
            // @function falseFn(): Function
            // Returns a function which always returns `false`.
            function falseFn() { return false; }
            // @function formatNum(num: Number, digits?: Number): Number
            // Returns the number `num` rounded to `digits` decimals, or to 6 decimals by default.
            function formatNum(num, digits) {
                var pow = Math.pow(10, (digits === undefined ? 6 : digits));
                return Math.round(num * pow) / pow;
            }
            // @function trim(str: String): String
            // Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)
            function trim(str) {
                return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
            }
            // @function splitWords(str: String): String[]
            // Trims and splits the string on whitespace and returns the array of parts.
            function splitWords(str) {
                return trim(str).split(/\s+/);
            }
            // @function setOptions(obj: Object, options: Object): Object
            // Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.
            function setOptions(obj, options) {
                if (!obj.hasOwnProperty('options')) {
                    obj.options = obj.options ? create(obj.options) : {};
                }
                for (var i in options) {
                    obj.options[i] = options[i];
                }
                return obj.options;
            }
            // @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String
            // Converts an object into a parameter URL string, e.g. `{a: "foo", b: "bar"}`
            // translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will
            // be appended at the end. If `uppercase` is `true`, the parameter names will
            // be uppercased (e.g. `'?A=foo&B=bar'`)
            function getParamString(obj, existingUrl, uppercase) {
                var params = [];
                for (var i in obj) {
                    params.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));
                }
                return ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');
            }
            var templateRe = /\{ *([\w_-]+) *\}/g;
            // @function template(str: String, data: Object): String
            // Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`
            // and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string
            // `('Hello foo, bar')`. You can also specify functions instead of strings for
            // data values — they will be evaluated passing `data` as an argument.
            function template(str, data) {
                return str.replace(templateRe, function (str, key) {
                    var value = data[key];
                    if (value === undefined) {
                        throw new Error('No value provided for variable ' + str);
                    }
                    else if (typeof value === 'function') {
                        value = value(data);
                    }
                    return value;
                });
            }
            // @function isArray(obj): Boolean
            // Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)
            var isArray = Array.isArray || function (obj) {
                return (Object.prototype.toString.call(obj) === '[object Array]');
            };
            // @function indexOf(array: Array, el: Object): Number
            // Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)
            function indexOf(array, el) {
                for (var i = 0; i < array.length; i++) {
                    if (array[i] === el) {
                        return i;
                    }
                }
                return -1;
            }
            // @property emptyImageUrl: String
            // Data URI string containing a base64-encoded empty GIF image.
            // Used as a hack to free memory from unused images on WebKit-powered
            // mobile devices (by setting image `src` to this string).
            var emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
            // inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/
            function getPrefixed(name) {
                return window['webkit' + name] || window['moz' + name] || window['ms' + name];
            }
            var lastTime = 0;
            // fallback for IE 7-8
            function timeoutDefer(fn) {
                var time = +new Date(), timeToCall = Math.max(0, 16 - (time - lastTime));
                lastTime = time + timeToCall;
                return window.setTimeout(fn, timeToCall);
            }
            var requestFn = window.requestAnimationFrame || getPrefixed('RequestAnimationFrame') || timeoutDefer;
            var cancelFn = window.cancelAnimationFrame || getPrefixed('CancelAnimationFrame') ||
                getPrefixed('CancelRequestAnimationFrame') || function (id) { window.clearTimeout(id); };
            // @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number
            // Schedules `fn` to be executed when the browser repaints. `fn` is bound to
            // `context` if given. When `immediate` is set, `fn` is called immediately if
            // the browser doesn't have native support for
            // [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),
            // otherwise it's delayed. Returns a request ID that can be used to cancel the request.
            function requestAnimFrame(fn, context, immediate) {
                if (immediate && requestFn === timeoutDefer) {
                    fn.call(context);
                }
                else {
                    return requestFn.call(window, bind(fn, context));
                }
            }
            // @function cancelAnimFrame(id: Number): undefined
            // Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).
            function cancelAnimFrame(id) {
                if (id) {
                    cancelFn.call(window, id);
                }
            }
            var Util = (Object.freeze || Object)({
                freeze: freeze,
                extend: extend,
                create: create,
                bind: bind,
                lastId: lastId,
                stamp: stamp,
                throttle: throttle,
                wrapNum: wrapNum,
                falseFn: falseFn,
                formatNum: formatNum,
                trim: trim,
                splitWords: splitWords,
                setOptions: setOptions,
                getParamString: getParamString,
                template: template,
                isArray: isArray,
                indexOf: indexOf,
                emptyImageUrl: emptyImageUrl,
                requestFn: requestFn,
                cancelFn: cancelFn,
                requestAnimFrame: requestAnimFrame,
                cancelAnimFrame: cancelAnimFrame
            });
            // @class Class
            // @aka L.Class
            // @section
            // @uninheritable
            // Thanks to John Resig and Dean Edwards for inspiration!
            function Class() { }
            Class.extend = function (props) {
                // @function extend(props: Object): Function
                // [Extends the current class](#class-inheritance) given the properties to be included.
                // Returns a Javascript function that is a class constructor (to be called with `new`).
                var NewClass = function () {
                    // call the constructor
                    if (this.initialize) {
                        this.initialize.apply(this, arguments);
                    }
                    // call all constructor hooks
                    this.callInitHooks();
                };
                var parentProto = NewClass.__super__ = this.prototype;
                var proto = create(parentProto);
                proto.constructor = NewClass;
                NewClass.prototype = proto;
                // inherit parent's statics
                for (var i in this) {
                    if (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {
                        NewClass[i] = this[i];
                    }
                }
                // mix static properties into the class
                if (props.statics) {
                    extend(NewClass, props.statics);
                    delete props.statics;
                }
                // mix includes into the prototype
                if (props.includes) {
                    checkDeprecatedMixinEvents(props.includes);
                    extend.apply(null, [proto].concat(props.includes));
                    delete props.includes;
                }
                // merge options
                if (proto.options) {
                    props.options = extend(create(proto.options), props.options);
                }
                // mix given properties into the prototype
                extend(proto, props);
                proto._initHooks = [];
                // add method for calling all hooks
                proto.callInitHooks = function () {
                    if (this._initHooksCalled) {
                        return;
                    }
                    if (parentProto.callInitHooks) {
                        parentProto.callInitHooks.call(this);
                    }
                    this._initHooksCalled = true;
                    for (var i = 0, len = proto._initHooks.length; i < len; i++) {
                        proto._initHooks[i].call(this);
                    }
                };
                return NewClass;
            };
            // @function include(properties: Object): this
            // [Includes a mixin](#class-includes) into the current class.
            Class.include = function (props) {
                extend(this.prototype, props);
                return this;
            };
            // @function mergeOptions(options: Object): this
            // [Merges `options`](#class-options) into the defaults of the class.
            Class.mergeOptions = function (options) {
                extend(this.prototype.options, options);
                return this;
            };
            // @function addInitHook(fn: Function): this
            // Adds a [constructor hook](#class-constructor-hooks) to the class.
            Class.addInitHook = function (fn) {
                var args = Array.prototype.slice.call(arguments, 1);
                var init = typeof fn === 'function' ? fn : function () {
                    this[fn].apply(this, args);
                };
                this.prototype._initHooks = this.prototype._initHooks || [];
                this.prototype._initHooks.push(init);
                return this;
            };
            function checkDeprecatedMixinEvents(includes) {
                if (typeof L === 'undefined' || !L || !L.Mixin) {
                    return;
                }
                includes = isArray(includes) ? includes : [includes];
                for (var i = 0; i < includes.length; i++) {
                    if (includes[i] === L.Mixin.Events) {
                        console.warn('Deprecated include of L.Mixin.Events: ' +
                            'this property will be removed in future releases, ' +
                            'please inherit from L.Evented instead.', new Error().stack);
                    }
                }
            }
            /*
             * @class Evented
             * @aka L.Evented
             * @inherits Class
             *
             * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).
             *
             * @example
             *
             * ```js
             * map.on('click', function(e) {
             * 	alert(e.latlng);
             * } );
             * ```
             *
             * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:
             *
             * ```js
             * function onClick(e) { ... }
             *
             * map.on('click', onClick);
             * map.off('click', onClick);
             * ```
             */
            var Events = {
                /* @method on(type: String, fn: Function, context?: Object): this
                 * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
                 *
                 * @alternative
                 * @method on(eventMap: Object): this
                 * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
                 */
                on: function (types, fn, context) {
                    // types can be a map of types/handlers
                    if (typeof types === 'object') {
                        for (var type in types) {
                            // we don't process space-separated events here for performance;
                            // it's a hot path since Layer uses the on(obj) syntax
                            this._on(type, types[type], fn);
                        }
                    }
                    else {
                        // types can be a string of space-separated words
                        types = splitWords(types);
                        for (var i = 0, len = types.length; i < len; i++) {
                            this._on(types[i], fn, context);
                        }
                    }
                    return this;
                },
                /* @method off(type: String, fn?: Function, context?: Object): this
                 * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.
                 *
                 * @alternative
                 * @method off(eventMap: Object): this
                 * Removes a set of type/listener pairs.
                 *
                 * @alternative
                 * @method off: this
                 * Removes all listeners to all events on the object.
                 */
                off: function (types, fn, context) {
                    if (!types) {
                        // clear all listeners if called without arguments
                        delete this._events;
                    }
                    else if (typeof types === 'object') {
                        for (var type in types) {
                            this._off(type, types[type], fn);
                        }
                    }
                    else {
                        types = splitWords(types);
                        for (var i = 0, len = types.length; i < len; i++) {
                            this._off(types[i], fn, context);
                        }
                    }
                    return this;
                },
                // attach listener (without syntactic sugar now)
                _on: function (type, fn, context) {
                    this._events = this._events || {};
                    /* get/init listeners for type */
                    var typeListeners = this._events[type];
                    if (!typeListeners) {
                        typeListeners = [];
                        this._events[type] = typeListeners;
                    }
                    if (context === this) {
                        // Less memory footprint.
                        context = undefined;
                    }
                    var newListener = { fn: fn, ctx: context }, listeners = typeListeners;
                    // check if fn already there
                    for (var i = 0, len = listeners.length; i < len; i++) {
                        if (listeners[i].fn === fn && listeners[i].ctx === context) {
                            return;
                        }
                    }
                    listeners.push(newListener);
                },
                _off: function (type, fn, context) {
                    var listeners, i, len;
                    if (!this._events) {
                        return;
                    }
                    listeners = this._events[type];
                    if (!listeners) {
                        return;
                    }
                    if (!fn) {
                        // Set all removed listeners to noop so they are not called if remove happens in fire
                        for (i = 0, len = listeners.length; i < len; i++) {
                            listeners[i].fn = falseFn;
                        }
                        // clear all listeners for a type if function isn't specified
                        delete this._events[type];
                        return;
                    }
                    if (context === this) {
                        context = undefined;
                    }
                    if (listeners) {
                        // find fn and remove it
                        for (i = 0, len = listeners.length; i < len; i++) {
                            var l = listeners[i];
                            if (l.ctx !== context) {
                                continue;
                            }
                            if (l.fn === fn) {
                                // set the removed listener to noop so that's not called if remove happens in fire
                                l.fn = falseFn;
                                if (this._firingCount) {
                                    /* copy array in case events are being fired */
                                    this._events[type] = listeners = listeners.slice();
                                }
                                listeners.splice(i, 1);
                                return;
                            }
                        }
                    }
                },
                // @method fire(type: String, data?: Object, propagate?: Boolean): this
                // Fires an event of the specified type. You can optionally provide an data
                // object — the first argument of the listener function will contain its
                // properties. The event can optionally be propagated to event parents.
                fire: function (type, data, propagate) {
                    if (!this.listens(type, propagate)) {
                        return this;
                    }
                    var event = extend({}, data, {
                        type: type,
                        target: this,
                        sourceTarget: data && data.sourceTarget || this
                    });
                    if (this._events) {
                        var listeners = this._events[type];
                        if (listeners) {
                            this._firingCount = (this._firingCount + 1) || 1;
                            for (var i = 0, len = listeners.length; i < len; i++) {
                                var l = listeners[i];
                                l.fn.call(l.ctx || this, event);
                            }
                            this._firingCount--;
                        }
                    }
                    if (propagate) {
                        // propagate the event to parents (set with addEventParent)
                        this._propagateEvent(event);
                    }
                    return this;
                },
                // @method listens(type: String): Boolean
                // Returns `true` if a particular event type has any listeners attached to it.
                listens: function (type, propagate) {
                    var listeners = this._events && this._events[type];
                    if (listeners && listeners.length) {
                        return true;
                    }
                    if (propagate) {
                        // also check parents for listeners if event propagates
                        for (var id in this._eventParents) {
                            if (this._eventParents[id].listens(type, propagate)) {
                                return true;
                            }
                        }
                    }
                    return false;
                },
                // @method once(…): this
                // Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.
                once: function (types, fn, context) {
                    if (typeof types === 'object') {
                        for (var type in types) {
                            this.once(type, types[type], fn);
                        }
                        return this;
                    }
                    var handler = bind(function () {
                        this
                            .off(types, fn, context)
                            .off(types, handler, context);
                    }, this);
                    // add a listener that's executed once and removed after that
                    return this
                        .on(types, fn, context)
                        .on(types, handler, context);
                },
                // @method addEventParent(obj: Evented): this
                // Adds an event parent - an `Evented` that will receive propagated events
                addEventParent: function (obj) {
                    this._eventParents = this._eventParents || {};
                    this._eventParents[stamp(obj)] = obj;
                    return this;
                },
                // @method removeEventParent(obj: Evented): this
                // Removes an event parent, so it will stop receiving propagated events
                removeEventParent: function (obj) {
                    if (this._eventParents) {
                        delete this._eventParents[stamp(obj)];
                    }
                    return this;
                },
                _propagateEvent: function (e) {
                    for (var id in this._eventParents) {
                        this._eventParents[id].fire(e.type, extend({
                            layer: e.target,
                            propagatedFrom: e.target
                        }, e), true);
                    }
                }
            };
            // aliases; we should ditch those eventually
            // @method addEventListener(…): this
            // Alias to [`on(…)`](#evented-on)
            Events.addEventListener = Events.on;
            // @method removeEventListener(…): this
            // Alias to [`off(…)`](#evented-off)
            // @method clearAllEventListeners(…): this
            // Alias to [`off()`](#evented-off)
            Events.removeEventListener = Events.clearAllEventListeners = Events.off;
            // @method addOneTimeEventListener(…): this
            // Alias to [`once(…)`](#evented-once)
            Events.addOneTimeEventListener = Events.once;
            // @method fireEvent(…): this
            // Alias to [`fire(…)`](#evented-fire)
            Events.fireEvent = Events.fire;
            // @method hasEventListeners(…): Boolean
            // Alias to [`listens(…)`](#evented-listens)
            Events.hasEventListeners = Events.listens;
            var Evented = Class.extend(Events);
            /*
             * @class Point
             * @aka L.Point
             *
             * Represents a point with `x` and `y` coordinates in pixels.
             *
             * @example
             *
             * ```js
             * var point = L.point(200, 300);
             * ```
             *
             * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:
             *
             * ```js
             * map.panBy([200, 300]);
             * map.panBy(L.point(200, 300));
             * ```
             *
             * Note that `Point` does not inherit from Leafet's `Class` object,
             * which means new classes can't inherit from it, and new methods
             * can't be added to it with the `include` function.
             */
            function Point(x, y, round) {
                // @property x: Number; The `x` coordinate of the point
                this.x = (round ? Math.round(x) : x);
                // @property y: Number; The `y` coordinate of the point
                this.y = (round ? Math.round(y) : y);
            }
            var trunc = Math.trunc || function (v) {
                return v > 0 ? Math.floor(v) : Math.ceil(v);
            };
            Point.prototype = {
                // @method clone(): Point
                // Returns a copy of the current point.
                clone: function () {
                    return new Point(this.x, this.y);
                },
                // @method add(otherPoint: Point): Point
                // Returns the result of addition of the current and the given points.
                add: function (point) {
                    // non-destructive, returns a new point
                    return this.clone()._add(toPoint(point));
                },
                _add: function (point) {
                    // destructive, used directly for performance in situations where it's safe to modify existing point
                    this.x += point.x;
                    this.y += point.y;
                    return this;
                },
                // @method subtract(otherPoint: Point): Point
                // Returns the result of subtraction of the given point from the current.
                subtract: function (point) {
                    return this.clone()._subtract(toPoint(point));
                },
                _subtract: function (point) {
                    this.x -= point.x;
                    this.y -= point.y;
                    return this;
                },
                // @method divideBy(num: Number): Point
                // Returns the result of division of the current point by the given number.
                divideBy: function (num) {
                    return this.clone()._divideBy(num);
                },
                _divideBy: function (num) {
                    this.x /= num;
                    this.y /= num;
                    return this;
                },
                // @method multiplyBy(num: Number): Point
                // Returns the result of multiplication of the current point by the given number.
                multiplyBy: function (num) {
                    return this.clone()._multiplyBy(num);
                },
                _multiplyBy: function (num) {
                    this.x *= num;
                    this.y *= num;
                    return this;
                },
                // @method scaleBy(scale: Point): Point
                // Multiply each coordinate of the current point by each coordinate of
                // `scale`. In linear algebra terms, multiply the point by the
                // [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
                // defined by `scale`.
                scaleBy: function (point) {
                    return new Point(this.x * point.x, this.y * point.y);
                },
                // @method unscaleBy(scale: Point): Point
                // Inverse of `scaleBy`. Divide each coordinate of the current point by
                // each coordinate of `scale`.
                unscaleBy: function (point) {
                    return new Point(this.x / point.x, this.y / point.y);
                },
                // @method round(): Point
                // Returns a copy of the current point with rounded coordinates.
                round: function () {
                    return this.clone()._round();
                },
                _round: function () {
                    this.x = Math.round(this.x);
                    this.y = Math.round(this.y);
                    return this;
                },
                // @method floor(): Point
                // Returns a copy of the current point with floored coordinates (rounded down).
                floor: function () {
                    return this.clone()._floor();
                },
                _floor: function () {
                    this.x = Math.floor(this.x);
                    this.y = Math.floor(this.y);
                    return this;
                },
                // @method ceil(): Point
                // Returns a copy of the current point with ceiled coordinates (rounded up).
                ceil: function () {
                    return this.clone()._ceil();
                },
                _ceil: function () {
                    this.x = Math.ceil(this.x);
                    this.y = Math.ceil(this.y);
                    return this;
                },
                // @method trunc(): Point
                // Returns a copy of the current point with truncated coordinates (rounded towards zero).
                trunc: function () {
                    return this.clone()._trunc();
                },
                _trunc: function () {
                    this.x = trunc(this.x);
                    this.y = trunc(this.y);
                    return this;
                },
                // @method distanceTo(otherPoint: Point): Number
                // Returns the cartesian distance between the current and the given points.
                distanceTo: function (point) {
                    point = toPoint(point);
                    var x = point.x - this.x, y = point.y - this.y;
                    return Math.sqrt(x * x + y * y);
                },
                // @method equals(otherPoint: Point): Boolean
                // Returns `true` if the given point has the same coordinates.
                equals: function (point) {
                    point = toPoint(point);
                    return point.x === this.x &&
                        point.y === this.y;
                },
                // @method contains(otherPoint: Point): Boolean
                // Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
                contains: function (point) {
                    point = toPoint(point);
                    return Math.abs(point.x) <= Math.abs(this.x) &&
                        Math.abs(point.y) <= Math.abs(this.y);
                },
                // @method toString(): String
                // Returns a string representation of the point for debugging purposes.
                toString: function () {
                    return 'Point(' +
                        formatNum(this.x) + ', ' +
                        formatNum(this.y) + ')';
                }
            };
            // @factory L.point(x: Number, y: Number, round?: Boolean)
            // Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.
            // @alternative
            // @factory L.point(coords: Number[])
            // Expects an array of the form `[x, y]` instead.
            // @alternative
            // @factory L.point(coords: Object)
            // Expects a plain object of the form `{x: Number, y: Number}` instead.
            function toPoint(x, y, round) {
                if (x instanceof Point) {
                    return x;
                }
                if (isArray(x)) {
                    return new Point(x[0], x[1]);
                }
                if (x === undefined || x === null) {
                    return x;
                }
                if (typeof x === 'object' && 'x' in x && 'y' in x) {
                    return new Point(x.x, x.y);
                }
                return new Point(x, y, round);
            }
            /*
             * @class Bounds
             * @aka L.Bounds
             *
             * Represents a rectangular area in pixel coordinates.
             *
             * @example
             *
             * ```js
             * var p1 = L.point(10, 10),
             * p2 = L.point(40, 60),
             * bounds = L.bounds(p1, p2);
             * ```
             *
             * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
             *
             * ```js
             * otherBounds.intersects([[10, 10], [40, 60]]);
             * ```
             *
             * Note that `Bounds` does not inherit from Leafet's `Class` object,
             * which means new classes can't inherit from it, and new methods
             * can't be added to it with the `include` function.
             */
            function Bounds(a, b) {
                if (!a) {
                    return;
                }
                var points = b ? [a, b] : a;
                for (var i = 0, len = points.length; i < len; i++) {
                    this.extend(points[i]);
                }
            }
            Bounds.prototype = {
                // @method extend(point: Point): this
                // Extends the bounds to contain the given point.
                extend: function (point) {
                    point = toPoint(point);
                    // @property min: Point
                    // The top left corner of the rectangle.
                    // @property max: Point
                    // The bottom right corner of the rectangle.
                    if (!this.min && !this.max) {
                        this.min = point.clone();
                        this.max = point.clone();
                    }
                    else {
                        this.min.x = Math.min(point.x, this.min.x);
                        this.max.x = Math.max(point.x, this.max.x);
                        this.min.y = Math.min(point.y, this.min.y);
                        this.max.y = Math.max(point.y, this.max.y);
                    }
                    return this;
                },
                // @method getCenter(round?: Boolean): Point
                // Returns the center point of the bounds.
                getCenter: function (round) {
                    return new Point((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, round);
                },
                // @method getBottomLeft(): Point
                // Returns the bottom-left point of the bounds.
                getBottomLeft: function () {
                    return new Point(this.min.x, this.max.y);
                },
                // @method getTopRight(): Point
                // Returns the top-right point of the bounds.
                getTopRight: function () {
                    return new Point(this.max.x, this.min.y);
                },
                // @method getTopLeft(): Point
                // Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).
                getTopLeft: function () {
                    return this.min; // left, top
                },
                // @method getBottomRight(): Point
                // Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).
                getBottomRight: function () {
                    return this.max; // right, bottom
                },
                // @method getSize(): Point
                // Returns the size of the given bounds
                getSize: function () {
                    return this.max.subtract(this.min);
                },
                // @method contains(otherBounds: Bounds): Boolean
                // Returns `true` if the rectangle contains the given one.
                // @alternative
                // @method contains(point: Point): Boolean
                // Returns `true` if the rectangle contains the given point.
                contains: function (obj) {
                    var min, max;
                    if (typeof obj[0] === 'number' || obj instanceof Point) {
                        obj = toPoint(obj);
                    }
                    else {
                        obj = toBounds(obj);
                    }
                    if (obj instanceof Bounds) {
                        min = obj.min;
                        max = obj.max;
                    }
                    else {
                        min = max = obj;
                    }
                    return (min.x >= this.min.x) &&
                        (max.x <= this.max.x) &&
                        (min.y >= this.min.y) &&
                        (max.y <= this.max.y);
                },
                // @method intersects(otherBounds: Bounds): Boolean
                // Returns `true` if the rectangle intersects the given bounds. Two bounds
                // intersect if they have at least one point in common.
                intersects: function (bounds) {
                    bounds = toBounds(bounds);
                    var min = this.min, max = this.max, min2 = bounds.min, max2 = bounds.max, xIntersects = (max2.x >= min.x) && (min2.x <= max.x), yIntersects = (max2.y >= min.y) && (min2.y <= max.y);
                    return xIntersects && yIntersects;
                },
                // @method overlaps(otherBounds: Bounds): Boolean
                // Returns `true` if the rectangle overlaps the given bounds. Two bounds
                // overlap if their intersection is an area.
                overlaps: function (bounds) {
                    bounds = toBounds(bounds);
                    var min = this.min, max = this.max, min2 = bounds.min, max2 = bounds.max, xOverlaps = (max2.x > min.x) && (min2.x < max.x), yOverlaps = (max2.y > min.y) && (min2.y < max.y);
                    return xOverlaps && yOverlaps;
                },
                isValid: function () {
                    return !!(this.min && this.max);
                }
            };
            // @factory L.bounds(corner1: Point, corner2: Point)
            // Creates a Bounds object from two corners coordinate pairs.
            // @alternative
            // @factory L.bounds(points: Point[])
            // Creates a Bounds object from the given array of points.
            function toBounds(a, b) {
                if (!a || a instanceof Bounds) {
                    return a;
                }
                return new Bounds(a, b);
            }
            /*
             * @class LatLngBounds
             * @aka L.LatLngBounds
             *
             * Represents a rectangular geographical area on a map.
             *
             * @example
             *
             * ```js
             * var corner1 = L.latLng(40.712, -74.227),
             * corner2 = L.latLng(40.774, -74.125),
             * bounds = L.latLngBounds(corner1, corner2);
             * ```
             *
             * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
             *
             * ```js
             * map.fitBounds([
             * 	[40.712, -74.227],
             * 	[40.774, -74.125]
             * ]);
             * ```
             *
             * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.
             *
             * Note that `LatLngBounds` does not inherit from Leafet's `Class` object,
             * which means new classes can't inherit from it, and new methods
             * can't be added to it with the `include` function.
             */
            function LatLngBounds(corner1, corner2) {
                if (!corner1) {
                    return;
                }
                var latlngs = corner2 ? [corner1, corner2] : corner1;
                for (var i = 0, len = latlngs.length; i < len; i++) {
                    this.extend(latlngs[i]);
                }
            }
            LatLngBounds.prototype = {
                // @method extend(latlng: LatLng): this
                // Extend the bounds to contain the given point
                // @alternative
                // @method extend(otherBounds: LatLngBounds): this
                // Extend the bounds to contain the given bounds
                extend: function (obj) {
                    var sw = this._southWest, ne = this._northEast, sw2, ne2;
                    if (obj instanceof LatLng) {
                        sw2 = obj;
                        ne2 = obj;
                    }
                    else if (obj instanceof LatLngBounds) {
                        sw2 = obj._southWest;
                        ne2 = obj._northEast;
                        if (!sw2 || !ne2) {
                            return this;
                        }
                    }
                    else {
                        return obj ? this.extend(toLatLng(obj) || toLatLngBounds(obj)) : this;
                    }
                    if (!sw && !ne) {
                        this._southWest = new LatLng(sw2.lat, sw2.lng);
                        this._northEast = new LatLng(ne2.lat, ne2.lng);
                    }
                    else {
                        sw.lat = Math.min(sw2.lat, sw.lat);
                        sw.lng = Math.min(sw2.lng, sw.lng);
                        ne.lat = Math.max(ne2.lat, ne.lat);
                        ne.lng = Math.max(ne2.lng, ne.lng);
                    }
                    return this;
                },
                // @method pad(bufferRatio: Number): LatLngBounds
                // Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
                // For example, a ratio of 0.5 extends the bounds by 50% in each direction.
                // Negative values will retract the bounds.
                pad: function (bufferRatio) {
                    var sw = this._southWest, ne = this._northEast, heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio, widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;
                    return new LatLngBounds(new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer), new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));
                },
                // @method getCenter(): LatLng
                // Returns the center point of the bounds.
                getCenter: function () {
                    return new LatLng((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2);
                },
                // @method getSouthWest(): LatLng
                // Returns the south-west point of the bounds.
                getSouthWest: function () {
                    return this._southWest;
                },
                // @method getNorthEast(): LatLng
                // Returns the north-east point of the bounds.
                getNorthEast: function () {
                    return this._northEast;
                },
                // @method getNorthWest(): LatLng
                // Returns the north-west point of the bounds.
                getNorthWest: function () {
                    return new LatLng(this.getNorth(), this.getWest());
                },
                // @method getSouthEast(): LatLng
                // Returns the south-east point of the bounds.
                getSouthEast: function () {
                    return new LatLng(this.getSouth(), this.getEast());
                },
                // @method getWest(): Number
                // Returns the west longitude of the bounds
                getWest: function () {
                    return this._southWest.lng;
                },
                // @method getSouth(): Number
                // Returns the south latitude of the bounds
                getSouth: function () {
                    return this._southWest.lat;
                },
                // @method getEast(): Number
                // Returns the east longitude of the bounds
                getEast: function () {
                    return this._northEast.lng;
                },
                // @method getNorth(): Number
                // Returns the north latitude of the bounds
                getNorth: function () {
                    return this._northEast.lat;
                },
                // @method contains(otherBounds: LatLngBounds): Boolean
                // Returns `true` if the rectangle contains the given one.
                // @alternative
                // @method contains (latlng: LatLng): Boolean
                // Returns `true` if the rectangle contains the given point.
                contains: function (obj) {
                    if (typeof obj[0] === 'number' || obj instanceof LatLng || 'lat' in obj) {
                        obj = toLatLng(obj);
                    }
                    else {
                        obj = toLatLngBounds(obj);
                    }
                    var sw = this._southWest, ne = this._northEast, sw2, ne2;
                    if (obj instanceof LatLngBounds) {
                        sw2 = obj.getSouthWest();
                        ne2 = obj.getNorthEast();
                    }
                    else {
                        sw2 = ne2 = obj;
                    }
                    return (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&
                        (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);
                },
                // @method intersects(otherBounds: LatLngBounds): Boolean
                // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
                intersects: function (bounds) {
                    bounds = toLatLngBounds(bounds);
                    var sw = this._southWest, ne = this._northEast, sw2 = bounds.getSouthWest(), ne2 = bounds.getNorthEast(), latIntersects = (ne2.lat >= sw.lat) && (sw2.lat <= ne.lat), lngIntersects = (ne2.lng >= sw.lng) && (sw2.lng <= ne.lng);
                    return latIntersects && lngIntersects;
                },
                // @method overlaps(otherBounds: Bounds): Boolean
                // Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
                overlaps: function (bounds) {
                    bounds = toLatLngBounds(bounds);
                    var sw = this._southWest, ne = this._northEast, sw2 = bounds.getSouthWest(), ne2 = bounds.getNorthEast(), latOverlaps = (ne2.lat > sw.lat) && (sw2.lat < ne.lat), lngOverlaps = (ne2.lng > sw.lng) && (sw2.lng < ne.lng);
                    return latOverlaps && lngOverlaps;
                },
                // @method toBBoxString(): String
                // Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
                toBBoxString: function () {
                    return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(',');
                },
                // @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
                // Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
                equals: function (bounds, maxMargin) {
                    if (!bounds) {
                        return false;
                    }
                    bounds = toLatLngBounds(bounds);
                    return this._southWest.equals(bounds.getSouthWest(), maxMargin) &&
                        this._northEast.equals(bounds.getNorthEast(), maxMargin);
                },
                // @method isValid(): Boolean
                // Returns `true` if the bounds are properly initialized.
                isValid: function () {
                    return !!(this._southWest && this._northEast);
                }
            };
            // TODO International date line?
            // @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)
            // Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.
            // @alternative
            // @factory L.latLngBounds(latlngs: LatLng[])
            // Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).
            function toLatLngBounds(a, b) {
                if (a instanceof LatLngBounds) {
                    return a;
                }
                return new LatLngBounds(a, b);
            }
            /* @class LatLng
             * @aka L.LatLng
             *
             * Represents a geographical point with a certain latitude and longitude.
             *
             * @example
             *
             * ```
             * var latlng = L.latLng(50.5, 30.5);
             * ```
             *
             * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:
             *
             * ```
             * map.panTo([50, 30]);
             * map.panTo({lon: 30, lat: 50});
             * map.panTo({lat: 50, lng: 30});
             * map.panTo(L.latLng(50, 30));
             * ```
             *
             * Note that `LatLng` does not inherit from Leaflet's `Class` object,
             * which means new classes can't inherit from it, and new methods
             * can't be added to it with the `include` function.
             */
            function LatLng(lat, lng, alt) {
                if (isNaN(lat) || isNaN(lng)) {
                    throw new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');
                }
                // @property lat: Number
                // Latitude in degrees
                this.lat = +lat;
                // @property lng: Number
                // Longitude in degrees
                this.lng = +lng;
                // @property alt: Number
                // Altitude in meters (optional)
                if (alt !== undefined) {
                    this.alt = +alt;
                }
            }
            LatLng.prototype = {
                // @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean
                // Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.
                equals: function (obj, maxMargin) {
                    if (!obj) {
                        return false;
                    }
                    obj = toLatLng(obj);
                    var margin = Math.max(Math.abs(this.lat - obj.lat), Math.abs(this.lng - obj.lng));
                    return margin <= (maxMargin === undefined ? 1.0E-9 : maxMargin);
                },
                // @method toString(): String
                // Returns a string representation of the point (for debugging purposes).
                toString: function (precision) {
                    return 'LatLng(' +
                        formatNum(this.lat, precision) + ', ' +
                        formatNum(this.lng, precision) + ')';
                },
                // @method distanceTo(otherLatLng: LatLng): Number
                // Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
                distanceTo: function (other) {
                    return Earth.distance(this, toLatLng(other));
                },
                // @method wrap(): LatLng
                // Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
                wrap: function () {
                    return Earth.wrapLatLng(this);
                },
                // @method toBounds(sizeInMeters: Number): LatLngBounds
                // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
                toBounds: function (sizeInMeters) {
                    var latAccuracy = 180 * sizeInMeters / 40075017, lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);
                    return toLatLngBounds([this.lat - latAccuracy, this.lng - lngAccuracy], [this.lat + latAccuracy, this.lng + lngAccuracy]);
                },
                clone: function () {
                    return new LatLng(this.lat, this.lng, this.alt);
                }
            };
            // @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng
            // Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).
            // @alternative
            // @factory L.latLng(coords: Array): LatLng
            // Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.
            // @alternative
            // @factory L.latLng(coords: Object): LatLng
            // Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.
            function toLatLng(a, b, c) {
                if (a instanceof LatLng) {
                    return a;
                }
                if (isArray(a) && typeof a[0] !== 'object') {
                    if (a.length === 3) {
                        return new LatLng(a[0], a[1], a[2]);
                    }
                    if (a.length === 2) {
                        return new LatLng(a[0], a[1]);
                    }
                    return null;
                }
                if (a === undefined || a === null) {
                    return a;
                }
                if (typeof a === 'object' && 'lat' in a) {
                    return new LatLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);
                }
                if (b === undefined) {
                    return null;
                }
                return new LatLng(a, b, c);
            }
            /*
             * @namespace CRS
             * @crs L.CRS.Base
             * Object that defines coordinate reference systems for projecting
             * geographical points into pixel (screen) coordinates and back (and to
             * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See
             * [spatial reference system](http://en.wikipedia.org/wiki/Coordinate_reference_system).
             *
             * Leaflet defines the most usual CRSs by default. If you want to use a
             * CRS not defined by default, take a look at the
             * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.
             *
             * Note that the CRS instances do not inherit from Leafet's `Class` object,
             * and can't be instantiated. Also, new classes can't inherit from them,
             * and methods can't be added to them with the `include` function.
             */
            var CRS = {
                // @method latLngToPoint(latlng: LatLng, zoom: Number): Point
                // Projects geographical coordinates into pixel coordinates for a given zoom.
                latLngToPoint: function (latlng, zoom) {
                    var projectedPoint = this.projection.project(latlng), scale = this.scale(zoom);
                    return this.transformation._transform(projectedPoint, scale);
                },
                // @method pointToLatLng(point: Point, zoom: Number): LatLng
                // The inverse of `latLngToPoint`. Projects pixel coordinates on a given
                // zoom into geographical coordinates.
                pointToLatLng: function (point, zoom) {
                    var scale = this.scale(zoom), untransformedPoint = this.transformation.untransform(point, scale);
                    return this.projection.unproject(untransformedPoint);
                },
                // @method project(latlng: LatLng): Point
                // Projects geographical coordinates into coordinates in units accepted for
                // this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
                project: function (latlng) {
                    return this.projection.project(latlng);
                },
                // @method unproject(point: Point): LatLng
                // Given a projected coordinate returns the corresponding LatLng.
                // The inverse of `project`.
                unproject: function (point) {
                    return this.projection.unproject(point);
                },
                // @method scale(zoom: Number): Number
                // Returns the scale used when transforming projected coordinates into
                // pixel coordinates for a particular zoom. For example, it returns
                // `256 * 2^zoom` for Mercator-based CRS.
                scale: function (zoom) {
                    return 256 * Math.pow(2, zoom);
                },
                // @method zoom(scale: Number): Number
                // Inverse of `scale()`, returns the zoom level corresponding to a scale
                // factor of `scale`.
                zoom: function (scale) {
                    return Math.log(scale / 256) / Math.LN2;
                },
                // @method getProjectedBounds(zoom: Number): Bounds
                // Returns the projection's bounds scaled and transformed for the provided `zoom`.
                getProjectedBounds: function (zoom) {
                    if (this.infinite) {
                        return null;
                    }
                    var b = this.projection.bounds, s = this.scale(zoom), min = this.transformation.transform(b.min, s), max = this.transformation.transform(b.max, s);
                    return new Bounds(min, max);
                },
                // @method distance(latlng1: LatLng, latlng2: LatLng): Number
                // Returns the distance between two geographical coordinates.
                // @property code: String
                // Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)
                //
                // @property wrapLng: Number[]
                // An array of two numbers defining whether the longitude (horizontal) coordinate
                // axis wraps around a given range and how. Defaults to `[-180, 180]` in most
                // geographical CRSs. If `undefined`, the longitude axis does not wrap around.
                //
                // @property wrapLat: Number[]
                // Like `wrapLng`, but for the latitude (vertical) axis.
                // wrapLng: [min, max],
                // wrapLat: [min, max],
                // @property infinite: Boolean
                // If true, the coordinate space will be unbounded (infinite in both axes)
                infinite: false,
                // @method wrapLatLng(latlng: LatLng): LatLng
                // Returns a `LatLng` where lat and lng has been wrapped according to the
                // CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
                wrapLatLng: function (latlng) {
                    var lng = this.wrapLng ? wrapNum(latlng.lng, this.wrapLng, true) : latlng.lng, lat = this.wrapLat ? wrapNum(latlng.lat, this.wrapLat, true) : latlng.lat, alt = latlng.alt;
                    return new LatLng(lat, lng, alt);
                },
                // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
                // Returns a `LatLngBounds` with the same size as the given one, ensuring
                // that its center is within the CRS's bounds.
                // Only accepts actual `L.LatLngBounds` instances, not arrays.
                wrapLatLngBounds: function (bounds) {
                    var center = bounds.getCenter(), newCenter = this.wrapLatLng(center), latShift = center.lat - newCenter.lat, lngShift = center.lng - newCenter.lng;
                    if (latShift === 0 && lngShift === 0) {
                        return bounds;
                    }
                    var sw = bounds.getSouthWest(), ne = bounds.getNorthEast(), newSw = new LatLng(sw.lat - latShift, sw.lng - lngShift), newNe = new LatLng(ne.lat - latShift, ne.lng - lngShift);
                    return new LatLngBounds(newSw, newNe);
                }
            };
            /*
             * @namespace CRS
             * @crs L.CRS.Earth
             *
             * Serves as the base for CRS that are global such that they cover the earth.
             * Can only be used as the base for other CRS and cannot be used directly,
             * since it does not have a `code`, `projection` or `transformation`. `distance()` returns
             * meters.
             */
            var Earth = extend({}, CRS, {
                wrapLng: [-180, 180],
                // Mean Earth Radius, as recommended for use by
                // the International Union of Geodesy and Geophysics,
                // see http://rosettacode.org/wiki/Haversine_formula
                R: 6371000,
                // distance between two geographical points using spherical law of cosines approximation
                distance: function (latlng1, latlng2) {
                    var rad = Math.PI / 180, lat1 = latlng1.lat * rad, lat2 = latlng2.lat * rad, sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2), sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2), a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon, c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
                    return this.R * c;
                }
            });
            /*
             * @namespace Projection
             * @projection L.Projection.SphericalMercator
             *
             * Spherical Mercator projection — the most common projection for online maps,
             * used by almost all free and commercial tile providers. Assumes that Earth is
             * a sphere. Used by the `EPSG:3857` CRS.
             */
            var SphericalMercator = {
                R: 6378137,
                MAX_LATITUDE: 85.0511287798,
                project: function (latlng) {
                    var d = Math.PI / 180, max = this.MAX_LATITUDE, lat = Math.max(Math.min(max, latlng.lat), -max), sin = Math.sin(lat * d);
                    return new Point(this.R * latlng.lng * d, this.R * Math.log((1 + sin) / (1 - sin)) / 2);
                },
                unproject: function (point) {
                    var d = 180 / Math.PI;
                    return new LatLng((2 * Math.atan(Math.exp(point.y / this.R)) - (Math.PI / 2)) * d, point.x * d / this.R);
                },
                bounds: (function () {
                    var d = 6378137 * Math.PI;
                    return new Bounds([-d, -d], [d, d]);
                })()
            };
            /*
             * @class Transformation
             * @aka L.Transformation
             *
             * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`
             * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing
             * the reverse. Used by Leaflet in its projections code.
             *
             * @example
             *
             * ```js
             * var transformation = L.transformation(2, 5, -1, 10),
             * 	p = L.point(1, 2),
             * 	p2 = transformation.transform(p), //  L.point(7, 8)
             * 	p3 = transformation.untransform(p2); //  L.point(1, 2)
             * ```
             */
            // factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)
            // Creates a `Transformation` object with the given coefficients.
            function Transformation(a, b, c, d) {
                if (isArray(a)) {
                    // use array properties
                    this._a = a[0];
                    this._b = a[1];
                    this._c = a[2];
                    this._d = a[3];
                    return;
                }
                this._a = a;
                this._b = b;
                this._c = c;
                this._d = d;
            }
            Transformation.prototype = {
                // @method transform(point: Point, scale?: Number): Point
                // Returns a transformed point, optionally multiplied by the given scale.
                // Only accepts actual `L.Point` instances, not arrays.
                transform: function (point, scale) {
                    return this._transform(point.clone(), scale);
                },
                // destructive transform (faster)
                _transform: function (point, scale) {
                    scale = scale || 1;
                    point.x = scale * (this._a * point.x + this._b);
                    point.y = scale * (this._c * point.y + this._d);
                    return point;
                },
                // @method untransform(point: Point, scale?: Number): Point
                // Returns the reverse transformation of the given point, optionally divided
                // by the given scale. Only accepts actual `L.Point` instances, not arrays.
                untransform: function (point, scale) {
                    scale = scale || 1;
                    return new Point((point.x / scale - this._b) / this._a, (point.y / scale - this._d) / this._c);
                }
            };
            // factory L.transformation(a: Number, b: Number, c: Number, d: Number)
            // @factory L.transformation(a: Number, b: Number, c: Number, d: Number)
            // Instantiates a Transformation object with the given coefficients.
            // @alternative
            // @factory L.transformation(coefficients: Array): Transformation
            // Expects an coefficients array of the form
            // `[a: Number, b: Number, c: Number, d: Number]`.
            function toTransformation(a, b, c, d) {
                return new Transformation(a, b, c, d);
            }
            /*
             * @namespace CRS
             * @crs L.CRS.EPSG3857
             *
             * The most common CRS for online maps, used by almost all free and commercial
             * tile providers. Uses Spherical Mercator projection. Set in by default in
             * Map's `crs` option.
             */
            var EPSG3857 = extend({}, Earth, {
                code: 'EPSG:3857',
                projection: SphericalMercator,
                transformation: (function () {
                    var scale = 0.5 / (Math.PI * SphericalMercator.R);
                    return toTransformation(scale, 0.5, -scale, 0.5);
                }())
            });
            var EPSG900913 = extend({}, EPSG3857, {
                code: 'EPSG:900913'
            });
            // @namespace SVG; @section
            // There are several static functions which can be called without instantiating L.SVG:
            // @function create(name: String): SVGElement
            // Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),
            // corresponding to the class name passed. For example, using 'line' will return
            // an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).
            function svgCreate(name) {
                return document.createElementNS('http://www.w3.org/2000/svg', name);
            }
            // @function pointsToPath(rings: Point[], closed: Boolean): String
            // Generates a SVG path string for multiple rings, with each ring turning
            // into "M..L..L.." instructions
            function pointsToPath(rings, closed) {
                var str = '', i, j, len, len2, points, p;
                for (i = 0, len = rings.length; i < len; i++) {
                    points = rings[i];
                    for (j = 0, len2 = points.length; j < len2; j++) {
                        p = points[j];
                        str += (j ? 'L' : 'M') + p.x + ' ' + p.y;
                    }
                    // closes the ring for polygons; "x" is VML syntax
                    str += closed ? (svg ? 'z' : 'x') : '';
                }
                // SVG complains about empty path strings
                return str || 'M0 0';
            }
            /*
             * @namespace Browser
             * @aka L.Browser
             *
             * A namespace with static properties for browser/feature detection used by Leaflet internally.
             *
             * @example
             *
             * ```js
             * if (L.Browser.ielt9) {
             *   alert('Upgrade your browser, dude!');
             * }
             * ```
             */
            var style$1 = document.documentElement.style;
            // @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).
            var ie = 'ActiveXObject' in window;
            // @property ielt9: Boolean; `true` for Internet Explorer versions less than 9.
            var ielt9 = ie && !document.addEventListener;
            // @property edge: Boolean; `true` for the Edge web browser.
            var edge = 'msLaunchUri' in navigator && !('documentMode' in document);
            // @property webkit: Boolean;
            // `true` for webkit-based browsers like Chrome and Safari (including mobile versions).
            var webkit = userAgentContains('webkit');
            // @property android: Boolean
            // `true` for any browser running on an Android platform.
            var android = userAgentContains('android');
            // @property android23: Boolean; `true` for browsers running on Android 2 or Android 3.
            var android23 = userAgentContains('android 2') || userAgentContains('android 3');
            /* See https://stackoverflow.com/a/17961266 for details on detecting stock Android */
            var webkitVer = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10); // also matches AppleWebKit
            // @property androidStock: Boolean; `true` for the Android stock browser (i.e. not Chrome)
            var androidStock = android && userAgentContains('Google') && webkitVer < 537 && !('AudioNode' in window);
            // @property opera: Boolean; `true` for the Opera browser
            var opera = !!window.opera;
            // @property chrome: Boolean; `true` for the Chrome browser.
            var chrome = userAgentContains('chrome');
            // @property gecko: Boolean; `true` for gecko-based browsers like Firefox.
            var gecko = userAgentContains('gecko') && !webkit && !opera && !ie;
            // @property safari: Boolean; `true` for the Safari browser.
            var safari = !chrome && userAgentContains('safari');
            var phantom = userAgentContains('phantom');
            // @property opera12: Boolean
            // `true` for the Opera browser supporting CSS transforms (version 12 or later).
            var opera12 = 'OTransition' in style$1;
            // @property win: Boolean; `true` when the browser is running in a Windows platform
            var win = navigator.platform.indexOf('Win') === 0;
            // @property ie3d: Boolean; `true` for all Internet Explorer versions supporting CSS transforms.
            var ie3d = ie && ('transition' in style$1);
            // @property webkit3d: Boolean; `true` for webkit-based browsers supporting CSS transforms.
            var webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23;
            // @property gecko3d: Boolean; `true` for gecko-based browsers supporting CSS transforms.
            var gecko3d = 'MozPerspective' in style$1;
            // @property any3d: Boolean
            // `true` for all browsers supporting CSS transforms.
            var any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d) && !opera12 && !phantom;
            // @property mobile: Boolean; `true` for all browsers running in a mobile device.
            var mobile = typeof orientation !== 'undefined' || userAgentContains('mobile');
            // @property mobileWebkit: Boolean; `true` for all webkit-based browsers in a mobile device.
            var mobileWebkit = mobile && webkit;
            // @property mobileWebkit3d: Boolean
            // `true` for all webkit-based browsers in a mobile device supporting CSS transforms.
            var mobileWebkit3d = mobile && webkit3d;
            // @property msPointer: Boolean
            // `true` for browsers implementing the Microsoft touch events model (notably IE10).
            var msPointer = !window.PointerEvent && window.MSPointerEvent;
            // @property pointer: Boolean
            // `true` for all browsers supporting [pointer events](https://msdn.microsoft.com/en-us/library/dn433244%28v=vs.85%29.aspx).
            var pointer = !!(window.PointerEvent || msPointer);
            // @property touch: Boolean
            // `true` for all browsers supporting [touch events](https://developer.mozilla.org/docs/Web/API/Touch_events).
            // This does not necessarily mean that the browser is running in a computer with
            // a touchscreen, it only means that the browser is capable of understanding
            // touch events.
            var touch = !window.L_NO_TOUCH && (pointer || 'ontouchstart' in window ||
                (window.DocumentTouch && document instanceof window.DocumentTouch));
            // @property mobileOpera: Boolean; `true` for the Opera browser in a mobile device.
            var mobileOpera = mobile && opera;
            // @property mobileGecko: Boolean
            // `true` for gecko-based browsers running in a mobile device.
            var mobileGecko = mobile && gecko;
            // @property retina: Boolean
            // `true` for browsers on a high-resolution "retina" screen or on any screen when browser's display zoom is more than 100%.
            var retina = (window.devicePixelRatio || (window.screen.deviceXDPI / window.screen.logicalXDPI)) > 1;
            // @property canvas: Boolean
            // `true` when the browser supports [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
            var canvas = (function () {
                return !!document.createElement('canvas').getContext;
            }());
            // @property svg: Boolean
            // `true` when the browser supports [SVG](https://developer.mozilla.org/docs/Web/SVG).
            var svg = !!(document.createElementNS && svgCreate('svg').createSVGRect);
            // @property vml: Boolean
            // `true` if the browser supports [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language).
            var vml = !svg && (function () {
                try {
                    var div = document.createElement('div');
                    div.innerHTML = '<v:shape adj="1"/>';
                    var shape = div.firstChild;
                    shape.style.behavior = 'url(#default#VML)';
                    return shape && (typeof shape.adj === 'object');
                }
                catch (e) {
                    return false;
                }
            }());
            function userAgentContains(str) {
                return navigator.userAgent.toLowerCase().indexOf(str) >= 0;
            }
            var Browser = (Object.freeze || Object)({
                ie: ie,
                ielt9: ielt9,
                edge: edge,
                webkit: webkit,
                android: android,
                android23: android23,
                androidStock: androidStock,
                opera: opera,
                chrome: chrome,
                gecko: gecko,
                safari: safari,
                phantom: phantom,
                opera12: opera12,
                win: win,
                ie3d: ie3d,
                webkit3d: webkit3d,
                gecko3d: gecko3d,
                any3d: any3d,
                mobile: mobile,
                mobileWebkit: mobileWebkit,
                mobileWebkit3d: mobileWebkit3d,
                msPointer: msPointer,
                pointer: pointer,
                touch: touch,
                mobileOpera: mobileOpera,
                mobileGecko: mobileGecko,
                retina: retina,
                canvas: canvas,
                svg: svg,
                vml: vml
            });
            /*
             * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.
             */
            var POINTER_DOWN = msPointer ? 'MSPointerDown' : 'pointerdown';
            var POINTER_MOVE = msPointer ? 'MSPointerMove' : 'pointermove';
            var POINTER_UP = msPointer ? 'MSPointerUp' : 'pointerup';
            var POINTER_CANCEL = msPointer ? 'MSPointerCancel' : 'pointercancel';
            var TAG_WHITE_LIST = ['INPUT', 'SELECT', 'OPTION'];
            var _pointers = {};
            var _pointerDocListener = false;
            // DomEvent.DoubleTap needs to know about this
            var _pointersCount = 0;
            // Provides a touch events wrapper for (ms)pointer events.
            // ref http://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
            function addPointerListener(obj, type, handler, id) {
                if (type === 'touchstart') {
                    _addPointerStart(obj, handler, id);
                }
                else if (type === 'touchmove') {
                    _addPointerMove(obj, handler, id);
                }
                else if (type === 'touchend') {
                    _addPointerEnd(obj, handler, id);
                }
                return this;
            }
            function removePointerListener(obj, type, id) {
                var handler = obj['_leaflet_' + type + id];
                if (type === 'touchstart') {
                    obj.removeEventListener(POINTER_DOWN, handler, false);
                }
                else if (type === 'touchmove') {
                    obj.removeEventListener(POINTER_MOVE, handler, false);
                }
                else if (type === 'touchend') {
                    obj.removeEventListener(POINTER_UP, handler, false);
                    obj.removeEventListener(POINTER_CANCEL, handler, false);
                }
                return this;
            }
            function _addPointerStart(obj, handler, id) {
                var onDown = bind(function (e) {
                    if (e.pointerType !== 'mouse' && e.MSPOINTER_TYPE_MOUSE && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
                        // In IE11, some touch events needs to fire for form controls, or
                        // the controls will stop working. We keep a whitelist of tag names that
                        // need these events. For other target tags, we prevent default on the event.
                        if (TAG_WHITE_LIST.indexOf(e.target.tagName) < 0) {
                            preventDefault(e);
                        }
                        else {
                            return;
                        }
                    }
                    _handlePointer(e, handler);
                });
                obj['_leaflet_touchstart' + id] = onDown;
                obj.addEventListener(POINTER_DOWN, onDown, false);
                // need to keep track of what pointers and how many are active to provide e.touches emulation
                if (!_pointerDocListener) {
                    // we listen documentElement as any drags that end by moving the touch off the screen get fired there
                    document.documentElement.addEventListener(POINTER_DOWN, _globalPointerDown, true);
                    document.documentElement.addEventListener(POINTER_MOVE, _globalPointerMove, true);
                    document.documentElement.addEventListener(POINTER_UP, _globalPointerUp, true);
                    document.documentElement.addEventListener(POINTER_CANCEL, _globalPointerUp, true);
                    _pointerDocListener = true;
                }
            }
            function _globalPointerDown(e) {
                _pointers[e.pointerId] = e;
                _pointersCount++;
            }
            function _globalPointerMove(e) {
                if (_pointers[e.pointerId]) {
                    _pointers[e.pointerId] = e;
                }
            }
            function _globalPointerUp(e) {
                delete _pointers[e.pointerId];
                _pointersCount--;
            }
            function _handlePointer(e, handler) {
                e.touches = [];
                for (var i in _pointers) {
                    e.touches.push(_pointers[i]);
                }
                e.changedTouches = [e];
                handler(e);
            }
            function _addPointerMove(obj, handler, id) {
                var onMove = function (e) {
                    // don't fire touch moves when mouse isn't down
                    if ((e.pointerType === e.MSPOINTER_TYPE_MOUSE || e.pointerType === 'mouse') && e.buttons === 0) {
                        return;
                    }
                    _handlePointer(e, handler);
                };
                obj['_leaflet_touchmove' + id] = onMove;
                obj.addEventListener(POINTER_MOVE, onMove, false);
            }
            function _addPointerEnd(obj, handler, id) {
                var onUp = function (e) {
                    _handlePointer(e, handler);
                };
                obj['_leaflet_touchend' + id] = onUp;
                obj.addEventListener(POINTER_UP, onUp, false);
                obj.addEventListener(POINTER_CANCEL, onUp, false);
            }
            /*
             * Extends the event handling code with double tap support for mobile browsers.
             */
            var _touchstart = msPointer ? 'MSPointerDown' : pointer ? 'pointerdown' : 'touchstart';
            var _touchend = msPointer ? 'MSPointerUp' : pointer ? 'pointerup' : 'touchend';
            var _pre = '_leaflet_';
            // inspired by Zepto touch code by Thomas Fuchs
            function addDoubleTapListener(obj, handler, id) {
                var last, touch$$1, doubleTap = false, delay = 250;
                function onTouchStart(e) {
                    var count;
                    if (pointer) {
                        if ((!edge) || e.pointerType === 'mouse') {
                            return;
                        }
                        count = _pointersCount;
                    }
                    else {
                        count = e.touches.length;
                    }
                    if (count > 1) {
                        return;
                    }
                    var now = Date.now(), delta = now - (last || now);
                    touch$$1 = e.touches ? e.touches[0] : e;
                    doubleTap = (delta > 0 && delta <= delay);
                    last = now;
                }
                function onTouchEnd(e) {
                    if (doubleTap && !touch$$1.cancelBubble) {
                        if (pointer) {
                            if ((!edge) || e.pointerType === 'mouse') {
                                return;
                            }
                            // work around .type being readonly with MSPointer* events
                            var newTouch = {}, prop, i;
                            for (i in touch$$1) {
                                prop = touch$$1[i];
                                newTouch[i] = prop && prop.bind ? prop.bind(touch$$1) : prop;
                            }
                            touch$$1 = newTouch;
                        }
                        touch$$1.type = 'dblclick';
                        handler(touch$$1);
                        last = null;
                    }
                }
                obj[_pre + _touchstart + id] = onTouchStart;
                obj[_pre + _touchend + id] = onTouchEnd;
                obj[_pre + 'dblclick' + id] = handler;
                obj.addEventListener(_touchstart, onTouchStart, false);
                obj.addEventListener(_touchend, onTouchEnd, false);
                // On some platforms (notably, chrome<55 on win10 + touchscreen + mouse),
                // the browser doesn't fire touchend/pointerup events but does fire
                // native dblclicks. See #4127.
                // Edge 14 also fires native dblclicks, but only for pointerType mouse, see #5180.
                obj.addEventListener('dblclick', handler, false);
                return this;
            }
            function removeDoubleTapListener(obj, id) {
                var touchstart = obj[_pre + _touchstart + id], touchend = obj[_pre + _touchend + id], dblclick = obj[_pre + 'dblclick' + id];
                obj.removeEventListener(_touchstart, touchstart, false);
                obj.removeEventListener(_touchend, touchend, false);
                if (!edge) {
                    obj.removeEventListener('dblclick', dblclick, false);
                }
                return this;
            }
            /*
             * @namespace DomUtil
             *
             * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)
             * tree, used by Leaflet internally.
             *
             * Most functions expecting or returning a `HTMLElement` also work for
             * SVG elements. The only difference is that classes refer to CSS classes
             * in HTML and SVG classes in SVG.
             */
            // @property TRANSFORM: String
            // Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).
            var TRANSFORM = testProp(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']);
            // webkitTransition comes first because some browser versions that drop vendor prefix don't do
            // the same for the transitionend event, in particular the Android 4.1 stock browser
            // @property TRANSITION: String
            // Vendor-prefixed transition style name.
            var TRANSITION = testProp(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);
            // @property TRANSITION_END: String
            // Vendor-prefixed transitionend event name.
            var TRANSITION_END = TRANSITION === 'webkitTransition' || TRANSITION === 'OTransition' ? TRANSITION + 'End' : 'transitionend';
            // @function get(id: String|HTMLElement): HTMLElement
            // Returns an element given its DOM id, or returns the element itself
            // if it was passed directly.
            function get(id) {
                return typeof id === 'string' ? document.getElementById(id) : id;
            }
            // @function getStyle(el: HTMLElement, styleAttrib: String): String
            // Returns the value for a certain style attribute on an element,
            // including computed values or values set through CSS.
            function getStyle(el, style) {
                var value = el.style[style] || (el.currentStyle && el.currentStyle[style]);
                if ((!value || value === 'auto') && document.defaultView) {
                    var css = document.defaultView.getComputedStyle(el, null);
                    value = css ? css[style] : null;
                }
                return value === 'auto' ? null : value;
            }
            // @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement
            // Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.
            function create$1(tagName, className, container) {
                var el = document.createElement(tagName);
                el.className = className || '';
                if (container) {
                    container.appendChild(el);
                }
                return el;
            }
            // @function remove(el: HTMLElement)
            // Removes `el` from its parent element
            function remove(el) {
                var parent = el.parentNode;
                if (parent) {
                    parent.removeChild(el);
                }
            }
            // @function empty(el: HTMLElement)
            // Removes all of `el`'s children elements from `el`
            function empty(el) {
                while (el.firstChild) {
                    el.removeChild(el.firstChild);
                }
            }
            // @function toFront(el: HTMLElement)
            // Makes `el` the last child of its parent, so it renders in front of the other children.
            function toFront(el) {
                var parent = el.parentNode;
                if (parent.lastChild !== el) {
                    parent.appendChild(el);
                }
            }
            // @function toBack(el: HTMLElement)
            // Makes `el` the first child of its parent, so it renders behind the other children.
            function toBack(el) {
                var parent = el.parentNode;
                if (parent.firstChild !== el) {
                    parent.insertBefore(el, parent.firstChild);
                }
            }
            // @function hasClass(el: HTMLElement, name: String): Boolean
            // Returns `true` if the element's class attribute contains `name`.
            function hasClass(el, name) {
                if (el.classList !== undefined) {
                    return el.classList.contains(name);
                }
                var className = getClass(el);
                return className.length > 0 && new RegExp('(^|\\s)' + name + '(\\s|$)').test(className);
            }
            // @function addClass(el: HTMLElement, name: String)
            // Adds `name` to the element's class attribute.
            function addClass(el, name) {
                if (el.classList !== undefined) {
                    var classes = splitWords(name);
                    for (var i = 0, len = classes.length; i < len; i++) {
                        el.classList.add(classes[i]);
                    }
                }
                else if (!hasClass(el, name)) {
                    var className = getClass(el);
                    setClass(el, (className ? className + ' ' : '') + name);
                }
            }
            // @function removeClass(el: HTMLElement, name: String)
            // Removes `name` from the element's class attribute.
            function removeClass(el, name) {
                if (el.classList !== undefined) {
                    el.classList.remove(name);
                }
                else {
                    setClass(el, trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' ')));
                }
            }
            // @function setClass(el: HTMLElement, name: String)
            // Sets the element's class.
            function setClass(el, name) {
                if (el.className.baseVal === undefined) {
                    el.className = name;
                }
                else {
                    // in case of SVG element
                    el.className.baseVal = name;
                }
            }
            // @function getClass(el: HTMLElement): String
            // Returns the element's class.
            function getClass(el) {
                return el.className.baseVal === undefined ? el.className : el.className.baseVal;
            }
            // @function setOpacity(el: HTMLElement, opacity: Number)
            // Set the opacity of an element (including old IE support).
            // `opacity` must be a number from `0` to `1`.
            function setOpacity(el, value) {
                if ('opacity' in el.style) {
                    el.style.opacity = value;
                }
                else if ('filter' in el.style) {
                    _setOpacityIE(el, value);
                }
            }
            function _setOpacityIE(el, value) {
                var filter = false, filterName = 'DXImageTransform.Microsoft.Alpha';
                // filters collection throws an error if we try to retrieve a filter that doesn't exist
                try {
                    filter = el.filters.item(filterName);
                }
                catch (e) {
                    // don't set opacity to 1 if we haven't already set an opacity,
                    // it isn't needed and breaks transparent pngs.
                    if (value === 1) {
                        return;
                    }
                }
                value = Math.round(value * 100);
                if (filter) {
                    filter.Enabled = (value !== 100);
                    filter.Opacity = value;
                }
                else {
                    el.style.filter += ' progid:' + filterName + '(opacity=' + value + ')';
                }
            }
            // @function testProp(props: String[]): String|false
            // Goes through the array of style names and returns the first name
            // that is a valid style name for an element. If no such name is found,
            // it returns false. Useful for vendor-prefixed styles like `transform`.
            function testProp(props) {
                var style = document.documentElement.style;
                for (var i = 0; i < props.length; i++) {
                    if (props[i] in style) {
                        return props[i];
                    }
                }
                return false;
            }
            // @function setTransform(el: HTMLElement, offset: Point, scale?: Number)
            // Resets the 3D CSS transform of `el` so it is translated by `offset` pixels
            // and optionally scaled by `scale`. Does not have an effect if the
            // browser doesn't support 3D CSS transforms.
            function setTransform(el, offset, scale) {
                var pos = offset || new Point(0, 0);
                el.style[TRANSFORM] =
                    (ie3d ?
                        'translate(' + pos.x + 'px,' + pos.y + 'px)' :
                        'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)') +
                        (scale ? ' scale(' + scale + ')' : '');
            }
            // @function setPosition(el: HTMLElement, position: Point)
            // Sets the position of `el` to coordinates specified by `position`,
            // using CSS translate or top/left positioning depending on the browser
            // (used by Leaflet internally to position its layers).
            function setPosition(el, point) {
                /*eslint-disable */
                el._leaflet_pos = point;
                /* eslint-enable */
                if (any3d) {
                    setTransform(el, point);
                }
                else {
                    el.style.left = point.x + 'px';
                    el.style.top = point.y + 'px';
                }
            }
            // @function getPosition(el: HTMLElement): Point
            // Returns the coordinates of an element previously positioned with setPosition.
            function getPosition(el) {
                // this method is only used for elements previously positioned using setPosition,
                // so it's safe to cache the position for performance
                return el._leaflet_pos || new Point(0, 0);
            }
            // @function disableTextSelection()
            // Prevents the user from generating `selectstart` DOM events, usually generated
            // when the user drags the mouse through a page with text. Used internally
            // by Leaflet to override the behaviour of any click-and-drag interaction on
            // the map. Affects drag interactions on the whole document.
            // @function enableTextSelection()
            // Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).
            var disableTextSelection;
            var enableTextSelection;
            var _userSelect;
            if ('onselectstart' in document) {
                disableTextSelection = function () {
                    on(window, 'selectstart', preventDefault);
                };
                enableTextSelection = function () {
                    off(window, 'selectstart', preventDefault);
                };
            }
            else {
                var userSelectProperty = testProp(['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']);
                disableTextSelection = function () {
                    if (userSelectProperty) {
                        var style = document.documentElement.style;
                        _userSelect = style[userSelectProperty];
                        style[userSelectProperty] = 'none';
                    }
                };
                enableTextSelection = function () {
                    if (userSelectProperty) {
                        document.documentElement.style[userSelectProperty] = _userSelect;
                        _userSelect = undefined;
                    }
                };
            }
            // @function disableImageDrag()
            // As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but
            // for `dragstart` DOM events, usually generated when the user drags an image.
            function disableImageDrag() {
                on(window, 'dragstart', preventDefault);
            }
            // @function enableImageDrag()
            // Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).
            function enableImageDrag() {
                off(window, 'dragstart', preventDefault);
            }
            var _outlineElement;
            var _outlineStyle;
            // @function preventOutline(el: HTMLElement)
            // Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)
            // of the element `el` invisible. Used internally by Leaflet to prevent
            // focusable elements from displaying an outline when the user performs a
            // drag interaction on them.
            function preventOutline(element) {
                while (element.tabIndex === -1) {
                    element = element.parentNode;
                }
                if (!element.style) {
                    return;
                }
                restoreOutline();
                _outlineElement = element;
                _outlineStyle = element.style.outline;
                element.style.outline = 'none';
                on(window, 'keydown', restoreOutline);
            }
            // @function restoreOutline()
            // Cancels the effects of a previous [`L.DomUtil.preventOutline`]().
            function restoreOutline() {
                if (!_outlineElement) {
                    return;
                }
                _outlineElement.style.outline = _outlineStyle;
                _outlineElement = undefined;
                _outlineStyle = undefined;
                off(window, 'keydown', restoreOutline);
            }
            // @function getSizedParentNode(el: HTMLElement): HTMLElement
            // Finds the closest parent node which size (width and height) is not null.
            function getSizedParentNode(element) {
                do {
                    element = element.parentNode;
                } while ((!element.offsetWidth || !element.offsetHeight) && element !== document.body);
                return element;
            }
            // @function getScale(el: HTMLElement): Object
            // Computes the CSS scale currently applied on the element.
            // Returns an object with `x` and `y` members as horizontal and vertical scales respectively,
            // and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
            function getScale(element) {
                var rect = element.getBoundingClientRect(); // Read-only in old browsers.
                return {
                    x: rect.width / element.offsetWidth || 1,
                    y: rect.height / element.offsetHeight || 1,
                    boundingClientRect: rect
                };
            }
            var DomUtil = (Object.freeze || Object)({
                TRANSFORM: TRANSFORM,
                TRANSITION: TRANSITION,
                TRANSITION_END: TRANSITION_END,
                get: get,
                getStyle: getStyle,
                create: create$1,
                remove: remove,
                empty: empty,
                toFront: toFront,
                toBack: toBack,
                hasClass: hasClass,
                addClass: addClass,
                removeClass: removeClass,
                setClass: setClass,
                getClass: getClass,
                setOpacity: setOpacity,
                testProp: testProp,
                setTransform: setTransform,
                setPosition: setPosition,
                getPosition: getPosition,
                disableTextSelection: disableTextSelection,
                enableTextSelection: enableTextSelection,
                disableImageDrag: disableImageDrag,
                enableImageDrag: enableImageDrag,
                preventOutline: preventOutline,
                restoreOutline: restoreOutline,
                getSizedParentNode: getSizedParentNode,
                getScale: getScale
            });
            /*
             * @namespace DomEvent
             * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.
             */
            // Inspired by John Resig, Dean Edwards and YUI addEvent implementations.
            // @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this
            // Adds a listener function (`fn`) to a particular DOM event type of the
            // element `el`. You can optionally specify the context of the listener
            // (object the `this` keyword will point to). You can also pass several
            // space-separated types (e.g. `'click dblclick'`).
            // @alternative
            // @function on(el: HTMLElement, eventMap: Object, context?: Object): this
            // Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
            function on(obj, types, fn, context) {
                if (typeof types === 'object') {
                    for (var type in types) {
                        addOne(obj, type, types[type], fn);
                    }
                }
                else {
                    types = splitWords(types);
                    for (var i = 0, len = types.length; i < len; i++) {
                        addOne(obj, types[i], fn, context);
                    }
                }
                return this;
            }
            var eventsKey = '_leaflet_events';
            // @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
            // Removes a previously added listener function.
            // Note that if you passed a custom context to on, you must pass the same
            // context to `off` in order to remove the listener.
            // @alternative
            // @function off(el: HTMLElement, eventMap: Object, context?: Object): this
            // Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
            function off(obj, types, fn, context) {
                if (typeof types === 'object') {
                    for (var type in types) {
                        removeOne(obj, type, types[type], fn);
                    }
                }
                else if (types) {
                    types = splitWords(types);
                    for (var i = 0, len = types.length; i < len; i++) {
                        removeOne(obj, types[i], fn, context);
                    }
                }
                else {
                    for (var j in obj[eventsKey]) {
                        removeOne(obj, j, obj[eventsKey][j]);
                    }
                    delete obj[eventsKey];
                }
                return this;
            }
            function addOne(obj, type, fn, context) {
                var id = type + stamp(fn) + (context ? '_' + stamp(context) : '');
                if (obj[eventsKey] && obj[eventsKey][id]) {
                    return this;
                }
                var handler = function (e) {
                    return fn.call(context || obj, e || window.event);
                };
                var originalHandler = handler;
                if (pointer && type.indexOf('touch') === 0) {
                    // Needs DomEvent.Pointer.js
                    addPointerListener(obj, type, handler, id);
                }
                else if (touch && (type === 'dblclick') && addDoubleTapListener &&
                    !(pointer && chrome)) {
                    // Chrome >55 does not need the synthetic dblclicks from addDoubleTapListener
                    // See #5180
                    addDoubleTapListener(obj, handler, id);
                }
                else if ('addEventListener' in obj) {
                    if (type === 'mousewheel') {
                        obj.addEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);
                    }
                    else if ((type === 'mouseenter') || (type === 'mouseleave')) {
                        handler = function (e) {
                            e = e || window.event;
                            if (isExternalTarget(obj, e)) {
                                originalHandler(e);
                            }
                        };
                        obj.addEventListener(type === 'mouseenter' ? 'mouseover' : 'mouseout', handler, false);
                    }
                    else {
                        if (type === 'click' && android) {
                            handler = function (e) {
                                filterClick(e, originalHandler);
                            };
                        }
                        obj.addEventListener(type, handler, false);
                    }
                }
                else if ('attachEvent' in obj) {
                    obj.attachEvent('on' + type, handler);
                }
                obj[eventsKey] = obj[eventsKey] || {};
                obj[eventsKey][id] = handler;
            }
            function removeOne(obj, type, fn, context) {
                var id = type + stamp(fn) + (context ? '_' + stamp(context) : ''), handler = obj[eventsKey] && obj[eventsKey][id];
                if (!handler) {
                    return this;
                }
                if (pointer && type.indexOf('touch') === 0) {
                    removePointerListener(obj, type, id);
                }
                else if (touch && (type === 'dblclick') && removeDoubleTapListener &&
                    !(pointer && chrome)) {
                    removeDoubleTapListener(obj, id);
                }
                else if ('removeEventListener' in obj) {
                    if (type === 'mousewheel') {
                        obj.removeEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);
                    }
                    else {
                        obj.removeEventListener(type === 'mouseenter' ? 'mouseover' :
                            type === 'mouseleave' ? 'mouseout' : type, handler, false);
                    }
                }
                else if ('detachEvent' in obj) {
                    obj.detachEvent('on' + type, handler);
                }
                obj[eventsKey][id] = null;
            }
            // @function stopPropagation(ev: DOMEvent): this
            // Stop the given event from propagation to parent elements. Used inside the listener functions:
            // ```js
            // L.DomEvent.on(div, 'click', function (ev) {
            // 	L.DomEvent.stopPropagation(ev);
            // });
            // ```
            function stopPropagation(e) {
                if (e.stopPropagation) {
                    e.stopPropagation();
                }
                else if (e.originalEvent) { // In case of Leaflet event.
                    e.originalEvent._stopped = true;
                }
                else {
                    e.cancelBubble = true;
                }
                skipped(e);
                return this;
            }
            // @function disableScrollPropagation(el: HTMLElement): this
            // Adds `stopPropagation` to the element's `'mousewheel'` events (plus browser variants).
            function disableScrollPropagation(el) {
                addOne(el, 'mousewheel', stopPropagation);
                return this;
            }
            // @function disableClickPropagation(el: HTMLElement): this
            // Adds `stopPropagation` to the element's `'click'`, `'doubleclick'`,
            // `'mousedown'` and `'touchstart'` events (plus browser variants).
            function disableClickPropagation(el) {
                on(el, 'mousedown touchstart dblclick', stopPropagation);
                addOne(el, 'click', fakeStop);
                return this;
            }
            // @function preventDefault(ev: DOMEvent): this
            // Prevents the default action of the DOM Event `ev` from happening (such as
            // following a link in the href of the a element, or doing a POST request
            // with page reload when a `<form>` is submitted).
            // Use it inside listener functions.
            function preventDefault(e) {
                if (e.preventDefault) {
                    e.preventDefault();
                }
                else {
                    e.returnValue = false;
                }
                return this;
            }
            // @function stop(ev: DOMEvent): this
            // Does `stopPropagation` and `preventDefault` at the same time.
            function stop(e) {
                preventDefault(e);
                stopPropagation(e);
                return this;
            }
            // @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point
            // Gets normalized mouse position from a DOM event relative to the
            // `container` (border excluded) or to the whole page if not specified.
            function getMousePosition(e, container) {
                if (!container) {
                    return new Point(e.clientX, e.clientY);
                }
                var scale = getScale(container), offset = scale.boundingClientRect; // left and top  values are in page scale (like the event clientX/Y)
                return new Point(
                // offset.left/top values are in page scale (like clientX/Y),
                // whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
                (e.clientX - offset.left) / scale.x - container.clientLeft, (e.clientY - offset.top) / scale.y - container.clientTop);
            }
            // Chrome on Win scrolls double the pixels as in other platforms (see #4538),
            // and Firefox scrolls device pixels, not CSS pixels
            var wheelPxFactor = (win && chrome) ? 2 * window.devicePixelRatio :
                gecko ? window.devicePixelRatio : 1;
            // @function getWheelDelta(ev: DOMEvent): Number
            // Gets normalized wheel delta from a mousewheel DOM event, in vertical
            // pixels scrolled (negative if scrolling down).
            // Events from pointing devices without precise scrolling are mapped to
            // a best guess of 60 pixels.
            function getWheelDelta(e) {
                return (edge) ? e.wheelDeltaY / 2 : // Don't trust window-geometry-based delta
                    (e.deltaY && e.deltaMode === 0) ? -e.deltaY / wheelPxFactor : // Pixels
                        (e.deltaY && e.deltaMode === 1) ? -e.deltaY * 20 : // Lines
                            (e.deltaY && e.deltaMode === 2) ? -e.deltaY * 60 : // Pages
                                (e.deltaX || e.deltaZ) ? 0 : // Skip horizontal/depth wheel events
                                    e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : // Legacy IE pixels
                                        (e.detail && Math.abs(e.detail) < 32765) ? -e.detail * 20 : // Legacy Moz lines
                                            e.detail ? e.detail / -32765 * 60 : // Legacy Moz pages
                                                0;
            }
            var skipEvents = {};
            function fakeStop(e) {
                // fakes stopPropagation by setting a special event flag, checked/reset with skipped(e)
                skipEvents[e.type] = true;
            }
            function skipped(e) {
                var events = skipEvents[e.type];
                // reset when checking, as it's only used in map container and propagates outside of the map
                skipEvents[e.type] = false;
                return events;
            }
            // check if element really left/entered the event target (for mouseenter/mouseleave)
            function isExternalTarget(el, e) {
                var related = e.relatedTarget;
                if (!related) {
                    return true;
                }
                try {
                    while (related && (related !== el)) {
                        related = related.parentNode;
                    }
                }
                catch (err) {
                    return false;
                }
                return (related !== el);
            }
            var lastClick;
            // this is a horrible workaround for a bug in Android where a single touch triggers two click events
            function filterClick(e, handler) {
                var timeStamp = (e.timeStamp || (e.originalEvent && e.originalEvent.timeStamp)), elapsed = lastClick && (timeStamp - lastClick);
                // are they closer together than 500ms yet more than 100ms?
                // Android typically triggers them ~300ms apart while multiple listeners
                // on the same event should be triggered far faster;
                // or check if click is simulated on the element, and if it is, reject any non-simulated events
                if ((elapsed && elapsed > 100 && elapsed < 500) || (e.target._simulatedClick && !e._simulated)) {
                    stop(e);
                    return;
                }
                lastClick = timeStamp;
                handler(e);
            }
            var DomEvent = (Object.freeze || Object)({
                on: on,
                off: off,
                stopPropagation: stopPropagation,
                disableScrollPropagation: disableScrollPropagation,
                disableClickPropagation: disableClickPropagation,
                preventDefault: preventDefault,
                stop: stop,
                getMousePosition: getMousePosition,
                getWheelDelta: getWheelDelta,
                fakeStop: fakeStop,
                skipped: skipped,
                isExternalTarget: isExternalTarget,
                addListener: on,
                removeListener: off
            });
            /*
             * @class PosAnimation
             * @aka L.PosAnimation
             * @inherits Evented
             * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.
             *
             * @example
             * ```js
             * var fx = new L.PosAnimation();
             * fx.run(el, [300, 500], 0.5);
             * ```
             *
             * @constructor L.PosAnimation()
             * Creates a `PosAnimation` object.
             *
             */
            var PosAnimation = Evented.extend({
                // @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
                // Run an animation of a given element to a new position, optionally setting
                // duration in seconds (`0.25` by default) and easing linearity factor (3rd
                // argument of the [cubic bezier curve](http://cubic-bezier.com/#0,0,.5,1),
                // `0.5` by default).
                run: function (el, newPos, duration, easeLinearity) {
                    this.stop();
                    this._el = el;
                    this._inProgress = true;
                    this._duration = duration || 0.25;
                    this._easeOutPower = 1 / Math.max(easeLinearity || 0.5, 0.2);
                    this._startPos = getPosition(el);
                    this._offset = newPos.subtract(this._startPos);
                    this._startTime = +new Date();
                    // @event start: Event
                    // Fired when the animation starts
                    this.fire('start');
                    this._animate();
                },
                // @method stop()
                // Stops the animation (if currently running).
                stop: function () {
                    if (!this._inProgress) {
                        return;
                    }
                    this._step(true);
                    this._complete();
                },
                _animate: function () {
                    // animation loop
                    this._animId = requestAnimFrame(this._animate, this);
                    this._step();
                },
                _step: function (round) {
                    var elapsed = (+new Date()) - this._startTime, duration = this._duration * 1000;
                    if (elapsed < duration) {
                        this._runFrame(this._easeOut(elapsed / duration), round);
                    }
                    else {
                        this._runFrame(1);
                        this._complete();
                    }
                },
                _runFrame: function (progress, round) {
                    var pos = this._startPos.add(this._offset.multiplyBy(progress));
                    if (round) {
                        pos._round();
                    }
                    setPosition(this._el, pos);
                    // @event step: Event
                    // Fired continuously during the animation.
                    this.fire('step');
                },
                _complete: function () {
                    cancelAnimFrame(this._animId);
                    this._inProgress = false;
                    // @event end: Event
                    // Fired when the animation ends.
                    this.fire('end');
                },
                _easeOut: function (t) {
                    return 1 - Math.pow(1 - t, this._easeOutPower);
                }
            });
            /*
             * @class Map
             * @aka L.Map
             * @inherits Evented
             *
             * The central class of the API — it is used to create a map on a page and manipulate it.
             *
             * @example
             *
             * ```js
             * // initialize the map on the "map" div with a given center and zoom
             * var map = L.map('map', {
             * 	center: [51.505, -0.09],
             * 	zoom: 13
             * });
             * ```
             *
             */
            var Map = Evented.extend({
                options: {
                    // @section Map State Options
                    // @option crs: CRS = L.CRS.EPSG3857
                    // The [Coordinate Reference System](#crs) to use. Don't change this if you're not
                    // sure what it means.
                    crs: EPSG3857,
                    // @option center: LatLng = undefined
                    // Initial geographic center of the map
                    center: undefined,
                    // @option zoom: Number = undefined
                    // Initial map zoom level
                    zoom: undefined,
                    // @option minZoom: Number = *
                    // Minimum zoom level of the map.
                    // If not specified and at least one `GridLayer` or `TileLayer` is in the map,
                    // the lowest of their `minZoom` options will be used instead.
                    minZoom: undefined,
                    // @option maxZoom: Number = *
                    // Maximum zoom level of the map.
                    // If not specified and at least one `GridLayer` or `TileLayer` is in the map,
                    // the highest of their `maxZoom` options will be used instead.
                    maxZoom: undefined,
                    // @option layers: Layer[] = []
                    // Array of layers that will be added to the map initially
                    layers: [],
                    // @option maxBounds: LatLngBounds = null
                    // When this option is set, the map restricts the view to the given
                    // geographical bounds, bouncing the user back if the user tries to pan
                    // outside the view. To set the restriction dynamically, use
                    // [`setMaxBounds`](#map-setmaxbounds) method.
                    maxBounds: undefined,
                    // @option renderer: Renderer = *
                    // The default method for drawing vector layers on the map. `L.SVG`
                    // or `L.Canvas` by default depending on browser support.
                    renderer: undefined,
                    // @section Animation Options
                    // @option zoomAnimation: Boolean = true
                    // Whether the map zoom animation is enabled. By default it's enabled
                    // in all browsers that support CSS3 Transitions except Android.
                    zoomAnimation: true,
                    // @option zoomAnimationThreshold: Number = 4
                    // Won't animate zoom if the zoom difference exceeds this value.
                    zoomAnimationThreshold: 4,
                    // @option fadeAnimation: Boolean = true
                    // Whether the tile fade animation is enabled. By default it's enabled
                    // in all browsers that support CSS3 Transitions except Android.
                    fadeAnimation: true,
                    // @option markerZoomAnimation: Boolean = true
                    // Whether markers animate their zoom with the zoom animation, if disabled
                    // they will disappear for the length of the animation. By default it's
                    // enabled in all browsers that support CSS3 Transitions except Android.
                    markerZoomAnimation: true,
                    // @option transform3DLimit: Number = 2^23
                    // Defines the maximum size of a CSS translation transform. The default
                    // value should not be changed unless a web browser positions layers in
                    // the wrong place after doing a large `panBy`.
                    transform3DLimit: 8388608,
                    // @section Interaction Options
                    // @option zoomSnap: Number = 1
                    // Forces the map's zoom level to always be a multiple of this, particularly
                    // right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.
                    // By default, the zoom level snaps to the nearest integer; lower values
                    // (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`
                    // means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.
                    zoomSnap: 1,
                    // @option zoomDelta: Number = 1
                    // Controls how much the map's zoom level will change after a
                    // [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`
                    // or `-` on the keyboard, or using the [zoom controls](#control-zoom).
                    // Values smaller than `1` (e.g. `0.5`) allow for greater granularity.
                    zoomDelta: 1,
                    // @option trackResize: Boolean = true
                    // Whether the map automatically handles browser window resize to update itself.
                    trackResize: true
                },
                initialize: function (id, options) {
                    options = setOptions(this, options);
                    this._initContainer(id);
                    this._initLayout();
                    // hack for https://github.com/Leaflet/Leaflet/issues/1980
                    this._onResize = bind(this._onResize, this);
                    this._initEvents();
                    if (options.maxBounds) {
                        this.setMaxBounds(options.maxBounds);
                    }
                    if (options.zoom !== undefined) {
                        this._zoom = this._limitZoom(options.zoom);
                    }
                    if (options.center && options.zoom !== undefined) {
                        this.setView(toLatLng(options.center), options.zoom, { reset: true });
                    }
                    this._handlers = [];
                    this._layers = {};
                    this._zoomBoundLayers = {};
                    this._sizeChanged = true;
                    this.callInitHooks();
                    // don't animate on browsers without hardware-accelerated transitions or old Android/Opera
                    this._zoomAnimated = TRANSITION && any3d && !mobileOpera &&
                        this.options.zoomAnimation;
                    // zoom transitions run with the same duration for all layers, so if one of transitionend events
                    // happens after starting zoom animation (propagating to the map pane), we know that it ended globally
                    if (this._zoomAnimated) {
                        this._createAnimProxy();
                        on(this._proxy, TRANSITION_END, this._catchTransitionEnd, this);
                    }
                    this._addLayers(this.options.layers);
                },
                // @section Methods for modifying map state
                // @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
                // Sets the view of the map (geographical center and zoom) with the given
                // animation options.
                setView: function (center, zoom, options) {
                    zoom = zoom === undefined ? this._zoom : this._limitZoom(zoom);
                    center = this._limitCenter(toLatLng(center), zoom, this.options.maxBounds);
                    options = options || {};
                    this._stop();
                    if (this._loaded && !options.reset && options !== true) {
                        if (options.animate !== undefined) {
                            options.zoom = extend({ animate: options.animate }, options.zoom);
                            options.pan = extend({ animate: options.animate, duration: options.duration }, options.pan);
                        }
                        // try animating pan or zoom
                        var moved = (this._zoom !== zoom) ?
                            this._tryAnimatedZoom && this._tryAnimatedZoom(center, zoom, options.zoom) :
                            this._tryAnimatedPan(center, options.pan);
                        if (moved) {
                            // prevent resize handler call, the view will refresh after animation anyway
                            clearTimeout(this._sizeTimer);
                            return this;
                        }
                    }
                    // animation didn't start, just reset the map view
                    this._resetView(center, zoom);
                    return this;
                },
                // @method setZoom(zoom: Number, options?: Zoom/pan options): this
                // Sets the zoom of the map.
                setZoom: function (zoom, options) {
                    if (!this._loaded) {
                        this._zoom = zoom;
                        return this;
                    }
                    return this.setView(this.getCenter(), zoom, { zoom: options });
                },
                // @method zoomIn(delta?: Number, options?: Zoom options): this
                // Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
                zoomIn: function (delta, options) {
                    delta = delta || (any3d ? this.options.zoomDelta : 1);
                    return this.setZoom(this._zoom + delta, options);
                },
                // @method zoomOut(delta?: Number, options?: Zoom options): this
                // Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
                zoomOut: function (delta, options) {
                    delta = delta || (any3d ? this.options.zoomDelta : 1);
                    return this.setZoom(this._zoom - delta, options);
                },
                // @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
                // Zooms the map while keeping a specified geographical point on the map
                // stationary (e.g. used internally for scroll zoom and double-click zoom).
                // @alternative
                // @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
                // Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
                setZoomAround: function (latlng, zoom, options) {
                    var scale = this.getZoomScale(zoom), viewHalf = this.getSize().divideBy(2), containerPoint = latlng instanceof Point ? latlng : this.latLngToContainerPoint(latlng), centerOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale), newCenter = this.containerPointToLatLng(viewHalf.add(centerOffset));
                    return this.setView(newCenter, zoom, { zoom: options });
                },
                _getBoundsCenterZoom: function (bounds, options) {
                    options = options || {};
                    bounds = bounds.getBounds ? bounds.getBounds() : toLatLngBounds(bounds);
                    var paddingTL = toPoint(options.paddingTopLeft || options.padding || [0, 0]), paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]), zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR));
                    zoom = (typeof options.maxZoom === 'number') ? Math.min(options.maxZoom, zoom) : zoom;
                    if (zoom === Infinity) {
                        return {
                            center: bounds.getCenter(),
                            zoom: zoom
                        };
                    }
                    var paddingOffset = paddingBR.subtract(paddingTL).divideBy(2), swPoint = this.project(bounds.getSouthWest(), zoom), nePoint = this.project(bounds.getNorthEast(), zoom), center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);
                    return {
                        center: center,
                        zoom: zoom
                    };
                },
                // @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this
                // Sets a map view that contains the given geographical bounds with the
                // maximum zoom level possible.
                fitBounds: function (bounds, options) {
                    bounds = toLatLngBounds(bounds);
                    if (!bounds.isValid()) {
                        throw new Error('Bounds are not valid.');
                    }
                    var target = this._getBoundsCenterZoom(bounds, options);
                    return this.setView(target.center, target.zoom, options);
                },
                // @method fitWorld(options?: fitBounds options): this
                // Sets a map view that mostly contains the whole world with the maximum
                // zoom level possible.
                fitWorld: function (options) {
                    return this.fitBounds([[-90, -180], [90, 180]], options);
                },
                // @method panTo(latlng: LatLng, options?: Pan options): this
                // Pans the map to a given center.
                panTo: function (center, options) {
                    return this.setView(center, this._zoom, { pan: options });
                },
                // @method panBy(offset: Point, options?: Pan options): this
                // Pans the map by a given number of pixels (animated).
                panBy: function (offset, options) {
                    offset = toPoint(offset).round();
                    options = options || {};
                    if (!offset.x && !offset.y) {
                        return this.fire('moveend');
                    }
                    // If we pan too far, Chrome gets issues with tiles
                    // and makes them disappear or appear in the wrong place (slightly offset) #2602
                    if (options.animate !== true && !this.getSize().contains(offset)) {
                        this._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());
                        return this;
                    }
                    if (!this._panAnim) {
                        this._panAnim = new PosAnimation();
                        this._panAnim.on({
                            'step': this._onPanTransitionStep,
                            'end': this._onPanTransitionEnd
                        }, this);
                    }
                    // don't fire movestart if animating inertia
                    if (!options.noMoveStart) {
                        this.fire('movestart');
                    }
                    // animate pan unless animate: false specified
                    if (options.animate !== false) {
                        addClass(this._mapPane, 'leaflet-pan-anim');
                        var newPos = this._getMapPanePos().subtract(offset).round();
                        this._panAnim.run(this._mapPane, newPos, options.duration || 0.25, options.easeLinearity);
                    }
                    else {
                        this._rawPanBy(offset);
                        this.fire('move').fire('moveend');
                    }
                    return this;
                },
                // @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this
                // Sets the view of the map (geographical center and zoom) performing a smooth
                // pan-zoom animation.
                flyTo: function (targetCenter, targetZoom, options) {
                    options = options || {};
                    if (options.animate === false || !any3d) {
                        return this.setView(targetCenter, targetZoom, options);
                    }
                    this._stop();
                    var from = this.project(this.getCenter()), to = this.project(targetCenter), size = this.getSize(), startZoom = this._zoom;
                    targetCenter = toLatLng(targetCenter);
                    targetZoom = targetZoom === undefined ? startZoom : targetZoom;
                    var w0 = Math.max(size.x, size.y), w1 = w0 * this.getZoomScale(startZoom, targetZoom), u1 = (to.distanceTo(from)) || 1, rho = 1.42, rho2 = rho * rho;
                    function r(i) {
                        var s1 = i ? -1 : 1, s2 = i ? w1 : w0, t1 = w1 * w1 - w0 * w0 + s1 * rho2 * rho2 * u1 * u1, b1 = 2 * s2 * rho2 * u1, b = t1 / b1, sq = Math.sqrt(b * b + 1) - b;
                        // workaround for floating point precision bug when sq = 0, log = -Infinite,
                        // thus triggering an infinite loop in flyTo
                        var log = sq < 0.000000001 ? -18 : Math.log(sq);
                        return log;
                    }
                    function sinh(n) { return (Math.exp(n) - Math.exp(-n)) / 2; }
                    function cosh(n) { return (Math.exp(n) + Math.exp(-n)) / 2; }
                    function tanh(n) { return sinh(n) / cosh(n); }
                    var r0 = r(0);
                    function w(s) { return w0 * (cosh(r0) / cosh(r0 + rho * s)); }
                    function u(s) { return w0 * (cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2; }
                    function easeOut(t) { return 1 - Math.pow(1 - t, 1.5); }
                    var start = Date.now(), S = (r(1) - r0) / rho, duration = options.duration ? 1000 * options.duration : 1000 * S * 0.8;
                    function frame() {
                        var t = (Date.now() - start) / duration, s = easeOut(t) * S;
                        if (t <= 1) {
                            this._flyToFrame = requestAnimFrame(frame, this);
                            this._move(this.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom), this.getScaleZoom(w0 / w(s), startZoom), { flyTo: true });
                        }
                        else {
                            this
                                ._move(targetCenter, targetZoom)
                                ._moveEnd(true);
                        }
                    }
                    this._moveStart(true, options.noMoveStart);
                    frame.call(this);
                    return this;
                },
                // @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
                // Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
                // but takes a bounds parameter like [`fitBounds`](#map-fitbounds).
                flyToBounds: function (bounds, options) {
                    var target = this._getBoundsCenterZoom(bounds, options);
                    return this.flyTo(target.center, target.zoom, options);
                },
                // @method setMaxBounds(bounds: Bounds): this
                // Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
                setMaxBounds: function (bounds) {
                    bounds = toLatLngBounds(bounds);
                    if (!bounds.isValid()) {
                        this.options.maxBounds = null;
                        return this.off('moveend', this._panInsideMaxBounds);
                    }
                    else if (this.options.maxBounds) {
                        this.off('moveend', this._panInsideMaxBounds);
                    }
                    this.options.maxBounds = bounds;
                    if (this._loaded) {
                        this._panInsideMaxBounds();
                    }
                    return this.on('moveend', this._panInsideMaxBounds);
                },
                // @method setMinZoom(zoom: Number): this
                // Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
                setMinZoom: function (zoom) {
                    var oldZoom = this.options.minZoom;
                    this.options.minZoom = zoom;
                    if (this._loaded && oldZoom !== zoom) {
                        this.fire('zoomlevelschange');
                        if (this.getZoom() < this.options.minZoom) {
                            return this.setZoom(zoom);
                        }
                    }
                    return this;
                },
                // @method setMaxZoom(zoom: Number): this
                // Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).
                setMaxZoom: function (zoom) {
                    var oldZoom = this.options.maxZoom;
                    this.options.maxZoom = zoom;
                    if (this._loaded && oldZoom !== zoom) {
                        this.fire('zoomlevelschange');
                        if (this.getZoom() > this.options.maxZoom) {
                            return this.setZoom(zoom);
                        }
                    }
                    return this;
                },
                // @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this
                // Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
                panInsideBounds: function (bounds, options) {
                    this._enforcingBounds = true;
                    var center = this.getCenter(), newCenter = this._limitCenter(center, this._zoom, toLatLngBounds(bounds));
                    if (!center.equals(newCenter)) {
                        this.panTo(newCenter, options);
                    }
                    this._enforcingBounds = false;
                    return this;
                },
                // @method invalidateSize(options: Zoom/pan options): this
                // Checks if the map container size changed and updates the map if so —
                // call it after you've changed the map size dynamically, also animating
                // pan by default. If `options.pan` is `false`, panning will not occur.
                // If `options.debounceMoveend` is `true`, it will delay `moveend` event so
                // that it doesn't happen often even if the method is called many
                // times in a row.
                // @alternative
                // @method invalidateSize(animate: Boolean): this
                // Checks if the map container size changed and updates the map if so —
                // call it after you've changed the map size dynamically, also animating
                // pan by default.
                invalidateSize: function (options) {
                    if (!this._loaded) {
                        return this;
                    }
                    options = extend({
                        animate: false,
                        pan: true
                    }, options === true ? { animate: true } : options);
                    var oldSize = this.getSize();
                    this._sizeChanged = true;
                    this._lastCenter = null;
                    var newSize = this.getSize(), oldCenter = oldSize.divideBy(2).round(), newCenter = newSize.divideBy(2).round(), offset = oldCenter.subtract(newCenter);
                    if (!offset.x && !offset.y) {
                        return this;
                    }
                    if (options.animate && options.pan) {
                        this.panBy(offset);
                    }
                    else {
                        if (options.pan) {
                            this._rawPanBy(offset);
                        }
                        this.fire('move');
                        if (options.debounceMoveend) {
                            clearTimeout(this._sizeTimer);
                            this._sizeTimer = setTimeout(bind(this.fire, this, 'moveend'), 200);
                        }
                        else {
                            this.fire('moveend');
                        }
                    }
                    // @section Map state change events
                    // @event resize: ResizeEvent
                    // Fired when the map is resized.
                    return this.fire('resize', {
                        oldSize: oldSize,
                        newSize: newSize
                    });
                },
                // @section Methods for modifying map state
                // @method stop(): this
                // Stops the currently running `panTo` or `flyTo` animation, if any.
                stop: function () {
                    this.setZoom(this._limitZoom(this._zoom));
                    if (!this.options.zoomSnap) {
                        this.fire('viewreset');
                    }
                    return this._stop();
                },
                // @section Geolocation methods
                // @method locate(options?: Locate options): this
                // Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)
                // event with location data on success or a [`locationerror`](#map-locationerror) event on failure,
                // and optionally sets the map view to the user's location with respect to
                // detection accuracy (or to the world view if geolocation failed).
                // Note that, if your page doesn't use HTTPS, this method will fail in
                // modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
                // See `Locate options` for more details.
                locate: function (options) {
                    options = this._locateOptions = extend({
                        timeout: 10000,
                        watch: false
                        // setView: false
                        // maxZoom: <Number>
                        // maximumAge: 0
                        // enableHighAccuracy: false
                    }, options);
                    if (!('geolocation' in navigator)) {
                        this._handleGeolocationError({
                            code: 0,
                            message: 'Geolocation not supported.'
                        });
                        return this;
                    }
                    var onResponse = bind(this._handleGeolocationResponse, this), onError = bind(this._handleGeolocationError, this);
                    if (options.watch) {
                        this._locationWatchId =
                            navigator.geolocation.watchPosition(onResponse, onError, options);
                    }
                    else {
                        navigator.geolocation.getCurrentPosition(onResponse, onError, options);
                    }
                    return this;
                },
                // @method stopLocate(): this
                // Stops watching location previously initiated by `map.locate({watch: true})`
                // and aborts resetting the map view if map.locate was called with
                // `{setView: true}`.
                stopLocate: function () {
                    if (navigator.geolocation && navigator.geolocation.clearWatch) {
                        navigator.geolocation.clearWatch(this._locationWatchId);
                    }
                    if (this._locateOptions) {
                        this._locateOptions.setView = false;
                    }
                    return this;
                },
                _handleGeolocationError: function (error) {
                    var c = error.code, message = error.message ||
                        (c === 1 ? 'permission denied' :
                            (c === 2 ? 'position unavailable' : 'timeout'));
                    if (this._locateOptions.setView && !this._loaded) {
                        this.fitWorld();
                    }
                    // @section Location events
                    // @event locationerror: ErrorEvent
                    // Fired when geolocation (using the [`locate`](#map-locate) method) failed.
                    this.fire('locationerror', {
                        code: c,
                        message: 'Geolocation error: ' + message + '.'
                    });
                },
                _handleGeolocationResponse: function (pos) {
                    var lat = pos.coords.latitude, lng = pos.coords.longitude, latlng = new LatLng(lat, lng), bounds = latlng.toBounds(pos.coords.accuracy * 2), options = this._locateOptions;
                    if (options.setView) {
                        var zoom = this.getBoundsZoom(bounds);
                        this.setView(latlng, options.maxZoom ? Math.min(zoom, options.maxZoom) : zoom);
                    }
                    var data = {
                        latlng: latlng,
                        bounds: bounds,
                        timestamp: pos.timestamp
                    };
                    for (var i in pos.coords) {
                        if (typeof pos.coords[i] === 'number') {
                            data[i] = pos.coords[i];
                        }
                    }
                    // @event locationfound: LocationEvent
                    // Fired when geolocation (using the [`locate`](#map-locate) method)
                    // went successfully.
                    this.fire('locationfound', data);
                },
                // TODO Appropriate docs section?
                // @section Other Methods
                // @method addHandler(name: String, HandlerClass: Function): this
                // Adds a new `Handler` to the map, given its name and constructor function.
                addHandler: function (name, HandlerClass) {
                    if (!HandlerClass) {
                        return this;
                    }
                    var handler = this[name] = new HandlerClass(this);
                    this._handlers.push(handler);
                    if (this.options[name]) {
                        handler.enable();
                    }
                    return this;
                },
                // @method remove(): this
                // Destroys the map and clears all related event listeners.
                remove: function () {
                    this._initEvents(true);
                    if (this._containerId !== this._container._leaflet_id) {
                        throw new Error('Map container is being reused by another instance');
                    }
                    try {
                        // throws error in IE6-8
                        delete this._container._leaflet_id;
                        delete this._containerId;
                    }
                    catch (e) {
                        /*eslint-disable */
                        this._container._leaflet_id = undefined;
                        /* eslint-enable */
                        this._containerId = undefined;
                    }
                    if (this._locationWatchId !== undefined) {
                        this.stopLocate();
                    }
                    this._stop();
                    remove(this._mapPane);
                    if (this._clearControlPos) {
                        this._clearControlPos();
                    }
                    if (this._resizeRequest) {
                        cancelAnimFrame(this._resizeRequest);
                        this._resizeRequest = null;
                    }
                    this._clearHandlers();
                    if (this._loaded) {
                        // @section Map state change events
                        // @event unload: Event
                        // Fired when the map is destroyed with [remove](#map-remove) method.
                        this.fire('unload');
                    }
                    var i;
                    for (i in this._layers) {
                        this._layers[i].remove();
                    }
                    for (i in this._panes) {
                        remove(this._panes[i]);
                    }
                    this._layers = [];
                    this._panes = [];
                    delete this._mapPane;
                    delete this._renderer;
                    return this;
                },
                // @section Other Methods
                // @method createPane(name: String, container?: HTMLElement): HTMLElement
                // Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,
                // then returns it. The pane is created as a child of `container`, or
                // as a child of the main map pane if not set.
                createPane: function (name, container) {
                    var className = 'leaflet-pane' + (name ? ' leaflet-' + name.replace('Pane', '') + '-pane' : ''), pane = create$1('div', className, container || this._mapPane);
                    if (name) {
                        this._panes[name] = pane;
                    }
                    return pane;
                },
                // @section Methods for Getting Map State
                // @method getCenter(): LatLng
                // Returns the geographical center of the map view
                getCenter: function () {
                    this._checkIfLoaded();
                    if (this._lastCenter && !this._moved()) {
                        return this._lastCenter;
                    }
                    return this.layerPointToLatLng(this._getCenterLayerPoint());
                },
                // @method getZoom(): Number
                // Returns the current zoom level of the map view
                getZoom: function () {
                    return this._zoom;
                },
                // @method getBounds(): LatLngBounds
                // Returns the geographical bounds visible in the current map view
                getBounds: function () {
                    var bounds = this.getPixelBounds(), sw = this.unproject(bounds.getBottomLeft()), ne = this.unproject(bounds.getTopRight());
                    return new LatLngBounds(sw, ne);
                },
                // @method getMinZoom(): Number
                // Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
                getMinZoom: function () {
                    return this.options.minZoom === undefined ? this._layersMinZoom || 0 : this.options.minZoom;
                },
                // @method getMaxZoom(): Number
                // Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).
                getMaxZoom: function () {
                    return this.options.maxZoom === undefined ?
                        (this._layersMaxZoom === undefined ? Infinity : this._layersMaxZoom) :
                        this.options.maxZoom;
                },
                // @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number
                // Returns the maximum zoom level on which the given bounds fit to the map
                // view in its entirety. If `inside` (optional) is set to `true`, the method
                // instead returns the minimum zoom level on which the map view fits into
                // the given bounds in its entirety.
                getBoundsZoom: function (bounds, inside, padding) {
                    bounds = toLatLngBounds(bounds);
                    padding = toPoint(padding || [0, 0]);
                    var zoom = this.getZoom() || 0, min = this.getMinZoom(), max = this.getMaxZoom(), nw = bounds.getNorthWest(), se = bounds.getSouthEast(), size = this.getSize().subtract(padding), boundsSize = toBounds(this.project(se, zoom), this.project(nw, zoom)).getSize(), snap = any3d ? this.options.zoomSnap : 1, scalex = size.x / boundsSize.x, scaley = size.y / boundsSize.y, scale = inside ? Math.max(scalex, scaley) : Math.min(scalex, scaley);
                    zoom = this.getScaleZoom(scale, zoom);
                    if (snap) {
                        zoom = Math.round(zoom / (snap / 100)) * (snap / 100); // don't jump if within 1% of a snap level
                        zoom = inside ? Math.ceil(zoom / snap) * snap : Math.floor(zoom / snap) * snap;
                    }
                    return Math.max(min, Math.min(max, zoom));
                },
                // @method getSize(): Point
                // Returns the current size of the map container (in pixels).
                getSize: function () {
                    if (!this._size || this._sizeChanged) {
                        this._size = new Point(this._container.clientWidth || 0, this._container.clientHeight || 0);
                        this._sizeChanged = false;
                    }
                    return this._size.clone();
                },
                // @method getPixelBounds(): Bounds
                // Returns the bounds of the current map view in projected pixel
                // coordinates (sometimes useful in layer and overlay implementations).
                getPixelBounds: function (center, zoom) {
                    var topLeftPoint = this._getTopLeftPoint(center, zoom);
                    return new Bounds(topLeftPoint, topLeftPoint.add(this.getSize()));
                },
                // TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
                // the map pane? "left point of the map layer" can be confusing, specially
                // since there can be negative offsets.
                // @method getPixelOrigin(): Point
                // Returns the projected pixel coordinates of the top left point of
                // the map layer (useful in custom layer and overlay implementations).
                getPixelOrigin: function () {
                    this._checkIfLoaded();
                    return this._pixelOrigin;
                },
                // @method getPixelWorldBounds(zoom?: Number): Bounds
                // Returns the world's bounds in pixel coordinates for zoom level `zoom`.
                // If `zoom` is omitted, the map's current zoom level is used.
                getPixelWorldBounds: function (zoom) {
                    return this.options.crs.getProjectedBounds(zoom === undefined ? this.getZoom() : zoom);
                },
                // @section Other Methods
                // @method getPane(pane: String|HTMLElement): HTMLElement
                // Returns a [map pane](#map-pane), given its name or its HTML element (its identity).
                getPane: function (pane) {
                    return typeof pane === 'string' ? this._panes[pane] : pane;
                },
                // @method getPanes(): Object
                // Returns a plain object containing the names of all [panes](#map-pane) as keys and
                // the panes as values.
                getPanes: function () {
                    return this._panes;
                },
                // @method getContainer: HTMLElement
                // Returns the HTML element that contains the map.
                getContainer: function () {
                    return this._container;
                },
                // @section Conversion Methods
                // @method getZoomScale(toZoom: Number, fromZoom: Number): Number
                // Returns the scale factor to be applied to a map transition from zoom level
                // `fromZoom` to `toZoom`. Used internally to help with zoom animations.
                getZoomScale: function (toZoom, fromZoom) {
                    // TODO replace with universal implementation after refactoring projections
                    var crs = this.options.crs;
                    fromZoom = fromZoom === undefined ? this._zoom : fromZoom;
                    return crs.scale(toZoom) / crs.scale(fromZoom);
                },
                // @method getScaleZoom(scale: Number, fromZoom: Number): Number
                // Returns the zoom level that the map would end up at, if it is at `fromZoom`
                // level and everything is scaled by a factor of `scale`. Inverse of
                // [`getZoomScale`](#map-getZoomScale).
                getScaleZoom: function (scale, fromZoom) {
                    var crs = this.options.crs;
                    fromZoom = fromZoom === undefined ? this._zoom : fromZoom;
                    var zoom = crs.zoom(scale * crs.scale(fromZoom));
                    return isNaN(zoom) ? Infinity : zoom;
                },
                // @method project(latlng: LatLng, zoom: Number): Point
                // Projects a geographical coordinate `LatLng` according to the projection
                // of the map's CRS, then scales it according to `zoom` and the CRS's
                // `Transformation`. The result is pixel coordinate relative to
                // the CRS origin.
                project: function (latlng, zoom) {
                    zoom = zoom === undefined ? this._zoom : zoom;
                    return this.options.crs.latLngToPoint(toLatLng(latlng), zoom);
                },
                // @method unproject(point: Point, zoom: Number): LatLng
                // Inverse of [`project`](#map-project).
                unproject: function (point, zoom) {
                    zoom = zoom === undefined ? this._zoom : zoom;
                    return this.options.crs.pointToLatLng(toPoint(point), zoom);
                },
                // @method layerPointToLatLng(point: Point): LatLng
                // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
                // returns the corresponding geographical coordinate (for the current zoom level).
                layerPointToLatLng: function (point) {
                    var projectedPoint = toPoint(point).add(this.getPixelOrigin());
                    return this.unproject(projectedPoint);
                },
                // @method latLngToLayerPoint(latlng: LatLng): Point
                // Given a geographical coordinate, returns the corresponding pixel coordinate
                // relative to the [origin pixel](#map-getpixelorigin).
                latLngToLayerPoint: function (latlng) {
                    var projectedPoint = this.project(toLatLng(latlng))._round();
                    return projectedPoint._subtract(this.getPixelOrigin());
                },
                // @method wrapLatLng(latlng: LatLng): LatLng
                // Returns a `LatLng` where `lat` and `lng` has been wrapped according to the
                // map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the
                // CRS's bounds.
                // By default this means longitude is wrapped around the dateline so its
                // value is between -180 and +180 degrees.
                wrapLatLng: function (latlng) {
                    return this.options.crs.wrapLatLng(toLatLng(latlng));
                },
                // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
                // Returns a `LatLngBounds` with the same size as the given one, ensuring that
                // its center is within the CRS's bounds.
                // By default this means the center longitude is wrapped around the dateline so its
                // value is between -180 and +180 degrees, and the majority of the bounds
                // overlaps the CRS's bounds.
                wrapLatLngBounds: function (latlng) {
                    return this.options.crs.wrapLatLngBounds(toLatLngBounds(latlng));
                },
                // @method distance(latlng1: LatLng, latlng2: LatLng): Number
                // Returns the distance between two geographical coordinates according to
                // the map's CRS. By default this measures distance in meters.
                distance: function (latlng1, latlng2) {
                    return this.options.crs.distance(toLatLng(latlng1), toLatLng(latlng2));
                },
                // @method containerPointToLayerPoint(point: Point): Point
                // Given a pixel coordinate relative to the map container, returns the corresponding
                // pixel coordinate relative to the [origin pixel](#map-getpixelorigin).
                containerPointToLayerPoint: function (point) {
                    return toPoint(point).subtract(this._getMapPanePos());
                },
                // @method layerPointToContainerPoint(point: Point): Point
                // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
                // returns the corresponding pixel coordinate relative to the map container.
                layerPointToContainerPoint: function (point) {
                    return toPoint(point).add(this._getMapPanePos());
                },
                // @method containerPointToLatLng(point: Point): LatLng
                // Given a pixel coordinate relative to the map container, returns
                // the corresponding geographical coordinate (for the current zoom level).
                containerPointToLatLng: function (point) {
                    var layerPoint = this.containerPointToLayerPoint(toPoint(point));
                    return this.layerPointToLatLng(layerPoint);
                },
                // @method latLngToContainerPoint(latlng: LatLng): Point
                // Given a geographical coordinate, returns the corresponding pixel coordinate
                // relative to the map container.
                latLngToContainerPoint: function (latlng) {
                    return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(latlng)));
                },
                // @method mouseEventToContainerPoint(ev: MouseEvent): Point
                // Given a MouseEvent object, returns the pixel coordinate relative to the
                // map container where the event took place.
                mouseEventToContainerPoint: function (e) {
                    return getMousePosition(e, this._container);
                },
                // @method mouseEventToLayerPoint(ev: MouseEvent): Point
                // Given a MouseEvent object, returns the pixel coordinate relative to
                // the [origin pixel](#map-getpixelorigin) where the event took place.
                mouseEventToLayerPoint: function (e) {
                    return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e));
                },
                // @method mouseEventToLatLng(ev: MouseEvent): LatLng
                // Given a MouseEvent object, returns geographical coordinate where the
                // event took place.
                mouseEventToLatLng: function (e) {
                    return this.layerPointToLatLng(this.mouseEventToLayerPoint(e));
                },
                // map initialization methods
                _initContainer: function (id) {
                    var container = this._container = get(id);
                    if (!container) {
                        throw new Error('Map container not found.');
                    }
                    else if (container._leaflet_id) {
                        throw new Error('Map container is already initialized.');
                    }
                    on(container, 'scroll', this._onScroll, this);
                    this._containerId = stamp(container);
                },
                _initLayout: function () {
                    var container = this._container;
                    this._fadeAnimated = this.options.fadeAnimation && any3d;
                    addClass(container, 'leaflet-container' +
                        (touch ? ' leaflet-touch' : '') +
                        (retina ? ' leaflet-retina' : '') +
                        (ielt9 ? ' leaflet-oldie' : '') +
                        (safari ? ' leaflet-safari' : '') +
                        (this._fadeAnimated ? ' leaflet-fade-anim' : ''));
                    var position = getStyle(container, 'position');
                    if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {
                        container.style.position = 'relative';
                    }
                    this._initPanes();
                    if (this._initControlPos) {
                        this._initControlPos();
                    }
                },
                _initPanes: function () {
                    var panes = this._panes = {};
                    this._paneRenderers = {};
                    // @section
                    //
                    // Panes are DOM elements used to control the ordering of layers on the map. You
                    // can access panes with [`map.getPane`](#map-getpane) or
                    // [`map.getPanes`](#map-getpanes) methods. New panes can be created with the
                    // [`map.createPane`](#map-createpane) method.
                    //
                    // Every map has the following default panes that differ only in zIndex.
                    //
                    // @pane mapPane: HTMLElement = 'auto'
                    // Pane that contains all other map panes
                    this._mapPane = this.createPane('mapPane', this._container);
                    setPosition(this._mapPane, new Point(0, 0));
                    // @pane tilePane: HTMLElement = 200
                    // Pane for `GridLayer`s and `TileLayer`s
                    this.createPane('tilePane');
                    // @pane overlayPane: HTMLElement = 400
                    // Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s
                    this.createPane('shadowPane');
                    // @pane shadowPane: HTMLElement = 500
                    // Pane for overlay shadows (e.g. `Marker` shadows)
                    this.createPane('overlayPane');
                    // @pane markerPane: HTMLElement = 600
                    // Pane for `Icon`s of `Marker`s
                    this.createPane('markerPane');
                    // @pane tooltipPane: HTMLElement = 650
                    // Pane for `Tooltip`s.
                    this.createPane('tooltipPane');
                    // @pane popupPane: HTMLElement = 700
                    // Pane for `Popup`s.
                    this.createPane('popupPane');
                    if (!this.options.markerZoomAnimation) {
                        addClass(panes.markerPane, 'leaflet-zoom-hide');
                        addClass(panes.shadowPane, 'leaflet-zoom-hide');
                    }
                },
                // private methods that modify map state
                // @section Map state change events
                _resetView: function (center, zoom) {
                    setPosition(this._mapPane, new Point(0, 0));
                    var loading = !this._loaded;
                    this._loaded = true;
                    zoom = this._limitZoom(zoom);
                    this.fire('viewprereset');
                    var zoomChanged = this._zoom !== zoom;
                    this
                        ._moveStart(zoomChanged, false)
                        ._move(center, zoom)
                        ._moveEnd(zoomChanged);
                    // @event viewreset: Event
                    // Fired when the map needs to redraw its content (this usually happens
                    // on map zoom or load). Very useful for creating custom overlays.
                    this.fire('viewreset');
                    // @event load: Event
                    // Fired when the map is initialized (when its center and zoom are set
                    // for the first time).
                    if (loading) {
                        this.fire('load');
                    }
                },
                _moveStart: function (zoomChanged, noMoveStart) {
                    // @event zoomstart: Event
                    // Fired when the map zoom is about to change (e.g. before zoom animation).
                    // @event movestart: Event
                    // Fired when the view of the map starts changing (e.g. user starts dragging the map).
                    if (zoomChanged) {
                        this.fire('zoomstart');
                    }
                    if (!noMoveStart) {
                        this.fire('movestart');
                    }
                    return this;
                },
                _move: function (center, zoom, data) {
                    if (zoom === undefined) {
                        zoom = this._zoom;
                    }
                    var zoomChanged = this._zoom !== zoom;
                    this._zoom = zoom;
                    this._lastCenter = center;
                    this._pixelOrigin = this._getNewPixelOrigin(center);
                    // @event zoom: Event
                    // Fired repeatedly during any change in zoom level, including zoom
                    // and fly animations.
                    if (zoomChanged || (data && data.pinch)) { // Always fire 'zoom' if pinching because #3530
                        this.fire('zoom', data);
                    }
                    // @event move: Event
                    // Fired repeatedly during any movement of the map, including pan and
                    // fly animations.
                    return this.fire('move', data);
                },
                _moveEnd: function (zoomChanged) {
                    // @event zoomend: Event
                    // Fired when the map has changed, after any animations.
                    if (zoomChanged) {
                        this.fire('zoomend');
                    }
                    // @event moveend: Event
                    // Fired when the center of the map stops changing (e.g. user stopped
                    // dragging the map).
                    return this.fire('moveend');
                },
                _stop: function () {
                    cancelAnimFrame(this._flyToFrame);
                    if (this._panAnim) {
                        this._panAnim.stop();
                    }
                    return this;
                },
                _rawPanBy: function (offset) {
                    setPosition(this._mapPane, this._getMapPanePos().subtract(offset));
                },
                _getZoomSpan: function () {
                    return this.getMaxZoom() - this.getMinZoom();
                },
                _panInsideMaxBounds: function () {
                    if (!this._enforcingBounds) {
                        this.panInsideBounds(this.options.maxBounds);
                    }
                },
                _checkIfLoaded: function () {
                    if (!this._loaded) {
                        throw new Error('Set map center and zoom first.');
                    }
                },
                // DOM event handling
                // @section Interaction events
                _initEvents: function (remove$$1) {
                    this._targets = {};
                    this._targets[stamp(this._container)] = this;
                    var onOff = remove$$1 ? off : on;
                    // @event click: MouseEvent
                    // Fired when the user clicks (or taps) the map.
                    // @event dblclick: MouseEvent
                    // Fired when the user double-clicks (or double-taps) the map.
                    // @event mousedown: MouseEvent
                    // Fired when the user pushes the mouse button on the map.
                    // @event mouseup: MouseEvent
                    // Fired when the user releases the mouse button on the map.
                    // @event mouseover: MouseEvent
                    // Fired when the mouse enters the map.
                    // @event mouseout: MouseEvent
                    // Fired when the mouse leaves the map.
                    // @event mousemove: MouseEvent
                    // Fired while the mouse moves over the map.
                    // @event contextmenu: MouseEvent
                    // Fired when the user pushes the right mouse button on the map, prevents
                    // default browser context menu from showing if there are listeners on
                    // this event. Also fired on mobile when the user holds a single touch
                    // for a second (also called long press).
                    // @event keypress: KeyboardEvent
                    // Fired when the user presses a key from the keyboard while the map is focused.
                    onOff(this._container, 'click dblclick mousedown mouseup ' +
                        'mouseover mouseout mousemove contextmenu keypress', this._handleDOMEvent, this);
                    if (this.options.trackResize) {
                        onOff(window, 'resize', this._onResize, this);
                    }
                    if (any3d && this.options.transform3DLimit) {
                        (remove$$1 ? this.off : this.on).call(this, 'moveend', this._onMoveEnd);
                    }
                },
                _onResize: function () {
                    cancelAnimFrame(this._resizeRequest);
                    this._resizeRequest = requestAnimFrame(function () { this.invalidateSize({ debounceMoveend: true }); }, this);
                },
                _onScroll: function () {
                    this._container.scrollTop = 0;
                    this._container.scrollLeft = 0;
                },
                _onMoveEnd: function () {
                    var pos = this._getMapPanePos();
                    if (Math.max(Math.abs(pos.x), Math.abs(pos.y)) >= this.options.transform3DLimit) {
                        // https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have
                        // a pixel offset on very high values, see: http://jsfiddle.net/dg6r5hhb/
                        this._resetView(this.getCenter(), this.getZoom());
                    }
                },
                _findEventTargets: function (e, type) {
                    var targets = [], target, isHover = type === 'mouseout' || type === 'mouseover', src = e.target || e.srcElement, dragging = false;
                    while (src) {
                        target = this._targets[stamp(src)];
                        if (target && (type === 'click' || type === 'preclick') && !e._simulated && this._draggableMoved(target)) {
                            // Prevent firing click after you just dragged an object.
                            dragging = true;
                            break;
                        }
                        if (target && target.listens(type, true)) {
                            if (isHover && !isExternalTarget(src, e)) {
                                break;
                            }
                            targets.push(target);
                            if (isHover) {
                                break;
                            }
                        }
                        if (src === this._container) {
                            break;
                        }
                        src = src.parentNode;
                    }
                    if (!targets.length && !dragging && !isHover && isExternalTarget(src, e)) {
                        targets = [this];
                    }
                    return targets;
                },
                _handleDOMEvent: function (e) {
                    if (!this._loaded || skipped(e)) {
                        return;
                    }
                    var type = e.type;
                    if (type === 'mousedown' || type === 'keypress') {
                        // prevents outline when clicking on keyboard-focusable element
                        preventOutline(e.target || e.srcElement);
                    }
                    this._fireDOMEvent(e, type);
                },
                _mouseEvents: ['click', 'dblclick', 'mouseover', 'mouseout', 'contextmenu'],
                _fireDOMEvent: function (e, type, targets) {
                    if (e.type === 'click') {
                        // Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).
                        // @event preclick: MouseEvent
                        // Fired before mouse click on the map (sometimes useful when you
                        // want something to happen on click before any existing click
                        // handlers start running).
                        var synth = extend({}, e);
                        synth.type = 'preclick';
                        this._fireDOMEvent(synth, synth.type, targets);
                    }
                    if (e._stopped) {
                        return;
                    }
                    // Find the layer the event is propagating from and its parents.
                    targets = (targets || []).concat(this._findEventTargets(e, type));
                    if (!targets.length) {
                        return;
                    }
                    var target = targets[0];
                    if (type === 'contextmenu' && target.listens(type, true)) {
                        preventDefault(e);
                    }
                    var data = {
                        originalEvent: e
                    };
                    if (e.type !== 'keypress') {
                        var isMarker = target.getLatLng && (!target._radius || target._radius <= 10);
                        data.containerPoint = isMarker ?
                            this.latLngToContainerPoint(target.getLatLng()) : this.mouseEventToContainerPoint(e);
                        data.layerPoint = this.containerPointToLayerPoint(data.containerPoint);
                        data.latlng = isMarker ? target.getLatLng() : this.layerPointToLatLng(data.layerPoint);
                    }
                    for (var i = 0; i < targets.length; i++) {
                        targets[i].fire(type, data, true);
                        if (data.originalEvent._stopped ||
                            (targets[i].options.bubblingMouseEvents === false && indexOf(this._mouseEvents, type) !== -1)) {
                            return;
                        }
                    }
                },
                _draggableMoved: function (obj) {
                    obj = obj.dragging && obj.dragging.enabled() ? obj : this;
                    return (obj.dragging && obj.dragging.moved()) || (this.boxZoom && this.boxZoom.moved());
                },
                _clearHandlers: function () {
                    for (var i = 0, len = this._handlers.length; i < len; i++) {
                        this._handlers[i].disable();
                    }
                },
                // @section Other Methods
                // @method whenReady(fn: Function, context?: Object): this
                // Runs the given function `fn` when the map gets initialized with
                // a view (center and zoom) and at least one layer, or immediately
                // if it's already initialized, optionally passing a function context.
                whenReady: function (callback, context) {
                    if (this._loaded) {
                        callback.call(context || this, { target: this });
                    }
                    else {
                        this.on('load', callback, context);
                    }
                    return this;
                },
                // private methods for getting map state
                _getMapPanePos: function () {
                    return getPosition(this._mapPane) || new Point(0, 0);
                },
                _moved: function () {
                    var pos = this._getMapPanePos();
                    return pos && !pos.equals([0, 0]);
                },
                _getTopLeftPoint: function (center, zoom) {
                    var pixelOrigin = center && zoom !== undefined ?
                        this._getNewPixelOrigin(center, zoom) :
                        this.getPixelOrigin();
                    return pixelOrigin.subtract(this._getMapPanePos());
                },
                _getNewPixelOrigin: function (center, zoom) {
                    var viewHalf = this.getSize()._divideBy(2);
                    return this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();
                },
                _latLngToNewLayerPoint: function (latlng, zoom, center) {
                    var topLeft = this._getNewPixelOrigin(center, zoom);
                    return this.project(latlng, zoom)._subtract(topLeft);
                },
                _latLngBoundsToNewLayerBounds: function (latLngBounds, zoom, center) {
                    var topLeft = this._getNewPixelOrigin(center, zoom);
                    return toBounds([
                        this.project(latLngBounds.getSouthWest(), zoom)._subtract(topLeft),
                        this.project(latLngBounds.getNorthWest(), zoom)._subtract(topLeft),
                        this.project(latLngBounds.getSouthEast(), zoom)._subtract(topLeft),
                        this.project(latLngBounds.getNorthEast(), zoom)._subtract(topLeft)
                    ]);
                },
                // layer point of the current center
                _getCenterLayerPoint: function () {
                    return this.containerPointToLayerPoint(this.getSize()._divideBy(2));
                },
                // offset of the specified place to the current center in pixels
                _getCenterOffset: function (latlng) {
                    return this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint());
                },
                // adjust center for view to get inside bounds
                _limitCenter: function (center, zoom, bounds) {
                    if (!bounds) {
                        return center;
                    }
                    var centerPoint = this.project(center, zoom), viewHalf = this.getSize().divideBy(2), viewBounds = new Bounds(centerPoint.subtract(viewHalf), centerPoint.add(viewHalf)), offset = this._getBoundsOffset(viewBounds, bounds, zoom);
                    // If offset is less than a pixel, ignore.
                    // This prevents unstable projections from getting into
                    // an infinite loop of tiny offsets.
                    if (offset.round().equals([0, 0])) {
                        return center;
                    }
                    return this.unproject(centerPoint.add(offset), zoom);
                },
                // adjust offset for view to get inside bounds
                _limitOffset: function (offset, bounds) {
                    if (!bounds) {
                        return offset;
                    }
                    var viewBounds = this.getPixelBounds(), newBounds = new Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));
                    return offset.add(this._getBoundsOffset(newBounds, bounds));
                },
                // returns offset needed for pxBounds to get inside maxBounds at a specified zoom
                _getBoundsOffset: function (pxBounds, maxBounds, zoom) {
                    var projectedMaxBounds = toBounds(this.project(maxBounds.getNorthEast(), zoom), this.project(maxBounds.getSouthWest(), zoom)), minOffset = projectedMaxBounds.min.subtract(pxBounds.min), maxOffset = projectedMaxBounds.max.subtract(pxBounds.max), dx = this._rebound(minOffset.x, -maxOffset.x), dy = this._rebound(minOffset.y, -maxOffset.y);
                    return new Point(dx, dy);
                },
                _rebound: function (left, right) {
                    return left + right > 0 ?
                        Math.round(left - right) / 2 :
                        Math.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));
                },
                _limitZoom: function (zoom) {
                    var min = this.getMinZoom(), max = this.getMaxZoom(), snap = any3d ? this.options.zoomSnap : 1;
                    if (snap) {
                        zoom = Math.round(zoom / snap) * snap;
                    }
                    return Math.max(min, Math.min(max, zoom));
                },
                _onPanTransitionStep: function () {
                    this.fire('move');
                },
                _onPanTransitionEnd: function () {
                    removeClass(this._mapPane, 'leaflet-pan-anim');
                    this.fire('moveend');
                },
                _tryAnimatedPan: function (center, options) {
                    // difference between the new and current centers in pixels
                    var offset = this._getCenterOffset(center)._trunc();
                    // don't animate too far unless animate: true specified in options
                    if ((options && options.animate) !== true && !this.getSize().contains(offset)) {
                        return false;
                    }
                    this.panBy(offset, options);
                    return true;
                },
                _createAnimProxy: function () {
                    var proxy = this._proxy = create$1('div', 'leaflet-proxy leaflet-zoom-animated');
                    this._panes.mapPane.appendChild(proxy);
                    this.on('zoomanim', function (e) {
                        var prop = TRANSFORM, transform = this._proxy.style[prop];
                        setTransform(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1));
                        // workaround for case when transform is the same and so transitionend event is not fired
                        if (transform === this._proxy.style[prop] && this._animatingZoom) {
                            this._onZoomTransitionEnd();
                        }
                    }, this);
                    this.on('load moveend', function () {
                        var c = this.getCenter(), z = this.getZoom();
                        setTransform(this._proxy, this.project(c, z), this.getZoomScale(z, 1));
                    }, this);
                    this._on('unload', this._destroyAnimProxy, this);
                },
                _destroyAnimProxy: function () {
                    remove(this._proxy);
                    delete this._proxy;
                },
                _catchTransitionEnd: function (e) {
                    if (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {
                        this._onZoomTransitionEnd();
                    }
                },
                _nothingToAnimate: function () {
                    return !this._container.getElementsByClassName('leaflet-zoom-animated').length;
                },
                _tryAnimatedZoom: function (center, zoom, options) {
                    if (this._animatingZoom) {
                        return true;
                    }
                    options = options || {};
                    // don't animate if disabled, not supported or zoom difference is too large
                    if (!this._zoomAnimated || options.animate === false || this._nothingToAnimate() ||
                        Math.abs(zoom - this._zoom) > this.options.zoomAnimationThreshold) {
                        return false;
                    }
                    // offset is the pixel coords of the zoom origin relative to the current center
                    var scale = this.getZoomScale(zoom), offset = this._getCenterOffset(center)._divideBy(1 - 1 / scale);
                    // don't animate if the zoom origin isn't within one screen from the current center, unless forced
                    if (options.animate !== true && !this.getSize().contains(offset)) {
                        return false;
                    }
                    requestAnimFrame(function () {
                        this
                            ._moveStart(true, false)
                            ._animateZoom(center, zoom, true);
                    }, this);
                    return true;
                },
                _animateZoom: function (center, zoom, startAnim, noUpdate) {
                    if (!this._mapPane) {
                        return;
                    }
                    if (startAnim) {
                        this._animatingZoom = true;
                        // remember what center/zoom to set after animation
                        this._animateToCenter = center;
                        this._animateToZoom = zoom;
                        addClass(this._mapPane, 'leaflet-zoom-anim');
                    }
                    // @event zoomanim: ZoomAnimEvent
                    // Fired on every frame of a zoom animation
                    this.fire('zoomanim', {
                        center: center,
                        zoom: zoom,
                        noUpdate: noUpdate
                    });
                    // Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693
                    setTimeout(bind(this._onZoomTransitionEnd, this), 250);
                },
                _onZoomTransitionEnd: function () {
                    if (!this._animatingZoom) {
                        return;
                    }
                    if (this._mapPane) {
                        removeClass(this._mapPane, 'leaflet-zoom-anim');
                    }
                    this._animatingZoom = false;
                    this._move(this._animateToCenter, this._animateToZoom);
                    // This anim frame should prevent an obscure iOS webkit tile loading race condition.
                    requestAnimFrame(function () {
                        this._moveEnd(true);
                    }, this);
                }
            });
            // @section
            // @factory L.map(id: String, options?: Map options)
            // Instantiates a map object given the DOM ID of a `<div>` element
            // and optionally an object literal with `Map options`.
            //
            // @alternative
            // @factory L.map(el: HTMLElement, options?: Map options)
            // Instantiates a map object given an instance of a `<div>` HTML element
            // and optionally an object literal with `Map options`.
            function createMap(id, options) {
                return new Map(id, options);
            }
            /*
             * @class Control
             * @aka L.Control
             * @inherits Class
             *
             * L.Control is a base class for implementing map controls. Handles positioning.
             * All other controls extend from this class.
             */
            var Control = Class.extend({
                // @section
                // @aka Control options
                options: {
                    // @option position: String = 'topright'
                    // The position of the control (one of the map corners). Possible values are `'topleft'`,
                    // `'topright'`, `'bottomleft'` or `'bottomright'`
                    position: 'topright'
                },
                initialize: function (options) {
                    setOptions(this, options);
                },
                /* @section
                 * Classes extending L.Control will inherit the following methods:
                 *
                 * @method getPosition: string
                 * Returns the position of the control.
                 */
                getPosition: function () {
                    return this.options.position;
                },
                // @method setPosition(position: string): this
                // Sets the position of the control.
                setPosition: function (position) {
                    var map = this._map;
                    if (map) {
                        map.removeControl(this);
                    }
                    this.options.position = position;
                    if (map) {
                        map.addControl(this);
                    }
                    return this;
                },
                // @method getContainer: HTMLElement
                // Returns the HTMLElement that contains the control.
                getContainer: function () {
                    return this._container;
                },
                // @method addTo(map: Map): this
                // Adds the control to the given map.
                addTo: function (map) {
                    this.remove();
                    this._map = map;
                    var container = this._container = this.onAdd(map), pos = this.getPosition(), corner = map._controlCorners[pos];
                    addClass(container, 'leaflet-control');
                    if (pos.indexOf('bottom') !== -1) {
                        corner.insertBefore(container, corner.firstChild);
                    }
                    else {
                        corner.appendChild(container);
                    }
                    return this;
                },
                // @method remove: this
                // Removes the control from the map it is currently active on.
                remove: function () {
                    if (!this._map) {
                        return this;
                    }
                    remove(this._container);
                    if (this.onRemove) {
                        this.onRemove(this._map);
                    }
                    this._map = null;
                    return this;
                },
                _refocusOnMap: function (e) {
                    // if map exists and event is not a keyboard event
                    if (this._map && e && e.screenX > 0 && e.screenY > 0) {
                        this._map.getContainer().focus();
                    }
                }
            });
            var control = function (options) {
                return new Control(options);
            };
            /* @section Extension methods
             * @uninheritable
             *
             * Every control should extend from `L.Control` and (re-)implement the following methods.
             *
             * @method onAdd(map: Map): HTMLElement
             * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).
             *
             * @method onRemove(map: Map)
             * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).
             */
            /* @namespace Map
             * @section Methods for Layers and Controls
             */
            Map.include({
                // @method addControl(control: Control): this
                // Adds the given control to the map
                addControl: function (control) {
                    control.addTo(this);
                    return this;
                },
                // @method removeControl(control: Control): this
                // Removes the given control from the map
                removeControl: function (control) {
                    control.remove();
                    return this;
                },
                _initControlPos: function () {
                    var corners = this._controlCorners = {}, l = 'leaflet-', container = this._controlContainer =
                        create$1('div', l + 'control-container', this._container);
                    function createCorner(vSide, hSide) {
                        var className = l + vSide + ' ' + l + hSide;
                        corners[vSide + hSide] = create$1('div', className, container);
                    }
                    createCorner('top', 'left');
                    createCorner('top', 'right');
                    createCorner('bottom', 'left');
                    createCorner('bottom', 'right');
                },
                _clearControlPos: function () {
                    for (var i in this._controlCorners) {
                        remove(this._controlCorners[i]);
                    }
                    remove(this._controlContainer);
                    delete this._controlCorners;
                    delete this._controlContainer;
                }
            });
            /*
             * @class Control.Layers
             * @aka L.Control.Layers
             * @inherits Control
             *
             * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](http://leafletjs.com/examples/layers-control/)). Extends `Control`.
             *
             * @example
             *
             * ```js
             * var baseLayers = {
             * 	"Mapbox": mapbox,
             * 	"OpenStreetMap": osm
             * };
             *
             * var overlays = {
             * 	"Marker": marker,
             * 	"Roads": roadsLayer
             * };
             *
             * L.control.layers(baseLayers, overlays).addTo(map);
             * ```
             *
             * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:
             *
             * ```js
             * {
             *     "<someName1>": layer1,
             *     "<someName2>": layer2
             * }
             * ```
             *
             * The layer names can contain HTML, which allows you to add additional styling to the items:
             *
             * ```js
             * {"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>": myLayer}
             * ```
             */
            var Layers = Control.extend({
                // @section
                // @aka Control.Layers options
                options: {
                    // @option collapsed: Boolean = true
                    // If `true`, the control will be collapsed into an icon and expanded on mouse hover or touch.
                    collapsed: true,
                    position: 'topright',
                    // @option autoZIndex: Boolean = true
                    // If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.
                    autoZIndex: true,
                    // @option hideSingleBase: Boolean = false
                    // If `true`, the base layers in the control will be hidden when there is only one.
                    hideSingleBase: false,
                    // @option sortLayers: Boolean = false
                    // Whether to sort the layers. When `false`, layers will keep the order
                    // in which they were added to the control.
                    sortLayers: false,
                    // @option sortFunction: Function = *
                    // A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
                    // that will be used for sorting the layers, when `sortLayers` is `true`.
                    // The function receives both the `L.Layer` instances and their names, as in
                    // `sortFunction(layerA, layerB, nameA, nameB)`.
                    // By default, it sorts layers alphabetically by their name.
                    sortFunction: function (layerA, layerB, nameA, nameB) {
                        return nameA < nameB ? -1 : (nameB < nameA ? 1 : 0);
                    }
                },
                initialize: function (baseLayers, overlays, options) {
                    setOptions(this, options);
                    this._layerControlInputs = [];
                    this._layers = [];
                    this._lastZIndex = 0;
                    this._handlingClick = false;
                    for (var i in baseLayers) {
                        this._addLayer(baseLayers[i], i);
                    }
                    for (i in overlays) {
                        this._addLayer(overlays[i], i, true);
                    }
                },
                onAdd: function (map) {
                    this._initLayout();
                    this._update();
                    this._map = map;
                    map.on('zoomend', this._checkDisabledLayers, this);
                    for (var i = 0; i < this._layers.length; i++) {
                        this._layers[i].layer.on('add remove', this._onLayerChange, this);
                    }
                    return this._container;
                },
                addTo: function (map) {
                    Control.prototype.addTo.call(this, map);
                    // Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.
                    return this._expandIfNotCollapsed();
                },
                onRemove: function () {
                    this._map.off('zoomend', this._checkDisabledLayers, this);
                    for (var i = 0; i < this._layers.length; i++) {
                        this._layers[i].layer.off('add remove', this._onLayerChange, this);
                    }
                },
                // @method addBaseLayer(layer: Layer, name: String): this
                // Adds a base layer (radio button entry) with the given name to the control.
                addBaseLayer: function (layer, name) {
                    this._addLayer(layer, name);
                    return (this._map) ? this._update() : this;
                },
                // @method addOverlay(layer: Layer, name: String): this
                // Adds an overlay (checkbox entry) with the given name to the control.
                addOverlay: function (layer, name) {
                    this._addLayer(layer, name, true);
                    return (this._map) ? this._update() : this;
                },
                // @method removeLayer(layer: Layer): this
                // Remove the given layer from the control.
                removeLayer: function (layer) {
                    layer.off('add remove', this._onLayerChange, this);
                    var obj = this._getLayer(stamp(layer));
                    if (obj) {
                        this._layers.splice(this._layers.indexOf(obj), 1);
                    }
                    return (this._map) ? this._update() : this;
                },
                // @method expand(): this
                // Expand the control container if collapsed.
                expand: function () {
                    addClass(this._container, 'leaflet-control-layers-expanded');
                    this._form.style.height = null;
                    var acceptableHeight = this._map.getSize().y - (this._container.offsetTop + 50);
                    if (acceptableHeight < this._form.clientHeight) {
                        addClass(this._form, 'leaflet-control-layers-scrollbar');
                        this._form.style.height = acceptableHeight + 'px';
                    }
                    else {
                        removeClass(this._form, 'leaflet-control-layers-scrollbar');
                    }
                    this._checkDisabledLayers();
                    return this;
                },
                // @method collapse(): this
                // Collapse the control container if expanded.
                collapse: function () {
                    removeClass(this._container, 'leaflet-control-layers-expanded');
                    return this;
                },
                _initLayout: function () {
                    var className = 'leaflet-control-layers', container = this._container = create$1('div', className), collapsed = this.options.collapsed;
                    // makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released
                    container.setAttribute('aria-haspopup', true);
                    disableClickPropagation(container);
                    disableScrollPropagation(container);
                    var form = this._form = create$1('form', className + '-list');
                    if (collapsed) {
                        this._map.on('click', this.collapse, this);
                        if (!android) {
                            on(container, {
                                mouseenter: this.expand,
                                mouseleave: this.collapse
                            }, this);
                        }
                    }
                    var link = this._layersLink = create$1('a', className + '-toggle', container);
                    link.href = '#';
                    link.title = 'Layers';
                    if (touch) {
                        on(link, 'click', stop);
                        on(link, 'click', this.expand, this);
                    }
                    else {
                        on(link, 'focus', this.expand, this);
                    }
                    if (!collapsed) {
                        this.expand();
                    }
                    this._baseLayersList = create$1('div', className + '-base', form);
                    this._separator = create$1('div', className + '-separator', form);
                    this._overlaysList = create$1('div', className + '-overlays', form);
                    container.appendChild(form);
                },
                _getLayer: function (id) {
                    for (var i = 0; i < this._layers.length; i++) {
                        if (this._layers[i] && stamp(this._layers[i].layer) === id) {
                            return this._layers[i];
                        }
                    }
                },
                _addLayer: function (layer, name, overlay) {
                    if (this._map) {
                        layer.on('add remove', this._onLayerChange, this);
                    }
                    this._layers.push({
                        layer: layer,
                        name: name,
                        overlay: overlay
                    });
                    if (this.options.sortLayers) {
                        this._layers.sort(bind(function (a, b) {
                            return this.options.sortFunction(a.layer, b.layer, a.name, b.name);
                        }, this));
                    }
                    if (this.options.autoZIndex && layer.setZIndex) {
                        this._lastZIndex++;
                        layer.setZIndex(this._lastZIndex);
                    }
                    this._expandIfNotCollapsed();
                },
                _update: function () {
                    if (!this._container) {
                        return this;
                    }
                    empty(this._baseLayersList);
                    empty(this._overlaysList);
                    this._layerControlInputs = [];
                    var baseLayersPresent, overlaysPresent, i, obj, baseLayersCount = 0;
                    for (i = 0; i < this._layers.length; i++) {
                        obj = this._layers[i];
                        this._addItem(obj);
                        overlaysPresent = overlaysPresent || obj.overlay;
                        baseLayersPresent = baseLayersPresent || !obj.overlay;
                        baseLayersCount += !obj.overlay ? 1 : 0;
                    }
                    // Hide base layers section if there's only one layer.
                    if (this.options.hideSingleBase) {
                        baseLayersPresent = baseLayersPresent && baseLayersCount > 1;
                        this._baseLayersList.style.display = baseLayersPresent ? '' : 'none';
                    }
                    this._separator.style.display = overlaysPresent && baseLayersPresent ? '' : 'none';
                    return this;
                },
                _onLayerChange: function (e) {
                    if (!this._handlingClick) {
                        this._update();
                    }
                    var obj = this._getLayer(stamp(e.target));
                    // @namespace Map
                    // @section Layer events
                    // @event baselayerchange: LayersControlEvent
                    // Fired when the base layer is changed through the [layer control](#control-layers).
                    // @event overlayadd: LayersControlEvent
                    // Fired when an overlay is selected through the [layer control](#control-layers).
                    // @event overlayremove: LayersControlEvent
                    // Fired when an overlay is deselected through the [layer control](#control-layers).
                    // @namespace Control.Layers
                    var type = obj.overlay ?
                        (e.type === 'add' ? 'overlayadd' : 'overlayremove') :
                        (e.type === 'add' ? 'baselayerchange' : null);
                    if (type) {
                        this._map.fire(type, obj);
                    }
                },
                // IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see http://bit.ly/PqYLBe)
                _createRadioElement: function (name, checked) {
                    var radioHtml = '<input type="radio" class="leaflet-control-layers-selector" name="' +
                        name + '"' + (checked ? ' checked="checked"' : '') + '/>';
                    var radioFragment = document.createElement('div');
                    radioFragment.innerHTML = radioHtml;
                    return radioFragment.firstChild;
                },
                _addItem: function (obj) {
                    var label = document.createElement('label'), checked = this._map.hasLayer(obj.layer), input;
                    if (obj.overlay) {
                        input = document.createElement('input');
                        input.type = 'checkbox';
                        input.className = 'leaflet-control-layers-selector';
                        input.defaultChecked = checked;
                    }
                    else {
                        input = this._createRadioElement('leaflet-base-layers', checked);
                    }
                    this._layerControlInputs.push(input);
                    input.layerId = stamp(obj.layer);
                    on(input, 'click', this._onInputClick, this);
                    var name = document.createElement('span');
                    name.innerHTML = ' ' + obj.name;
                    // Helps from preventing layer control flicker when checkboxes are disabled
                    // https://github.com/Leaflet/Leaflet/issues/2771
                    var holder = document.createElement('div');
                    label.appendChild(holder);
                    holder.appendChild(input);
                    holder.appendChild(name);
                    var container = obj.overlay ? this._overlaysList : this._baseLayersList;
                    container.appendChild(label);
                    this._checkDisabledLayers();
                    return label;
                },
                _onInputClick: function () {
                    var inputs = this._layerControlInputs, input, layer;
                    var addedLayers = [], removedLayers = [];
                    this._handlingClick = true;
                    for (var i = inputs.length - 1; i >= 0; i--) {
                        input = inputs[i];
                        layer = this._getLayer(input.layerId).layer;
                        if (input.checked) {
                            addedLayers.push(layer);
                        }
                        else if (!input.checked) {
                            removedLayers.push(layer);
                        }
                    }
                    // Bugfix issue 2318: Should remove all old layers before readding new ones
                    for (i = 0; i < removedLayers.length; i++) {
                        if (this._map.hasLayer(removedLayers[i])) {
                            this._map.removeLayer(removedLayers[i]);
                        }
                    }
                    for (i = 0; i < addedLayers.length; i++) {
                        if (!this._map.hasLayer(addedLayers[i])) {
                            this._map.addLayer(addedLayers[i]);
                        }
                    }
                    this._handlingClick = false;
                    this._refocusOnMap();
                },
                _checkDisabledLayers: function () {
                    var inputs = this._layerControlInputs, input, layer, zoom = this._map.getZoom();
                    for (var i = inputs.length - 1; i >= 0; i--) {
                        input = inputs[i];
                        layer = this._getLayer(input.layerId).layer;
                        input.disabled = (layer.options.minZoom !== undefined && zoom < layer.options.minZoom) ||
                            (layer.options.maxZoom !== undefined && zoom > layer.options.maxZoom);
                    }
                },
                _expandIfNotCollapsed: function () {
                    if (this._map && !this.options.collapsed) {
                        this.expand();
                    }
                    return this;
                },
                _expand: function () {
                    // Backward compatibility, remove me in 1.1.
                    return this.expand();
                },
                _collapse: function () {
                    // Backward compatibility, remove me in 1.1.
                    return this.collapse();
                }
            });
            // @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)
            // Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
            var layers = function (baseLayers, overlays, options) {
                return new Layers(baseLayers, overlays, options);
            };
            /*
             * @class Control.Zoom
             * @aka L.Control.Zoom
             * @inherits Control
             *
             * A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its [`zoomControl` option](#map-zoomcontrol) to `false`. Extends `Control`.
             */
            var Zoom = Control.extend({
                // @section
                // @aka Control.Zoom options
                options: {
                    position: 'topleft',
                    // @option zoomInText: String = '+'
                    // The text set on the 'zoom in' button.
                    zoomInText: '+',
                    // @option zoomInTitle: String = 'Zoom in'
                    // The title set on the 'zoom in' button.
                    zoomInTitle: 'Zoom in',
                    // @option zoomOutText: String = '&#x2212;'
                    // The text set on the 'zoom out' button.
                    zoomOutText: '&#x2212;',
                    // @option zoomOutTitle: String = 'Zoom out'
                    // The title set on the 'zoom out' button.
                    zoomOutTitle: 'Zoom out'
                },
                onAdd: function (map) {
                    var zoomName = 'leaflet-control-zoom', container = create$1('div', zoomName + ' leaflet-bar'), options = this.options;
                    this._zoomInButton = this._createButton(options.zoomInText, options.zoomInTitle, zoomName + '-in', container, this._zoomIn);
                    this._zoomOutButton = this._createButton(options.zoomOutText, options.zoomOutTitle, zoomName + '-out', container, this._zoomOut);
                    this._updateDisabled();
                    map.on('zoomend zoomlevelschange', this._updateDisabled, this);
                    return container;
                },
                onRemove: function (map) {
                    map.off('zoomend zoomlevelschange', this._updateDisabled, this);
                },
                disable: function () {
                    this._disabled = true;
                    this._updateDisabled();
                    return this;
                },
                enable: function () {
                    this._disabled = false;
                    this._updateDisabled();
                    return this;
                },
                _zoomIn: function (e) {
                    if (!this._disabled && this._map._zoom < this._map.getMaxZoom()) {
                        this._map.zoomIn(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));
                    }
                },
                _zoomOut: function (e) {
                    if (!this._disabled && this._map._zoom > this._map.getMinZoom()) {
                        this._map.zoomOut(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));
                    }
                },
                _createButton: function (html, title, className, container, fn) {
                    var link = create$1('a', className, container);
                    link.innerHTML = html;
                    link.href = '#';
                    link.title = title;
                    /*
                     * Will force screen readers like VoiceOver to read this as "Zoom in - button"
                     */
                    link.setAttribute('role', 'button');
                    link.setAttribute('aria-label', title);
                    disableClickPropagation(link);
                    on(link, 'click', stop);
                    on(link, 'click', fn, this);
                    on(link, 'click', this._refocusOnMap, this);
                    return link;
                },
                _updateDisabled: function () {
                    var map = this._map, className = 'leaflet-disabled';
                    removeClass(this._zoomInButton, className);
                    removeClass(this._zoomOutButton, className);
                    if (this._disabled || map._zoom === map.getMinZoom()) {
                        addClass(this._zoomOutButton, className);
                    }
                    if (this._disabled || map._zoom === map.getMaxZoom()) {
                        addClass(this._zoomInButton, className);
                    }
                }
            });
            // @namespace Map
            // @section Control options
            // @option zoomControl: Boolean = true
            // Whether a [zoom control](#control-zoom) is added to the map by default.
            Map.mergeOptions({
                zoomControl: true
            });
            Map.addInitHook(function () {
                if (this.options.zoomControl) {
                    // @section Controls
                    // @property zoomControl: Control.Zoom
                    // The default zoom control (only available if the
                    // [`zoomControl` option](#map-zoomcontrol) was `true` when creating the map).
                    this.zoomControl = new Zoom();
                    this.addControl(this.zoomControl);
                }
            });
            // @namespace Control.Zoom
            // @factory L.control.zoom(options: Control.Zoom options)
            // Creates a zoom control
            var zoom = function (options) {
                return new Zoom(options);
            };
            /*
             * @class Control.Scale
             * @aka L.Control.Scale
             * @inherits Control
             *
             * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.
             *
             * @example
             *
             * ```js
             * L.control.scale().addTo(map);
             * ```
             */
            var Scale = Control.extend({
                // @section
                // @aka Control.Scale options
                options: {
                    position: 'bottomleft',
                    // @option maxWidth: Number = 100
                    // Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).
                    maxWidth: 100,
                    // @option metric: Boolean = True
                    // Whether to show the metric scale line (m/km).
                    metric: true,
                    // @option imperial: Boolean = True
                    // Whether to show the imperial scale line (mi/ft).
                    imperial: true
                    // @option updateWhenIdle: Boolean = false
                    // If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).
                },
                onAdd: function (map) {
                    var className = 'leaflet-control-scale', container = create$1('div', className), options = this.options;
                    this._addScales(options, className + '-line', container);
                    map.on(options.updateWhenIdle ? 'moveend' : 'move', this._update, this);
                    map.whenReady(this._update, this);
                    return container;
                },
                onRemove: function (map) {
                    map.off(this.options.updateWhenIdle ? 'moveend' : 'move', this._update, this);
                },
                _addScales: function (options, className, container) {
                    if (options.metric) {
                        this._mScale = create$1('div', className, container);
                    }
                    if (options.imperial) {
                        this._iScale = create$1('div', className, container);
                    }
                },
                _update: function () {
                    var map = this._map, y = map.getSize().y / 2;
                    var maxMeters = map.distance(map.containerPointToLatLng([0, y]), map.containerPointToLatLng([this.options.maxWidth, y]));
                    this._updateScales(maxMeters);
                },
                _updateScales: function (maxMeters) {
                    if (this.options.metric && maxMeters) {
                        this._updateMetric(maxMeters);
                    }
                    if (this.options.imperial && maxMeters) {
                        this._updateImperial(maxMeters);
                    }
                },
                _updateMetric: function (maxMeters) {
                    var meters = this._getRoundNum(maxMeters), label = meters < 1000 ? meters + ' m' : (meters / 1000) + ' km';
                    this._updateScale(this._mScale, label, meters / maxMeters);
                },
                _updateImperial: function (maxMeters) {
                    var maxFeet = maxMeters * 3.2808399, maxMiles, miles, feet;
                    if (maxFeet > 5280) {
                        maxMiles = maxFeet / 5280;
                        miles = this._getRoundNum(maxMiles);
                        this._updateScale(this._iScale, miles + ' mi', miles / maxMiles);
                    }
                    else {
                        feet = this._getRoundNum(maxFeet);
                        this._updateScale(this._iScale, feet + ' ft', feet / maxFeet);
                    }
                },
                _updateScale: function (scale, text, ratio) {
                    scale.style.width = Math.round(this.options.maxWidth * ratio) + 'px';
                    scale.innerHTML = text;
                },
                _getRoundNum: function (num) {
                    var pow10 = Math.pow(10, (Math.floor(num) + '').length - 1), d = num / pow10;
                    d = d >= 10 ? 10 :
                        d >= 5 ? 5 :
                            d >= 3 ? 3 :
                                d >= 2 ? 2 : 1;
                    return pow10 * d;
                }
            });
            // @factory L.control.scale(options?: Control.Scale options)
            // Creates an scale control with the given options.
            var scale = function (options) {
                return new Scale(options);
            };
            /*
             * @class Control.Attribution
             * @aka L.Control.Attribution
             * @inherits Control
             *
             * The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its [`attributionControl` option](#map-attributioncontrol) to `false`, and it fetches attribution texts from layers with the [`getAttribution` method](#layer-getattribution) automatically. Extends Control.
             */
            var Attribution = Control.extend({
                // @section
                // @aka Control.Attribution options
                options: {
                    position: 'bottomright',
                    // @option prefix: String = 'Leaflet'
                    // The HTML text shown before the attributions. Pass `false` to disable.
                    prefix: '<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'
                },
                initialize: function (options) {
                    setOptions(this, options);
                    this._attributions = {};
                },
                onAdd: function (map) {
                    map.attributionControl = this;
                    this._container = create$1('div', 'leaflet-control-attribution');
                    disableClickPropagation(this._container);
                    // TODO ugly, refactor
                    for (var i in map._layers) {
                        if (map._layers[i].getAttribution) {
                            this.addAttribution(map._layers[i].getAttribution());
                        }
                    }
                    this._update();
                    return this._container;
                },
                // @method setPrefix(prefix: String): this
                // Sets the text before the attributions.
                setPrefix: function (prefix) {
                    this.options.prefix = prefix;
                    this._update();
                    return this;
                },
                // @method addAttribution(text: String): this
                // Adds an attribution text (e.g. `'Vector data &copy; Mapbox'`).
                addAttribution: function (text) {
                    if (!text) {
                        return this;
                    }
                    if (!this._attributions[text]) {
                        this._attributions[text] = 0;
                    }
                    this._attributions[text]++;
                    this._update();
                    return this;
                },
                // @method removeAttribution(text: String): this
                // Removes an attribution text.
                removeAttribution: function (text) {
                    if (!text) {
                        return this;
                    }
                    if (this._attributions[text]) {
                        this._attributions[text]--;
                        this._update();
                    }
                    return this;
                },
                _update: function () {
                    if (!this._map) {
                        return;
                    }
                    var attribs = [];
                    for (var i in this._attributions) {
                        if (this._attributions[i]) {
                            attribs.push(i);
                        }
                    }
                    var prefixAndAttribs = [];
                    if (this.options.prefix) {
                        prefixAndAttribs.push(this.options.prefix);
                    }
                    if (attribs.length) {
                        prefixAndAttribs.push(attribs.join(', '));
                    }
                    this._container.innerHTML = prefixAndAttribs.join(' | ');
                }
            });
            // @namespace Map
            // @section Control options
            // @option attributionControl: Boolean = true
            // Whether a [attribution control](#control-attribution) is added to the map by default.
            Map.mergeOptions({
                attributionControl: true
            });
            Map.addInitHook(function () {
                if (this.options.attributionControl) {
                    new Attribution().addTo(this);
                }
            });
            // @namespace Control.Attribution
            // @factory L.control.attribution(options: Control.Attribution options)
            // Creates an attribution control.
            var attribution = function (options) {
                return new Attribution(options);
            };
            Control.Layers = Layers;
            Control.Zoom = Zoom;
            Control.Scale = Scale;
            Control.Attribution = Attribution;
            control.layers = layers;
            control.zoom = zoom;
            control.scale = scale;
            control.attribution = attribution;
            /*
                L.Handler is a base class for handler classes that are used internally to inject
                interaction features like dragging to classes like Map and Marker.
            */
            // @class Handler
            // @aka L.Handler
            // Abstract class for map interaction handlers
            var Handler = Class.extend({
                initialize: function (map) {
                    this._map = map;
                },
                // @method enable(): this
                // Enables the handler
                enable: function () {
                    if (this._enabled) {
                        return this;
                    }
                    this._enabled = true;
                    this.addHooks();
                    return this;
                },
                // @method disable(): this
                // Disables the handler
                disable: function () {
                    if (!this._enabled) {
                        return this;
                    }
                    this._enabled = false;
                    this.removeHooks();
                    return this;
                },
                // @method enabled(): Boolean
                // Returns `true` if the handler is enabled
                enabled: function () {
                    return !!this._enabled;
                }
                // @section Extension methods
                // Classes inheriting from `Handler` must implement the two following methods:
                // @method addHooks()
                // Called when the handler is enabled, should add event hooks.
                // @method removeHooks()
                // Called when the handler is disabled, should remove the event hooks added previously.
            });
            // @section There is static function which can be called without instantiating L.Handler:
            // @function addTo(map: Map, name: String): this
            // Adds a new Handler to the given map with the given name.
            Handler.addTo = function (map, name) {
                map.addHandler(name, this);
                return this;
            };
            var Mixin = { Events: Events };
            /*
             * @class Draggable
             * @aka L.Draggable
             * @inherits Evented
             *
             * A class for making DOM elements draggable (including touch support).
             * Used internally for map and marker dragging. Only works for elements
             * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).
             *
             * @example
             * ```js
             * var draggable = new L.Draggable(elementToDrag);
             * draggable.enable();
             * ```
             */
            var START = touch ? 'touchstart mousedown' : 'mousedown';
            var END = {
                mousedown: 'mouseup',
                touchstart: 'touchend',
                pointerdown: 'touchend',
                MSPointerDown: 'touchend'
            };
            var MOVE = {
                mousedown: 'mousemove',
                touchstart: 'touchmove',
                pointerdown: 'touchmove',
                MSPointerDown: 'touchmove'
            };
            var Draggable = Evented.extend({
                options: {
                    // @section
                    // @aka Draggable options
                    // @option clickTolerance: Number = 3
                    // The max number of pixels a user can shift the mouse pointer during a click
                    // for it to be considered a valid click (as opposed to a mouse drag).
                    clickTolerance: 3
                },
                // @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
                // Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
                initialize: function (element, dragStartTarget, preventOutline$$1, options) {
                    setOptions(this, options);
                    this._element = element;
                    this._dragStartTarget = dragStartTarget || element;
                    this._preventOutline = preventOutline$$1;
                },
                // @method enable()
                // Enables the dragging ability
                enable: function () {
                    if (this._enabled) {
                        return;
                    }
                    on(this._dragStartTarget, START, this._onDown, this);
                    this._enabled = true;
                },
                // @method disable()
                // Disables the dragging ability
                disable: function () {
                    if (!this._enabled) {
                        return;
                    }
                    // If we're currently dragging this draggable,
                    // disabling it counts as first ending the drag.
                    if (Draggable._dragging === this) {
                        this.finishDrag();
                    }
                    off(this._dragStartTarget, START, this._onDown, this);
                    this._enabled = false;
                    this._moved = false;
                },
                _onDown: function (e) {
                    // Ignore simulated events, since we handle both touch and
                    // mouse explicitly; otherwise we risk getting duplicates of
                    // touch events, see #4315.
                    // Also ignore the event if disabled; this happens in IE11
                    // under some circumstances, see #3666.
                    if (e._simulated || !this._enabled) {
                        return;
                    }
                    this._moved = false;
                    if (hasClass(this._element, 'leaflet-zoom-anim')) {
                        return;
                    }
                    if (Draggable._dragging || e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) {
                        return;
                    }
                    Draggable._dragging = this; // Prevent dragging multiple objects at once.
                    if (this._preventOutline) {
                        preventOutline(this._element);
                    }
                    disableImageDrag();
                    disableTextSelection();
                    if (this._moving) {
                        return;
                    }
                    // @event down: Event
                    // Fired when a drag is about to start.
                    this.fire('down');
                    var first = e.touches ? e.touches[0] : e, sizedParent = getSizedParentNode(this._element);
                    this._startPoint = new Point(first.clientX, first.clientY);
                    // Cache the scale, so that we can continuously compensate for it during drag (_onMove).
                    this._parentScale = getScale(sizedParent);
                    on(document, MOVE[e.type], this._onMove, this);
                    on(document, END[e.type], this._onUp, this);
                },
                _onMove: function (e) {
                    // Ignore simulated events, since we handle both touch and
                    // mouse explicitly; otherwise we risk getting duplicates of
                    // touch events, see #4315.
                    // Also ignore the event if disabled; this happens in IE11
                    // under some circumstances, see #3666.
                    if (e._simulated || !this._enabled) {
                        return;
                    }
                    if (e.touches && e.touches.length > 1) {
                        this._moved = true;
                        return;
                    }
                    var first = (e.touches && e.touches.length === 1 ? e.touches[0] : e), offset = new Point(first.clientX, first.clientY)._subtract(this._startPoint);
                    if (!offset.x && !offset.y) {
                        return;
                    }
                    if (Math.abs(offset.x) + Math.abs(offset.y) < this.options.clickTolerance) {
                        return;
                    }
                    // We assume that the parent container's position, border and scale do not change for the duration of the drag.
                    // Therefore there is no need to account for the position and border (they are eliminated by the subtraction)
                    // and we can use the cached value for the scale.
                    offset.x /= this._parentScale.x;
                    offset.y /= this._parentScale.y;
                    preventDefault(e);
                    if (!this._moved) {
                        // @event dragstart: Event
                        // Fired when a drag starts
                        this.fire('dragstart');
                        this._moved = true;
                        this._startPos = getPosition(this._element).subtract(offset);
                        addClass(document.body, 'leaflet-dragging');
                        this._lastTarget = e.target || e.srcElement;
                        // IE and Edge do not give the <use> element, so fetch it
                        // if necessary
                        if ((window.SVGElementInstance) && (this._lastTarget instanceof SVGElementInstance)) {
                            this._lastTarget = this._lastTarget.correspondingUseElement;
                        }
                        addClass(this._lastTarget, 'leaflet-drag-target');
                    }
                    this._newPos = this._startPos.add(offset);
                    this._moving = true;
                    cancelAnimFrame(this._animRequest);
                    this._lastEvent = e;
                    this._animRequest = requestAnimFrame(this._updatePosition, this, true);
                },
                _updatePosition: function () {
                    var e = { originalEvent: this._lastEvent };
                    // @event predrag: Event
                    // Fired continuously during dragging *before* each corresponding
                    // update of the element's position.
                    this.fire('predrag', e);
                    setPosition(this._element, this._newPos);
                    // @event drag: Event
                    // Fired continuously during dragging.
                    this.fire('drag', e);
                },
                _onUp: function (e) {
                    // Ignore simulated events, since we handle both touch and
                    // mouse explicitly; otherwise we risk getting duplicates of
                    // touch events, see #4315.
                    // Also ignore the event if disabled; this happens in IE11
                    // under some circumstances, see #3666.
                    if (e._simulated || !this._enabled) {
                        return;
                    }
                    this.finishDrag();
                },
                finishDrag: function () {
                    removeClass(document.body, 'leaflet-dragging');
                    if (this._lastTarget) {
                        removeClass(this._lastTarget, 'leaflet-drag-target');
                        this._lastTarget = null;
                    }
                    for (var i in MOVE) {
                        off(document, MOVE[i], this._onMove, this);
                        off(document, END[i], this._onUp, this);
                    }
                    enableImageDrag();
                    enableTextSelection();
                    if (this._moved && this._moving) {
                        // ensure drag is not fired after dragend
                        cancelAnimFrame(this._animRequest);
                        // @event dragend: DragEndEvent
                        // Fired when the drag ends.
                        this.fire('dragend', {
                            distance: this._newPos.distanceTo(this._startPos)
                        });
                    }
                    this._moving = false;
                    Draggable._dragging = false;
                }
            });
            /*
             * @namespace LineUtil
             *
             * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.
             */
            // Simplify polyline with vertex reduction and Douglas-Peucker simplification.
            // Improves rendering performance dramatically by lessening the number of points to draw.
            // @function simplify(points: Point[], tolerance: Number): Point[]
            // Dramatically reduces the number of points in a polyline while retaining
            // its shape and returns a new array of simplified points, using the
            // [Douglas-Peucker algorithm](http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm).
            // Used for a huge performance boost when processing/displaying Leaflet polylines for
            // each zoom level and also reducing visual noise. tolerance affects the amount of
            // simplification (lesser value means higher quality but slower and with more points).
            // Also released as a separated micro-library [Simplify.js](http://mourner.github.com/simplify-js/).
            function simplify(points, tolerance) {
                if (!tolerance || !points.length) {
                    return points.slice();
                }
                var sqTolerance = tolerance * tolerance;
                // stage 1: vertex reduction
                points = _reducePoints(points, sqTolerance);
                // stage 2: Douglas-Peucker simplification
                points = _simplifyDP(points, sqTolerance);
                return points;
            }
            // @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number
            // Returns the distance between point `p` and segment `p1` to `p2`.
            function pointToSegmentDistance(p, p1, p2) {
                return Math.sqrt(_sqClosestPointOnSegment(p, p1, p2, true));
            }
            // @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number
            // Returns the closest point from a point `p` on a segment `p1` to `p2`.
            function closestPointOnSegment(p, p1, p2) {
                return _sqClosestPointOnSegment(p, p1, p2);
            }
            // Douglas-Peucker simplification, see http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm
            function _simplifyDP(points, sqTolerance) {
                var len = points.length, ArrayConstructor = typeof Uint8Array !== undefined + '' ? Uint8Array : Array, markers = new ArrayConstructor(len);
                markers[0] = markers[len - 1] = 1;
                _simplifyDPStep(points, markers, sqTolerance, 0, len - 1);
                var i, newPoints = [];
                for (i = 0; i < len; i++) {
                    if (markers[i]) {
                        newPoints.push(points[i]);
                    }
                }
                return newPoints;
            }
            function _simplifyDPStep(points, markers, sqTolerance, first, last) {
                var maxSqDist = 0, index, i, sqDist;
                for (i = first + 1; i <= last - 1; i++) {
                    sqDist = _sqClosestPointOnSegment(points[i], points[first], points[last], true);
                    if (sqDist > maxSqDist) {
                        index = i;
                        maxSqDist = sqDist;
                    }
                }
                if (maxSqDist > sqTolerance) {
                    markers[index] = 1;
                    _simplifyDPStep(points, markers, sqTolerance, first, index);
                    _simplifyDPStep(points, markers, sqTolerance, index, last);
                }
            }
            // reduce points that are too close to each other to a single point
            function _reducePoints(points, sqTolerance) {
                var reducedPoints = [points[0]];
                for (var i = 1, prev = 0, len = points.length; i < len; i++) {
                    if (_sqDist(points[i], points[prev]) > sqTolerance) {
                        reducedPoints.push(points[i]);
                        prev = i;
                    }
                }
                if (prev < len - 1) {
                    reducedPoints.push(points[len - 1]);
                }
                return reducedPoints;
            }
            var _lastCode;
            // @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean
            // Clips the segment a to b by rectangular bounds with the
            // [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)
            // (modifying the segment points directly!). Used by Leaflet to only show polyline
            // points that are on the screen or near, increasing performance.
            function clipSegment(a, b, bounds, useLastCode, round) {
                var codeA = useLastCode ? _lastCode : _getBitCode(a, bounds), codeB = _getBitCode(b, bounds), codeOut, p, newCode;
                // save 2nd code to avoid calculating it on the next segment
                _lastCode = codeB;
                while (true) {
                    // if a,b is inside the clip window (trivial accept)
                    if (!(codeA | codeB)) {
                        return [a, b];
                    }
                    // if a,b is outside the clip window (trivial reject)
                    if (codeA & codeB) {
                        return false;
                    }
                    // other cases
                    codeOut = codeA || codeB;
                    p = _getEdgeIntersection(a, b, codeOut, bounds, round);
                    newCode = _getBitCode(p, bounds);
                    if (codeOut === codeA) {
                        a = p;
                        codeA = newCode;
                    }
                    else {
                        b = p;
                        codeB = newCode;
                    }
                }
            }
            function _getEdgeIntersection(a, b, code, bounds, round) {
                var dx = b.x - a.x, dy = b.y - a.y, min = bounds.min, max = bounds.max, x, y;
                if (code & 8) { // top
                    x = a.x + dx * (max.y - a.y) / dy;
                    y = max.y;
                }
                else if (code & 4) { // bottom
                    x = a.x + dx * (min.y - a.y) / dy;
                    y = min.y;
                }
                else if (code & 2) { // right
                    x = max.x;
                    y = a.y + dy * (max.x - a.x) / dx;
                }
                else if (code & 1) { // left
                    x = min.x;
                    y = a.y + dy * (min.x - a.x) / dx;
                }
                return new Point(x, y, round);
            }
            function _getBitCode(p, bounds) {
                var code = 0;
                if (p.x < bounds.min.x) { // left
                    code |= 1;
                }
                else if (p.x > bounds.max.x) { // right
                    code |= 2;
                }
                if (p.y < bounds.min.y) { // bottom
                    code |= 4;
                }
                else if (p.y > bounds.max.y) { // top
                    code |= 8;
                }
                return code;
            }
            // square distance (to avoid unnecessary Math.sqrt calls)
            function _sqDist(p1, p2) {
                var dx = p2.x - p1.x, dy = p2.y - p1.y;
                return dx * dx + dy * dy;
            }
            // return closest point on segment or distance to that point
            function _sqClosestPointOnSegment(p, p1, p2, sqDist) {
                var x = p1.x, y = p1.y, dx = p2.x - x, dy = p2.y - y, dot = dx * dx + dy * dy, t;
                if (dot > 0) {
                    t = ((p.x - x) * dx + (p.y - y) * dy) / dot;
                    if (t > 1) {
                        x = p2.x;
                        y = p2.y;
                    }
                    else if (t > 0) {
                        x += dx * t;
                        y += dy * t;
                    }
                }
                dx = p.x - x;
                dy = p.y - y;
                return sqDist ? dx * dx + dy * dy : new Point(x, y);
            }
            // @function isFlat(latlngs: LatLng[]): Boolean
            // Returns true if `latlngs` is a flat array, false is nested.
            function isFlat(latlngs) {
                return !isArray(latlngs[0]) || (typeof latlngs[0][0] !== 'object' && typeof latlngs[0][0] !== 'undefined');
            }
            function _flat(latlngs) {
                console.warn('Deprecated use of _flat, please use L.LineUtil.isFlat instead.');
                return isFlat(latlngs);
            }
            var LineUtil = (Object.freeze || Object)({
                simplify: simplify,
                pointToSegmentDistance: pointToSegmentDistance,
                closestPointOnSegment: closestPointOnSegment,
                clipSegment: clipSegment,
                _getEdgeIntersection: _getEdgeIntersection,
                _getBitCode: _getBitCode,
                _sqClosestPointOnSegment: _sqClosestPointOnSegment,
                isFlat: isFlat,
                _flat: _flat
            });
            /*
             * @namespace PolyUtil
             * Various utility functions for polygon geometries.
             */
            /* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]
             * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).
             * Used by Leaflet to only show polygon points that are on the screen or near, increasing
             * performance. Note that polygon points needs different algorithm for clipping
             * than polyline, so there's a separate method for it.
             */
            function clipPolygon(points, bounds, round) {
                var clippedPoints, edges = [1, 4, 2, 8], i, j, k, a, b, len, edge, p;
                for (i = 0, len = points.length; i < len; i++) {
                    points[i]._code = _getBitCode(points[i], bounds);
                }
                // for each edge (left, bottom, right, top)
                for (k = 0; k < 4; k++) {
                    edge = edges[k];
                    clippedPoints = [];
                    for (i = 0, len = points.length, j = len - 1; i < len; j = i++) {
                        a = points[i];
                        b = points[j];
                        // if a is inside the clip window
                        if (!(a._code & edge)) {
                            // if b is outside the clip window (a->b goes out of screen)
                            if (b._code & edge) {
                                p = _getEdgeIntersection(b, a, edge, bounds, round);
                                p._code = _getBitCode(p, bounds);
                                clippedPoints.push(p);
                            }
                            clippedPoints.push(a);
                            // else if b is inside the clip window (a->b enters the screen)
                        }
                        else if (!(b._code & edge)) {
                            p = _getEdgeIntersection(b, a, edge, bounds, round);
                            p._code = _getBitCode(p, bounds);
                            clippedPoints.push(p);
                        }
                    }
                    points = clippedPoints;
                }
                return points;
            }
            var PolyUtil = (Object.freeze || Object)({
                clipPolygon: clipPolygon
            });
            /*
             * @namespace Projection
             * @section
             * Leaflet comes with a set of already defined Projections out of the box:
             *
             * @projection L.Projection.LonLat
             *
             * Equirectangular, or Plate Carree projection — the most simple projection,
             * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as
             * latitude. Also suitable for flat worlds, e.g. game maps. Used by the
             * `EPSG:4326` and `Simple` CRS.
             */
            var LonLat = {
                project: function (latlng) {
                    return new Point(latlng.lng, latlng.lat);
                },
                unproject: function (point) {
                    return new LatLng(point.y, point.x);
                },
                bounds: new Bounds([-180, -90], [180, 90])
            };
            /*
             * @namespace Projection
             * @projection L.Projection.Mercator
             *
             * Elliptical Mercator projection — more complex than Spherical Mercator. Takes into account that Earth is a geoid, not a perfect sphere. Used by the EPSG:3395 CRS.
             */
            var Mercator = {
                R: 6378137,
                R_MINOR: 6356752.314245179,
                bounds: new Bounds([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
                project: function (latlng) {
                    var d = Math.PI / 180, r = this.R, y = latlng.lat * d, tmp = this.R_MINOR / r, e = Math.sqrt(1 - tmp * tmp), con = e * Math.sin(y);
                    var ts = Math.tan(Math.PI / 4 - y / 2) / Math.pow((1 - con) / (1 + con), e / 2);
                    y = -r * Math.log(Math.max(ts, 1E-10));
                    return new Point(latlng.lng * d * r, y);
                },
                unproject: function (point) {
                    var d = 180 / Math.PI, r = this.R, tmp = this.R_MINOR / r, e = Math.sqrt(1 - tmp * tmp), ts = Math.exp(-point.y / r), phi = Math.PI / 2 - 2 * Math.atan(ts);
                    for (var i = 0, dphi = 0.1, con; i < 15 && Math.abs(dphi) > 1e-7; i++) {
                        con = e * Math.sin(phi);
                        con = Math.pow((1 - con) / (1 + con), e / 2);
                        dphi = Math.PI / 2 - 2 * Math.atan(ts * con) - phi;
                        phi += dphi;
                    }
                    return new LatLng(phi * d, point.x * d / r);
                }
            };
            /*
             * @class Projection
            
             * An object with methods for projecting geographical coordinates of the world onto
             * a flat surface (and back). See [Map projection](http://en.wikipedia.org/wiki/Map_projection).
            
             * @property bounds: Bounds
             * The bounds (specified in CRS units) where the projection is valid
            
             * @method project(latlng: LatLng): Point
             * Projects geographical coordinates into a 2D point.
             * Only accepts actual `L.LatLng` instances, not arrays.
            
             * @method unproject(point: Point): LatLng
             * The inverse of `project`. Projects a 2D point into a geographical location.
             * Only accepts actual `L.Point` instances, not arrays.
            
             * Note that the projection instances do not inherit from Leafet's `Class` object,
             * and can't be instantiated. Also, new classes can't inherit from them,
             * and methods can't be added to them with the `include` function.
            
             */
            var index = (Object.freeze || Object)({
                LonLat: LonLat,
                Mercator: Mercator,
                SphericalMercator: SphericalMercator
            });
            /*
             * @namespace CRS
             * @crs L.CRS.EPSG3395
             *
             * Rarely used by some commercial tile providers. Uses Elliptical Mercator projection.
             */
            var EPSG3395 = extend({}, Earth, {
                code: 'EPSG:3395',
                projection: Mercator,
                transformation: (function () {
                    var scale = 0.5 / (Math.PI * Mercator.R);
                    return toTransformation(scale, 0.5, -scale, 0.5);
                }())
            });
            /*
             * @namespace CRS
             * @crs L.CRS.EPSG4326
             *
             * A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
             *
             * Leaflet 1.0.x complies with the [TMS coordinate scheme for EPSG:4326](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic),
             * which is a breaking change from 0.7.x behaviour.  If you are using a `TileLayer`
             * with this CRS, ensure that there are two 256x256 pixel tiles covering the
             * whole earth at zoom level zero, and that the tile coordinate origin is (-180,+90),
             * or (-180,-90) for `TileLayer`s with [the `tms` option](#tilelayer-tms) set.
             */
            var EPSG4326 = extend({}, Earth, {
                code: 'EPSG:4326',
                projection: LonLat,
                transformation: toTransformation(1 / 180, 1, -1 / 180, 0.5)
            });
            /*
             * @namespace CRS
             * @crs L.CRS.Simple
             *
             * A simple CRS that maps longitude and latitude into `x` and `y` directly.
             * May be used for maps of flat surfaces (e.g. game maps). Note that the `y`
             * axis should still be inverted (going from bottom to top). `distance()` returns
             * simple euclidean distance.
             */
            var Simple = extend({}, CRS, {
                projection: LonLat,
                transformation: toTransformation(1, 0, -1, 0),
                scale: function (zoom) {
                    return Math.pow(2, zoom);
                },
                zoom: function (scale) {
                    return Math.log(scale) / Math.LN2;
                },
                distance: function (latlng1, latlng2) {
                    var dx = latlng2.lng - latlng1.lng, dy = latlng2.lat - latlng1.lat;
                    return Math.sqrt(dx * dx + dy * dy);
                },
                infinite: true
            });
            CRS.Earth = Earth;
            CRS.EPSG3395 = EPSG3395;
            CRS.EPSG3857 = EPSG3857;
            CRS.EPSG900913 = EPSG900913;
            CRS.EPSG4326 = EPSG4326;
            CRS.Simple = Simple;
            /*
             * @class Layer
             * @inherits Evented
             * @aka L.Layer
             * @aka ILayer
             *
             * A set of methods from the Layer base class that all Leaflet layers use.
             * Inherits all methods, options and events from `L.Evented`.
             *
             * @example
             *
             * ```js
             * var layer = L.Marker(latlng).addTo(map);
             * layer.addTo(map);
             * layer.remove();
             * ```
             *
             * @event add: Event
             * Fired after the layer is added to a map
             *
             * @event remove: Event
             * Fired after the layer is removed from a map
             */
            var Layer = Evented.extend({
                // Classes extending `L.Layer` will inherit the following options:
                options: {
                    // @option pane: String = 'overlayPane'
                    // By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.
                    pane: 'overlayPane',
                    // @option attribution: String = null
                    // String to be shown in the attribution control, describes the layer data, e.g. "© Mapbox".
                    attribution: null,
                    bubblingMouseEvents: true
                },
                /* @section
                 * Classes extending `L.Layer` will inherit the following methods:
                 *
                 * @method addTo(map: Map|LayerGroup): this
                 * Adds the layer to the given map or layer group.
                 */
                addTo: function (map) {
                    map.addLayer(this);
                    return this;
                },
                // @method remove: this
                // Removes the layer from the map it is currently active on.
                remove: function () {
                    return this.removeFrom(this._map || this._mapToAdd);
                },
                // @method removeFrom(map: Map): this
                // Removes the layer from the given map
                removeFrom: function (obj) {
                    if (obj) {
                        obj.removeLayer(this);
                    }
                    return this;
                },
                // @method getPane(name? : String): HTMLElement
                // Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.
                getPane: function (name) {
                    return this._map.getPane(name ? (this.options[name] || name) : this.options.pane);
                },
                addInteractiveTarget: function (targetEl) {
                    this._map._targets[stamp(targetEl)] = this;
                    return this;
                },
                removeInteractiveTarget: function (targetEl) {
                    delete this._map._targets[stamp(targetEl)];
                    return this;
                },
                // @method getAttribution: String
                // Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).
                getAttribution: function () {
                    return this.options.attribution;
                },
                _layerAdd: function (e) {
                    var map = e.target;
                    // check in case layer gets added and then removed before the map is ready
                    if (!map.hasLayer(this)) {
                        return;
                    }
                    this._map = map;
                    this._zoomAnimated = map._zoomAnimated;
                    if (this.getEvents) {
                        var events = this.getEvents();
                        map.on(events, this);
                        this.once('remove', function () {
                            map.off(events, this);
                        }, this);
                    }
                    this.onAdd(map);
                    if (this.getAttribution && map.attributionControl) {
                        map.attributionControl.addAttribution(this.getAttribution());
                    }
                    this.fire('add');
                    map.fire('layeradd', { layer: this });
                }
            });
            /* @section Extension methods
             * @uninheritable
             *
             * Every layer should extend from `L.Layer` and (re-)implement the following methods.
             *
             * @method onAdd(map: Map): this
             * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).
             *
             * @method onRemove(map: Map): this
             * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).
             *
             * @method getEvents(): Object
             * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.
             *
             * @method getAttribution(): String
             * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.
             *
             * @method beforeAdd(map: Map): this
             * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.
             */
            /* @namespace Map
             * @section Layer events
             *
             * @event layeradd: LayerEvent
             * Fired when a new layer is added to the map.
             *
             * @event layerremove: LayerEvent
             * Fired when some layer is removed from the map
             *
             * @section Methods for Layers and Controls
             */
            Map.include({
                // @method addLayer(layer: Layer): this
                // Adds the given layer to the map
                addLayer: function (layer) {
                    if (!layer._layerAdd) {
                        throw new Error('The provided object is not a Layer.');
                    }
                    var id = stamp(layer);
                    if (this._layers[id]) {
                        return this;
                    }
                    this._layers[id] = layer;
                    layer._mapToAdd = this;
                    if (layer.beforeAdd) {
                        layer.beforeAdd(this);
                    }
                    this.whenReady(layer._layerAdd, layer);
                    return this;
                },
                // @method removeLayer(layer: Layer): this
                // Removes the given layer from the map.
                removeLayer: function (layer) {
                    var id = stamp(layer);
                    if (!this._layers[id]) {
                        return this;
                    }
                    if (this._loaded) {
                        layer.onRemove(this);
                    }
                    if (layer.getAttribution && this.attributionControl) {
                        this.attributionControl.removeAttribution(layer.getAttribution());
                    }
                    delete this._layers[id];
                    if (this._loaded) {
                        this.fire('layerremove', { layer: layer });
                        layer.fire('remove');
                    }
                    layer._map = layer._mapToAdd = null;
                    return this;
                },
                // @method hasLayer(layer: Layer): Boolean
                // Returns `true` if the given layer is currently added to the map
                hasLayer: function (layer) {
                    return !!layer && (stamp(layer) in this._layers);
                },
                /* @method eachLayer(fn: Function, context?: Object): this
                 * Iterates over the layers of the map, optionally specifying context of the iterator function.
                 * ```
                 * map.eachLayer(function(layer){
                 *     layer.bindPopup('Hello');
                 * });
                 * ```
                 */
                eachLayer: function (method, context) {
                    for (var i in this._layers) {
                        method.call(context, this._layers[i]);
                    }
                    return this;
                },
                _addLayers: function (layers) {
                    layers = layers ? (isArray(layers) ? layers : [layers]) : [];
                    for (var i = 0, len = layers.length; i < len; i++) {
                        this.addLayer(layers[i]);
                    }
                },
                _addZoomLimit: function (layer) {
                    if (isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom)) {
                        this._zoomBoundLayers[stamp(layer)] = layer;
                        this._updateZoomLevels();
                    }
                },
                _removeZoomLimit: function (layer) {
                    var id = stamp(layer);
                    if (this._zoomBoundLayers[id]) {
                        delete this._zoomBoundLayers[id];
                        this._updateZoomLevels();
                    }
                },
                _updateZoomLevels: function () {
                    var minZoom = Infinity, maxZoom = -Infinity, oldZoomSpan = this._getZoomSpan();
                    for (var i in this._zoomBoundLayers) {
                        var options = this._zoomBoundLayers[i].options;
                        minZoom = options.minZoom === undefined ? minZoom : Math.min(minZoom, options.minZoom);
                        maxZoom = options.maxZoom === undefined ? maxZoom : Math.max(maxZoom, options.maxZoom);
                    }
                    this._layersMaxZoom = maxZoom === -Infinity ? undefined : maxZoom;
                    this._layersMinZoom = minZoom === Infinity ? undefined : minZoom;
                    // @section Map state change events
                    // @event zoomlevelschange: Event
                    // Fired when the number of zoomlevels on the map is changed due
                    // to adding or removing a layer.
                    if (oldZoomSpan !== this._getZoomSpan()) {
                        this.fire('zoomlevelschange');
                    }
                    if (this.options.maxZoom === undefined && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom) {
                        this.setZoom(this._layersMaxZoom);
                    }
                    if (this.options.minZoom === undefined && this._layersMinZoom && this.getZoom() < this._layersMinZoom) {
                        this.setZoom(this._layersMinZoom);
                    }
                }
            });
            /*
             * @class LayerGroup
             * @aka L.LayerGroup
             * @inherits Layer
             *
             * Used to group several layers and handle them as one. If you add it to the map,
             * any layers added or removed from the group will be added/removed on the map as
             * well. Extends `Layer`.
             *
             * @example
             *
             * ```js
             * L.layerGroup([marker1, marker2])
             * 	.addLayer(polyline)
             * 	.addTo(map);
             * ```
             */
            var LayerGroup = Layer.extend({
                initialize: function (layers, options) {
                    setOptions(this, options);
                    this._layers = {};
                    var i, len;
                    if (layers) {
                        for (i = 0, len = layers.length; i < len; i++) {
                            this.addLayer(layers[i]);
                        }
                    }
                },
                // @method addLayer(layer: Layer): this
                // Adds the given layer to the group.
                addLayer: function (layer) {
                    var id = this.getLayerId(layer);
                    this._layers[id] = layer;
                    if (this._map) {
                        this._map.addLayer(layer);
                    }
                    return this;
                },
                // @method removeLayer(layer: Layer): this
                // Removes the given layer from the group.
                // @alternative
                // @method removeLayer(id: Number): this
                // Removes the layer with the given internal ID from the group.
                removeLayer: function (layer) {
                    var id = layer in this._layers ? layer : this.getLayerId(layer);
                    if (this._map && this._layers[id]) {
                        this._map.removeLayer(this._layers[id]);
                    }
                    delete this._layers[id];
                    return this;
                },
                // @method hasLayer(layer: Layer): Boolean
                // Returns `true` if the given layer is currently added to the group.
                // @alternative
                // @method hasLayer(id: Number): Boolean
                // Returns `true` if the given internal ID is currently added to the group.
                hasLayer: function (layer) {
                    return !!layer && (layer in this._layers || this.getLayerId(layer) in this._layers);
                },
                // @method clearLayers(): this
                // Removes all the layers from the group.
                clearLayers: function () {
                    return this.eachLayer(this.removeLayer, this);
                },
                // @method invoke(methodName: String, …): this
                // Calls `methodName` on every layer contained in this group, passing any
                // additional parameters. Has no effect if the layers contained do not
                // implement `methodName`.
                invoke: function (methodName) {
                    var args = Array.prototype.slice.call(arguments, 1), i, layer;
                    for (i in this._layers) {
                        layer = this._layers[i];
                        if (layer[methodName]) {
                            layer[methodName].apply(layer, args);
                        }
                    }
                    return this;
                },
                onAdd: function (map) {
                    this.eachLayer(map.addLayer, map);
                },
                onRemove: function (map) {
                    this.eachLayer(map.removeLayer, map);
                },
                // @method eachLayer(fn: Function, context?: Object): this
                // Iterates over the layers of the group, optionally specifying context of the iterator function.
                // ```js
                // group.eachLayer(function (layer) {
                // 	layer.bindPopup('Hello');
                // });
                // ```
                eachLayer: function (method, context) {
                    for (var i in this._layers) {
                        method.call(context, this._layers[i]);
                    }
                    return this;
                },
                // @method getLayer(id: Number): Layer
                // Returns the layer with the given internal ID.
                getLayer: function (id) {
                    return this._layers[id];
                },
                // @method getLayers(): Layer[]
                // Returns an array of all the layers added to the group.
                getLayers: function () {
                    var layers = [];
                    this.eachLayer(layers.push, layers);
                    return layers;
                },
                // @method setZIndex(zIndex: Number): this
                // Calls `setZIndex` on every layer contained in this group, passing the z-index.
                setZIndex: function (zIndex) {
                    return this.invoke('setZIndex', zIndex);
                },
                // @method getLayerId(layer: Layer): Number
                // Returns the internal ID for a layer
                getLayerId: function (layer) {
                    return stamp(layer);
                }
            });
            // @factory L.layerGroup(layers?: Layer[], options?: Object)
            // Create a layer group, optionally given an initial set of layers and an `options` object.
            var layerGroup = function (layers, options) {
                return new LayerGroup(layers, options);
            };
            /*
             * @class FeatureGroup
             * @aka L.FeatureGroup
             * @inherits LayerGroup
             *
             * Extended `LayerGroup` that makes it easier to do the same thing to all its member layers:
             *  * [`bindPopup`](#layer-bindpopup) binds a popup to all of the layers at once (likewise with [`bindTooltip`](#layer-bindtooltip))
             *  * Events are propagated to the `FeatureGroup`, so if the group has an event
             * handler, it will handle events from any of the layers. This includes mouse events
             * and custom events.
             *  * Has `layeradd` and `layerremove` events
             *
             * @example
             *
             * ```js
             * L.featureGroup([marker1, marker2, polyline])
             * 	.bindPopup('Hello world!')
             * 	.on('click', function() { alert('Clicked on a member of the group!'); })
             * 	.addTo(map);
             * ```
             */
            var FeatureGroup = LayerGroup.extend({
                addLayer: function (layer) {
                    if (this.hasLayer(layer)) {
                        return this;
                    }
                    layer.addEventParent(this);
                    LayerGroup.prototype.addLayer.call(this, layer);
                    // @event layeradd: LayerEvent
                    // Fired when a layer is added to this `FeatureGroup`
                    return this.fire('layeradd', { layer: layer });
                },
                removeLayer: function (layer) {
                    if (!this.hasLayer(layer)) {
                        return this;
                    }
                    if (layer in this._layers) {
                        layer = this._layers[layer];
                    }
                    layer.removeEventParent(this);
                    LayerGroup.prototype.removeLayer.call(this, layer);
                    // @event layerremove: LayerEvent
                    // Fired when a layer is removed from this `FeatureGroup`
                    return this.fire('layerremove', { layer: layer });
                },
                // @method setStyle(style: Path options): this
                // Sets the given path options to each layer of the group that has a `setStyle` method.
                setStyle: function (style) {
                    return this.invoke('setStyle', style);
                },
                // @method bringToFront(): this
                // Brings the layer group to the top of all other layers
                bringToFront: function () {
                    return this.invoke('bringToFront');
                },
                // @method bringToBack(): this
                // Brings the layer group to the back of all other layers
                bringToBack: function () {
                    return this.invoke('bringToBack');
                },
                // @method getBounds(): LatLngBounds
                // Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
                getBounds: function () {
                    var bounds = new LatLngBounds();
                    for (var id in this._layers) {
                        var layer = this._layers[id];
                        bounds.extend(layer.getBounds ? layer.getBounds() : layer.getLatLng());
                    }
                    return bounds;
                }
            });
            // @factory L.featureGroup(layers: Layer[])
            // Create a feature group, optionally given an initial set of layers.
            var featureGroup = function (layers) {
                return new FeatureGroup(layers);
            };
            /*
             * @class Icon
             * @aka L.Icon
             *
             * Represents an icon to provide when creating a marker.
             *
             * @example
             *
             * ```js
             * var myIcon = L.icon({
             *     iconUrl: 'my-icon.png',
             *     iconRetinaUrl: 'my-icon@2x.png',
             *     iconSize: [38, 95],
             *     iconAnchor: [22, 94],
             *     popupAnchor: [-3, -76],
             *     shadowUrl: 'my-icon-shadow.png',
             *     shadowRetinaUrl: 'my-icon-shadow@2x.png',
             *     shadowSize: [68, 95],
             *     shadowAnchor: [22, 94]
             * });
             *
             * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
             * ```
             *
             * `L.Icon.Default` extends `L.Icon` and is the blue icon Leaflet uses for markers by default.
             *
             */
            var Icon = Class.extend({
                /* @section
                 * @aka Icon options
                 *
                 * @option iconUrl: String = null
                 * **(required)** The URL to the icon image (absolute or relative to your script path).
                 *
                 * @option iconRetinaUrl: String = null
                 * The URL to a retina sized version of the icon image (absolute or relative to your
                 * script path). Used for Retina screen devices.
                 *
                 * @option iconSize: Point = null
                 * Size of the icon image in pixels.
                 *
                 * @option iconAnchor: Point = null
                 * The coordinates of the "tip" of the icon (relative to its top left corner). The icon
                 * will be aligned so that this point is at the marker's geographical location. Centered
                 * by default if size is specified, also can be set in CSS with negative margins.
                 *
                 * @option popupAnchor: Point = [0, 0]
                 * The coordinates of the point from which popups will "open", relative to the icon anchor.
                 *
                 * @option tooltipAnchor: Point = [0, 0]
                 * The coordinates of the point from which tooltips will "open", relative to the icon anchor.
                 *
                 * @option shadowUrl: String = null
                 * The URL to the icon shadow image. If not specified, no shadow image will be created.
                 *
                 * @option shadowRetinaUrl: String = null
                 *
                 * @option shadowSize: Point = null
                 * Size of the shadow image in pixels.
                 *
                 * @option shadowAnchor: Point = null
                 * The coordinates of the "tip" of the shadow (relative to its top left corner) (the same
                 * as iconAnchor if not specified).
                 *
                 * @option className: String = ''
                 * A custom class name to assign to both icon and shadow images. Empty by default.
                 */
                options: {
                    popupAnchor: [0, 0],
                    tooltipAnchor: [0, 0]
                },
                initialize: function (options) {
                    setOptions(this, options);
                },
                // @method createIcon(oldIcon?: HTMLElement): HTMLElement
                // Called internally when the icon has to be shown, returns a `<img>` HTML element
                // styled according to the options.
                createIcon: function (oldIcon) {
                    return this._createIcon('icon', oldIcon);
                },
                // @method createShadow(oldIcon?: HTMLElement): HTMLElement
                // As `createIcon`, but for the shadow beneath it.
                createShadow: function (oldIcon) {
                    return this._createIcon('shadow', oldIcon);
                },
                _createIcon: function (name, oldIcon) {
                    var src = this._getIconUrl(name);
                    if (!src) {
                        if (name === 'icon') {
                            throw new Error('iconUrl not set in Icon options (see the docs).');
                        }
                        return null;
                    }
                    var img = this._createImg(src, oldIcon && oldIcon.tagName === 'IMG' ? oldIcon : null);
                    this._setIconStyles(img, name);
                    return img;
                },
                _setIconStyles: function (img, name) {
                    var options = this.options;
                    var sizeOption = options[name + 'Size'];
                    if (typeof sizeOption === 'number') {
                        sizeOption = [sizeOption, sizeOption];
                    }
                    var size = toPoint(sizeOption), anchor = toPoint(name === 'shadow' && options.shadowAnchor || options.iconAnchor ||
                        size && size.divideBy(2, true));
                    img.className = 'leaflet-marker-' + name + ' ' + (options.className || '');
                    if (anchor) {
                        img.style.marginLeft = (-anchor.x) + 'px';
                        img.style.marginTop = (-anchor.y) + 'px';
                    }
                    if (size) {
                        img.style.width = size.x + 'px';
                        img.style.height = size.y + 'px';
                    }
                },
                _createImg: function (src, el) {
                    el = el || document.createElement('img');
                    el.src = src;
                    return el;
                },
                _getIconUrl: function (name) {
                    return retina && this.options[name + 'RetinaUrl'] || this.options[name + 'Url'];
                }
            });
            // @factory L.icon(options: Icon options)
            // Creates an icon instance with the given options.
            function icon(options) {
                return new Icon(options);
            }
            /*
             * @miniclass Icon.Default (Icon)
             * @aka L.Icon.Default
             * @section
             *
             * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when
             * no icon is specified. Points to the blue marker image distributed with Leaflet
             * releases.
             *
             * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`
             * (which is a set of `Icon options`).
             *
             * If you want to _completely_ replace the default icon, override the
             * `L.Marker.prototype.options.icon` with your own icon instead.
             */
            var IconDefault = Icon.extend({
                options: {
                    iconUrl: 'marker-icon.png',
                    iconRetinaUrl: 'marker-icon-2x.png',
                    shadowUrl: 'marker-shadow.png',
                    iconSize: [25, 41],
                    iconAnchor: [12, 41],
                    popupAnchor: [1, -34],
                    tooltipAnchor: [16, -28],
                    shadowSize: [41, 41]
                },
                _getIconUrl: function (name) {
                    if (!IconDefault.imagePath) { // Deprecated, backwards-compatibility only
                        IconDefault.imagePath = this._detectIconPath();
                    }
                    // @option imagePath: String
                    // `Icon.Default` will try to auto-detect the location of the
                    // blue icon images. If you are placing these images in a non-standard
                    // way, set this option to point to the right path.
                    return (this.options.imagePath || IconDefault.imagePath) + Icon.prototype._getIconUrl.call(this, name);
                },
                _detectIconPath: function () {
                    var el = create$1('div', 'leaflet-default-icon-path', document.body);
                    var path = getStyle(el, 'background-image') ||
                        getStyle(el, 'backgroundImage'); // IE8
                    document.body.removeChild(el);
                    if (path === null || path.indexOf('url') !== 0) {
                        path = '';
                    }
                    else {
                        path = path.replace(/^url\(["']?/, '').replace(/marker-icon\.png["']?\)$/, '');
                    }
                    return path;
                }
            });
            /*
             * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.
             */
            /* @namespace Marker
             * @section Interaction handlers
             *
             * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:
             *
             * ```js
             * marker.dragging.disable();
             * ```
             *
             * @property dragging: Handler
             * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).
             */
            var MarkerDrag = Handler.extend({
                initialize: function (marker) {
                    this._marker = marker;
                },
                addHooks: function () {
                    var icon = this._marker._icon;
                    if (!this._draggable) {
                        this._draggable = new Draggable(icon, icon, true);
                    }
                    this._draggable.on({
                        dragstart: this._onDragStart,
                        predrag: this._onPreDrag,
                        drag: this._onDrag,
                        dragend: this._onDragEnd
                    }, this).enable();
                    addClass(icon, 'leaflet-marker-draggable');
                },
                removeHooks: function () {
                    this._draggable.off({
                        dragstart: this._onDragStart,
                        predrag: this._onPreDrag,
                        drag: this._onDrag,
                        dragend: this._onDragEnd
                    }, this).disable();
                    if (this._marker._icon) {
                        removeClass(this._marker._icon, 'leaflet-marker-draggable');
                    }
                },
                moved: function () {
                    return this._draggable && this._draggable._moved;
                },
                _adjustPan: function (e) {
                    var marker = this._marker, map = marker._map, speed = this._marker.options.autoPanSpeed, padding = this._marker.options.autoPanPadding, iconPos = getPosition(marker._icon), bounds = map.getPixelBounds(), origin = map.getPixelOrigin();
                    var panBounds = toBounds(bounds.min._subtract(origin).add(padding), bounds.max._subtract(origin).subtract(padding));
                    if (!panBounds.contains(iconPos)) {
                        // Compute incremental movement
                        var movement = toPoint((Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) -
                            (Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x), (Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) -
                            (Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)).multiplyBy(speed);
                        map.panBy(movement, { animate: false });
                        this._draggable._newPos._add(movement);
                        this._draggable._startPos._add(movement);
                        setPosition(marker._icon, this._draggable._newPos);
                        this._onDrag(e);
                        this._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));
                    }
                },
                _onDragStart: function () {
                    // @section Dragging events
                    // @event dragstart: Event
                    // Fired when the user starts dragging the marker.
                    // @event movestart: Event
                    // Fired when the marker starts moving (because of dragging).
                    this._oldLatLng = this._marker.getLatLng();
                    this._marker
                        .closePopup()
                        .fire('movestart')
                        .fire('dragstart');
                },
                _onPreDrag: function (e) {
                    if (this._marker.options.autoPan) {
                        cancelAnimFrame(this._panRequest);
                        this._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));
                    }
                },
                _onDrag: function (e) {
                    var marker = this._marker, shadow = marker._shadow, iconPos = getPosition(marker._icon), latlng = marker._map.layerPointToLatLng(iconPos);
                    // update shadow position
                    if (shadow) {
                        setPosition(shadow, iconPos);
                    }
                    marker._latlng = latlng;
                    e.latlng = latlng;
                    e.oldLatLng = this._oldLatLng;
                    // @event drag: Event
                    // Fired repeatedly while the user drags the marker.
                    marker
                        .fire('move', e)
                        .fire('drag', e);
                },
                _onDragEnd: function (e) {
                    // @event dragend: DragEndEvent
                    // Fired when the user stops dragging the marker.
                    cancelAnimFrame(this._panRequest);
                    // @event moveend: Event
                    // Fired when the marker stops moving (because of dragging).
                    delete this._oldLatLng;
                    this._marker
                        .fire('moveend')
                        .fire('dragend', e);
                }
            });
            /*
             * @class Marker
             * @inherits Interactive layer
             * @aka L.Marker
             * L.Marker is used to display clickable/draggable icons on the map. Extends `Layer`.
             *
             * @example
             *
             * ```js
             * L.marker([50.5, 30.5]).addTo(map);
             * ```
             */
            var Marker = Layer.extend({
                // @section
                // @aka Marker options
                options: {
                    // @option icon: Icon = *
                    // Icon instance to use for rendering the marker.
                    // See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
                    // If not specified, a common instance of `L.Icon.Default` is used.
                    icon: new IconDefault(),
                    // Option inherited from "Interactive layer" abstract class
                    interactive: true,
                    // @option keyboard: Boolean = true
                    // Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
                    keyboard: true,
                    // @option title: String = ''
                    // Text for the browser tooltip that appear on marker hover (no tooltip by default).
                    title: '',
                    // @option alt: String = ''
                    // Text for the `alt` attribute of the icon image (useful for accessibility).
                    alt: '',
                    // @option zIndexOffset: Number = 0
                    // By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).
                    zIndexOffset: 0,
                    // @option opacity: Number = 1.0
                    // The opacity of the marker.
                    opacity: 1,
                    // @option riseOnHover: Boolean = false
                    // If `true`, the marker will get on top of others when you hover the mouse over it.
                    riseOnHover: false,
                    // @option riseOffset: Number = 250
                    // The z-index offset used for the `riseOnHover` feature.
                    riseOffset: 250,
                    // @option pane: String = 'markerPane'
                    // `Map pane` where the markers icon will be added.
                    pane: 'markerPane',
                    // @option bubblingMouseEvents: Boolean = false
                    // When `true`, a mouse event on this marker will trigger the same event on the map
                    // (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
                    bubblingMouseEvents: false,
                    // @section Draggable marker options
                    // @option draggable: Boolean = false
                    // Whether the marker is draggable with mouse/touch or not.
                    draggable: false,
                    // @option autoPan: Boolean = false
                    // Whether to pan the map when dragging this marker near its edge or not.
                    autoPan: false,
                    // @option autoPanPadding: Point = Point(50, 50)
                    // Distance (in pixels to the left/right and to the top/bottom) of the
                    // map edge to start panning the map.
                    autoPanPadding: [50, 50],
                    // @option autoPanSpeed: Number = 10
                    // Number of pixels the map should pan by.
                    autoPanSpeed: 10
                },
                /* @section
                 *
                 * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
                 */
                initialize: function (latlng, options) {
                    setOptions(this, options);
                    this._latlng = toLatLng(latlng);
                },
                onAdd: function (map) {
                    this._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation;
                    if (this._zoomAnimated) {
                        map.on('zoomanim', this._animateZoom, this);
                    }
                    this._initIcon();
                    this.update();
                },
                onRemove: function (map) {
                    if (this.dragging && this.dragging.enabled()) {
                        this.options.draggable = true;
                        this.dragging.removeHooks();
                    }
                    delete this.dragging;
                    if (this._zoomAnimated) {
                        map.off('zoomanim', this._animateZoom, this);
                    }
                    this._removeIcon();
                    this._removeShadow();
                },
                getEvents: function () {
                    return {
                        zoom: this.update,
                        viewreset: this.update
                    };
                },
                // @method getLatLng: LatLng
                // Returns the current geographical position of the marker.
                getLatLng: function () {
                    return this._latlng;
                },
                // @method setLatLng(latlng: LatLng): this
                // Changes the marker position to the given point.
                setLatLng: function (latlng) {
                    var oldLatLng = this._latlng;
                    this._latlng = toLatLng(latlng);
                    this.update();
                    // @event move: Event
                    // Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
                    return this.fire('move', { oldLatLng: oldLatLng, latlng: this._latlng });
                },
                // @method setZIndexOffset(offset: Number): this
                // Changes the [zIndex offset](#marker-zindexoffset) of the marker.
                setZIndexOffset: function (offset) {
                    this.options.zIndexOffset = offset;
                    return this.update();
                },
                // @method setIcon(icon: Icon): this
                // Changes the marker icon.
                setIcon: function (icon) {
                    this.options.icon = icon;
                    if (this._map) {
                        this._initIcon();
                        this.update();
                    }
                    if (this._popup) {
                        this.bindPopup(this._popup, this._popup.options);
                    }
                    return this;
                },
                getElement: function () {
                    return this._icon;
                },
                update: function () {
                    if (this._icon && this._map) {
                        var pos = this._map.latLngToLayerPoint(this._latlng).round();
                        this._setPos(pos);
                    }
                    return this;
                },
                _initIcon: function () {
                    var options = this.options, classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');
                    var icon = options.icon.createIcon(this._icon), addIcon = false;
                    // if we're not reusing the icon, remove the old one and init new one
                    if (icon !== this._icon) {
                        if (this._icon) {
                            this._removeIcon();
                        }
                        addIcon = true;
                        if (options.title) {
                            icon.title = options.title;
                        }
                        if (icon.tagName === 'IMG') {
                            icon.alt = options.alt || '';
                        }
                    }
                    addClass(icon, classToAdd);
                    if (options.keyboard) {
                        icon.tabIndex = '0';
                    }
                    this._icon = icon;
                    if (options.riseOnHover) {
                        this.on({
                            mouseover: this._bringToFront,
                            mouseout: this._resetZIndex
                        });
                    }
                    var newShadow = options.icon.createShadow(this._shadow), addShadow = false;
                    if (newShadow !== this._shadow) {
                        this._removeShadow();
                        addShadow = true;
                    }
                    if (newShadow) {
                        addClass(newShadow, classToAdd);
                        newShadow.alt = '';
                    }
                    this._shadow = newShadow;
                    if (options.opacity < 1) {
                        this._updateOpacity();
                    }
                    if (addIcon) {
                        this.getPane().appendChild(this._icon);
                    }
                    this._initInteraction();
                    if (newShadow && addShadow) {
                        this.getPane('shadowPane').appendChild(this._shadow);
                    }
                },
                _removeIcon: function () {
                    if (this.options.riseOnHover) {
                        this.off({
                            mouseover: this._bringToFront,
                            mouseout: this._resetZIndex
                        });
                    }
                    remove(this._icon);
                    this.removeInteractiveTarget(this._icon);
                    this._icon = null;
                },
                _removeShadow: function () {
                    if (this._shadow) {
                        remove(this._shadow);
                    }
                    this._shadow = null;
                },
                _setPos: function (pos) {
                    setPosition(this._icon, pos);
                    if (this._shadow) {
                        setPosition(this._shadow, pos);
                    }
                    this._zIndex = pos.y + this.options.zIndexOffset;
                    this._resetZIndex();
                },
                _updateZIndex: function (offset) {
                    this._icon.style.zIndex = this._zIndex + offset;
                },
                _animateZoom: function (opt) {
                    var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();
                    this._setPos(pos);
                },
                _initInteraction: function () {
                    if (!this.options.interactive) {
                        return;
                    }
                    addClass(this._icon, 'leaflet-interactive');
                    this.addInteractiveTarget(this._icon);
                    if (MarkerDrag) {
                        var draggable = this.options.draggable;
                        if (this.dragging) {
                            draggable = this.dragging.enabled();
                            this.dragging.disable();
                        }
                        this.dragging = new MarkerDrag(this);
                        if (draggable) {
                            this.dragging.enable();
                        }
                    }
                },
                // @method setOpacity(opacity: Number): this
                // Changes the opacity of the marker.
                setOpacity: function (opacity) {
                    this.options.opacity = opacity;
                    if (this._map) {
                        this._updateOpacity();
                    }
                    return this;
                },
                _updateOpacity: function () {
                    var opacity = this.options.opacity;
                    setOpacity(this._icon, opacity);
                    if (this._shadow) {
                        setOpacity(this._shadow, opacity);
                    }
                },
                _bringToFront: function () {
                    this._updateZIndex(this.options.riseOffset);
                },
                _resetZIndex: function () {
                    this._updateZIndex(0);
                },
                _getPopupAnchor: function () {
                    return this.options.icon.options.popupAnchor;
                },
                _getTooltipAnchor: function () {
                    return this.options.icon.options.tooltipAnchor;
                }
            });
            // factory L.marker(latlng: LatLng, options? : Marker options)
            // @factory L.marker(latlng: LatLng, options? : Marker options)
            // Instantiates a Marker object given a geographical point and optionally an options object.
            function marker(latlng, options) {
                return new Marker(latlng, options);
            }
            /*
             * @class Path
             * @aka L.Path
             * @inherits Interactive layer
             *
             * An abstract class that contains options and constants shared between vector
             * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.
             */
            var Path = Layer.extend({
                // @section
                // @aka Path options
                options: {
                    // @option stroke: Boolean = true
                    // Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.
                    stroke: true,
                    // @option color: String = '#3388ff'
                    // Stroke color
                    color: '#3388ff',
                    // @option weight: Number = 3
                    // Stroke width in pixels
                    weight: 3,
                    // @option opacity: Number = 1.0
                    // Stroke opacity
                    opacity: 1,
                    // @option lineCap: String= 'round'
                    // A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.
                    lineCap: 'round',
                    // @option lineJoin: String = 'round'
                    // A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.
                    lineJoin: 'round',
                    // @option dashArray: String = null
                    // A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
                    dashArray: null,
                    // @option dashOffset: String = null
                    // A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
                    dashOffset: null,
                    // @option fill: Boolean = depends
                    // Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.
                    fill: false,
                    // @option fillColor: String = *
                    // Fill color. Defaults to the value of the [`color`](#path-color) option
                    fillColor: null,
                    // @option fillOpacity: Number = 0.2
                    // Fill opacity.
                    fillOpacity: 0.2,
                    // @option fillRule: String = 'evenodd'
                    // A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.
                    fillRule: 'evenodd',
                    // className: '',
                    // Option inherited from "Interactive layer" abstract class
                    interactive: true,
                    // @option bubblingMouseEvents: Boolean = true
                    // When `true`, a mouse event on this path will trigger the same event on the map
                    // (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
                    bubblingMouseEvents: true
                },
                beforeAdd: function (map) {
                    // Renderer is set here because we need to call renderer.getEvents
                    // before this.getEvents.
                    this._renderer = map.getRenderer(this);
                },
                onAdd: function () {
                    this._renderer._initPath(this);
                    this._reset();
                    this._renderer._addPath(this);
                },
                onRemove: function () {
                    this._renderer._removePath(this);
                },
                // @method redraw(): this
                // Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.
                redraw: function () {
                    if (this._map) {
                        this._renderer._updatePath(this);
                    }
                    return this;
                },
                // @method setStyle(style: Path options): this
                // Changes the appearance of a Path based on the options in the `Path options` object.
                setStyle: function (style) {
                    setOptions(this, style);
                    if (this._renderer) {
                        this._renderer._updateStyle(this);
                    }
                    return this;
                },
                // @method bringToFront(): this
                // Brings the layer to the top of all path layers.
                bringToFront: function () {
                    if (this._renderer) {
                        this._renderer._bringToFront(this);
                    }
                    return this;
                },
                // @method bringToBack(): this
                // Brings the layer to the bottom of all path layers.
                bringToBack: function () {
                    if (this._renderer) {
                        this._renderer._bringToBack(this);
                    }
                    return this;
                },
                getElement: function () {
                    return this._path;
                },
                _reset: function () {
                    // defined in child classes
                    this._project();
                    this._update();
                },
                _clickTolerance: function () {
                    // used when doing hit detection for Canvas layers
                    return (this.options.stroke ? this.options.weight / 2 : 0) + this._renderer.options.tolerance;
                }
            });
            /*
             * @class CircleMarker
             * @aka L.CircleMarker
             * @inherits Path
             *
             * A circle of a fixed size with radius specified in pixels. Extends `Path`.
             */
            var CircleMarker = Path.extend({
                // @section
                // @aka CircleMarker options
                options: {
                    fill: true,
                    // @option radius: Number = 10
                    // Radius of the circle marker, in pixels
                    radius: 10
                },
                initialize: function (latlng, options) {
                    setOptions(this, options);
                    this._latlng = toLatLng(latlng);
                    this._radius = this.options.radius;
                },
                // @method setLatLng(latLng: LatLng): this
                // Sets the position of a circle marker to a new location.
                setLatLng: function (latlng) {
                    this._latlng = toLatLng(latlng);
                    this.redraw();
                    return this.fire('move', { latlng: this._latlng });
                },
                // @method getLatLng(): LatLng
                // Returns the current geographical position of the circle marker
                getLatLng: function () {
                    return this._latlng;
                },
                // @method setRadius(radius: Number): this
                // Sets the radius of a circle marker. Units are in pixels.
                setRadius: function (radius) {
                    this.options.radius = this._radius = radius;
                    return this.redraw();
                },
                // @method getRadius(): Number
                // Returns the current radius of the circle
                getRadius: function () {
                    return this._radius;
                },
                setStyle: function (options) {
                    var radius = options && options.radius || this._radius;
                    Path.prototype.setStyle.call(this, options);
                    this.setRadius(radius);
                    return this;
                },
                _project: function () {
                    this._point = this._map.latLngToLayerPoint(this._latlng);
                    this._updateBounds();
                },
                _updateBounds: function () {
                    var r = this._radius, r2 = this._radiusY || r, w = this._clickTolerance(), p = [r + w, r2 + w];
                    this._pxBounds = new Bounds(this._point.subtract(p), this._point.add(p));
                },
                _update: function () {
                    if (this._map) {
                        this._updatePath();
                    }
                },
                _updatePath: function () {
                    this._renderer._updateCircle(this);
                },
                _empty: function () {
                    return this._radius && !this._renderer._bounds.intersects(this._pxBounds);
                },
                // Needed by the `Canvas` renderer for interactivity
                _containsPoint: function (p) {
                    return p.distanceTo(this._point) <= this._radius + this._clickTolerance();
                }
            });
            // @factory L.circleMarker(latlng: LatLng, options?: CircleMarker options)
            // Instantiates a circle marker object given a geographical point, and an optional options object.
            function circleMarker(latlng, options) {
                return new CircleMarker(latlng, options);
            }
            /*
             * @class Circle
             * @aka L.Circle
             * @inherits CircleMarker
             *
             * A class for drawing circle overlays on a map. Extends `CircleMarker`.
             *
             * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).
             *
             * @example
             *
             * ```js
             * L.circle([50.5, 30.5], {radius: 200}).addTo(map);
             * ```
             */
            var Circle = CircleMarker.extend({
                initialize: function (latlng, options, legacyOptions) {
                    if (typeof options === 'number') {
                        // Backwards compatibility with 0.7.x factory (latlng, radius, options?)
                        options = extend({}, legacyOptions, { radius: options });
                    }
                    setOptions(this, options);
                    this._latlng = toLatLng(latlng);
                    if (isNaN(this.options.radius)) {
                        throw new Error('Circle radius cannot be NaN');
                    }
                    // @section
                    // @aka Circle options
                    // @option radius: Number; Radius of the circle, in meters.
                    this._mRadius = this.options.radius;
                },
                // @method setRadius(radius: Number): this
                // Sets the radius of a circle. Units are in meters.
                setRadius: function (radius) {
                    this._mRadius = radius;
                    return this.redraw();
                },
                // @method getRadius(): Number
                // Returns the current radius of a circle. Units are in meters.
                getRadius: function () {
                    return this._mRadius;
                },
                // @method getBounds(): LatLngBounds
                // Returns the `LatLngBounds` of the path.
                getBounds: function () {
                    var half = [this._radius, this._radiusY || this._radius];
                    return new LatLngBounds(this._map.layerPointToLatLng(this._point.subtract(half)), this._map.layerPointToLatLng(this._point.add(half)));
                },
                setStyle: Path.prototype.setStyle,
                _project: function () {
                    var lng = this._latlng.lng, lat = this._latlng.lat, map = this._map, crs = map.options.crs;
                    if (crs.distance === Earth.distance) {
                        var d = Math.PI / 180, latR = (this._mRadius / Earth.R) / d, top = map.project([lat + latR, lng]), bottom = map.project([lat - latR, lng]), p = top.add(bottom).divideBy(2), lat2 = map.unproject(p).lat, lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat2 * d)) /
                            (Math.cos(lat * d) * Math.cos(lat2 * d))) / d;
                        if (isNaN(lngR) || lngR === 0) {
                            lngR = latR / Math.cos(Math.PI / 180 * lat); // Fallback for edge case, #2425
                        }
                        this._point = p.subtract(map.getPixelOrigin());
                        this._radius = isNaN(lngR) ? 0 : p.x - map.project([lat2, lng - lngR]).x;
                        this._radiusY = p.y - top.y;
                    }
                    else {
                        var latlng2 = crs.unproject(crs.project(this._latlng).subtract([this._mRadius, 0]));
                        this._point = map.latLngToLayerPoint(this._latlng);
                        this._radius = this._point.x - map.latLngToLayerPoint(latlng2).x;
                    }
                    this._updateBounds();
                }
            });
            // @factory L.circle(latlng: LatLng, options?: Circle options)
            // Instantiates a circle object given a geographical point, and an options object
            // which contains the circle radius.
            // @alternative
            // @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)
            // Obsolete way of instantiating a circle, for compatibility with 0.7.x code.
            // Do not use in new applications or plugins.
            function circle(latlng, options, legacyOptions) {
                return new Circle(latlng, options, legacyOptions);
            }
            /*
             * @class Polyline
             * @aka L.Polyline
             * @inherits Path
             *
             * A class for drawing polyline overlays on a map. Extends `Path`.
             *
             * @example
             *
             * ```js
             * // create a red polyline from an array of LatLng points
             * var latlngs = [
             * 	[45.51, -122.68],
             * 	[37.77, -122.43],
             * 	[34.04, -118.2]
             * ];
             *
             * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
             *
             * // zoom the map to the polyline
             * map.fitBounds(polyline.getBounds());
             * ```
             *
             * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:
             *
             * ```js
             * // create a red polyline from an array of arrays of LatLng points
             * var latlngs = [
             * 	[[45.51, -122.68],
             * 	 [37.77, -122.43],
             * 	 [34.04, -118.2]],
             * 	[[40.78, -73.91],
             * 	 [41.83, -87.62],
             * 	 [32.76, -96.72]]
             * ];
             * ```
             */
            var Polyline = Path.extend({
                // @section
                // @aka Polyline options
                options: {
                    // @option smoothFactor: Number = 1.0
                    // How much to simplify the polyline on each zoom level. More means
                    // better performance and smoother look, and less means more accurate representation.
                    smoothFactor: 1.0,
                    // @option noClip: Boolean = false
                    // Disable polyline clipping.
                    noClip: false
                },
                initialize: function (latlngs, options) {
                    setOptions(this, options);
                    this._setLatLngs(latlngs);
                },
                // @method getLatLngs(): LatLng[]
                // Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
                getLatLngs: function () {
                    return this._latlngs;
                },
                // @method setLatLngs(latlngs: LatLng[]): this
                // Replaces all the points in the polyline with the given array of geographical points.
                setLatLngs: function (latlngs) {
                    this._setLatLngs(latlngs);
                    return this.redraw();
                },
                // @method isEmpty(): Boolean
                // Returns `true` if the Polyline has no LatLngs.
                isEmpty: function () {
                    return !this._latlngs.length;
                },
                // @method closestLayerPoint(p: Point): Point
                // Returns the point closest to `p` on the Polyline.
                closestLayerPoint: function (p) {
                    var minDistance = Infinity, minPoint = null, closest = _sqClosestPointOnSegment, p1, p2;
                    for (var j = 0, jLen = this._parts.length; j < jLen; j++) {
                        var points = this._parts[j];
                        for (var i = 1, len = points.length; i < len; i++) {
                            p1 = points[i - 1];
                            p2 = points[i];
                            var sqDist = closest(p, p1, p2, true);
                            if (sqDist < minDistance) {
                                minDistance = sqDist;
                                minPoint = closest(p, p1, p2);
                            }
                        }
                    }
                    if (minPoint) {
                        minPoint.distance = Math.sqrt(minDistance);
                    }
                    return minPoint;
                },
                // @method getCenter(): LatLng
                // Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the polyline.
                getCenter: function () {
                    // throws error when not yet added to map as this center calculation requires projected coordinates
                    if (!this._map) {
                        throw new Error('Must add layer to map before using getCenter()');
                    }
                    var i, halfDist, segDist, dist, p1, p2, ratio, points = this._rings[0], len = points.length;
                    if (!len) {
                        return null;
                    }
                    // polyline centroid algorithm; only uses the first ring if there are multiple
                    for (i = 0, halfDist = 0; i < len - 1; i++) {
                        halfDist += points[i].distanceTo(points[i + 1]) / 2;
                    }
                    // The line is so small in the current view that all points are on the same pixel.
                    if (halfDist === 0) {
                        return this._map.layerPointToLatLng(points[0]);
                    }
                    for (i = 0, dist = 0; i < len - 1; i++) {
                        p1 = points[i];
                        p2 = points[i + 1];
                        segDist = p1.distanceTo(p2);
                        dist += segDist;
                        if (dist > halfDist) {
                            ratio = (dist - halfDist) / segDist;
                            return this._map.layerPointToLatLng([
                                p2.x - ratio * (p2.x - p1.x),
                                p2.y - ratio * (p2.y - p1.y)
                            ]);
                        }
                    }
                },
                // @method getBounds(): LatLngBounds
                // Returns the `LatLngBounds` of the path.
                getBounds: function () {
                    return this._bounds;
                },
                // @method addLatLng(latlng: LatLng, latlngs? LatLng[]): this
                // Adds a given point to the polyline. By default, adds to the first ring of
                // the polyline in case of a multi-polyline, but can be overridden by passing
                // a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).
                addLatLng: function (latlng, latlngs) {
                    latlngs = latlngs || this._defaultShape();
                    latlng = toLatLng(latlng);
                    latlngs.push(latlng);
                    this._bounds.extend(latlng);
                    return this.redraw();
                },
                _setLatLngs: function (latlngs) {
                    this._bounds = new LatLngBounds();
                    this._latlngs = this._convertLatLngs(latlngs);
                },
                _defaultShape: function () {
                    return isFlat(this._latlngs) ? this._latlngs : this._latlngs[0];
                },
                // recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
                _convertLatLngs: function (latlngs) {
                    var result = [], flat = isFlat(latlngs);
                    for (var i = 0, len = latlngs.length; i < len; i++) {
                        if (flat) {
                            result[i] = toLatLng(latlngs[i]);
                            this._bounds.extend(result[i]);
                        }
                        else {
                            result[i] = this._convertLatLngs(latlngs[i]);
                        }
                    }
                    return result;
                },
                _project: function () {
                    var pxBounds = new Bounds();
                    this._rings = [];
                    this._projectLatlngs(this._latlngs, this._rings, pxBounds);
                    var w = this._clickTolerance(), p = new Point(w, w);
                    if (this._bounds.isValid() && pxBounds.isValid()) {
                        pxBounds.min._subtract(p);
                        pxBounds.max._add(p);
                        this._pxBounds = pxBounds;
                    }
                },
                // recursively turns latlngs into a set of rings with projected coordinates
                _projectLatlngs: function (latlngs, result, projectedBounds) {
                    var flat = latlngs[0] instanceof LatLng, len = latlngs.length, i, ring;
                    if (flat) {
                        ring = [];
                        for (i = 0; i < len; i++) {
                            ring[i] = this._map.latLngToLayerPoint(latlngs[i]);
                            projectedBounds.extend(ring[i]);
                        }
                        result.push(ring);
                    }
                    else {
                        for (i = 0; i < len; i++) {
                            this._projectLatlngs(latlngs[i], result, projectedBounds);
                        }
                    }
                },
                // clip polyline by renderer bounds so that we have less to render for performance
                _clipPoints: function () {
                    var bounds = this._renderer._bounds;
                    this._parts = [];
                    if (!this._pxBounds || !this._pxBounds.intersects(bounds)) {
                        return;
                    }
                    if (this.options.noClip) {
                        this._parts = this._rings;
                        return;
                    }
                    var parts = this._parts, i, j, k, len, len2, segment, points;
                    for (i = 0, k = 0, len = this._rings.length; i < len; i++) {
                        points = this._rings[i];
                        for (j = 0, len2 = points.length; j < len2 - 1; j++) {
                            segment = clipSegment(points[j], points[j + 1], bounds, j, true);
                            if (!segment) {
                                continue;
                            }
                            parts[k] = parts[k] || [];
                            parts[k].push(segment[0]);
                            // if segment goes out of screen, or it's the last one, it's the end of the line part
                            if ((segment[1] !== points[j + 1]) || (j === len2 - 2)) {
                                parts[k].push(segment[1]);
                                k++;
                            }
                        }
                    }
                },
                // simplify each clipped part of the polyline for performance
                _simplifyPoints: function () {
                    var parts = this._parts, tolerance = this.options.smoothFactor;
                    for (var i = 0, len = parts.length; i < len; i++) {
                        parts[i] = simplify(parts[i], tolerance);
                    }
                },
                _update: function () {
                    if (!this._map) {
                        return;
                    }
                    this._clipPoints();
                    this._simplifyPoints();
                    this._updatePath();
                },
                _updatePath: function () {
                    this._renderer._updatePoly(this);
                },
                // Needed by the `Canvas` renderer for interactivity
                _containsPoint: function (p, closed) {
                    var i, j, k, len, len2, part, w = this._clickTolerance();
                    if (!this._pxBounds || !this._pxBounds.contains(p)) {
                        return false;
                    }
                    // hit detection for polylines
                    for (i = 0, len = this._parts.length; i < len; i++) {
                        part = this._parts[i];
                        for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {
                            if (!closed && (j === 0)) {
                                continue;
                            }
                            if (pointToSegmentDistance(p, part[k], part[j]) <= w) {
                                return true;
                            }
                        }
                    }
                    return false;
                }
            });
            // @factory L.polyline(latlngs: LatLng[], options?: Polyline options)
            // Instantiates a polyline object given an array of geographical points and
            // optionally an options object. You can create a `Polyline` object with
            // multiple separate lines (`MultiPolyline`) by passing an array of arrays
            // of geographic points.
            function polyline(latlngs, options) {
                return new Polyline(latlngs, options);
            }
            // Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.
            Polyline._flat = _flat;
            /*
             * @class Polygon
             * @aka L.Polygon
             * @inherits Polyline
             *
             * A class for drawing polygon overlays on a map. Extends `Polyline`.
             *
             * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.
             *
             *
             * @example
             *
             * ```js
             * // create a red polygon from an array of LatLng points
             * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];
             *
             * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);
             *
             * // zoom the map to the polygon
             * map.fitBounds(polygon.getBounds());
             * ```
             *
             * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:
             *
             * ```js
             * var latlngs = [
             *   [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
             *   [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
             * ];
             * ```
             *
             * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.
             *
             * ```js
             * var latlngs = [
             *   [ // first polygon
             *     [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
             *     [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
             *   ],
             *   [ // second polygon
             *     [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]
             *   ]
             * ];
             * ```
             */
            var Polygon = Polyline.extend({
                options: {
                    fill: true
                },
                isEmpty: function () {
                    return !this._latlngs.length || !this._latlngs[0].length;
                },
                getCenter: function () {
                    // throws error when not yet added to map as this center calculation requires projected coordinates
                    if (!this._map) {
                        throw new Error('Must add layer to map before using getCenter()');
                    }
                    var i, j, p1, p2, f, area, x, y, center, points = this._rings[0], len = points.length;
                    if (!len) {
                        return null;
                    }
                    // polygon centroid algorithm; only uses the first ring if there are multiple
                    area = x = y = 0;
                    for (i = 0, j = len - 1; i < len; j = i++) {
                        p1 = points[i];
                        p2 = points[j];
                        f = p1.y * p2.x - p2.y * p1.x;
                        x += (p1.x + p2.x) * f;
                        y += (p1.y + p2.y) * f;
                        area += f * 3;
                    }
                    if (area === 0) {
                        // Polygon is so small that all points are on same pixel.
                        center = points[0];
                    }
                    else {
                        center = [x / area, y / area];
                    }
                    return this._map.layerPointToLatLng(center);
                },
                _convertLatLngs: function (latlngs) {
                    var result = Polyline.prototype._convertLatLngs.call(this, latlngs), len = result.length;
                    // remove last point if it equals first one
                    if (len >= 2 && result[0] instanceof LatLng && result[0].equals(result[len - 1])) {
                        result.pop();
                    }
                    return result;
                },
                _setLatLngs: function (latlngs) {
                    Polyline.prototype._setLatLngs.call(this, latlngs);
                    if (isFlat(this._latlngs)) {
                        this._latlngs = [this._latlngs];
                    }
                },
                _defaultShape: function () {
                    return isFlat(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
                },
                _clipPoints: function () {
                    // polygons need a different clipping algorithm so we redefine that
                    var bounds = this._renderer._bounds, w = this.options.weight, p = new Point(w, w);
                    // increase clip padding by stroke width to avoid stroke on clip edges
                    bounds = new Bounds(bounds.min.subtract(p), bounds.max.add(p));
                    this._parts = [];
                    if (!this._pxBounds || !this._pxBounds.intersects(bounds)) {
                        return;
                    }
                    if (this.options.noClip) {
                        this._parts = this._rings;
                        return;
                    }
                    for (var i = 0, len = this._rings.length, clipped; i < len; i++) {
                        clipped = clipPolygon(this._rings[i], bounds, true);
                        if (clipped.length) {
                            this._parts.push(clipped);
                        }
                    }
                },
                _updatePath: function () {
                    this._renderer._updatePoly(this, true);
                },
                // Needed by the `Canvas` renderer for interactivity
                _containsPoint: function (p) {
                    var inside = false, part, p1, p2, i, j, k, len, len2;
                    if (!this._pxBounds || !this._pxBounds.contains(p)) {
                        return false;
                    }
                    // ray casting algorithm for detecting if point is in polygon
                    for (i = 0, len = this._parts.length; i < len; i++) {
                        part = this._parts[i];
                        for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {
                            p1 = part[j];
                            p2 = part[k];
                            if (((p1.y > p.y) !== (p2.y > p.y)) && (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) {
                                inside = !inside;
                            }
                        }
                    }
                    // also check if it's on polygon stroke
                    return inside || Polyline.prototype._containsPoint.call(this, p, true);
                }
            });
            // @factory L.polygon(latlngs: LatLng[], options?: Polyline options)
            function polygon(latlngs, options) {
                return new Polygon(latlngs, options);
            }
            /*
             * @class GeoJSON
             * @aka L.GeoJSON
             * @inherits FeatureGroup
             *
             * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse
             * GeoJSON data and display it on the map. Extends `FeatureGroup`.
             *
             * @example
             *
             * ```js
             * L.geoJSON(data, {
             * 	style: function (feature) {
             * 		return {color: feature.properties.color};
             * 	}
             * }).bindPopup(function (layer) {
             * 	return layer.feature.properties.description;
             * }).addTo(map);
             * ```
             */
            var GeoJSON = FeatureGroup.extend({
                /* @section
                 * @aka GeoJSON options
                 *
                 * @option pointToLayer: Function = *
                 * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally
                 * called when data is added, passing the GeoJSON point feature and its `LatLng`.
                 * The default is to spawn a default `Marker`:
                 * ```js
                 * function(geoJsonPoint, latlng) {
                 * 	return L.marker(latlng);
                 * }
                 * ```
                 *
                 * @option style: Function = *
                 * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,
                 * called internally when data is added.
                 * The default value is to not override any defaults:
                 * ```js
                 * function (geoJsonFeature) {
                 * 	return {}
                 * }
                 * ```
                 *
                 * @option onEachFeature: Function = *
                 * A `Function` that will be called once for each created `Feature`, after it has
                 * been created and styled. Useful for attaching events and popups to features.
                 * The default is to do nothing with the newly created layers:
                 * ```js
                 * function (feature, layer) {}
                 * ```
                 *
                 * @option filter: Function = *
                 * A `Function` that will be used to decide whether to include a feature or not.
                 * The default is to include all features:
                 * ```js
                 * function (geoJsonFeature) {
                 * 	return true;
                 * }
                 * ```
                 * Note: dynamically changing the `filter` option will have effect only on newly
                 * added data. It will _not_ re-evaluate already included features.
                 *
                 * @option coordsToLatLng: Function = *
                 * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.
                 * The default is the `coordsToLatLng` static method.
                 */
                initialize: function (geojson, options) {
                    setOptions(this, options);
                    this._layers = {};
                    if (geojson) {
                        this.addData(geojson);
                    }
                },
                // @method addData( <GeoJSON> data ): this
                // Adds a GeoJSON object to the layer.
                addData: function (geojson) {
                    var features = isArray(geojson) ? geojson : geojson.features, i, len, feature;
                    if (features) {
                        for (i = 0, len = features.length; i < len; i++) {
                            // only add this if geometry or geometries are set and not null
                            feature = features[i];
                            if (feature.geometries || feature.geometry || feature.features || feature.coordinates) {
                                this.addData(feature);
                            }
                        }
                        return this;
                    }
                    var options = this.options;
                    if (options.filter && !options.filter(geojson)) {
                        return this;
                    }
                    var layer = geometryToLayer(geojson, options);
                    if (!layer) {
                        return this;
                    }
                    layer.feature = asFeature(geojson);
                    layer.defaultOptions = layer.options;
                    this.resetStyle(layer);
                    if (options.onEachFeature) {
                        options.onEachFeature(geojson, layer);
                    }
                    return this.addLayer(layer);
                },
                // @method resetStyle( <Path> layer ): this
                // Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
                resetStyle: function (layer) {
                    // reset any custom styles
                    layer.options = extend({}, layer.defaultOptions);
                    this._setLayerStyle(layer, this.options.style);
                    return this;
                },
                // @method setStyle( <Function> style ): this
                // Changes styles of GeoJSON vector layers with the given style function.
                setStyle: function (style) {
                    return this.eachLayer(function (layer) {
                        this._setLayerStyle(layer, style);
                    }, this);
                },
                _setLayerStyle: function (layer, style) {
                    if (typeof style === 'function') {
                        style = style(layer.feature);
                    }
                    if (layer.setStyle) {
                        layer.setStyle(style);
                    }
                }
            });
            // @section
            // There are several static functions which can be called without instantiating L.GeoJSON:
            // @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer
            // Creates a `Layer` from a given GeoJSON feature. Can use a custom
            // [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)
            // functions if provided as options.
            function geometryToLayer(geojson, options) {
                var geometry = geojson.type === 'Feature' ? geojson.geometry : geojson, coords = geometry ? geometry.coordinates : null, layers = [], pointToLayer = options && options.pointToLayer, _coordsToLatLng = options && options.coordsToLatLng || coordsToLatLng, latlng, latlngs, i, len;
                if (!coords && !geometry) {
                    return null;
                }
                switch (geometry.type) {
                    case 'Point':
                        latlng = _coordsToLatLng(coords);
                        return pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng);
                    case 'MultiPoint':
                        for (i = 0, len = coords.length; i < len; i++) {
                            latlng = _coordsToLatLng(coords[i]);
                            layers.push(pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng));
                        }
                        return new FeatureGroup(layers);
                    case 'LineString':
                    case 'MultiLineString':
                        latlngs = coordsToLatLngs(coords, geometry.type === 'LineString' ? 0 : 1, _coordsToLatLng);
                        return new Polyline(latlngs, options);
                    case 'Polygon':
                    case 'MultiPolygon':
                        latlngs = coordsToLatLngs(coords, geometry.type === 'Polygon' ? 1 : 2, _coordsToLatLng);
                        return new Polygon(latlngs, options);
                    case 'GeometryCollection':
                        for (i = 0, len = geometry.geometries.length; i < len; i++) {
                            var layer = geometryToLayer({
                                geometry: geometry.geometries[i],
                                type: 'Feature',
                                properties: geojson.properties
                            }, options);
                            if (layer) {
                                layers.push(layer);
                            }
                        }
                        return new FeatureGroup(layers);
                    default:
                        throw new Error('Invalid GeoJSON object.');
                }
            }
            // @function coordsToLatLng(coords: Array): LatLng
            // Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)
            // or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.
            function coordsToLatLng(coords) {
                return new LatLng(coords[1], coords[0], coords[2]);
            }
            // @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array
            // Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.
            // `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).
            // Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.
            function coordsToLatLngs(coords, levelsDeep, _coordsToLatLng) {
                var latlngs = [];
                for (var i = 0, len = coords.length, latlng; i < len; i++) {
                    latlng = levelsDeep ?
                        coordsToLatLngs(coords[i], levelsDeep - 1, _coordsToLatLng) :
                        (_coordsToLatLng || coordsToLatLng)(coords[i]);
                    latlngs.push(latlng);
                }
                return latlngs;
            }
            // @function latLngToCoords(latlng: LatLng, precision?: Number): Array
            // Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)
            function latLngToCoords(latlng, precision) {
                precision = typeof precision === 'number' ? precision : 6;
                return latlng.alt !== undefined ?
                    [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision), formatNum(latlng.alt, precision)] :
                    [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision)];
            }
            // @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean): Array
            // Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)
            // `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.
            function latLngsToCoords(latlngs, levelsDeep, closed, precision) {
                var coords = [];
                for (var i = 0, len = latlngs.length; i < len; i++) {
                    coords.push(levelsDeep ?
                        latLngsToCoords(latlngs[i], levelsDeep - 1, closed, precision) :
                        latLngToCoords(latlngs[i], precision));
                }
                if (!levelsDeep && closed) {
                    coords.push(coords[0]);
                }
                return coords;
            }
            function getFeature(layer, newGeometry) {
                return layer.feature ?
                    extend({}, layer.feature, { geometry: newGeometry }) :
                    asFeature(newGeometry);
            }
            // @function asFeature(geojson: Object): Object
            // Normalize GeoJSON geometries/features into GeoJSON features.
            function asFeature(geojson) {
                if (geojson.type === 'Feature' || geojson.type === 'FeatureCollection') {
                    return geojson;
                }
                return {
                    type: 'Feature',
                    properties: {},
                    geometry: geojson
                };
            }
            var PointToGeoJSON = {
                toGeoJSON: function (precision) {
                    return getFeature(this, {
                        type: 'Point',
                        coordinates: latLngToCoords(this.getLatLng(), precision)
                    });
                }
            };
            // @namespace Marker
            // @method toGeoJSON(): Object
            // Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).
            Marker.include(PointToGeoJSON);
            // @namespace CircleMarker
            // @method toGeoJSON(): Object
            // Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).
            Circle.include(PointToGeoJSON);
            CircleMarker.include(PointToGeoJSON);
            // @namespace Polyline
            // @method toGeoJSON(): Object
            // Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).
            Polyline.include({
                toGeoJSON: function (precision) {
                    var multi = !isFlat(this._latlngs);
                    var coords = latLngsToCoords(this._latlngs, multi ? 1 : 0, false, precision);
                    return getFeature(this, {
                        type: (multi ? 'Multi' : '') + 'LineString',
                        coordinates: coords
                    });
                }
            });
            // @namespace Polygon
            // @method toGeoJSON(): Object
            // Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).
            Polygon.include({
                toGeoJSON: function (precision) {
                    var holes = !isFlat(this._latlngs), multi = holes && !isFlat(this._latlngs[0]);
                    var coords = latLngsToCoords(this._latlngs, multi ? 2 : holes ? 1 : 0, true, precision);
                    if (!holes) {
                        coords = [coords];
                    }
                    return getFeature(this, {
                        type: (multi ? 'Multi' : '') + 'Polygon',
                        coordinates: coords
                    });
                }
            });
            // @namespace LayerGroup
            LayerGroup.include({
                toMultiPoint: function (precision) {
                    var coords = [];
                    this.eachLayer(function (layer) {
                        coords.push(layer.toGeoJSON(precision).geometry.coordinates);
                    });
                    return getFeature(this, {
                        type: 'MultiPoint',
                        coordinates: coords
                    });
                },
                // @method toGeoJSON(): Object
                // Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).
                toGeoJSON: function (precision) {
                    var type = this.feature && this.feature.geometry && this.feature.geometry.type;
                    if (type === 'MultiPoint') {
                        return this.toMultiPoint(precision);
                    }
                    var isGeometryCollection = type === 'GeometryCollection', jsons = [];
                    this.eachLayer(function (layer) {
                        if (layer.toGeoJSON) {
                            var json = layer.toGeoJSON(precision);
                            if (isGeometryCollection) {
                                jsons.push(json.geometry);
                            }
                            else {
                                var feature = asFeature(json);
                                // Squash nested feature collections
                                if (feature.type === 'FeatureCollection') {
                                    jsons.push.apply(jsons, feature.features);
                                }
                                else {
                                    jsons.push(feature);
                                }
                            }
                        }
                    });
                    if (isGeometryCollection) {
                        return getFeature(this, {
                            geometries: jsons,
                            type: 'GeometryCollection'
                        });
                    }
                    return {
                        type: 'FeatureCollection',
                        features: jsons
                    };
                }
            });
            // @namespace GeoJSON
            // @factory L.geoJSON(geojson?: Object, options?: GeoJSON options)
            // Creates a GeoJSON layer. Optionally accepts an object in
            // [GeoJSON format](https://tools.ietf.org/html/rfc7946) to display on the map
            // (you can alternatively add it later with `addData` method) and an `options` object.
            function geoJSON(geojson, options) {
                return new GeoJSON(geojson, options);
            }
            // Backward compatibility.
            var geoJson = geoJSON;
            /*
             * @class ImageOverlay
             * @aka L.ImageOverlay
             * @inherits Interactive layer
             *
             * Used to load and display a single image over specific bounds of the map. Extends `Layer`.
             *
             * @example
             *
             * ```js
             * var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
             * 	imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
             * L.imageOverlay(imageUrl, imageBounds).addTo(map);
             * ```
             */
            var ImageOverlay = Layer.extend({
                // @section
                // @aka ImageOverlay options
                options: {
                    // @option opacity: Number = 1.0
                    // The opacity of the image overlay.
                    opacity: 1,
                    // @option alt: String = ''
                    // Text for the `alt` attribute of the image (useful for accessibility).
                    alt: '',
                    // @option interactive: Boolean = false
                    // If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.
                    interactive: false,
                    // @option crossOrigin: Boolean|String = false
                    // Whether the crossOrigin attribute will be added to the image.
                    // If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.
                    // Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
                    crossOrigin: false,
                    // @option errorOverlayUrl: String = ''
                    // URL to the overlay image to show in place of the overlay that failed to load.
                    errorOverlayUrl: '',
                    // @option zIndex: Number = 1
                    // The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the overlay layer.
                    zIndex: 1,
                    // @option className: String = ''
                    // A custom class name to assign to the image. Empty by default.
                    className: ''
                },
                initialize: function (url, bounds, options) {
                    this._url = url;
                    this._bounds = toLatLngBounds(bounds);
                    setOptions(this, options);
                },
                onAdd: function () {
                    if (!this._image) {
                        this._initImage();
                        if (this.options.opacity < 1) {
                            this._updateOpacity();
                        }
                    }
                    if (this.options.interactive) {
                        addClass(this._image, 'leaflet-interactive');
                        this.addInteractiveTarget(this._image);
                    }
                    this.getPane().appendChild(this._image);
                    this._reset();
                },
                onRemove: function () {
                    remove(this._image);
                    if (this.options.interactive) {
                        this.removeInteractiveTarget(this._image);
                    }
                },
                // @method setOpacity(opacity: Number): this
                // Sets the opacity of the overlay.
                setOpacity: function (opacity) {
                    this.options.opacity = opacity;
                    if (this._image) {
                        this._updateOpacity();
                    }
                    return this;
                },
                setStyle: function (styleOpts) {
                    if (styleOpts.opacity) {
                        this.setOpacity(styleOpts.opacity);
                    }
                    return this;
                },
                // @method bringToFront(): this
                // Brings the layer to the top of all overlays.
                bringToFront: function () {
                    if (this._map) {
                        toFront(this._image);
                    }
                    return this;
                },
                // @method bringToBack(): this
                // Brings the layer to the bottom of all overlays.
                bringToBack: function () {
                    if (this._map) {
                        toBack(this._image);
                    }
                    return this;
                },
                // @method setUrl(url: String): this
                // Changes the URL of the image.
                setUrl: function (url) {
                    this._url = url;
                    if (this._image) {
                        this._image.src = url;
                    }
                    return this;
                },
                // @method setBounds(bounds: LatLngBounds): this
                // Update the bounds that this ImageOverlay covers
                setBounds: function (bounds) {
                    this._bounds = toLatLngBounds(bounds);
                    if (this._map) {
                        this._reset();
                    }
                    return this;
                },
                getEvents: function () {
                    var events = {
                        zoom: this._reset,
                        viewreset: this._reset
                    };
                    if (this._zoomAnimated) {
                        events.zoomanim = this._animateZoom;
                    }
                    return events;
                },
                // @method setZIndex(value: Number): this
                // Changes the [zIndex](#imageoverlay-zindex) of the image overlay.
                setZIndex: function (value) {
                    this.options.zIndex = value;
                    this._updateZIndex();
                    return this;
                },
                // @method getBounds(): LatLngBounds
                // Get the bounds that this ImageOverlay covers
                getBounds: function () {
                    return this._bounds;
                },
                // @method getElement(): HTMLElement
                // Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
                // used by this overlay.
                getElement: function () {
                    return this._image;
                },
                _initImage: function () {
                    var wasElementSupplied = this._url.tagName === 'IMG';
                    var img = this._image = wasElementSupplied ? this._url : create$1('img');
                    addClass(img, 'leaflet-image-layer');
                    if (this._zoomAnimated) {
                        addClass(img, 'leaflet-zoom-animated');
                    }
                    if (this.options.className) {
                        addClass(img, this.options.className);
                    }
                    img.onselectstart = falseFn;
                    img.onmousemove = falseFn;
                    // @event load: Event
                    // Fired when the ImageOverlay layer has loaded its image
                    img.onload = bind(this.fire, this, 'load');
                    img.onerror = bind(this._overlayOnError, this, 'error');
                    if (this.options.crossOrigin || this.options.crossOrigin === '') {
                        img.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;
                    }
                    if (this.options.zIndex) {
                        this._updateZIndex();
                    }
                    if (wasElementSupplied) {
                        this._url = img.src;
                        return;
                    }
                    img.src = this._url;
                    img.alt = this.options.alt;
                },
                _animateZoom: function (e) {
                    var scale = this._map.getZoomScale(e.zoom), offset = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;
                    setTransform(this._image, offset, scale);
                },
                _reset: function () {
                    var image = this._image, bounds = new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())), size = bounds.getSize();
                    setPosition(image, bounds.min);
                    image.style.width = size.x + 'px';
                    image.style.height = size.y + 'px';
                },
                _updateOpacity: function () {
                    setOpacity(this._image, this.options.opacity);
                },
                _updateZIndex: function () {
                    if (this._image && this.options.zIndex !== undefined && this.options.zIndex !== null) {
                        this._image.style.zIndex = this.options.zIndex;
                    }
                },
                _overlayOnError: function () {
                    // @event error: Event
                    // Fired when the ImageOverlay layer fails to load its image
                    this.fire('error');
                    var errorUrl = this.options.errorOverlayUrl;
                    if (errorUrl && this._url !== errorUrl) {
                        this._url = errorUrl;
                        this._image.src = errorUrl;
                    }
                }
            });
            // @factory L.imageOverlay(imageUrl: String, bounds: LatLngBounds, options?: ImageOverlay options)
            // Instantiates an image overlay object given the URL of the image and the
            // geographical bounds it is tied to.
            var imageOverlay = function (url, bounds, options) {
                return new ImageOverlay(url, bounds, options);
            };
            /*
             * @class VideoOverlay
             * @aka L.VideoOverlay
             * @inherits ImageOverlay
             *
             * Used to load and display a video player over specific bounds of the map. Extends `ImageOverlay`.
             *
             * A video overlay uses the [`<video>`](https://developer.mozilla.org/docs/Web/HTML/Element/video)
             * HTML5 element.
             *
             * @example
             *
             * ```js
             * var videoUrl = 'https://www.mapbox.com/bites/00188/patricia_nasa.webm',
             * 	videoBounds = [[ 32, -130], [ 13, -100]];
             * L.videoOverlay(videoUrl, videoBounds ).addTo(map);
             * ```
             */
            var VideoOverlay = ImageOverlay.extend({
                // @section
                // @aka VideoOverlay options
                options: {
                    // @option autoplay: Boolean = true
                    // Whether the video starts playing automatically when loaded.
                    autoplay: true,
                    // @option loop: Boolean = true
                    // Whether the video will loop back to the beginning when played.
                    loop: true
                },
                _initImage: function () {
                    var wasElementSupplied = this._url.tagName === 'VIDEO';
                    var vid = this._image = wasElementSupplied ? this._url : create$1('video');
                    addClass(vid, 'leaflet-image-layer');
                    if (this._zoomAnimated) {
                        addClass(vid, 'leaflet-zoom-animated');
                    }
                    vid.onselectstart = falseFn;
                    vid.onmousemove = falseFn;
                    // @event load: Event
                    // Fired when the video has finished loading the first frame
                    vid.onloadeddata = bind(this.fire, this, 'load');
                    if (wasElementSupplied) {
                        var sourceElements = vid.getElementsByTagName('source');
                        var sources = [];
                        for (var j = 0; j < sourceElements.length; j++) {
                            sources.push(sourceElements[j].src);
                        }
                        this._url = (sourceElements.length > 0) ? sources : [vid.src];
                        return;
                    }
                    if (!isArray(this._url)) {
                        this._url = [this._url];
                    }
                    vid.autoplay = !!this.options.autoplay;
                    vid.loop = !!this.options.loop;
                    for (var i = 0; i < this._url.length; i++) {
                        var source = create$1('source');
                        source.src = this._url[i];
                        vid.appendChild(source);
                    }
                }
                // @method getElement(): HTMLVideoElement
                // Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
                // used by this overlay.
            });
            // @factory L.videoOverlay(video: String|Array|HTMLVideoElement, bounds: LatLngBounds, options?: VideoOverlay options)
            // Instantiates an image overlay object given the URL of the video (or array of URLs, or even a video element) and the
            // geographical bounds it is tied to.
            function videoOverlay(video, bounds, options) {
                return new VideoOverlay(video, bounds, options);
            }
            /*
             * @class DivOverlay
             * @inherits Layer
             * @aka L.DivOverlay
             * Base model for L.Popup and L.Tooltip. Inherit from it for custom popup like plugins.
             */
            // @namespace DivOverlay
            var DivOverlay = Layer.extend({
                // @section
                // @aka DivOverlay options
                options: {
                    // @option offset: Point = Point(0, 7)
                    // The offset of the popup position. Useful to control the anchor
                    // of the popup when opening it on some overlays.
                    offset: [0, 7],
                    // @option className: String = ''
                    // A custom CSS class name to assign to the popup.
                    className: '',
                    // @option pane: String = 'popupPane'
                    // `Map pane` where the popup will be added.
                    pane: 'popupPane'
                },
                initialize: function (options, source) {
                    setOptions(this, options);
                    this._source = source;
                },
                onAdd: function (map) {
                    this._zoomAnimated = map._zoomAnimated;
                    if (!this._container) {
                        this._initLayout();
                    }
                    if (map._fadeAnimated) {
                        setOpacity(this._container, 0);
                    }
                    clearTimeout(this._removeTimeout);
                    this.getPane().appendChild(this._container);
                    this.update();
                    if (map._fadeAnimated) {
                        setOpacity(this._container, 1);
                    }
                    this.bringToFront();
                },
                onRemove: function (map) {
                    if (map._fadeAnimated) {
                        setOpacity(this._container, 0);
                        this._removeTimeout = setTimeout(bind(remove, undefined, this._container), 200);
                    }
                    else {
                        remove(this._container);
                    }
                },
                // @namespace Popup
                // @method getLatLng: LatLng
                // Returns the geographical point of popup.
                getLatLng: function () {
                    return this._latlng;
                },
                // @method setLatLng(latlng: LatLng): this
                // Sets the geographical point where the popup will open.
                setLatLng: function (latlng) {
                    this._latlng = toLatLng(latlng);
                    if (this._map) {
                        this._updatePosition();
                        this._adjustPan();
                    }
                    return this;
                },
                // @method getContent: String|HTMLElement
                // Returns the content of the popup.
                getContent: function () {
                    return this._content;
                },
                // @method setContent(htmlContent: String|HTMLElement|Function): this
                // Sets the HTML content of the popup. If a function is passed the source layer will be passed to the function. The function should return a `String` or `HTMLElement` to be used in the popup.
                setContent: function (content) {
                    this._content = content;
                    this.update();
                    return this;
                },
                // @method getElement: String|HTMLElement
                // Alias for [getContent()](#popup-getcontent)
                getElement: function () {
                    return this._container;
                },
                // @method update: null
                // Updates the popup content, layout and position. Useful for updating the popup after something inside changed, e.g. image loaded.
                update: function () {
                    if (!this._map) {
                        return;
                    }
                    this._container.style.visibility = 'hidden';
                    this._updateContent();
                    this._updateLayout();
                    this._updatePosition();
                    this._container.style.visibility = '';
                    this._adjustPan();
                },
                getEvents: function () {
                    var events = {
                        zoom: this._updatePosition,
                        viewreset: this._updatePosition
                    };
                    if (this._zoomAnimated) {
                        events.zoomanim = this._animateZoom;
                    }
                    return events;
                },
                // @method isOpen: Boolean
                // Returns `true` when the popup is visible on the map.
                isOpen: function () {
                    return !!this._map && this._map.hasLayer(this);
                },
                // @method bringToFront: this
                // Brings this popup in front of other popups (in the same map pane).
                bringToFront: function () {
                    if (this._map) {
                        toFront(this._container);
                    }
                    return this;
                },
                // @method bringToBack: this
                // Brings this popup to the back of other popups (in the same map pane).
                bringToBack: function () {
                    if (this._map) {
                        toBack(this._container);
                    }
                    return this;
                },
                _updateContent: function () {
                    if (!this._content) {
                        return;
                    }
                    var node = this._contentNode;
                    var content = (typeof this._content === 'function') ? this._content(this._source || this) : this._content;
                    if (typeof content === 'string') {
                        node.innerHTML = content;
                    }
                    else {
                        while (node.hasChildNodes()) {
                            node.removeChild(node.firstChild);
                        }
                        node.appendChild(content);
                    }
                    this.fire('contentupdate');
                },
                _updatePosition: function () {
                    if (!this._map) {
                        return;
                    }
                    var pos = this._map.latLngToLayerPoint(this._latlng), offset = toPoint(this.options.offset), anchor = this._getAnchor();
                    if (this._zoomAnimated) {
                        setPosition(this._container, pos.add(anchor));
                    }
                    else {
                        offset = offset.add(pos).add(anchor);
                    }
                    var bottom = this._containerBottom = -offset.y, left = this._containerLeft = -Math.round(this._containerWidth / 2) + offset.x;
                    // bottom position the popup in case the height of the popup changes (images loading etc)
                    this._container.style.bottom = bottom + 'px';
                    this._container.style.left = left + 'px';
                },
                _getAnchor: function () {
                    return [0, 0];
                }
            });
            /*
             * @class Popup
             * @inherits DivOverlay
             * @aka L.Popup
             * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to
             * open popups while making sure that only one popup is open at one time
             * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.
             *
             * @example
             *
             * If you want to just bind a popup to marker click and then open it, it's really easy:
             *
             * ```js
             * marker.bindPopup(popupContent).openPopup();
             * ```
             * Path overlays like polylines also have a `bindPopup` method.
             * Here's a more complicated way to open a popup on a map:
             *
             * ```js
             * var popup = L.popup()
             * 	.setLatLng(latlng)
             * 	.setContent('<p>Hello world!<br />This is a nice popup.</p>')
             * 	.openOn(map);
             * ```
             */
            // @namespace Popup
            var Popup = DivOverlay.extend({
                // @section
                // @aka Popup options
                options: {
                    // @option maxWidth: Number = 300
                    // Max width of the popup, in pixels.
                    maxWidth: 300,
                    // @option minWidth: Number = 50
                    // Min width of the popup, in pixels.
                    minWidth: 50,
                    // @option maxHeight: Number = null
                    // If set, creates a scrollable container of the given height
                    // inside a popup if its content exceeds it.
                    maxHeight: null,
                    // @option autoPan: Boolean = true
                    // Set it to `false` if you don't want the map to do panning animation
                    // to fit the opened popup.
                    autoPan: true,
                    // @option autoPanPaddingTopLeft: Point = null
                    // The margin between the popup and the top left corner of the map
                    // view after autopanning was performed.
                    autoPanPaddingTopLeft: null,
                    // @option autoPanPaddingBottomRight: Point = null
                    // The margin between the popup and the bottom right corner of the map
                    // view after autopanning was performed.
                    autoPanPaddingBottomRight: null,
                    // @option autoPanPadding: Point = Point(5, 5)
                    // Equivalent of setting both top left and bottom right autopan padding to the same value.
                    autoPanPadding: [5, 5],
                    // @option keepInView: Boolean = false
                    // Set it to `true` if you want to prevent users from panning the popup
                    // off of the screen while it is open.
                    keepInView: false,
                    // @option closeButton: Boolean = true
                    // Controls the presence of a close button in the popup.
                    closeButton: true,
                    // @option autoClose: Boolean = true
                    // Set it to `false` if you want to override the default behavior of
                    // the popup closing when another popup is opened.
                    autoClose: true,
                    // @option closeOnEscapeKey: Boolean = true
                    // Set it to `false` if you want to override the default behavior of
                    // the ESC key for closing of the popup.
                    closeOnEscapeKey: true,
                    // @option closeOnClick: Boolean = *
                    // Set it if you want to override the default behavior of the popup closing when user clicks
                    // on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.
                    // @option className: String = ''
                    // A custom CSS class name to assign to the popup.
                    className: ''
                },
                // @namespace Popup
                // @method openOn(map: Map): this
                // Adds the popup to the map and closes the previous one. The same as `map.openPopup(popup)`.
                openOn: function (map) {
                    map.openPopup(this);
                    return this;
                },
                onAdd: function (map) {
                    DivOverlay.prototype.onAdd.call(this, map);
                    // @namespace Map
                    // @section Popup events
                    // @event popupopen: PopupEvent
                    // Fired when a popup is opened in the map
                    map.fire('popupopen', { popup: this });
                    if (this._source) {
                        // @namespace Layer
                        // @section Popup events
                        // @event popupopen: PopupEvent
                        // Fired when a popup bound to this layer is opened
                        this._source.fire('popupopen', { popup: this }, true);
                        // For non-path layers, we toggle the popup when clicking
                        // again the layer, so prevent the map to reopen it.
                        if (!(this._source instanceof Path)) {
                            this._source.on('preclick', stopPropagation);
                        }
                    }
                },
                onRemove: function (map) {
                    DivOverlay.prototype.onRemove.call(this, map);
                    // @namespace Map
                    // @section Popup events
                    // @event popupclose: PopupEvent
                    // Fired when a popup in the map is closed
                    map.fire('popupclose', { popup: this });
                    if (this._source) {
                        // @namespace Layer
                        // @section Popup events
                        // @event popupclose: PopupEvent
                        // Fired when a popup bound to this layer is closed
                        this._source.fire('popupclose', { popup: this }, true);
                        if (!(this._source instanceof Path)) {
                            this._source.off('preclick', stopPropagation);
                        }
                    }
                },
                getEvents: function () {
                    var events = DivOverlay.prototype.getEvents.call(this);
                    if (this.options.closeOnClick !== undefined ? this.options.closeOnClick : this._map.options.closePopupOnClick) {
                        events.preclick = this._close;
                    }
                    if (this.options.keepInView) {
                        events.moveend = this._adjustPan;
                    }
                    return events;
                },
                _close: function () {
                    if (this._map) {
                        this._map.closePopup(this);
                    }
                },
                _initLayout: function () {
                    var prefix = 'leaflet-popup', container = this._container = create$1('div', prefix + ' ' + (this.options.className || '') +
                        ' leaflet-zoom-animated');
                    var wrapper = this._wrapper = create$1('div', prefix + '-content-wrapper', container);
                    this._contentNode = create$1('div', prefix + '-content', wrapper);
                    disableClickPropagation(wrapper);
                    disableScrollPropagation(this._contentNode);
                    on(wrapper, 'contextmenu', stopPropagation);
                    this._tipContainer = create$1('div', prefix + '-tip-container', container);
                    this._tip = create$1('div', prefix + '-tip', this._tipContainer);
                    if (this.options.closeButton) {
                        var closeButton = this._closeButton = create$1('a', prefix + '-close-button', container);
                        closeButton.href = '#close';
                        closeButton.innerHTML = '&#215;';
                        on(closeButton, 'click', this._onCloseButtonClick, this);
                    }
                },
                _updateLayout: function () {
                    var container = this._contentNode, style = container.style;
                    style.width = '';
                    style.whiteSpace = 'nowrap';
                    var width = container.offsetWidth;
                    width = Math.min(width, this.options.maxWidth);
                    width = Math.max(width, this.options.minWidth);
                    style.width = (width + 1) + 'px';
                    style.whiteSpace = '';
                    style.height = '';
                    var height = container.offsetHeight, maxHeight = this.options.maxHeight, scrolledClass = 'leaflet-popup-scrolled';
                    if (maxHeight && height > maxHeight) {
                        style.height = maxHeight + 'px';
                        addClass(container, scrolledClass);
                    }
                    else {
                        removeClass(container, scrolledClass);
                    }
                    this._containerWidth = this._container.offsetWidth;
                },
                _animateZoom: function (e) {
                    var pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center), anchor = this._getAnchor();
                    setPosition(this._container, pos.add(anchor));
                },
                _adjustPan: function () {
                    if (!this.options.autoPan || (this._map._panAnim && this._map._panAnim._inProgress)) {
                        return;
                    }
                    var map = this._map, marginBottom = parseInt(getStyle(this._container, 'marginBottom'), 10) || 0, containerHeight = this._container.offsetHeight + marginBottom, containerWidth = this._containerWidth, layerPos = new Point(this._containerLeft, -containerHeight - this._containerBottom);
                    layerPos._add(getPosition(this._container));
                    var containerPos = map.layerPointToContainerPoint(layerPos), padding = toPoint(this.options.autoPanPadding), paddingTL = toPoint(this.options.autoPanPaddingTopLeft || padding), paddingBR = toPoint(this.options.autoPanPaddingBottomRight || padding), size = map.getSize(), dx = 0, dy = 0;
                    if (containerPos.x + containerWidth + paddingBR.x > size.x) { // right
                        dx = containerPos.x + containerWidth - size.x + paddingBR.x;
                    }
                    if (containerPos.x - dx - paddingTL.x < 0) { // left
                        dx = containerPos.x - paddingTL.x;
                    }
                    if (containerPos.y + containerHeight + paddingBR.y > size.y) { // bottom
                        dy = containerPos.y + containerHeight - size.y + paddingBR.y;
                    }
                    if (containerPos.y - dy - paddingTL.y < 0) { // top
                        dy = containerPos.y - paddingTL.y;
                    }
                    // @namespace Map
                    // @section Popup events
                    // @event autopanstart: Event
                    // Fired when the map starts autopanning when opening a popup.
                    if (dx || dy) {
                        map
                            .fire('autopanstart')
                            .panBy([dx, dy]);
                    }
                },
                _onCloseButtonClick: function (e) {
                    this._close();
                    stop(e);
                },
                _getAnchor: function () {
                    // Where should we anchor the popup on the source layer?
                    return toPoint(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
                }
            });
            // @namespace Popup
            // @factory L.popup(options?: Popup options, source?: Layer)
            // Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.
            var popup = function (options, source) {
                return new Popup(options, source);
            };
            /* @namespace Map
             * @section Interaction Options
             * @option closePopupOnClick: Boolean = true
             * Set it to `false` if you don't want popups to close when user clicks the map.
             */
            Map.mergeOptions({
                closePopupOnClick: true
            });
            // @namespace Map
            // @section Methods for Layers and Controls
            Map.include({
                // @method openPopup(popup: Popup): this
                // Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
                // @alternative
                // @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
                // Creates a popup with the specified content and options and opens it in the given point on a map.
                openPopup: function (popup, latlng, options) {
                    if (!(popup instanceof Popup)) {
                        popup = new Popup(options).setContent(popup);
                    }
                    if (latlng) {
                        popup.setLatLng(latlng);
                    }
                    if (this.hasLayer(popup)) {
                        return this;
                    }
                    if (this._popup && this._popup.options.autoClose) {
                        this.closePopup();
                    }
                    this._popup = popup;
                    return this.addLayer(popup);
                },
                // @method closePopup(popup?: Popup): this
                // Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
                closePopup: function (popup) {
                    if (!popup || popup === this._popup) {
                        popup = this._popup;
                        this._popup = null;
                    }
                    if (popup) {
                        this.removeLayer(popup);
                    }
                    return this;
                }
            });
            /*
             * @namespace Layer
             * @section Popup methods example
             *
             * All layers share a set of methods convenient for binding popups to it.
             *
             * ```js
             * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);
             * layer.openPopup();
             * layer.closePopup();
             * ```
             *
             * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.
             */
            // @section Popup methods
            Layer.include({
                // @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
                // Binds a popup to the layer with the passed `content` and sets up the
                // necessary event listeners. If a `Function` is passed it will receive
                // the layer as the first argument and should return a `String` or `HTMLElement`.
                bindPopup: function (content, options) {
                    if (content instanceof Popup) {
                        setOptions(content, options);
                        this._popup = content;
                        content._source = this;
                    }
                    else {
                        if (!this._popup || options) {
                            this._popup = new Popup(options, this);
                        }
                        this._popup.setContent(content);
                    }
                    if (!this._popupHandlersAdded) {
                        this.on({
                            click: this._openPopup,
                            keypress: this._onKeyPress,
                            remove: this.closePopup,
                            move: this._movePopup
                        });
                        this._popupHandlersAdded = true;
                    }
                    return this;
                },
                // @method unbindPopup(): this
                // Removes the popup previously bound with `bindPopup`.
                unbindPopup: function () {
                    if (this._popup) {
                        this.off({
                            click: this._openPopup,
                            keypress: this._onKeyPress,
                            remove: this.closePopup,
                            move: this._movePopup
                        });
                        this._popupHandlersAdded = false;
                        this._popup = null;
                    }
                    return this;
                },
                // @method openPopup(latlng?: LatLng): this
                // Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
                openPopup: function (layer, latlng) {
                    if (!(layer instanceof Layer)) {
                        latlng = layer;
                        layer = this;
                    }
                    if (layer instanceof FeatureGroup) {
                        for (var id in this._layers) {
                            layer = this._layers[id];
                            break;
                        }
                    }
                    if (!latlng) {
                        latlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();
                    }
                    if (this._popup && this._map) {
                        // set popup source to this layer
                        this._popup._source = layer;
                        // update the popup (content, layout, ect...)
                        this._popup.update();
                        // open the popup on the map
                        this._map.openPopup(this._popup, latlng);
                    }
                    return this;
                },
                // @method closePopup(): this
                // Closes the popup bound to this layer if it is open.
                closePopup: function () {
                    if (this._popup) {
                        this._popup._close();
                    }
                    return this;
                },
                // @method togglePopup(): this
                // Opens or closes the popup bound to this layer depending on its current state.
                togglePopup: function (target) {
                    if (this._popup) {
                        if (this._popup._map) {
                            this.closePopup();
                        }
                        else {
                            this.openPopup(target);
                        }
                    }
                    return this;
                },
                // @method isPopupOpen(): boolean
                // Returns `true` if the popup bound to this layer is currently open.
                isPopupOpen: function () {
                    return (this._popup ? this._popup.isOpen() : false);
                },
                // @method setPopupContent(content: String|HTMLElement|Popup): this
                // Sets the content of the popup bound to this layer.
                setPopupContent: function (content) {
                    if (this._popup) {
                        this._popup.setContent(content);
                    }
                    return this;
                },
                // @method getPopup(): Popup
                // Returns the popup bound to this layer.
                getPopup: function () {
                    return this._popup;
                },
                _openPopup: function (e) {
                    var layer = e.layer || e.target;
                    if (!this._popup) {
                        return;
                    }
                    if (!this._map) {
                        return;
                    }
                    // prevent map click
                    stop(e);
                    // if this inherits from Path its a vector and we can just
                    // open the popup at the new location
                    if (layer instanceof Path) {
                        this.openPopup(e.layer || e.target, e.latlng);
                        return;
                    }
                    // otherwise treat it like a marker and figure out
                    // if we should toggle it open/closed
                    if (this._map.hasLayer(this._popup) && this._popup._source === layer) {
                        this.closePopup();
                    }
                    else {
                        this.openPopup(layer, e.latlng);
                    }
                },
                _movePopup: function (e) {
                    this._popup.setLatLng(e.latlng);
                },
                _onKeyPress: function (e) {
                    if (e.originalEvent.keyCode === 13) {
                        this._openPopup(e);
                    }
                }
            });
            /*
             * @class Tooltip
             * @inherits DivOverlay
             * @aka L.Tooltip
             * Used to display small texts on top of map layers.
             *
             * @example
             *
             * ```js
             * marker.bindTooltip("my tooltip text").openTooltip();
             * ```
             * Note about tooltip offset. Leaflet takes two options in consideration
             * for computing tooltip offsetting:
             * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.
             *   Add a positive x offset to move the tooltip to the right, and a positive y offset to
             *   move it to the bottom. Negatives will move to the left and top.
             * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You
             *   should adapt this value if you use a custom icon.
             */
            // @namespace Tooltip
            var Tooltip = DivOverlay.extend({
                // @section
                // @aka Tooltip options
                options: {
                    // @option pane: String = 'tooltipPane'
                    // `Map pane` where the tooltip will be added.
                    pane: 'tooltipPane',
                    // @option offset: Point = Point(0, 0)
                    // Optional offset of the tooltip position.
                    offset: [0, 0],
                    // @option direction: String = 'auto'
                    // Direction where to open the tooltip. Possible values are: `right`, `left`,
                    // `top`, `bottom`, `center`, `auto`.
                    // `auto` will dynamically switch between `right` and `left` according to the tooltip
                    // position on the map.
                    direction: 'auto',
                    // @option permanent: Boolean = false
                    // Whether to open the tooltip permanently or only on mouseover.
                    permanent: false,
                    // @option sticky: Boolean = false
                    // If true, the tooltip will follow the mouse instead of being fixed at the feature center.
                    sticky: false,
                    // @option interactive: Boolean = false
                    // If true, the tooltip will listen to the feature events.
                    interactive: false,
                    // @option opacity: Number = 0.9
                    // Tooltip container opacity.
                    opacity: 0.9
                },
                onAdd: function (map) {
                    DivOverlay.prototype.onAdd.call(this, map);
                    this.setOpacity(this.options.opacity);
                    // @namespace Map
                    // @section Tooltip events
                    // @event tooltipopen: TooltipEvent
                    // Fired when a tooltip is opened in the map.
                    map.fire('tooltipopen', { tooltip: this });
                    if (this._source) {
                        // @namespace Layer
                        // @section Tooltip events
                        // @event tooltipopen: TooltipEvent
                        // Fired when a tooltip bound to this layer is opened.
                        this._source.fire('tooltipopen', { tooltip: this }, true);
                    }
                },
                onRemove: function (map) {
                    DivOverlay.prototype.onRemove.call(this, map);
                    // @namespace Map
                    // @section Tooltip events
                    // @event tooltipclose: TooltipEvent
                    // Fired when a tooltip in the map is closed.
                    map.fire('tooltipclose', { tooltip: this });
                    if (this._source) {
                        // @namespace Layer
                        // @section Tooltip events
                        // @event tooltipclose: TooltipEvent
                        // Fired when a tooltip bound to this layer is closed.
                        this._source.fire('tooltipclose', { tooltip: this }, true);
                    }
                },
                getEvents: function () {
                    var events = DivOverlay.prototype.getEvents.call(this);
                    if (touch && !this.options.permanent) {
                        events.preclick = this._close;
                    }
                    return events;
                },
                _close: function () {
                    if (this._map) {
                        this._map.closeTooltip(this);
                    }
                },
                _initLayout: function () {
                    var prefix = 'leaflet-tooltip', className = prefix + ' ' + (this.options.className || '') + ' leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');
                    this._contentNode = this._container = create$1('div', className);
                },
                _updateLayout: function () { },
                _adjustPan: function () { },
                _setPosition: function (pos) {
                    var map = this._map, container = this._container, centerPoint = map.latLngToContainerPoint(map.getCenter()), tooltipPoint = map.layerPointToContainerPoint(pos), direction = this.options.direction, tooltipWidth = container.offsetWidth, tooltipHeight = container.offsetHeight, offset = toPoint(this.options.offset), anchor = this._getAnchor();
                    if (direction === 'top') {
                        pos = pos.add(toPoint(-tooltipWidth / 2 + offset.x, -tooltipHeight + offset.y + anchor.y, true));
                    }
                    else if (direction === 'bottom') {
                        pos = pos.subtract(toPoint(tooltipWidth / 2 - offset.x, -offset.y, true));
                    }
                    else if (direction === 'center') {
                        pos = pos.subtract(toPoint(tooltipWidth / 2 + offset.x, tooltipHeight / 2 - anchor.y + offset.y, true));
                    }
                    else if (direction === 'right' || direction === 'auto' && tooltipPoint.x < centerPoint.x) {
                        direction = 'right';
                        pos = pos.add(toPoint(offset.x + anchor.x, anchor.y - tooltipHeight / 2 + offset.y, true));
                    }
                    else {
                        direction = 'left';
                        pos = pos.subtract(toPoint(tooltipWidth + anchor.x - offset.x, tooltipHeight / 2 - anchor.y - offset.y, true));
                    }
                    removeClass(container, 'leaflet-tooltip-right');
                    removeClass(container, 'leaflet-tooltip-left');
                    removeClass(container, 'leaflet-tooltip-top');
                    removeClass(container, 'leaflet-tooltip-bottom');
                    addClass(container, 'leaflet-tooltip-' + direction);
                    setPosition(container, pos);
                },
                _updatePosition: function () {
                    var pos = this._map.latLngToLayerPoint(this._latlng);
                    this._setPosition(pos);
                },
                setOpacity: function (opacity) {
                    this.options.opacity = opacity;
                    if (this._container) {
                        setOpacity(this._container, opacity);
                    }
                },
                _animateZoom: function (e) {
                    var pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center);
                    this._setPosition(pos);
                },
                _getAnchor: function () {
                    // Where should we anchor the tooltip on the source layer?
                    return toPoint(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
                }
            });
            // @namespace Tooltip
            // @factory L.tooltip(options?: Tooltip options, source?: Layer)
            // Instantiates a Tooltip object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.
            var tooltip = function (options, source) {
                return new Tooltip(options, source);
            };
            // @namespace Map
            // @section Methods for Layers and Controls
            Map.include({
                // @method openTooltip(tooltip: Tooltip): this
                // Opens the specified tooltip.
                // @alternative
                // @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
                // Creates a tooltip with the specified content and options and open it.
                openTooltip: function (tooltip, latlng, options) {
                    if (!(tooltip instanceof Tooltip)) {
                        tooltip = new Tooltip(options).setContent(tooltip);
                    }
                    if (latlng) {
                        tooltip.setLatLng(latlng);
                    }
                    if (this.hasLayer(tooltip)) {
                        return this;
                    }
                    return this.addLayer(tooltip);
                },
                // @method closeTooltip(tooltip?: Tooltip): this
                // Closes the tooltip given as parameter.
                closeTooltip: function (tooltip) {
                    if (tooltip) {
                        this.removeLayer(tooltip);
                    }
                    return this;
                }
            });
            /*
             * @namespace Layer
             * @section Tooltip methods example
             *
             * All layers share a set of methods convenient for binding tooltips to it.
             *
             * ```js
             * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);
             * layer.openTooltip();
             * layer.closeTooltip();
             * ```
             */
            // @section Tooltip methods
            Layer.include({
                // @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
                // Binds a tooltip to the layer with the passed `content` and sets up the
                // necessary event listeners. If a `Function` is passed it will receive
                // the layer as the first argument and should return a `String` or `HTMLElement`.
                bindTooltip: function (content, options) {
                    if (content instanceof Tooltip) {
                        setOptions(content, options);
                        this._tooltip = content;
                        content._source = this;
                    }
                    else {
                        if (!this._tooltip || options) {
                            this._tooltip = new Tooltip(options, this);
                        }
                        this._tooltip.setContent(content);
                    }
                    this._initTooltipInteractions();
                    if (this._tooltip.options.permanent && this._map && this._map.hasLayer(this)) {
                        this.openTooltip();
                    }
                    return this;
                },
                // @method unbindTooltip(): this
                // Removes the tooltip previously bound with `bindTooltip`.
                unbindTooltip: function () {
                    if (this._tooltip) {
                        this._initTooltipInteractions(true);
                        this.closeTooltip();
                        this._tooltip = null;
                    }
                    return this;
                },
                _initTooltipInteractions: function (remove$$1) {
                    if (!remove$$1 && this._tooltipHandlersAdded) {
                        return;
                    }
                    var onOff = remove$$1 ? 'off' : 'on', events = {
                        remove: this.closeTooltip,
                        move: this._moveTooltip
                    };
                    if (!this._tooltip.options.permanent) {
                        events.mouseover = this._openTooltip;
                        events.mouseout = this.closeTooltip;
                        if (this._tooltip.options.sticky) {
                            events.mousemove = this._moveTooltip;
                        }
                        if (touch) {
                            events.click = this._openTooltip;
                        }
                    }
                    else {
                        events.add = this._openTooltip;
                    }
                    this[onOff](events);
                    this._tooltipHandlersAdded = !remove$$1;
                },
                // @method openTooltip(latlng?: LatLng): this
                // Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
                openTooltip: function (layer, latlng) {
                    if (!(layer instanceof Layer)) {
                        latlng = layer;
                        layer = this;
                    }
                    if (layer instanceof FeatureGroup) {
                        for (var id in this._layers) {
                            layer = this._layers[id];
                            break;
                        }
                    }
                    if (!latlng) {
                        latlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();
                    }
                    if (this._tooltip && this._map) {
                        // set tooltip source to this layer
                        this._tooltip._source = layer;
                        // update the tooltip (content, layout, ect...)
                        this._tooltip.update();
                        // open the tooltip on the map
                        this._map.openTooltip(this._tooltip, latlng);
                        // Tooltip container may not be defined if not permanent and never
                        // opened.
                        if (this._tooltip.options.interactive && this._tooltip._container) {
                            addClass(this._tooltip._container, 'leaflet-clickable');
                            this.addInteractiveTarget(this._tooltip._container);
                        }
                    }
                    return this;
                },
                // @method closeTooltip(): this
                // Closes the tooltip bound to this layer if it is open.
                closeTooltip: function () {
                    if (this._tooltip) {
                        this._tooltip._close();
                        if (this._tooltip.options.interactive && this._tooltip._container) {
                            removeClass(this._tooltip._container, 'leaflet-clickable');
                            this.removeInteractiveTarget(this._tooltip._container);
                        }
                    }
                    return this;
                },
                // @method toggleTooltip(): this
                // Opens or closes the tooltip bound to this layer depending on its current state.
                toggleTooltip: function (target) {
                    if (this._tooltip) {
                        if (this._tooltip._map) {
                            this.closeTooltip();
                        }
                        else {
                            this.openTooltip(target);
                        }
                    }
                    return this;
                },
                // @method isTooltipOpen(): boolean
                // Returns `true` if the tooltip bound to this layer is currently open.
                isTooltipOpen: function () {
                    return this._tooltip.isOpen();
                },
                // @method setTooltipContent(content: String|HTMLElement|Tooltip): this
                // Sets the content of the tooltip bound to this layer.
                setTooltipContent: function (content) {
                    if (this._tooltip) {
                        this._tooltip.setContent(content);
                    }
                    return this;
                },
                // @method getTooltip(): Tooltip
                // Returns the tooltip bound to this layer.
                getTooltip: function () {
                    return this._tooltip;
                },
                _openTooltip: function (e) {
                    var layer = e.layer || e.target;
                    if (!this._tooltip || !this._map) {
                        return;
                    }
                    this.openTooltip(layer, this._tooltip.options.sticky ? e.latlng : undefined);
                },
                _moveTooltip: function (e) {
                    var latlng = e.latlng, containerPoint, layerPoint;
                    if (this._tooltip.options.sticky && e.originalEvent) {
                        containerPoint = this._map.mouseEventToContainerPoint(e.originalEvent);
                        layerPoint = this._map.containerPointToLayerPoint(containerPoint);
                        latlng = this._map.layerPointToLatLng(layerPoint);
                    }
                    this._tooltip.setLatLng(latlng);
                }
            });
            /*
             * @class DivIcon
             * @aka L.DivIcon
             * @inherits Icon
             *
             * Represents a lightweight icon for markers that uses a simple `<div>`
             * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.
             *
             * @example
             * ```js
             * var myIcon = L.divIcon({className: 'my-div-icon'});
             * // you can set .my-div-icon styles in CSS
             *
             * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
             * ```
             *
             * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.
             */
            var DivIcon = Icon.extend({
                options: {
                    // @section
                    // @aka DivIcon options
                    iconSize: [12, 12],
                    // iconAnchor: (Point),
                    // popupAnchor: (Point),
                    // @option html: String = ''
                    // Custom HTML code to put inside the div element, empty by default.
                    html: false,
                    // @option bgPos: Point = [0, 0]
                    // Optional relative position of the background, in pixels
                    bgPos: null,
                    className: 'leaflet-div-icon'
                },
                createIcon: function (oldIcon) {
                    var div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'), options = this.options;
                    div.innerHTML = options.html !== false ? options.html : '';
                    if (options.bgPos) {
                        var bgPos = toPoint(options.bgPos);
                        div.style.backgroundPosition = (-bgPos.x) + 'px ' + (-bgPos.y) + 'px';
                    }
                    this._setIconStyles(div, 'icon');
                    return div;
                },
                createShadow: function () {
                    return null;
                }
            });
            // @factory L.divIcon(options: DivIcon options)
            // Creates a `DivIcon` instance with the given options.
            function divIcon(options) {
                return new DivIcon(options);
            }
            Icon.Default = IconDefault;
            /*
             * @class GridLayer
             * @inherits Layer
             * @aka L.GridLayer
             *
             * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.
             * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.
             *
             *
             * @section Synchronous usage
             * @example
             *
             * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.
             *
             * ```js
             * var CanvasLayer = L.GridLayer.extend({
             *     createTile: function(coords){
             *         // create a <canvas> element for drawing
             *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
             *
             *         // setup tile width and height according to the options
             *         var size = this.getTileSize();
             *         tile.width = size.x;
             *         tile.height = size.y;
             *
             *         // get a canvas context and draw something on it using coords.x, coords.y and coords.z
             *         var ctx = tile.getContext('2d');
             *
             *         // return the tile so it can be rendered on screen
             *         return tile;
             *     }
             * });
             * ```
             *
             * @section Asynchronous usage
             * @example
             *
             * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.
             *
             * ```js
             * var CanvasLayer = L.GridLayer.extend({
             *     createTile: function(coords, done){
             *         var error;
             *
             *         // create a <canvas> element for drawing
             *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
             *
             *         // setup tile width and height according to the options
             *         var size = this.getTileSize();
             *         tile.width = size.x;
             *         tile.height = size.y;
             *
             *         // draw something asynchronously and pass the tile to the done() callback
             *         setTimeout(function() {
             *             done(error, tile);
             *         }, 1000);
             *
             *         return tile;
             *     }
             * });
             * ```
             *
             * @section
             */
            var GridLayer = Layer.extend({
                // @section
                // @aka GridLayer options
                options: {
                    // @option tileSize: Number|Point = 256
                    // Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.
                    tileSize: 256,
                    // @option opacity: Number = 1.0
                    // Opacity of the tiles. Can be used in the `createTile()` function.
                    opacity: 1,
                    // @option updateWhenIdle: Boolean = (depends)
                    // Load new tiles only when panning ends.
                    // `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
                    // `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
                    // [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
                    updateWhenIdle: mobile,
                    // @option updateWhenZooming: Boolean = true
                    // By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
                    updateWhenZooming: true,
                    // @option updateInterval: Number = 200
                    // Tiles will not update more than once every `updateInterval` milliseconds when panning.
                    updateInterval: 200,
                    // @option zIndex: Number = 1
                    // The explicit zIndex of the tile layer.
                    zIndex: 1,
                    // @option bounds: LatLngBounds = undefined
                    // If set, tiles will only be loaded inside the set `LatLngBounds`.
                    bounds: null,
                    // @option minZoom: Number = 0
                    // The minimum zoom level down to which this layer will be displayed (inclusive).
                    minZoom: 0,
                    // @option maxZoom: Number = undefined
                    // The maximum zoom level up to which this layer will be displayed (inclusive).
                    maxZoom: undefined,
                    // @option maxNativeZoom: Number = undefined
                    // Maximum zoom number the tile source has available. If it is specified,
                    // the tiles on all zoom levels higher than `maxNativeZoom` will be loaded
                    // from `maxNativeZoom` level and auto-scaled.
                    maxNativeZoom: undefined,
                    // @option minNativeZoom: Number = undefined
                    // Minimum zoom number the tile source has available. If it is specified,
                    // the tiles on all zoom levels lower than `minNativeZoom` will be loaded
                    // from `minNativeZoom` level and auto-scaled.
                    minNativeZoom: undefined,
                    // @option noWrap: Boolean = false
                    // Whether the layer is wrapped around the antimeridian. If `true`, the
                    // GridLayer will only be displayed once at low zoom levels. Has no
                    // effect when the [map CRS](#map-crs) doesn't wrap around. Can be used
                    // in combination with [`bounds`](#gridlayer-bounds) to prevent requesting
                    // tiles outside the CRS limits.
                    noWrap: false,
                    // @option pane: String = 'tilePane'
                    // `Map pane` where the grid layer will be added.
                    pane: 'tilePane',
                    // @option className: String = ''
                    // A custom class name to assign to the tile layer. Empty by default.
                    className: '',
                    // @option keepBuffer: Number = 2
                    // When panning the map, keep this many rows and columns of tiles before unloading them.
                    keepBuffer: 2
                },
                initialize: function (options) {
                    setOptions(this, options);
                },
                onAdd: function () {
                    this._initContainer();
                    this._levels = {};
                    this._tiles = {};
                    this._resetView();
                    this._update();
                },
                beforeAdd: function (map) {
                    map._addZoomLimit(this);
                },
                onRemove: function (map) {
                    this._removeAllTiles();
                    remove(this._container);
                    map._removeZoomLimit(this);
                    this._container = null;
                    this._tileZoom = undefined;
                },
                // @method bringToFront: this
                // Brings the tile layer to the top of all tile layers.
                bringToFront: function () {
                    if (this._map) {
                        toFront(this._container);
                        this._setAutoZIndex(Math.max);
                    }
                    return this;
                },
                // @method bringToBack: this
                // Brings the tile layer to the bottom of all tile layers.
                bringToBack: function () {
                    if (this._map) {
                        toBack(this._container);
                        this._setAutoZIndex(Math.min);
                    }
                    return this;
                },
                // @method getContainer: HTMLElement
                // Returns the HTML element that contains the tiles for this layer.
                getContainer: function () {
                    return this._container;
                },
                // @method setOpacity(opacity: Number): this
                // Changes the [opacity](#gridlayer-opacity) of the grid layer.
                setOpacity: function (opacity) {
                    this.options.opacity = opacity;
                    this._updateOpacity();
                    return this;
                },
                // @method setZIndex(zIndex: Number): this
                // Changes the [zIndex](#gridlayer-zindex) of the grid layer.
                setZIndex: function (zIndex) {
                    this.options.zIndex = zIndex;
                    this._updateZIndex();
                    return this;
                },
                // @method isLoading: Boolean
                // Returns `true` if any tile in the grid layer has not finished loading.
                isLoading: function () {
                    return this._loading;
                },
                // @method redraw: this
                // Causes the layer to clear all the tiles and request them again.
                redraw: function () {
                    if (this._map) {
                        this._removeAllTiles();
                        this._update();
                    }
                    return this;
                },
                getEvents: function () {
                    var events = {
                        viewprereset: this._invalidateAll,
                        viewreset: this._resetView,
                        zoom: this._resetView,
                        moveend: this._onMoveEnd
                    };
                    if (!this.options.updateWhenIdle) {
                        // update tiles on move, but not more often than once per given interval
                        if (!this._onMove) {
                            this._onMove = throttle(this._onMoveEnd, this.options.updateInterval, this);
                        }
                        events.move = this._onMove;
                    }
                    if (this._zoomAnimated) {
                        events.zoomanim = this._animateZoom;
                    }
                    return events;
                },
                // @section Extension methods
                // Layers extending `GridLayer` shall reimplement the following method.
                // @method createTile(coords: Object, done?: Function): HTMLElement
                // Called only internally, must be overridden by classes extending `GridLayer`.
                // Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback
                // is specified, it must be called when the tile has finished loading and drawing.
                createTile: function () {
                    return document.createElement('div');
                },
                // @section
                // @method getTileSize: Point
                // Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
                getTileSize: function () {
                    var s = this.options.tileSize;
                    return s instanceof Point ? s : new Point(s, s);
                },
                _updateZIndex: function () {
                    if (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {
                        this._container.style.zIndex = this.options.zIndex;
                    }
                },
                _setAutoZIndex: function (compare) {
                    // go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)
                    var layers = this.getPane().children, edgeZIndex = -compare(-Infinity, Infinity); // -Infinity for max, Infinity for min
                    for (var i = 0, len = layers.length, zIndex; i < len; i++) {
                        zIndex = layers[i].style.zIndex;
                        if (layers[i] !== this._container && zIndex) {
                            edgeZIndex = compare(edgeZIndex, +zIndex);
                        }
                    }
                    if (isFinite(edgeZIndex)) {
                        this.options.zIndex = edgeZIndex + compare(-1, 1);
                        this._updateZIndex();
                    }
                },
                _updateOpacity: function () {
                    if (!this._map) {
                        return;
                    }
                    // IE doesn't inherit filter opacity properly, so we're forced to set it on tiles
                    if (ielt9) {
                        return;
                    }
                    setOpacity(this._container, this.options.opacity);
                    var now = +new Date(), nextFrame = false, willPrune = false;
                    for (var key in this._tiles) {
                        var tile = this._tiles[key];
                        if (!tile.current || !tile.loaded) {
                            continue;
                        }
                        var fade = Math.min(1, (now - tile.loaded) / 200);
                        setOpacity(tile.el, fade);
                        if (fade < 1) {
                            nextFrame = true;
                        }
                        else {
                            if (tile.active) {
                                willPrune = true;
                            }
                            else {
                                this._onOpaqueTile(tile);
                            }
                            tile.active = true;
                        }
                    }
                    if (willPrune && !this._noPrune) {
                        this._pruneTiles();
                    }
                    if (nextFrame) {
                        cancelAnimFrame(this._fadeFrame);
                        this._fadeFrame = requestAnimFrame(this._updateOpacity, this);
                    }
                },
                _onOpaqueTile: falseFn,
                _initContainer: function () {
                    if (this._container) {
                        return;
                    }
                    this._container = create$1('div', 'leaflet-layer ' + (this.options.className || ''));
                    this._updateZIndex();
                    if (this.options.opacity < 1) {
                        this._updateOpacity();
                    }
                    this.getPane().appendChild(this._container);
                },
                _updateLevels: function () {
                    var zoom = this._tileZoom, maxZoom = this.options.maxZoom;
                    if (zoom === undefined) {
                        return undefined;
                    }
                    for (var z in this._levels) {
                        if (this._levels[z].el.children.length || z === zoom) {
                            this._levels[z].el.style.zIndex = maxZoom - Math.abs(zoom - z);
                            this._onUpdateLevel(z);
                        }
                        else {
                            remove(this._levels[z].el);
                            this._removeTilesAtZoom(z);
                            this._onRemoveLevel(z);
                            delete this._levels[z];
                        }
                    }
                    var level = this._levels[zoom], map = this._map;
                    if (!level) {
                        level = this._levels[zoom] = {};
                        level.el = create$1('div', 'leaflet-tile-container leaflet-zoom-animated', this._container);
                        level.el.style.zIndex = maxZoom;
                        level.origin = map.project(map.unproject(map.getPixelOrigin()), zoom).round();
                        level.zoom = zoom;
                        this._setZoomTransform(level, map.getCenter(), map.getZoom());
                        // force the browser to consider the newly added element for transition
                        falseFn(level.el.offsetWidth);
                        this._onCreateLevel(level);
                    }
                    this._level = level;
                    return level;
                },
                _onUpdateLevel: falseFn,
                _onRemoveLevel: falseFn,
                _onCreateLevel: falseFn,
                _pruneTiles: function () {
                    if (!this._map) {
                        return;
                    }
                    var key, tile;
                    var zoom = this._map.getZoom();
                    if (zoom > this.options.maxZoom ||
                        zoom < this.options.minZoom) {
                        this._removeAllTiles();
                        return;
                    }
                    for (key in this._tiles) {
                        tile = this._tiles[key];
                        tile.retain = tile.current;
                    }
                    for (key in this._tiles) {
                        tile = this._tiles[key];
                        if (tile.current && !tile.active) {
                            var coords = tile.coords;
                            if (!this._retainParent(coords.x, coords.y, coords.z, coords.z - 5)) {
                                this._retainChildren(coords.x, coords.y, coords.z, coords.z + 2);
                            }
                        }
                    }
                    for (key in this._tiles) {
                        if (!this._tiles[key].retain) {
                            this._removeTile(key);
                        }
                    }
                },
                _removeTilesAtZoom: function (zoom) {
                    for (var key in this._tiles) {
                        if (this._tiles[key].coords.z !== zoom) {
                            continue;
                        }
                        this._removeTile(key);
                    }
                },
                _removeAllTiles: function () {
                    for (var key in this._tiles) {
                        this._removeTile(key);
                    }
                },
                _invalidateAll: function () {
                    for (var z in this._levels) {
                        remove(this._levels[z].el);
                        this._onRemoveLevel(z);
                        delete this._levels[z];
                    }
                    this._removeAllTiles();
                    this._tileZoom = undefined;
                },
                _retainParent: function (x, y, z, minZoom) {
                    var x2 = Math.floor(x / 2), y2 = Math.floor(y / 2), z2 = z - 1, coords2 = new Point(+x2, +y2);
                    coords2.z = +z2;
                    var key = this._tileCoordsToKey(coords2), tile = this._tiles[key];
                    if (tile && tile.active) {
                        tile.retain = true;
                        return true;
                    }
                    else if (tile && tile.loaded) {
                        tile.retain = true;
                    }
                    if (z2 > minZoom) {
                        return this._retainParent(x2, y2, z2, minZoom);
                    }
                    return false;
                },
                _retainChildren: function (x, y, z, maxZoom) {
                    for (var i = 2 * x; i < 2 * x + 2; i++) {
                        for (var j = 2 * y; j < 2 * y + 2; j++) {
                            var coords = new Point(i, j);
                            coords.z = z + 1;
                            var key = this._tileCoordsToKey(coords), tile = this._tiles[key];
                            if (tile && tile.active) {
                                tile.retain = true;
                                continue;
                            }
                            else if (tile && tile.loaded) {
                                tile.retain = true;
                            }
                            if (z + 1 < maxZoom) {
                                this._retainChildren(i, j, z + 1, maxZoom);
                            }
                        }
                    }
                },
                _resetView: function (e) {
                    var animating = e && (e.pinch || e.flyTo);
                    this._setView(this._map.getCenter(), this._map.getZoom(), animating, animating);
                },
                _animateZoom: function (e) {
                    this._setView(e.center, e.zoom, true, e.noUpdate);
                },
                _clampZoom: function (zoom) {
                    var options = this.options;
                    if (undefined !== options.minNativeZoom && zoom < options.minNativeZoom) {
                        return options.minNativeZoom;
                    }
                    if (undefined !== options.maxNativeZoom && options.maxNativeZoom < zoom) {
                        return options.maxNativeZoom;
                    }
                    return zoom;
                },
                _setView: function (center, zoom, noPrune, noUpdate) {
                    var tileZoom = this._clampZoom(Math.round(zoom));
                    if ((this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom) ||
                        (this.options.minZoom !== undefined && tileZoom < this.options.minZoom)) {
                        tileZoom = undefined;
                    }
                    var tileZoomChanged = this.options.updateWhenZooming && (tileZoom !== this._tileZoom);
                    if (!noUpdate || tileZoomChanged) {
                        this._tileZoom = tileZoom;
                        if (this._abortLoading) {
                            this._abortLoading();
                        }
                        this._updateLevels();
                        this._resetGrid();
                        if (tileZoom !== undefined) {
                            this._update(center);
                        }
                        if (!noPrune) {
                            this._pruneTiles();
                        }
                        // Flag to prevent _updateOpacity from pruning tiles during
                        // a zoom anim or a pinch gesture
                        this._noPrune = !!noPrune;
                    }
                    this._setZoomTransforms(center, zoom);
                },
                _setZoomTransforms: function (center, zoom) {
                    for (var i in this._levels) {
                        this._setZoomTransform(this._levels[i], center, zoom);
                    }
                },
                _setZoomTransform: function (level, center, zoom) {
                    var scale = this._map.getZoomScale(zoom, level.zoom), translate = level.origin.multiplyBy(scale)
                        .subtract(this._map._getNewPixelOrigin(center, zoom)).round();
                    if (any3d) {
                        setTransform(level.el, translate, scale);
                    }
                    else {
                        setPosition(level.el, translate);
                    }
                },
                _resetGrid: function () {
                    var map = this._map, crs = map.options.crs, tileSize = this._tileSize = this.getTileSize(), tileZoom = this._tileZoom;
                    var bounds = this._map.getPixelWorldBounds(this._tileZoom);
                    if (bounds) {
                        this._globalTileRange = this._pxBoundsToTileRange(bounds);
                    }
                    this._wrapX = crs.wrapLng && !this.options.noWrap && [
                        Math.floor(map.project([0, crs.wrapLng[0]], tileZoom).x / tileSize.x),
                        Math.ceil(map.project([0, crs.wrapLng[1]], tileZoom).x / tileSize.y)
                    ];
                    this._wrapY = crs.wrapLat && !this.options.noWrap && [
                        Math.floor(map.project([crs.wrapLat[0], 0], tileZoom).y / tileSize.x),
                        Math.ceil(map.project([crs.wrapLat[1], 0], tileZoom).y / tileSize.y)
                    ];
                },
                _onMoveEnd: function () {
                    if (!this._map || this._map._animatingZoom) {
                        return;
                    }
                    this._update();
                },
                _getTiledPixelBounds: function (center) {
                    var map = this._map, mapZoom = map._animatingZoom ? Math.max(map._animateToZoom, map.getZoom()) : map.getZoom(), scale = map.getZoomScale(mapZoom, this._tileZoom), pixelCenter = map.project(center, this._tileZoom).floor(), halfSize = map.getSize().divideBy(scale * 2);
                    return new Bounds(pixelCenter.subtract(halfSize), pixelCenter.add(halfSize));
                },
                // Private method to load tiles in the grid's active zoom level according to map bounds
                _update: function (center) {
                    var map = this._map;
                    if (!map) {
                        return;
                    }
                    var zoom = this._clampZoom(map.getZoom());
                    if (center === undefined) {
                        center = map.getCenter();
                    }
                    if (this._tileZoom === undefined) {
                        return;
                    } // if out of minzoom/maxzoom
                    var pixelBounds = this._getTiledPixelBounds(center), tileRange = this._pxBoundsToTileRange(pixelBounds), tileCenter = tileRange.getCenter(), queue = [], margin = this.options.keepBuffer, noPruneRange = new Bounds(tileRange.getBottomLeft().subtract([margin, -margin]), tileRange.getTopRight().add([margin, -margin]));
                    // Sanity check: panic if the tile range contains Infinity somewhere.
                    if (!(isFinite(tileRange.min.x) &&
                        isFinite(tileRange.min.y) &&
                        isFinite(tileRange.max.x) &&
                        isFinite(tileRange.max.y))) {
                        throw new Error('Attempted to load an infinite number of tiles');
                    }
                    for (var key in this._tiles) {
                        var c = this._tiles[key].coords;
                        if (c.z !== this._tileZoom || !noPruneRange.contains(new Point(c.x, c.y))) {
                            this._tiles[key].current = false;
                        }
                    }
                    // _update just loads more tiles. If the tile zoom level differs too much
                    // from the map's, let _setView reset levels and prune old tiles.
                    if (Math.abs(zoom - this._tileZoom) > 1) {
                        this._setView(center, zoom);
                        return;
                    }
                    // create a queue of coordinates to load tiles from
                    for (var j = tileRange.min.y; j <= tileRange.max.y; j++) {
                        for (var i = tileRange.min.x; i <= tileRange.max.x; i++) {
                            var coords = new Point(i, j);
                            coords.z = this._tileZoom;
                            if (!this._isValidTile(coords)) {
                                continue;
                            }
                            var tile = this._tiles[this._tileCoordsToKey(coords)];
                            if (tile) {
                                tile.current = true;
                            }
                            else {
                                queue.push(coords);
                            }
                        }
                    }
                    // sort tile queue to load tiles in order of their distance to center
                    queue.sort(function (a, b) {
                        return a.distanceTo(tileCenter) - b.distanceTo(tileCenter);
                    });
                    if (queue.length !== 0) {
                        // if it's the first batch of tiles to load
                        if (!this._loading) {
                            this._loading = true;
                            // @event loading: Event
                            // Fired when the grid layer starts loading tiles.
                            this.fire('loading');
                        }
                        // create DOM fragment to append tiles in one batch
                        var fragment = document.createDocumentFragment();
                        for (i = 0; i < queue.length; i++) {
                            this._addTile(queue[i], fragment);
                        }
                        this._level.el.appendChild(fragment);
                    }
                },
                _isValidTile: function (coords) {
                    var crs = this._map.options.crs;
                    if (!crs.infinite) {
                        // don't load tile if it's out of bounds and not wrapped
                        var bounds = this._globalTileRange;
                        if ((!crs.wrapLng && (coords.x < bounds.min.x || coords.x > bounds.max.x)) ||
                            (!crs.wrapLat && (coords.y < bounds.min.y || coords.y > bounds.max.y))) {
                            return false;
                        }
                    }
                    if (!this.options.bounds) {
                        return true;
                    }
                    // don't load tile if it doesn't intersect the bounds in options
                    var tileBounds = this._tileCoordsToBounds(coords);
                    return toLatLngBounds(this.options.bounds).overlaps(tileBounds);
                },
                _keyToBounds: function (key) {
                    return this._tileCoordsToBounds(this._keyToTileCoords(key));
                },
                _tileCoordsToNwSe: function (coords) {
                    var map = this._map, tileSize = this.getTileSize(), nwPoint = coords.scaleBy(tileSize), sePoint = nwPoint.add(tileSize), nw = map.unproject(nwPoint, coords.z), se = map.unproject(sePoint, coords.z);
                    return [nw, se];
                },
                // converts tile coordinates to its geographical bounds
                _tileCoordsToBounds: function (coords) {
                    var bp = this._tileCoordsToNwSe(coords), bounds = new LatLngBounds(bp[0], bp[1]);
                    if (!this.options.noWrap) {
                        bounds = this._map.wrapLatLngBounds(bounds);
                    }
                    return bounds;
                },
                // converts tile coordinates to key for the tile cache
                _tileCoordsToKey: function (coords) {
                    return coords.x + ':' + coords.y + ':' + coords.z;
                },
                // converts tile cache key to coordinates
                _keyToTileCoords: function (key) {
                    var k = key.split(':'), coords = new Point(+k[0], +k[1]);
                    coords.z = +k[2];
                    return coords;
                },
                _removeTile: function (key) {
                    var tile = this._tiles[key];
                    if (!tile) {
                        return;
                    }
                    remove(tile.el);
                    delete this._tiles[key];
                    // @event tileunload: TileEvent
                    // Fired when a tile is removed (e.g. when a tile goes off the screen).
                    this.fire('tileunload', {
                        tile: tile.el,
                        coords: this._keyToTileCoords(key)
                    });
                },
                _initTile: function (tile) {
                    addClass(tile, 'leaflet-tile');
                    var tileSize = this.getTileSize();
                    tile.style.width = tileSize.x + 'px';
                    tile.style.height = tileSize.y + 'px';
                    tile.onselectstart = falseFn;
                    tile.onmousemove = falseFn;
                    // update opacity on tiles in IE7-8 because of filter inheritance problems
                    if (ielt9 && this.options.opacity < 1) {
                        setOpacity(tile, this.options.opacity);
                    }
                    // without this hack, tiles disappear after zoom on Chrome for Android
                    // https://github.com/Leaflet/Leaflet/issues/2078
                    if (android && !android23) {
                        tile.style.WebkitBackfaceVisibility = 'hidden';
                    }
                },
                _addTile: function (coords, container) {
                    var tilePos = this._getTilePos(coords), key = this._tileCoordsToKey(coords);
                    var tile = this.createTile(this._wrapCoords(coords), bind(this._tileReady, this, coords));
                    this._initTile(tile);
                    // if createTile is defined with a second argument ("done" callback),
                    // we know that tile is async and will be ready later; otherwise
                    if (this.createTile.length < 2) {
                        // mark tile as ready, but delay one frame for opacity animation to happen
                        requestAnimFrame(bind(this._tileReady, this, coords, null, tile));
                    }
                    setPosition(tile, tilePos);
                    // save tile in cache
                    this._tiles[key] = {
                        el: tile,
                        coords: coords,
                        current: true
                    };
                    container.appendChild(tile);
                    // @event tileloadstart: TileEvent
                    // Fired when a tile is requested and starts loading.
                    this.fire('tileloadstart', {
                        tile: tile,
                        coords: coords
                    });
                },
                _tileReady: function (coords, err, tile) {
                    if (err) {
                        // @event tileerror: TileErrorEvent
                        // Fired when there is an error loading a tile.
                        this.fire('tileerror', {
                            error: err,
                            tile: tile,
                            coords: coords
                        });
                    }
                    var key = this._tileCoordsToKey(coords);
                    tile = this._tiles[key];
                    if (!tile) {
                        return;
                    }
                    tile.loaded = +new Date();
                    if (this._map._fadeAnimated) {
                        setOpacity(tile.el, 0);
                        cancelAnimFrame(this._fadeFrame);
                        this._fadeFrame = requestAnimFrame(this._updateOpacity, this);
                    }
                    else {
                        tile.active = true;
                        this._pruneTiles();
                    }
                    if (!err) {
                        addClass(tile.el, 'leaflet-tile-loaded');
                        // @event tileload: TileEvent
                        // Fired when a tile loads.
                        this.fire('tileload', {
                            tile: tile.el,
                            coords: coords
                        });
                    }
                    if (this._noTilesToLoad()) {
                        this._loading = false;
                        // @event load: Event
                        // Fired when the grid layer loaded all visible tiles.
                        this.fire('load');
                        if (ielt9 || !this._map._fadeAnimated) {
                            requestAnimFrame(this._pruneTiles, this);
                        }
                        else {
                            // Wait a bit more than 0.2 secs (the duration of the tile fade-in)
                            // to trigger a pruning.
                            setTimeout(bind(this._pruneTiles, this), 250);
                        }
                    }
                },
                _getTilePos: function (coords) {
                    return coords.scaleBy(this.getTileSize()).subtract(this._level.origin);
                },
                _wrapCoords: function (coords) {
                    var newCoords = new Point(this._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x, this._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y);
                    newCoords.z = coords.z;
                    return newCoords;
                },
                _pxBoundsToTileRange: function (bounds) {
                    var tileSize = this.getTileSize();
                    return new Bounds(bounds.min.unscaleBy(tileSize).floor(), bounds.max.unscaleBy(tileSize).ceil().subtract([1, 1]));
                },
                _noTilesToLoad: function () {
                    for (var key in this._tiles) {
                        if (!this._tiles[key].loaded) {
                            return false;
                        }
                    }
                    return true;
                }
            });
            // @factory L.gridLayer(options?: GridLayer options)
            // Creates a new instance of GridLayer with the supplied options.
            function gridLayer(options) {
                return new GridLayer(options);
            }
            /*
             * @class TileLayer
             * @inherits GridLayer
             * @aka L.TileLayer
             * Used to load and display tile layers on the map. Extends `GridLayer`.
             *
             * @example
             *
             * ```js
             * L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar'}).addTo(map);
             * ```
             *
             * @section URL template
             * @example
             *
             * A string of the following form:
             *
             * ```
             * 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
             * ```
             *
             * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add "&commat;2x" to the URL to load retina tiles.
             *
             * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:
             *
             * ```
             * L.tileLayer('http://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});
             * ```
             */
            var TileLayer = GridLayer.extend({
                // @section
                // @aka TileLayer options
                options: {
                    // @option minZoom: Number = 0
                    // The minimum zoom level down to which this layer will be displayed (inclusive).
                    minZoom: 0,
                    // @option maxZoom: Number = 18
                    // The maximum zoom level up to which this layer will be displayed (inclusive).
                    maxZoom: 18,
                    // @option subdomains: String|String[] = 'abc'
                    // Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.
                    subdomains: 'abc',
                    // @option errorTileUrl: String = ''
                    // URL to the tile image to show in place of the tile that failed to load.
                    errorTileUrl: '',
                    // @option zoomOffset: Number = 0
                    // The zoom number used in tile URLs will be offset with this value.
                    zoomOffset: 0,
                    // @option tms: Boolean = false
                    // If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).
                    tms: false,
                    // @option zoomReverse: Boolean = false
                    // If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)
                    zoomReverse: false,
                    // @option detectRetina: Boolean = false
                    // If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.
                    detectRetina: false,
                    // @option crossOrigin: Boolean|String = false
                    // Whether the crossOrigin attribute will be added to the tiles.
                    // If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
                    // Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
                    crossOrigin: false
                },
                initialize: function (url, options) {
                    this._url = url;
                    options = setOptions(this, options);
                    // detecting retina displays, adjusting tileSize and zoom levels
                    if (options.detectRetina && retina && options.maxZoom > 0) {
                        options.tileSize = Math.floor(options.tileSize / 2);
                        if (!options.zoomReverse) {
                            options.zoomOffset++;
                            options.maxZoom--;
                        }
                        else {
                            options.zoomOffset--;
                            options.minZoom++;
                        }
                        options.minZoom = Math.max(0, options.minZoom);
                    }
                    if (typeof options.subdomains === 'string') {
                        options.subdomains = options.subdomains.split('');
                    }
                    // for https://github.com/Leaflet/Leaflet/issues/137
                    if (!android) {
                        this.on('tileunload', this._onTileRemove);
                    }
                },
                // @method setUrl(url: String, noRedraw?: Boolean): this
                // Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
                setUrl: function (url, noRedraw) {
                    this._url = url;
                    if (!noRedraw) {
                        this.redraw();
                    }
                    return this;
                },
                // @method createTile(coords: Object, done?: Function): HTMLElement
                // Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)
                // to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`
                // callback is called when the tile has been loaded.
                createTile: function (coords, done) {
                    var tile = document.createElement('img');
                    on(tile, 'load', bind(this._tileOnLoad, this, done, tile));
                    on(tile, 'error', bind(this._tileOnError, this, done, tile));
                    if (this.options.crossOrigin || this.options.crossOrigin === '') {
                        tile.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;
                    }
                    /*
                     Alt tag is set to empty string to keep screen readers from reading URL and for compliance reasons
                     http://www.w3.org/TR/WCAG20-TECHS/H67
                    */
                    tile.alt = '';
                    /*
                     Set role="presentation" to force screen readers to ignore this
                     https://www.w3.org/TR/wai-aria/roles#textalternativecomputation
                    */
                    tile.setAttribute('role', 'presentation');
                    tile.src = this.getTileUrl(coords);
                    return tile;
                },
                // @section Extension methods
                // @uninheritable
                // Layers extending `TileLayer` might reimplement the following method.
                // @method getTileUrl(coords: Object): String
                // Called only internally, returns the URL for a tile given its coordinates.
                // Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
                getTileUrl: function (coords) {
                    var data = {
                        r: retina ? '@2x' : '',
                        s: this._getSubdomain(coords),
                        x: coords.x,
                        y: coords.y,
                        z: this._getZoomForUrl()
                    };
                    if (this._map && !this._map.options.crs.infinite) {
                        var invertedY = this._globalTileRange.max.y - coords.y;
                        if (this.options.tms) {
                            data['y'] = invertedY;
                        }
                        data['-y'] = invertedY;
                    }
                    return template(this._url, extend(data, this.options));
                },
                _tileOnLoad: function (done, tile) {
                    // For https://github.com/Leaflet/Leaflet/issues/3332
                    if (ielt9) {
                        setTimeout(bind(done, this, null, tile), 0);
                    }
                    else {
                        done(null, tile);
                    }
                },
                _tileOnError: function (done, tile, e) {
                    var errorUrl = this.options.errorTileUrl;
                    if (errorUrl && tile.getAttribute('src') !== errorUrl) {
                        tile.src = errorUrl;
                    }
                    done(e, tile);
                },
                _onTileRemove: function (e) {
                    e.tile.onload = null;
                },
                _getZoomForUrl: function () {
                    var zoom = this._tileZoom, maxZoom = this.options.maxZoom, zoomReverse = this.options.zoomReverse, zoomOffset = this.options.zoomOffset;
                    if (zoomReverse) {
                        zoom = maxZoom - zoom;
                    }
                    return zoom + zoomOffset;
                },
                _getSubdomain: function (tilePoint) {
                    var index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length;
                    return this.options.subdomains[index];
                },
                // stops loading all tiles in the background layer
                _abortLoading: function () {
                    var i, tile;
                    for (i in this._tiles) {
                        if (this._tiles[i].coords.z !== this._tileZoom) {
                            tile = this._tiles[i].el;
                            tile.onload = falseFn;
                            tile.onerror = falseFn;
                            if (!tile.complete) {
                                tile.src = emptyImageUrl;
                                remove(tile);
                                delete this._tiles[i];
                            }
                        }
                    }
                },
                _removeTile: function (key) {
                    var tile = this._tiles[key];
                    if (!tile) {
                        return;
                    }
                    // Cancels any pending http requests associated with the tile
                    // unless we're on Android's stock browser,
                    // see https://github.com/Leaflet/Leaflet/issues/137
                    if (!androidStock) {
                        tile.el.setAttribute('src', emptyImageUrl);
                    }
                    return GridLayer.prototype._removeTile.call(this, key);
                },
                _tileReady: function (coords, err, tile) {
                    if (!this._map || (tile && tile.getAttribute('src') === emptyImageUrl)) {
                        return;
                    }
                    return GridLayer.prototype._tileReady.call(this, coords, err, tile);
                }
            });
            // @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)
            // Instantiates a tile layer object given a `URL template` and optionally an options object.
            function tileLayer(url, options) {
                return new TileLayer(url, options);
            }
            /*
             * @class TileLayer.WMS
             * @inherits TileLayer
             * @aka L.TileLayer.WMS
             * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.
             *
             * @example
             *
             * ```js
             * var nexrad = L.tileLayer.wms("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
             * 	layers: 'nexrad-n0r-900913',
             * 	format: 'image/png',
             * 	transparent: true,
             * 	attribution: "Weather data © 2012 IEM Nexrad"
             * });
             * ```
             */
            var TileLayerWMS = TileLayer.extend({
                // @section
                // @aka TileLayer.WMS options
                // If any custom options not documented here are used, they will be sent to the
                // WMS server as extra parameters in each request URL. This can be useful for
                // [non-standard vendor WMS parameters](http://docs.geoserver.org/stable/en/user/services/wms/vendor.html).
                defaultWmsParams: {
                    service: 'WMS',
                    request: 'GetMap',
                    // @option layers: String = ''
                    // **(required)** Comma-separated list of WMS layers to show.
                    layers: '',
                    // @option styles: String = ''
                    // Comma-separated list of WMS styles.
                    styles: '',
                    // @option format: String = 'image/jpeg'
                    // WMS image format (use `'image/png'` for layers with transparency).
                    format: 'image/jpeg',
                    // @option transparent: Boolean = false
                    // If `true`, the WMS service will return images with transparency.
                    transparent: false,
                    // @option version: String = '1.1.1'
                    // Version of the WMS service to use
                    version: '1.1.1'
                },
                options: {
                    // @option crs: CRS = null
                    // Coordinate Reference System to use for the WMS requests, defaults to
                    // map CRS. Don't change this if you're not sure what it means.
                    crs: null,
                    // @option uppercase: Boolean = false
                    // If `true`, WMS request parameter keys will be uppercase.
                    uppercase: false
                },
                initialize: function (url, options) {
                    this._url = url;
                    var wmsParams = extend({}, this.defaultWmsParams);
                    // all keys that are not TileLayer options go to WMS params
                    for (var i in options) {
                        if (!(i in this.options)) {
                            wmsParams[i] = options[i];
                        }
                    }
                    options = setOptions(this, options);
                    var realRetina = options.detectRetina && retina ? 2 : 1;
                    var tileSize = this.getTileSize();
                    wmsParams.width = tileSize.x * realRetina;
                    wmsParams.height = tileSize.y * realRetina;
                    this.wmsParams = wmsParams;
                },
                onAdd: function (map) {
                    this._crs = this.options.crs || map.options.crs;
                    this._wmsVersion = parseFloat(this.wmsParams.version);
                    var projectionKey = this._wmsVersion >= 1.3 ? 'crs' : 'srs';
                    this.wmsParams[projectionKey] = this._crs.code;
                    TileLayer.prototype.onAdd.call(this, map);
                },
                getTileUrl: function (coords) {
                    var tileBounds = this._tileCoordsToNwSe(coords), crs = this._crs, bounds = toBounds(crs.project(tileBounds[0]), crs.project(tileBounds[1])), min = bounds.min, max = bounds.max, bbox = (this._wmsVersion >= 1.3 && this._crs === EPSG4326 ?
                        [min.y, min.x, max.y, max.x] :
                        [min.x, min.y, max.x, max.y]).join(','), url = TileLayer.prototype.getTileUrl.call(this, coords);
                    return url +
                        getParamString(this.wmsParams, url, this.options.uppercase) +
                        (this.options.uppercase ? '&BBOX=' : '&bbox=') + bbox;
                },
                // @method setParams(params: Object, noRedraw?: Boolean): this
                // Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
                setParams: function (params, noRedraw) {
                    extend(this.wmsParams, params);
                    if (!noRedraw) {
                        this.redraw();
                    }
                    return this;
                }
            });
            // @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)
            // Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.
            function tileLayerWMS(url, options) {
                return new TileLayerWMS(url, options);
            }
            TileLayer.WMS = TileLayerWMS;
            tileLayer.wms = tileLayerWMS;
            /*
             * @class Renderer
             * @inherits Layer
             * @aka L.Renderer
             *
             * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the
             * DOM container of the renderer, its bounds, and its zoom animation.
             *
             * A `Renderer` works as an implicit layer group for all `Path`s - the renderer
             * itself can be added or removed to the map. All paths use a renderer, which can
             * be implicit (the map will decide the type of renderer and use it automatically)
             * or explicit (using the [`renderer`](#path-renderer) option of the path).
             *
             * Do not use this class directly, use `SVG` and `Canvas` instead.
             *
             * @event update: Event
             * Fired when the renderer updates its bounds, center and zoom, for example when
             * its map has moved
             */
            var Renderer = Layer.extend({
                // @section
                // @aka Renderer options
                options: {
                    // @option padding: Number = 0.1
                    // How much to extend the clip area around the map view (relative to its size)
                    // e.g. 0.1 would be 10% of map view in each direction
                    padding: 0.1,
                    // @option tolerance: Number = 0
                    // How much to extend click tolerance round a path/object on the map
                    tolerance: 0
                },
                initialize: function (options) {
                    setOptions(this, options);
                    stamp(this);
                    this._layers = this._layers || {};
                },
                onAdd: function () {
                    if (!this._container) {
                        this._initContainer(); // defined by renderer implementations
                        if (this._zoomAnimated) {
                            addClass(this._container, 'leaflet-zoom-animated');
                        }
                    }
                    this.getPane().appendChild(this._container);
                    this._update();
                    this.on('update', this._updatePaths, this);
                },
                onRemove: function () {
                    this.off('update', this._updatePaths, this);
                    this._destroyContainer();
                },
                getEvents: function () {
                    var events = {
                        viewreset: this._reset,
                        zoom: this._onZoom,
                        moveend: this._update,
                        zoomend: this._onZoomEnd
                    };
                    if (this._zoomAnimated) {
                        events.zoomanim = this._onAnimZoom;
                    }
                    return events;
                },
                _onAnimZoom: function (ev) {
                    this._updateTransform(ev.center, ev.zoom);
                },
                _onZoom: function () {
                    this._updateTransform(this._map.getCenter(), this._map.getZoom());
                },
                _updateTransform: function (center, zoom) {
                    var scale = this._map.getZoomScale(zoom, this._zoom), position = getPosition(this._container), viewHalf = this._map.getSize().multiplyBy(0.5 + this.options.padding), currentCenterPoint = this._map.project(this._center, zoom), destCenterPoint = this._map.project(center, zoom), centerOffset = destCenterPoint.subtract(currentCenterPoint), topLeftOffset = viewHalf.multiplyBy(-scale).add(position).add(viewHalf).subtract(centerOffset);
                    if (any3d) {
                        setTransform(this._container, topLeftOffset, scale);
                    }
                    else {
                        setPosition(this._container, topLeftOffset);
                    }
                },
                _reset: function () {
                    this._update();
                    this._updateTransform(this._center, this._zoom);
                    for (var id in this._layers) {
                        this._layers[id]._reset();
                    }
                },
                _onZoomEnd: function () {
                    for (var id in this._layers) {
                        this._layers[id]._project();
                    }
                },
                _updatePaths: function () {
                    for (var id in this._layers) {
                        this._layers[id]._update();
                    }
                },
                _update: function () {
                    // Update pixel bounds of renderer container (for positioning/sizing/clipping later)
                    // Subclasses are responsible of firing the 'update' event.
                    var p = this.options.padding, size = this._map.getSize(), min = this._map.containerPointToLayerPoint(size.multiplyBy(-p)).round();
                    this._bounds = new Bounds(min, min.add(size.multiplyBy(1 + p * 2)).round());
                    this._center = this._map.getCenter();
                    this._zoom = this._map.getZoom();
                }
            });
            /*
             * @class Canvas
             * @inherits Renderer
             * @aka L.Canvas
             *
             * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
             * Inherits `Renderer`.
             *
             * Due to [technical limitations](http://caniuse.com/#search=canvas), Canvas is not
             * available in all web browsers, notably IE8, and overlapping geometries might
             * not display properly in some edge cases.
             *
             * @example
             *
             * Use Canvas by default for all paths in the map:
             *
             * ```js
             * var map = L.map('map', {
             * 	renderer: L.canvas()
             * });
             * ```
             *
             * Use a Canvas renderer with extra padding for specific vector geometries:
             *
             * ```js
             * var map = L.map('map');
             * var myRenderer = L.canvas({ padding: 0.5 });
             * var line = L.polyline( coordinates, { renderer: myRenderer } );
             * var circle = L.circle( center, { renderer: myRenderer } );
             * ```
             */
            var Canvas = Renderer.extend({
                getEvents: function () {
                    var events = Renderer.prototype.getEvents.call(this);
                    events.viewprereset = this._onViewPreReset;
                    return events;
                },
                _onViewPreReset: function () {
                    // Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once
                    this._postponeUpdatePaths = true;
                },
                onAdd: function () {
                    Renderer.prototype.onAdd.call(this);
                    // Redraw vectors since canvas is cleared upon removal,
                    // in case of removing the renderer itself from the map.
                    this._draw();
                },
                _initContainer: function () {
                    var container = this._container = document.createElement('canvas');
                    on(container, 'mousemove', throttle(this._onMouseMove, 32, this), this);
                    on(container, 'click dblclick mousedown mouseup contextmenu', this._onClick, this);
                    on(container, 'mouseout', this._handleMouseOut, this);
                    this._ctx = container.getContext('2d');
                },
                _destroyContainer: function () {
                    cancelAnimFrame(this._redrawRequest);
                    delete this._ctx;
                    remove(this._container);
                    off(this._container);
                    delete this._container;
                },
                _updatePaths: function () {
                    if (this._postponeUpdatePaths) {
                        return;
                    }
                    var layer;
                    this._redrawBounds = null;
                    for (var id in this._layers) {
                        layer = this._layers[id];
                        layer._update();
                    }
                    this._redraw();
                },
                _update: function () {
                    if (this._map._animatingZoom && this._bounds) {
                        return;
                    }
                    this._drawnLayers = {};
                    Renderer.prototype._update.call(this);
                    var b = this._bounds, container = this._container, size = b.getSize(), m = retina ? 2 : 1;
                    setPosition(container, b.min);
                    // set canvas size (also clearing it); use double size on retina
                    container.width = m * size.x;
                    container.height = m * size.y;
                    container.style.width = size.x + 'px';
                    container.style.height = size.y + 'px';
                    if (retina) {
                        this._ctx.scale(2, 2);
                    }
                    // translate so we use the same path coordinates after canvas element moves
                    this._ctx.translate(-b.min.x, -b.min.y);
                    // Tell paths to redraw themselves
                    this.fire('update');
                },
                _reset: function () {
                    Renderer.prototype._reset.call(this);
                    if (this._postponeUpdatePaths) {
                        this._postponeUpdatePaths = false;
                        this._updatePaths();
                    }
                },
                _initPath: function (layer) {
                    this._updateDashArray(layer);
                    this._layers[stamp(layer)] = layer;
                    var order = layer._order = {
                        layer: layer,
                        prev: this._drawLast,
                        next: null
                    };
                    if (this._drawLast) {
                        this._drawLast.next = order;
                    }
                    this._drawLast = order;
                    this._drawFirst = this._drawFirst || this._drawLast;
                },
                _addPath: function (layer) {
                    this._requestRedraw(layer);
                },
                _removePath: function (layer) {
                    var order = layer._order;
                    var next = order.next;
                    var prev = order.prev;
                    if (next) {
                        next.prev = prev;
                    }
                    else {
                        this._drawLast = prev;
                    }
                    if (prev) {
                        prev.next = next;
                    }
                    else {
                        this._drawFirst = next;
                    }
                    delete this._drawnLayers[layer._leaflet_id];
                    delete layer._order;
                    delete this._layers[stamp(layer)];
                    this._requestRedraw(layer);
                },
                _updatePath: function (layer) {
                    // Redraw the union of the layer's old pixel
                    // bounds and the new pixel bounds.
                    this._extendRedrawBounds(layer);
                    layer._project();
                    layer._update();
                    // The redraw will extend the redraw bounds
                    // with the new pixel bounds.
                    this._requestRedraw(layer);
                },
                _updateStyle: function (layer) {
                    this._updateDashArray(layer);
                    this._requestRedraw(layer);
                },
                _updateDashArray: function (layer) {
                    if (typeof layer.options.dashArray === 'string') {
                        var parts = layer.options.dashArray.split(/[, ]+/), dashArray = [], i;
                        for (i = 0; i < parts.length; i++) {
                            dashArray.push(Number(parts[i]));
                        }
                        layer.options._dashArray = dashArray;
                    }
                    else {
                        layer.options._dashArray = layer.options.dashArray;
                    }
                },
                _requestRedraw: function (layer) {
                    if (!this._map) {
                        return;
                    }
                    this._extendRedrawBounds(layer);
                    this._redrawRequest = this._redrawRequest || requestAnimFrame(this._redraw, this);
                },
                _extendRedrawBounds: function (layer) {
                    if (layer._pxBounds) {
                        var padding = (layer.options.weight || 0) + 1;
                        this._redrawBounds = this._redrawBounds || new Bounds();
                        this._redrawBounds.extend(layer._pxBounds.min.subtract([padding, padding]));
                        this._redrawBounds.extend(layer._pxBounds.max.add([padding, padding]));
                    }
                },
                _redraw: function () {
                    this._redrawRequest = null;
                    if (this._redrawBounds) {
                        this._redrawBounds.min._floor();
                        this._redrawBounds.max._ceil();
                    }
                    this._clear(); // clear layers in redraw bounds
                    this._draw(); // draw layers
                    this._redrawBounds = null;
                },
                _clear: function () {
                    var bounds = this._redrawBounds;
                    if (bounds) {
                        var size = bounds.getSize();
                        this._ctx.clearRect(bounds.min.x, bounds.min.y, size.x, size.y);
                    }
                    else {
                        this._ctx.clearRect(0, 0, this._container.width, this._container.height);
                    }
                },
                _draw: function () {
                    var layer, bounds = this._redrawBounds;
                    this._ctx.save();
                    if (bounds) {
                        var size = bounds.getSize();
                        this._ctx.beginPath();
                        this._ctx.rect(bounds.min.x, bounds.min.y, size.x, size.y);
                        this._ctx.clip();
                    }
                    this._drawing = true;
                    for (var order = this._drawFirst; order; order = order.next) {
                        layer = order.layer;
                        if (!bounds || (layer._pxBounds && layer._pxBounds.intersects(bounds))) {
                            layer._updatePath();
                        }
                    }
                    this._drawing = false;
                    this._ctx.restore(); // Restore state before clipping.
                },
                _updatePoly: function (layer, closed) {
                    if (!this._drawing) {
                        return;
                    }
                    var i, j, len2, p, parts = layer._parts, len = parts.length, ctx = this._ctx;
                    if (!len) {
                        return;
                    }
                    this._drawnLayers[layer._leaflet_id] = layer;
                    ctx.beginPath();
                    for (i = 0; i < len; i++) {
                        for (j = 0, len2 = parts[i].length; j < len2; j++) {
                            p = parts[i][j];
                            ctx[j ? 'lineTo' : 'moveTo'](p.x, p.y);
                        }
                        if (closed) {
                            ctx.closePath();
                        }
                    }
                    this._fillStroke(ctx, layer);
                    // TODO optimization: 1 fill/stroke for all features with equal style instead of 1 for each feature
                },
                _updateCircle: function (layer) {
                    if (!this._drawing || layer._empty()) {
                        return;
                    }
                    var p = layer._point, ctx = this._ctx, r = Math.max(Math.round(layer._radius), 1), s = (Math.max(Math.round(layer._radiusY), 1) || r) / r;
                    this._drawnLayers[layer._leaflet_id] = layer;
                    if (s !== 1) {
                        ctx.save();
                        ctx.scale(1, s);
                    }
                    ctx.beginPath();
                    ctx.arc(p.x, p.y / s, r, 0, Math.PI * 2, false);
                    if (s !== 1) {
                        ctx.restore();
                    }
                    this._fillStroke(ctx, layer);
                },
                _fillStroke: function (ctx, layer) {
                    var options = layer.options;
                    if (options.fill) {
                        ctx.globalAlpha = options.fillOpacity;
                        ctx.fillStyle = options.fillColor || options.color;
                        ctx.fill(options.fillRule || 'evenodd');
                    }
                    if (options.stroke && options.weight !== 0) {
                        if (ctx.setLineDash) {
                            ctx.setLineDash(layer.options && layer.options._dashArray || []);
                        }
                        ctx.globalAlpha = options.opacity;
                        ctx.lineWidth = options.weight;
                        ctx.strokeStyle = options.color;
                        ctx.lineCap = options.lineCap;
                        ctx.lineJoin = options.lineJoin;
                        ctx.stroke();
                    }
                },
                // Canvas obviously doesn't have mouse events for individual drawn objects,
                // so we emulate that by calculating what's under the mouse on mousemove/click manually
                _onClick: function (e) {
                    var point = this._map.mouseEventToLayerPoint(e), layer, clickedLayer;
                    for (var order = this._drawFirst; order; order = order.next) {
                        layer = order.layer;
                        if (layer.options.interactive && layer._containsPoint(point) && !this._map._draggableMoved(layer)) {
                            clickedLayer = layer;
                        }
                    }
                    if (clickedLayer) {
                        fakeStop(e);
                        this._fireEvent([clickedLayer], e);
                    }
                },
                _onMouseMove: function (e) {
                    if (!this._map || this._map.dragging.moving() || this._map._animatingZoom) {
                        return;
                    }
                    var point = this._map.mouseEventToLayerPoint(e);
                    this._handleMouseHover(e, point);
                },
                _handleMouseOut: function (e) {
                    var layer = this._hoveredLayer;
                    if (layer) {
                        // if we're leaving the layer, fire mouseout
                        removeClass(this._container, 'leaflet-interactive');
                        this._fireEvent([layer], e, 'mouseout');
                        this._hoveredLayer = null;
                    }
                },
                _handleMouseHover: function (e, point) {
                    var layer, candidateHoveredLayer;
                    for (var order = this._drawFirst; order; order = order.next) {
                        layer = order.layer;
                        if (layer.options.interactive && layer._containsPoint(point)) {
                            candidateHoveredLayer = layer;
                        }
                    }
                    if (candidateHoveredLayer !== this._hoveredLayer) {
                        this._handleMouseOut(e);
                        if (candidateHoveredLayer) {
                            addClass(this._container, 'leaflet-interactive'); // change cursor
                            this._fireEvent([candidateHoveredLayer], e, 'mouseover');
                            this._hoveredLayer = candidateHoveredLayer;
                        }
                    }
                    if (this._hoveredLayer) {
                        this._fireEvent([this._hoveredLayer], e);
                    }
                },
                _fireEvent: function (layers, e, type) {
                    this._map._fireDOMEvent(e, type || e.type, layers);
                },
                _bringToFront: function (layer) {
                    var order = layer._order;
                    var next = order.next;
                    var prev = order.prev;
                    if (next) {
                        next.prev = prev;
                    }
                    else {
                        // Already last
                        return;
                    }
                    if (prev) {
                        prev.next = next;
                    }
                    else if (next) {
                        // Update first entry unless this is the
                        // single entry
                        this._drawFirst = next;
                    }
                    order.prev = this._drawLast;
                    this._drawLast.next = order;
                    order.next = null;
                    this._drawLast = order;
                    this._requestRedraw(layer);
                },
                _bringToBack: function (layer) {
                    var order = layer._order;
                    var next = order.next;
                    var prev = order.prev;
                    if (prev) {
                        prev.next = next;
                    }
                    else {
                        // Already first
                        return;
                    }
                    if (next) {
                        next.prev = prev;
                    }
                    else if (prev) {
                        // Update last entry unless this is the
                        // single entry
                        this._drawLast = prev;
                    }
                    order.prev = null;
                    order.next = this._drawFirst;
                    this._drawFirst.prev = order;
                    this._drawFirst = order;
                    this._requestRedraw(layer);
                }
            });
            // @factory L.canvas(options?: Renderer options)
            // Creates a Canvas renderer with the given options.
            function canvas$1(options) {
                return canvas ? new Canvas(options) : null;
            }
            /*
             * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!
             */
            var vmlCreate = (function () {
                try {
                    document.namespaces.add('lvml', 'urn:schemas-microsoft-com:vml');
                    return function (name) {
                        return document.createElement('<lvml:' + name + ' class="lvml">');
                    };
                }
                catch (e) {
                    return function (name) {
                        return document.createElement('<' + name + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
                    };
                }
            })();
            /*
             * @class SVG
             *
             * Although SVG is not available on IE7 and IE8, these browsers support [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language), and the SVG renderer will fall back to VML in this case.
             *
             * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility
             * with old versions of Internet Explorer.
             */
            // mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences
            var vmlMixin = {
                _initContainer: function () {
                    this._container = create$1('div', 'leaflet-vml-container');
                },
                _update: function () {
                    if (this._map._animatingZoom) {
                        return;
                    }
                    Renderer.prototype._update.call(this);
                    this.fire('update');
                },
                _initPath: function (layer) {
                    var container = layer._container = vmlCreate('shape');
                    addClass(container, 'leaflet-vml-shape ' + (this.options.className || ''));
                    container.coordsize = '1 1';
                    layer._path = vmlCreate('path');
                    container.appendChild(layer._path);
                    this._updateStyle(layer);
                    this._layers[stamp(layer)] = layer;
                },
                _addPath: function (layer) {
                    var container = layer._container;
                    this._container.appendChild(container);
                    if (layer.options.interactive) {
                        layer.addInteractiveTarget(container);
                    }
                },
                _removePath: function (layer) {
                    var container = layer._container;
                    remove(container);
                    layer.removeInteractiveTarget(container);
                    delete this._layers[stamp(layer)];
                },
                _updateStyle: function (layer) {
                    var stroke = layer._stroke, fill = layer._fill, options = layer.options, container = layer._container;
                    container.stroked = !!options.stroke;
                    container.filled = !!options.fill;
                    if (options.stroke) {
                        if (!stroke) {
                            stroke = layer._stroke = vmlCreate('stroke');
                        }
                        container.appendChild(stroke);
                        stroke.weight = options.weight + 'px';
                        stroke.color = options.color;
                        stroke.opacity = options.opacity;
                        if (options.dashArray) {
                            stroke.dashStyle = isArray(options.dashArray) ?
                                options.dashArray.join(' ') :
                                options.dashArray.replace(/( *, *)/g, ' ');
                        }
                        else {
                            stroke.dashStyle = '';
                        }
                        stroke.endcap = options.lineCap.replace('butt', 'flat');
                        stroke.joinstyle = options.lineJoin;
                    }
                    else if (stroke) {
                        container.removeChild(stroke);
                        layer._stroke = null;
                    }
                    if (options.fill) {
                        if (!fill) {
                            fill = layer._fill = vmlCreate('fill');
                        }
                        container.appendChild(fill);
                        fill.color = options.fillColor || options.color;
                        fill.opacity = options.fillOpacity;
                    }
                    else if (fill) {
                        container.removeChild(fill);
                        layer._fill = null;
                    }
                },
                _updateCircle: function (layer) {
                    var p = layer._point.round(), r = Math.round(layer._radius), r2 = Math.round(layer._radiusY || r);
                    this._setPath(layer, layer._empty() ? 'M0 0' :
                        'AL ' + p.x + ',' + p.y + ' ' + r + ',' + r2 + ' 0,' + (65535 * 360));
                },
                _setPath: function (layer, path) {
                    layer._path.v = path;
                },
                _bringToFront: function (layer) {
                    toFront(layer._container);
                },
                _bringToBack: function (layer) {
                    toBack(layer._container);
                }
            };
            var create$2 = vml ? vmlCreate : svgCreate;
            /*
             * @class SVG
             * @inherits Renderer
             * @aka L.SVG
             *
             * Allows vector layers to be displayed with [SVG](https://developer.mozilla.org/docs/Web/SVG).
             * Inherits `Renderer`.
             *
             * Due to [technical limitations](http://caniuse.com/#search=svg), SVG is not
             * available in all web browsers, notably Android 2.x and 3.x.
             *
             * Although SVG is not available on IE7 and IE8, these browsers support
             * [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language)
             * (a now deprecated technology), and the SVG renderer will fall back to VML in
             * this case.
             *
             * @example
             *
             * Use SVG by default for all paths in the map:
             *
             * ```js
             * var map = L.map('map', {
             * 	renderer: L.svg()
             * });
             * ```
             *
             * Use a SVG renderer with extra padding for specific vector geometries:
             *
             * ```js
             * var map = L.map('map');
             * var myRenderer = L.svg({ padding: 0.5 });
             * var line = L.polyline( coordinates, { renderer: myRenderer } );
             * var circle = L.circle( center, { renderer: myRenderer } );
             * ```
             */
            var SVG = Renderer.extend({
                getEvents: function () {
                    var events = Renderer.prototype.getEvents.call(this);
                    events.zoomstart = this._onZoomStart;
                    return events;
                },
                _initContainer: function () {
                    this._container = create$2('svg');
                    // makes it possible to click through svg root; we'll reset it back in individual paths
                    this._container.setAttribute('pointer-events', 'none');
                    this._rootGroup = create$2('g');
                    this._container.appendChild(this._rootGroup);
                },
                _destroyContainer: function () {
                    remove(this._container);
                    off(this._container);
                    delete this._container;
                    delete this._rootGroup;
                    delete this._svgSize;
                },
                _onZoomStart: function () {
                    // Drag-then-pinch interactions might mess up the center and zoom.
                    // In this case, the easiest way to prevent this is re-do the renderer
                    //   bounds and padding when the zooming starts.
                    this._update();
                },
                _update: function () {
                    if (this._map._animatingZoom && this._bounds) {
                        return;
                    }
                    Renderer.prototype._update.call(this);
                    var b = this._bounds, size = b.getSize(), container = this._container;
                    // set size of svg-container if changed
                    if (!this._svgSize || !this._svgSize.equals(size)) {
                        this._svgSize = size;
                        container.setAttribute('width', size.x);
                        container.setAttribute('height', size.y);
                    }
                    // movement: update container viewBox so that we don't have to change coordinates of individual layers
                    setPosition(container, b.min);
                    container.setAttribute('viewBox', [b.min.x, b.min.y, size.x, size.y].join(' '));
                    this.fire('update');
                },
                // methods below are called by vector layers implementations
                _initPath: function (layer) {
                    var path = layer._path = create$2('path');
                    // @namespace Path
                    // @option className: String = null
                    // Custom class name set on an element. Only for SVG renderer.
                    if (layer.options.className) {
                        addClass(path, layer.options.className);
                    }
                    if (layer.options.interactive) {
                        addClass(path, 'leaflet-interactive');
                    }
                    this._updateStyle(layer);
                    this._layers[stamp(layer)] = layer;
                },
                _addPath: function (layer) {
                    if (!this._rootGroup) {
                        this._initContainer();
                    }
                    this._rootGroup.appendChild(layer._path);
                    layer.addInteractiveTarget(layer._path);
                },
                _removePath: function (layer) {
                    remove(layer._path);
                    layer.removeInteractiveTarget(layer._path);
                    delete this._layers[stamp(layer)];
                },
                _updatePath: function (layer) {
                    layer._project();
                    layer._update();
                },
                _updateStyle: function (layer) {
                    var path = layer._path, options = layer.options;
                    if (!path) {
                        return;
                    }
                    if (options.stroke) {
                        path.setAttribute('stroke', options.color);
                        path.setAttribute('stroke-opacity', options.opacity);
                        path.setAttribute('stroke-width', options.weight);
                        path.setAttribute('stroke-linecap', options.lineCap);
                        path.setAttribute('stroke-linejoin', options.lineJoin);
                        if (options.dashArray) {
                            path.setAttribute('stroke-dasharray', options.dashArray);
                        }
                        else {
                            path.removeAttribute('stroke-dasharray');
                        }
                        if (options.dashOffset) {
                            path.setAttribute('stroke-dashoffset', options.dashOffset);
                        }
                        else {
                            path.removeAttribute('stroke-dashoffset');
                        }
                    }
                    else {
                        path.setAttribute('stroke', 'none');
                    }
                    if (options.fill) {
                        path.setAttribute('fill', options.fillColor || options.color);
                        path.setAttribute('fill-opacity', options.fillOpacity);
                        path.setAttribute('fill-rule', options.fillRule || 'evenodd');
                    }
                    else {
                        path.setAttribute('fill', 'none');
                    }
                },
                _updatePoly: function (layer, closed) {
                    this._setPath(layer, pointsToPath(layer._parts, closed));
                },
                _updateCircle: function (layer) {
                    var p = layer._point, r = Math.max(Math.round(layer._radius), 1), r2 = Math.max(Math.round(layer._radiusY), 1) || r, arc = 'a' + r + ',' + r2 + ' 0 1,0 ';
                    // drawing a circle with two half-arcs
                    var d = layer._empty() ? 'M0 0' :
                        'M' + (p.x - r) + ',' + p.y +
                            arc + (r * 2) + ',0 ' +
                            arc + (-r * 2) + ',0 ';
                    this._setPath(layer, d);
                },
                _setPath: function (layer, path) {
                    layer._path.setAttribute('d', path);
                },
                // SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
                _bringToFront: function (layer) {
                    toFront(layer._path);
                },
                _bringToBack: function (layer) {
                    toBack(layer._path);
                }
            });
            if (vml) {
                SVG.include(vmlMixin);
            }
            // @namespace SVG
            // @factory L.svg(options?: Renderer options)
            // Creates a SVG renderer with the given options.
            function svg$1(options) {
                return svg || vml ? new SVG(options) : null;
            }
            Map.include({
                // @namespace Map; @method getRenderer(layer: Path): Renderer
                // Returns the instance of `Renderer` that should be used to render the given
                // `Path`. It will ensure that the `renderer` options of the map and paths
                // are respected, and that the renderers do exist on the map.
                getRenderer: function (layer) {
                    // @namespace Path; @option renderer: Renderer
                    // Use this specific instance of `Renderer` for this path. Takes
                    // precedence over the map's [default renderer](#map-renderer).
                    var renderer = layer.options.renderer || this._getPaneRenderer(layer.options.pane) || this.options.renderer || this._renderer;
                    if (!renderer) {
                        renderer = this._renderer = this._createRenderer();
                    }
                    if (!this.hasLayer(renderer)) {
                        this.addLayer(renderer);
                    }
                    return renderer;
                },
                _getPaneRenderer: function (name) {
                    if (name === 'overlayPane' || name === undefined) {
                        return false;
                    }
                    var renderer = this._paneRenderers[name];
                    if (renderer === undefined) {
                        renderer = this._createRenderer({ pane: name });
                        this._paneRenderers[name] = renderer;
                    }
                    return renderer;
                },
                _createRenderer: function (options) {
                    // @namespace Map; @option preferCanvas: Boolean = false
                    // Whether `Path`s should be rendered on a `Canvas` renderer.
                    // By default, all `Path`s are rendered in a `SVG` renderer.
                    return (this.options.preferCanvas && canvas$1(options)) || svg$1(options);
                }
            });
            /*
             * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.
             */
            /*
             * @class Rectangle
             * @aka L.Rectangle
             * @inherits Polygon
             *
             * A class for drawing rectangle overlays on a map. Extends `Polygon`.
             *
             * @example
             *
             * ```js
             * // define rectangle geographical bounds
             * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];
             *
             * // create an orange rectangle
             * L.rectangle(bounds, {color: "#ff7800", weight: 1}).addTo(map);
             *
             * // zoom the map to the rectangle bounds
             * map.fitBounds(bounds);
             * ```
             *
             */
            var Rectangle = Polygon.extend({
                initialize: function (latLngBounds, options) {
                    Polygon.prototype.initialize.call(this, this._boundsToLatLngs(latLngBounds), options);
                },
                // @method setBounds(latLngBounds: LatLngBounds): this
                // Redraws the rectangle with the passed bounds.
                setBounds: function (latLngBounds) {
                    return this.setLatLngs(this._boundsToLatLngs(latLngBounds));
                },
                _boundsToLatLngs: function (latLngBounds) {
                    latLngBounds = toLatLngBounds(latLngBounds);
                    return [
                        latLngBounds.getSouthWest(),
                        latLngBounds.getNorthWest(),
                        latLngBounds.getNorthEast(),
                        latLngBounds.getSouthEast()
                    ];
                }
            });
            // @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)
            function rectangle(latLngBounds, options) {
                return new Rectangle(latLngBounds, options);
            }
            SVG.create = create$2;
            SVG.pointsToPath = pointsToPath;
            GeoJSON.geometryToLayer = geometryToLayer;
            GeoJSON.coordsToLatLng = coordsToLatLng;
            GeoJSON.coordsToLatLngs = coordsToLatLngs;
            GeoJSON.latLngToCoords = latLngToCoords;
            GeoJSON.latLngsToCoords = latLngsToCoords;
            GeoJSON.getFeature = getFeature;
            GeoJSON.asFeature = asFeature;
            /*
             * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map
             * (zoom to a selected bounding box), enabled by default.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @option boxZoom: Boolean = true
                // Whether the map can be zoomed to a rectangular area specified by
                // dragging the mouse while pressing the shift key.
                boxZoom: true
            });
            var BoxZoom = Handler.extend({
                initialize: function (map) {
                    this._map = map;
                    this._container = map._container;
                    this._pane = map._panes.overlayPane;
                    this._resetStateTimeout = 0;
                    map.on('unload', this._destroy, this);
                },
                addHooks: function () {
                    on(this._container, 'mousedown', this._onMouseDown, this);
                },
                removeHooks: function () {
                    off(this._container, 'mousedown', this._onMouseDown, this);
                },
                moved: function () {
                    return this._moved;
                },
                _destroy: function () {
                    remove(this._pane);
                    delete this._pane;
                },
                _resetState: function () {
                    this._resetStateTimeout = 0;
                    this._moved = false;
                },
                _clearDeferredResetState: function () {
                    if (this._resetStateTimeout !== 0) {
                        clearTimeout(this._resetStateTimeout);
                        this._resetStateTimeout = 0;
                    }
                },
                _onMouseDown: function (e) {
                    if (!e.shiftKey || ((e.which !== 1) && (e.button !== 1))) {
                        return false;
                    }
                    // Clear the deferred resetState if it hasn't executed yet, otherwise it
                    // will interrupt the interaction and orphan a box element in the container.
                    this._clearDeferredResetState();
                    this._resetState();
                    disableTextSelection();
                    disableImageDrag();
                    this._startPoint = this._map.mouseEventToContainerPoint(e);
                    on(document, {
                        contextmenu: stop,
                        mousemove: this._onMouseMove,
                        mouseup: this._onMouseUp,
                        keydown: this._onKeyDown
                    }, this);
                },
                _onMouseMove: function (e) {
                    if (!this._moved) {
                        this._moved = true;
                        this._box = create$1('div', 'leaflet-zoom-box', this._container);
                        addClass(this._container, 'leaflet-crosshair');
                        this._map.fire('boxzoomstart');
                    }
                    this._point = this._map.mouseEventToContainerPoint(e);
                    var bounds = new Bounds(this._point, this._startPoint), size = bounds.getSize();
                    setPosition(this._box, bounds.min);
                    this._box.style.width = size.x + 'px';
                    this._box.style.height = size.y + 'px';
                },
                _finish: function () {
                    if (this._moved) {
                        remove(this._box);
                        removeClass(this._container, 'leaflet-crosshair');
                    }
                    enableTextSelection();
                    enableImageDrag();
                    off(document, {
                        contextmenu: stop,
                        mousemove: this._onMouseMove,
                        mouseup: this._onMouseUp,
                        keydown: this._onKeyDown
                    }, this);
                },
                _onMouseUp: function (e) {
                    if ((e.which !== 1) && (e.button !== 1)) {
                        return;
                    }
                    this._finish();
                    if (!this._moved) {
                        return;
                    }
                    // Postpone to next JS tick so internal click event handling
                    // still see it as "moved".
                    this._clearDeferredResetState();
                    this._resetStateTimeout = setTimeout(bind(this._resetState, this), 0);
                    var bounds = new LatLngBounds(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
                    this._map
                        .fitBounds(bounds)
                        .fire('boxzoomend', { boxZoomBounds: bounds });
                },
                _onKeyDown: function (e) {
                    if (e.keyCode === 27) {
                        this._finish();
                    }
                }
            });
            // @section Handlers
            // @property boxZoom: Handler
            // Box (shift-drag with mouse) zoom handler.
            Map.addInitHook('addHandler', 'boxZoom', BoxZoom);
            /*
             * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @option doubleClickZoom: Boolean|String = true
                // Whether the map can be zoomed in by double clicking on it and
                // zoomed out by double clicking while holding shift. If passed
                // `'center'`, double-click zoom will zoom to the center of the
                //  view regardless of where the mouse was.
                doubleClickZoom: true
            });
            var DoubleClickZoom = Handler.extend({
                addHooks: function () {
                    this._map.on('dblclick', this._onDoubleClick, this);
                },
                removeHooks: function () {
                    this._map.off('dblclick', this._onDoubleClick, this);
                },
                _onDoubleClick: function (e) {
                    var map = this._map, oldZoom = map.getZoom(), delta = map.options.zoomDelta, zoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;
                    if (map.options.doubleClickZoom === 'center') {
                        map.setZoom(zoom);
                    }
                    else {
                        map.setZoomAround(e.containerPoint, zoom);
                    }
                }
            });
            // @section Handlers
            //
            // Map properties include interaction handlers that allow you to control
            // interaction behavior in runtime, enabling or disabling certain features such
            // as dragging or touch zoom (see `Handler` methods). For example:
            //
            // ```js
            // map.doubleClickZoom.disable();
            // ```
            //
            // @property doubleClickZoom: Handler
            // Double click zoom handler.
            Map.addInitHook('addHandler', 'doubleClickZoom', DoubleClickZoom);
            /*
             * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @option dragging: Boolean = true
                // Whether the map be draggable with mouse/touch or not.
                dragging: true,
                // @section Panning Inertia Options
                // @option inertia: Boolean = *
                // If enabled, panning of the map will have an inertia effect where
                // the map builds momentum while dragging and continues moving in
                // the same direction for some time. Feels especially nice on touch
                // devices. Enabled by default unless running on old Android devices.
                inertia: !android23,
                // @option inertiaDeceleration: Number = 3000
                // The rate with which the inertial movement slows down, in pixels/second².
                inertiaDeceleration: 3400,
                // @option inertiaMaxSpeed: Number = Infinity
                // Max speed of the inertial movement, in pixels/second.
                inertiaMaxSpeed: Infinity,
                // @option easeLinearity: Number = 0.2
                easeLinearity: 0.2,
                // TODO refactor, move to CRS
                // @option worldCopyJump: Boolean = false
                // With this option enabled, the map tracks when you pan to another "copy"
                // of the world and seamlessly jumps to the original one so that all overlays
                // like markers and vector layers are still visible.
                worldCopyJump: false,
                // @option maxBoundsViscosity: Number = 0.0
                // If `maxBounds` is set, this option will control how solid the bounds
                // are when dragging the map around. The default value of `0.0` allows the
                // user to drag outside the bounds at normal speed, higher values will
                // slow down map dragging outside bounds, and `1.0` makes the bounds fully
                // solid, preventing the user from dragging outside the bounds.
                maxBoundsViscosity: 0.0
            });
            var Drag = Handler.extend({
                addHooks: function () {
                    if (!this._draggable) {
                        var map = this._map;
                        this._draggable = new Draggable(map._mapPane, map._container);
                        this._draggable.on({
                            dragstart: this._onDragStart,
                            drag: this._onDrag,
                            dragend: this._onDragEnd
                        }, this);
                        this._draggable.on('predrag', this._onPreDragLimit, this);
                        if (map.options.worldCopyJump) {
                            this._draggable.on('predrag', this._onPreDragWrap, this);
                            map.on('zoomend', this._onZoomEnd, this);
                            map.whenReady(this._onZoomEnd, this);
                        }
                    }
                    addClass(this._map._container, 'leaflet-grab leaflet-touch-drag');
                    this._draggable.enable();
                    this._positions = [];
                    this._times = [];
                },
                removeHooks: function () {
                    removeClass(this._map._container, 'leaflet-grab');
                    removeClass(this._map._container, 'leaflet-touch-drag');
                    this._draggable.disable();
                },
                moved: function () {
                    return this._draggable && this._draggable._moved;
                },
                moving: function () {
                    return this._draggable && this._draggable._moving;
                },
                _onDragStart: function () {
                    var map = this._map;
                    map._stop();
                    if (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
                        var bounds = toLatLngBounds(this._map.options.maxBounds);
                        this._offsetLimit = toBounds(this._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1)
                            .add(this._map.getSize()));
                        this._viscosity = Math.min(1.0, Math.max(0.0, this._map.options.maxBoundsViscosity));
                    }
                    else {
                        this._offsetLimit = null;
                    }
                    map
                        .fire('movestart')
                        .fire('dragstart');
                    if (map.options.inertia) {
                        this._positions = [];
                        this._times = [];
                    }
                },
                _onDrag: function (e) {
                    if (this._map.options.inertia) {
                        var time = this._lastTime = +new Date(), pos = this._lastPos = this._draggable._absPos || this._draggable._newPos;
                        this._positions.push(pos);
                        this._times.push(time);
                        this._prunePositions(time);
                    }
                    this._map
                        .fire('move', e)
                        .fire('drag', e);
                },
                _prunePositions: function (time) {
                    while (this._positions.length > 1 && time - this._times[0] > 50) {
                        this._positions.shift();
                        this._times.shift();
                    }
                },
                _onZoomEnd: function () {
                    var pxCenter = this._map.getSize().divideBy(2), pxWorldCenter = this._map.latLngToLayerPoint([0, 0]);
                    this._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;
                    this._worldWidth = this._map.getPixelWorldBounds().getSize().x;
                },
                _viscousLimit: function (value, threshold) {
                    return value - (value - threshold) * this._viscosity;
                },
                _onPreDragLimit: function () {
                    if (!this._viscosity || !this._offsetLimit) {
                        return;
                    }
                    var offset = this._draggable._newPos.subtract(this._draggable._startPos);
                    var limit = this._offsetLimit;
                    if (offset.x < limit.min.x) {
                        offset.x = this._viscousLimit(offset.x, limit.min.x);
                    }
                    if (offset.y < limit.min.y) {
                        offset.y = this._viscousLimit(offset.y, limit.min.y);
                    }
                    if (offset.x > limit.max.x) {
                        offset.x = this._viscousLimit(offset.x, limit.max.x);
                    }
                    if (offset.y > limit.max.y) {
                        offset.y = this._viscousLimit(offset.y, limit.max.y);
                    }
                    this._draggable._newPos = this._draggable._startPos.add(offset);
                },
                _onPreDragWrap: function () {
                    // TODO refactor to be able to adjust map pane position after zoom
                    var worldWidth = this._worldWidth, halfWidth = Math.round(worldWidth / 2), dx = this._initialWorldOffset, x = this._draggable._newPos.x, newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx, newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx, newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;
                    this._draggable._absPos = this._draggable._newPos.clone();
                    this._draggable._newPos.x = newX;
                },
                _onDragEnd: function (e) {
                    var map = this._map, options = map.options, noInertia = !options.inertia || this._times.length < 2;
                    map.fire('dragend', e);
                    if (noInertia) {
                        map.fire('moveend');
                    }
                    else {
                        this._prunePositions(+new Date());
                        var direction = this._lastPos.subtract(this._positions[0]), duration = (this._lastTime - this._times[0]) / 1000, ease = options.easeLinearity, speedVector = direction.multiplyBy(ease / duration), speed = speedVector.distanceTo([0, 0]), limitedSpeed = Math.min(options.inertiaMaxSpeed, speed), limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed), decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease), offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();
                        if (!offset.x && !offset.y) {
                            map.fire('moveend');
                        }
                        else {
                            offset = map._limitOffset(offset, map.options.maxBounds);
                            requestAnimFrame(function () {
                                map.panBy(offset, {
                                    duration: decelerationDuration,
                                    easeLinearity: ease,
                                    noMoveStart: true,
                                    animate: true
                                });
                            });
                        }
                    }
                }
            });
            // @section Handlers
            // @property dragging: Handler
            // Map dragging handler (by both mouse and touch).
            Map.addInitHook('addHandler', 'dragging', Drag);
            /*
             * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
             */
            // @namespace Map
            // @section Keyboard Navigation Options
            Map.mergeOptions({
                // @option keyboard: Boolean = true
                // Makes the map focusable and allows users to navigate the map with keyboard
                // arrows and `+`/`-` keys.
                keyboard: true,
                // @option keyboardPanDelta: Number = 80
                // Amount of pixels to pan when pressing an arrow key.
                keyboardPanDelta: 80
            });
            var Keyboard = Handler.extend({
                keyCodes: {
                    left: [37],
                    right: [39],
                    down: [40],
                    up: [38],
                    zoomIn: [187, 107, 61, 171],
                    zoomOut: [189, 109, 54, 173]
                },
                initialize: function (map) {
                    this._map = map;
                    this._setPanDelta(map.options.keyboardPanDelta);
                    this._setZoomDelta(map.options.zoomDelta);
                },
                addHooks: function () {
                    var container = this._map._container;
                    // make the container focusable by tabbing
                    if (container.tabIndex <= 0) {
                        container.tabIndex = '0';
                    }
                    on(container, {
                        focus: this._onFocus,
                        blur: this._onBlur,
                        mousedown: this._onMouseDown
                    }, this);
                    this._map.on({
                        focus: this._addHooks,
                        blur: this._removeHooks
                    }, this);
                },
                removeHooks: function () {
                    this._removeHooks();
                    off(this._map._container, {
                        focus: this._onFocus,
                        blur: this._onBlur,
                        mousedown: this._onMouseDown
                    }, this);
                    this._map.off({
                        focus: this._addHooks,
                        blur: this._removeHooks
                    }, this);
                },
                _onMouseDown: function () {
                    if (this._focused) {
                        return;
                    }
                    var body = document.body, docEl = document.documentElement, top = body.scrollTop || docEl.scrollTop, left = body.scrollLeft || docEl.scrollLeft;
                    this._map._container.focus();
                    window.scrollTo(left, top);
                },
                _onFocus: function () {
                    this._focused = true;
                    this._map.fire('focus');
                },
                _onBlur: function () {
                    this._focused = false;
                    this._map.fire('blur');
                },
                _setPanDelta: function (panDelta) {
                    var keys = this._panKeys = {}, codes = this.keyCodes, i, len;
                    for (i = 0, len = codes.left.length; i < len; i++) {
                        keys[codes.left[i]] = [-1 * panDelta, 0];
                    }
                    for (i = 0, len = codes.right.length; i < len; i++) {
                        keys[codes.right[i]] = [panDelta, 0];
                    }
                    for (i = 0, len = codes.down.length; i < len; i++) {
                        keys[codes.down[i]] = [0, panDelta];
                    }
                    for (i = 0, len = codes.up.length; i < len; i++) {
                        keys[codes.up[i]] = [0, -1 * panDelta];
                    }
                },
                _setZoomDelta: function (zoomDelta) {
                    var keys = this._zoomKeys = {}, codes = this.keyCodes, i, len;
                    for (i = 0, len = codes.zoomIn.length; i < len; i++) {
                        keys[codes.zoomIn[i]] = zoomDelta;
                    }
                    for (i = 0, len = codes.zoomOut.length; i < len; i++) {
                        keys[codes.zoomOut[i]] = -zoomDelta;
                    }
                },
                _addHooks: function () {
                    on(document, 'keydown', this._onKeyDown, this);
                },
                _removeHooks: function () {
                    off(document, 'keydown', this._onKeyDown, this);
                },
                _onKeyDown: function (e) {
                    if (e.altKey || e.ctrlKey || e.metaKey) {
                        return;
                    }
                    var key = e.keyCode, map = this._map, offset;
                    if (key in this._panKeys) {
                        if (!map._panAnim || !map._panAnim._inProgress) {
                            offset = this._panKeys[key];
                            if (e.shiftKey) {
                                offset = toPoint(offset).multiplyBy(3);
                            }
                            map.panBy(offset);
                            if (map.options.maxBounds) {
                                map.panInsideBounds(map.options.maxBounds);
                            }
                        }
                    }
                    else if (key in this._zoomKeys) {
                        map.setZoom(map.getZoom() + (e.shiftKey ? 3 : 1) * this._zoomKeys[key]);
                    }
                    else if (key === 27 && map._popup && map._popup.options.closeOnEscapeKey) {
                        map.closePopup();
                    }
                    else {
                        return;
                    }
                    stop(e);
                }
            });
            // @section Handlers
            // @section Handlers
            // @property keyboard: Handler
            // Keyboard navigation handler.
            Map.addInitHook('addHandler', 'keyboard', Keyboard);
            /*
             * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @section Mousewheel options
                // @option scrollWheelZoom: Boolean|String = true
                // Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
                // it will zoom to the center of the view regardless of where the mouse was.
                scrollWheelZoom: true,
                // @option wheelDebounceTime: Number = 40
                // Limits the rate at which a wheel can fire (in milliseconds). By default
                // user can't zoom via wheel more often than once per 40 ms.
                wheelDebounceTime: 40,
                // @option wheelPxPerZoomLevel: Number = 60
                // How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))
                // mean a change of one full zoom level. Smaller values will make wheel-zooming
                // faster (and vice versa).
                wheelPxPerZoomLevel: 60
            });
            var ScrollWheelZoom = Handler.extend({
                addHooks: function () {
                    on(this._map._container, 'mousewheel', this._onWheelScroll, this);
                    this._delta = 0;
                },
                removeHooks: function () {
                    off(this._map._container, 'mousewheel', this._onWheelScroll, this);
                },
                _onWheelScroll: function (e) {
                    var delta = getWheelDelta(e);
                    var debounce = this._map.options.wheelDebounceTime;
                    this._delta += delta;
                    this._lastMousePos = this._map.mouseEventToContainerPoint(e);
                    if (!this._startTime) {
                        this._startTime = +new Date();
                    }
                    var left = Math.max(debounce - (+new Date() - this._startTime), 0);
                    clearTimeout(this._timer);
                    this._timer = setTimeout(bind(this._performZoom, this), left);
                    stop(e);
                },
                _performZoom: function () {
                    var map = this._map, zoom = map.getZoom(), snap = this._map.options.zoomSnap || 0;
                    map._stop(); // stop panning and fly animations if any
                    // map the delta with a sigmoid function to -4..4 range leaning on -1..1
                    var d2 = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), d3 = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d2)))) / Math.LN2, d4 = snap ? Math.ceil(d3 / snap) * snap : d3, delta = map._limitZoom(zoom + (this._delta > 0 ? d4 : -d4)) - zoom;
                    this._delta = 0;
                    this._startTime = null;
                    if (!delta) {
                        return;
                    }
                    if (map.options.scrollWheelZoom === 'center') {
                        map.setZoom(zoom + delta);
                    }
                    else {
                        map.setZoomAround(this._lastMousePos, zoom + delta);
                    }
                }
            });
            // @section Handlers
            // @property scrollWheelZoom: Handler
            // Scroll wheel zoom handler.
            Map.addInitHook('addHandler', 'scrollWheelZoom', ScrollWheelZoom);
            /*
             * L.Map.Tap is used to enable mobile hacks like quick taps and long hold.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @section Touch interaction options
                // @option tap: Boolean = true
                // Enables mobile hacks for supporting instant taps (fixing 200ms click
                // delay on iOS/Android) and touch holds (fired as `contextmenu` events).
                tap: true,
                // @option tapTolerance: Number = 15
                // The max number of pixels a user can shift his finger during touch
                // for it to be considered a valid tap.
                tapTolerance: 15
            });
            var Tap = Handler.extend({
                addHooks: function () {
                    on(this._map._container, 'touchstart', this._onDown, this);
                },
                removeHooks: function () {
                    off(this._map._container, 'touchstart', this._onDown, this);
                },
                _onDown: function (e) {
                    if (!e.touches) {
                        return;
                    }
                    preventDefault(e);
                    this._fireClick = true;
                    // don't simulate click or track longpress if more than 1 touch
                    if (e.touches.length > 1) {
                        this._fireClick = false;
                        clearTimeout(this._holdTimeout);
                        return;
                    }
                    var first = e.touches[0], el = first.target;
                    this._startPos = this._newPos = new Point(first.clientX, first.clientY);
                    // if touching a link, highlight it
                    if (el.tagName && el.tagName.toLowerCase() === 'a') {
                        addClass(el, 'leaflet-active');
                    }
                    // simulate long hold but setting a timeout
                    this._holdTimeout = setTimeout(bind(function () {
                        if (this._isTapValid()) {
                            this._fireClick = false;
                            this._onUp();
                            this._simulateEvent('contextmenu', first);
                        }
                    }, this), 1000);
                    this._simulateEvent('mousedown', first);
                    on(document, {
                        touchmove: this._onMove,
                        touchend: this._onUp
                    }, this);
                },
                _onUp: function (e) {
                    clearTimeout(this._holdTimeout);
                    off(document, {
                        touchmove: this._onMove,
                        touchend: this._onUp
                    }, this);
                    if (this._fireClick && e && e.changedTouches) {
                        var first = e.changedTouches[0], el = first.target;
                        if (el && el.tagName && el.tagName.toLowerCase() === 'a') {
                            removeClass(el, 'leaflet-active');
                        }
                        this._simulateEvent('mouseup', first);
                        // simulate click if the touch didn't move too much
                        if (this._isTapValid()) {
                            this._simulateEvent('click', first);
                        }
                    }
                },
                _isTapValid: function () {
                    return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;
                },
                _onMove: function (e) {
                    var first = e.touches[0];
                    this._newPos = new Point(first.clientX, first.clientY);
                    this._simulateEvent('mousemove', first);
                },
                _simulateEvent: function (type, e) {
                    var simulatedEvent = document.createEvent('MouseEvents');
                    simulatedEvent._simulated = true;
                    e.target._simulatedClick = true;
                    simulatedEvent.initMouseEvent(type, true, true, window, 1, e.screenX, e.screenY, e.clientX, e.clientY, false, false, false, false, 0, null);
                    e.target.dispatchEvent(simulatedEvent);
                }
            });
            // @section Handlers
            // @property tap: Handler
            // Mobile touch hacks (quick tap and touch hold) handler.
            if (touch && !pointer) {
                Map.addInitHook('addHandler', 'tap', Tap);
            }
            /*
             * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.
             */
            // @namespace Map
            // @section Interaction Options
            Map.mergeOptions({
                // @section Touch interaction options
                // @option touchZoom: Boolean|String = *
                // Whether the map can be zoomed by touch-dragging with two fingers. If
                // passed `'center'`, it will zoom to the center of the view regardless of
                // where the touch events (fingers) were. Enabled for touch-capable web
                // browsers except for old Androids.
                touchZoom: touch && !android23,
                // @option bounceAtZoomLimits: Boolean = true
                // Set it to false if you don't want the map to zoom beyond min/max zoom
                // and then bounce back when pinch-zooming.
                bounceAtZoomLimits: true
            });
            var TouchZoom = Handler.extend({
                addHooks: function () {
                    addClass(this._map._container, 'leaflet-touch-zoom');
                    on(this._map._container, 'touchstart', this._onTouchStart, this);
                },
                removeHooks: function () {
                    removeClass(this._map._container, 'leaflet-touch-zoom');
                    off(this._map._container, 'touchstart', this._onTouchStart, this);
                },
                _onTouchStart: function (e) {
                    var map = this._map;
                    if (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) {
                        return;
                    }
                    var p1 = map.mouseEventToContainerPoint(e.touches[0]), p2 = map.mouseEventToContainerPoint(e.touches[1]);
                    this._centerPoint = map.getSize()._divideBy(2);
                    this._startLatLng = map.containerPointToLatLng(this._centerPoint);
                    if (map.options.touchZoom !== 'center') {
                        this._pinchStartLatLng = map.containerPointToLatLng(p1.add(p2)._divideBy(2));
                    }
                    this._startDist = p1.distanceTo(p2);
                    this._startZoom = map.getZoom();
                    this._moved = false;
                    this._zooming = true;
                    map._stop();
                    on(document, 'touchmove', this._onTouchMove, this);
                    on(document, 'touchend', this._onTouchEnd, this);
                    preventDefault(e);
                },
                _onTouchMove: function (e) {
                    if (!e.touches || e.touches.length !== 2 || !this._zooming) {
                        return;
                    }
                    var map = this._map, p1 = map.mouseEventToContainerPoint(e.touches[0]), p2 = map.mouseEventToContainerPoint(e.touches[1]), scale = p1.distanceTo(p2) / this._startDist;
                    this._zoom = map.getScaleZoom(scale, this._startZoom);
                    if (!map.options.bounceAtZoomLimits && ((this._zoom < map.getMinZoom() && scale < 1) ||
                        (this._zoom > map.getMaxZoom() && scale > 1))) {
                        this._zoom = map._limitZoom(this._zoom);
                    }
                    if (map.options.touchZoom === 'center') {
                        this._center = this._startLatLng;
                        if (scale === 1) {
                            return;
                        }
                    }
                    else {
                        // Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng
                        var delta = p1._add(p2)._divideBy(2)._subtract(this._centerPoint);
                        if (scale === 1 && delta.x === 0 && delta.y === 0) {
                            return;
                        }
                        this._center = map.unproject(map.project(this._pinchStartLatLng, this._zoom).subtract(delta), this._zoom);
                    }
                    if (!this._moved) {
                        map._moveStart(true, false);
                        this._moved = true;
                    }
                    cancelAnimFrame(this._animRequest);
                    var moveFn = bind(map._move, map, this._center, this._zoom, { pinch: true, round: false });
                    this._animRequest = requestAnimFrame(moveFn, this, true);
                    preventDefault(e);
                },
                _onTouchEnd: function () {
                    if (!this._moved || !this._zooming) {
                        this._zooming = false;
                        return;
                    }
                    this._zooming = false;
                    cancelAnimFrame(this._animRequest);
                    off(document, 'touchmove', this._onTouchMove);
                    off(document, 'touchend', this._onTouchEnd);
                    // Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.
                    if (this._map.options.zoomAnimation) {
                        this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), true, this._map.options.zoomSnap);
                    }
                    else {
                        this._map._resetView(this._center, this._map._limitZoom(this._zoom));
                    }
                }
            });
            // @section Handlers
            // @property touchZoom: Handler
            // Touch zoom handler.
            Map.addInitHook('addHandler', 'touchZoom', TouchZoom);
            Map.BoxZoom = BoxZoom;
            Map.DoubleClickZoom = DoubleClickZoom;
            Map.Drag = Drag;
            Map.Keyboard = Keyboard;
            Map.ScrollWheelZoom = ScrollWheelZoom;
            Map.Tap = Tap;
            Map.TouchZoom = TouchZoom;
            Object.freeze = freeze;
            exports.version = version;
            exports.Control = Control;
            exports.control = control;
            exports.Browser = Browser;
            exports.Evented = Evented;
            exports.Mixin = Mixin;
            exports.Util = Util;
            exports.Class = Class;
            exports.Handler = Handler;
            exports.extend = extend;
            exports.bind = bind;
            exports.stamp = stamp;
            exports.setOptions = setOptions;
            exports.DomEvent = DomEvent;
            exports.DomUtil = DomUtil;
            exports.PosAnimation = PosAnimation;
            exports.Draggable = Draggable;
            exports.LineUtil = LineUtil;
            exports.PolyUtil = PolyUtil;
            exports.Point = Point;
            exports.point = toPoint;
            exports.Bounds = Bounds;
            exports.bounds = toBounds;
            exports.Transformation = Transformation;
            exports.transformation = toTransformation;
            exports.Projection = index;
            exports.LatLng = LatLng;
            exports.latLng = toLatLng;
            exports.LatLngBounds = LatLngBounds;
            exports.latLngBounds = toLatLngBounds;
            exports.CRS = CRS;
            exports.GeoJSON = GeoJSON;
            exports.geoJSON = geoJSON;
            exports.geoJson = geoJson;
            exports.Layer = Layer;
            exports.LayerGroup = LayerGroup;
            exports.layerGroup = layerGroup;
            exports.FeatureGroup = FeatureGroup;
            exports.featureGroup = featureGroup;
            exports.ImageOverlay = ImageOverlay;
            exports.imageOverlay = imageOverlay;
            exports.VideoOverlay = VideoOverlay;
            exports.videoOverlay = videoOverlay;
            exports.DivOverlay = DivOverlay;
            exports.Popup = Popup;
            exports.popup = popup;
            exports.Tooltip = Tooltip;
            exports.tooltip = tooltip;
            exports.Icon = Icon;
            exports.icon = icon;
            exports.DivIcon = DivIcon;
            exports.divIcon = divIcon;
            exports.Marker = Marker;
            exports.marker = marker;
            exports.TileLayer = TileLayer;
            exports.tileLayer = tileLayer;
            exports.GridLayer = GridLayer;
            exports.gridLayer = gridLayer;
            exports.SVG = SVG;
            exports.svg = svg$1;
            exports.Renderer = Renderer;
            exports.Canvas = Canvas;
            exports.canvas = canvas$1;
            exports.Path = Path;
            exports.CircleMarker = CircleMarker;
            exports.circleMarker = circleMarker;
            exports.Circle = Circle;
            exports.circle = circle;
            exports.Polyline = Polyline;
            exports.polyline = polyline;
            exports.Polygon = Polygon;
            exports.polygon = polygon;
            exports.Rectangle = Rectangle;
            exports.rectangle = rectangle;
            exports.Map = Map;
            exports.map = createMap;
            var oldL = window.L;
            exports.noConflict = function () {
                window.L = oldL;
                return this;
            };
            // Always export us to window global (see #2364)
            window.L = exports;
        })));
        //# sourceMappingURL=leaflet-src.js.map
        /***/ 
    }),
    /* 746 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetConstellationsLines", function () { return GetConstellationsLines; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetStarsMarkers", function () { return GetStarsMarkers; });
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var _this = undefined;
        var GetConstellationsLines = function () {
            return __awaiter(_this, void 0, void 0, function () {
                var lines;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, fetch("../api/Maps/ConstellationsLines")
                                .then(function (response) {
                                return response.json();
                            })
                                .then(function (myJson) {
                                return myJson;
                            })];
                        case 1:
                            lines = _a.sent();
                            return [2 /*return*/, lines];
                    }
                });
            });
        };
        var GetStarsMarkers = function () {
            return __awaiter(_this, void 0, void 0, function () {
                var lines;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, fetch("../api/Maps/StarMarkers")
                                .then(function (response) {
                                return response.json();
                            })
                                .then(function (myJson) {
                                return myJson;
                            })];
                        case 1:
                            lines = _a.sent();
                            return [2 /*return*/, lines];
                    }
                });
            });
        };
        /***/ 
    }),
    /* 747 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        var siderealtime = function (longitude) {
            return timeformat(time(longitude));
        };
        var time = function (longitude) {
            var now = new Date;
            var utc_timestamp = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds(), now.getUTCMilliseconds());
            var min = now.getUTCMinutes();
            var start = Date.UTC(now.getUTCFullYear(), 0, 1);
            var diff = (utc_timestamp - start);
            var oneDay = 1000 * 60 * 60 * 24;
            var days = Math.floor(diff / oneDay);
            var startime = 0.0657098 * days - 17.41409 + ((now.getUTCHours() * 60 + now.getUTCMinutes() + 4 * longitude) / 60) * 1.002737909;
            if (startime < 0) {
                startime = startime + 24;
            }
            if (startime > 24) {
                startime = startime - 24;
            }
            return startime;
        };
        var timeformat = function (time) {
            var decimal = Math.trunc(time);
            var fractional = (time - decimal);
            var numb = (fractional * 60).toString().substring(0, 2);
            if (fractional < 10 / 60) {
                numb = "0" + (fractional * 60).toString().substring(0, 1);
            }
            return decimal + ":" + numb;
        };
        /* harmony default export */ __webpack_exports__["default"] = (siderealtime);
        /***/ 
    }),
    /* 748 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(749);
        /* harmony import */ var _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(906);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67);
        /* harmony import */ var _amcharts_amcharts4_themes_animated__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(981);
        /* harmony import */ var _amcharts_amcharts4_themes_dark__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(984);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var Chart = /** @class */ (function (_super) {
            __extends(Chart, _super);
            function Chart() {
                return _super !== null && _super.apply(this, arguments) || this;
            }
            Chart.prototype.componentDidMount = function () {
                var _this = this;
                _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["useTheme"](_amcharts_amcharts4_themes_animated__WEBPACK_IMPORTED_MODULE_4__["default"]);
                _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["useTheme"](_amcharts_amcharts4_themes_dark__WEBPACK_IMPORTED_MODULE_5__["default"]);
                var chart = _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["create"]('chartdiv', _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["XYChart"]);
                chart.exporting.menu = new _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["ExportMenu"]();
                chart.hiddenState.properties.opacity = 0;
                var valueAxisX = chart.xAxes.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["ValueAxis"]());
                var valueAxisY = chart.yAxes.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["ValueAxis"]());
                var valueAxisY2 = chart.yAxes.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["ValueAxis"]());
                valueAxisY.title.text = "Luminosity";
                valueAxisY2.title.text = "Absolute magnitude";
                valueAxisX.title.text = "Temperature K";
                valueAxisY2.renderer.opposite = true;
                valueAxisY.logarithmic = true;
                var serieslum = chart.series.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["LineSeries"]());
                serieslum.dataFields.valueX = 'temp';
                serieslum.dataFields.valueY = 'lum';
                serieslum.dataFields.value = 'size';
                serieslum.strokeOpacity = 0;
                serieslum.sequencedInterpolation = true;
                serieslum.yAxis = valueAxisY;
                var seriesmag = chart.series.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["LineSeries"]());
                seriesmag.dataFields.valueX = 'temp';
                seriesmag.dataFields.valueY = 'mag';
                seriesmag.dataFields.value = 'size';
                seriesmag.strokeOpacity = 0;
                seriesmag.sequencedInterpolation = true;
                seriesmag.yAxis = valueAxisY2;
                var bullet = serieslum.bullets.push(new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["CircleBullet"]());
                bullet.fill = _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["color"]('#ff0000');
                bullet.propertyFields.fill = 'color';
                bullet.strokeOpacity = 0;
                bullet.strokeWidth = 2;
                bullet.fillOpacity = 0.7;
                bullet.stroke = _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["color"]('#ffffff');
                bullet.circle.events.on("hit", function (ev) {
                    var name = ev.target.dataItem._dataContext.title;
                    _this.props.history.push({
                        pathname: "system/" + name,
                        state: { star: { name: name } }
                    });
                    console.log("clicked on ", ev.target.dataItem._dataContext);
                }, this);
                bullet.circle.tooltipText =
                    '[bold]{title}:[/]\nMass: {value.value}\nTemperature: {valueX.value}\nLuminosity:{valueY.value}';
                var hoverState = bullet.states.create('hover');
                hoverState.properties.fillOpacity = 1;
                hoverState.properties.strokeOpacity = 1;
                serieslum.heatRules.push({
                    target: bullet.circle,
                    min: 2,
                    max: 60,
                    property: 'radius'
                });
                bullet.circle.adapter.add('tooltipY', function (tooltipY, target) {
                    return -target.radius;
                });
                chart.cursor = new _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__["XYCursor"]();
                chart.cursor.behavior = 'zoomXY';
                chart.scrollbarX = new _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["Scrollbar"]();
                chart.scrollbarY = new _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__["Scrollbar"]();
                chart.data = [
                    {
                        title: 'Kepler-283',
                        type: "O",
                        color: '#eea638',
                        constellation: 'Centaurus',
                        lum: 10000,
                        temp: 10000.524,
                        size: 200,
                        mag: -5
                    }, {
                        title: 'Kepler-298',
                        type: "B",
                        color: '#eea638',
                        constellation: 'Centaurus',
                        lum: 1,
                        temp: 5000.524,
                        size: 334,
                        mag: 5
                    }, {
                        title: 'KOI-4427',
                        type: "B",
                        color: '#eea638',
                        constellation: 'Centaurus',
                        lum: 0.00001,
                        temp: 3000.524,
                        size: 134,
                        mag: 5
                    }
                ];
                this.chart = chart;
            };
            Chart.prototype.componentWillUnmount = function () {
                if (this.chart) {
                    this.chart.dispose();
                }
            };
            Chart.prototype.render = function () {
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_3__["Container"], { className: 'post-preview' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: "chartdiv", style: { width: '100%', maxHeight: '700px', height: '99vh' } })));
            };
            return Chart;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Chart);
        /***/ 
    }),
    /* 749 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _internal_core_System__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(750);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "System", function () { return _internal_core_System__WEBPACK_IMPORTED_MODULE_0__["System"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "system", function () { return _internal_core_System__WEBPACK_IMPORTED_MODULE_0__["system"]; });
        /* harmony import */ var _internal_core_Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseObject", function () { return _internal_core_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseObjectEvents", function () { return _internal_core_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]; });
        /* harmony import */ var _internal_core_Component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(832);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Component", function () { return _internal_core_Component__WEBPACK_IMPORTED_MODULE_2__["Component"]; });
        /* harmony import */ var _internal_core_Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Container", function () { return _internal_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]; });
        /* harmony import */ var _internal_core_DataItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(860);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataItem", function () { return _internal_core_DataItem__WEBPACK_IMPORTED_MODULE_4__["DataItem"]; });
        /* harmony import */ var _internal_core_Sprite__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(766);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sprite", function () { return _internal_core_Sprite__WEBPACK_IMPORTED_MODULE_5__["Sprite"]; });
        /* harmony import */ var _internal_core_SpriteEvents__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(798);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpriteEventDispatcher", function () { return _internal_core_SpriteEvents__WEBPACK_IMPORTED_MODULE_6__["SpriteEventDispatcher"]; });
        /* harmony import */ var _internal_core_SpriteState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(767);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpriteState", function () { return _internal_core_SpriteState__WEBPACK_IMPORTED_MODULE_7__["SpriteState"]; });
        /* harmony import */ var _internal_core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registry", function () { return _internal_core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Registry", function () { return _internal_core_Registry__WEBPACK_IMPORTED_MODULE_8__["Registry"]; });
        /* harmony import */ var _internal_core_Options__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(804);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "options", function () { return _internal_core_Options__WEBPACK_IMPORTED_MODULE_9__["options"]; });
        /* harmony import */ var _internal_core_data_CSVParser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(835);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CSVParser", function () { return _internal_core_data_CSVParser__WEBPACK_IMPORTED_MODULE_10__["CSVParser"]; });
        /* harmony import */ var _internal_core_data_DataLoader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(834);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataLoader", function () { return _internal_core_data_DataLoader__WEBPACK_IMPORTED_MODULE_11__["DataLoader"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dataLoader", function () { return _internal_core_data_DataLoader__WEBPACK_IMPORTED_MODULE_11__["dataLoader"]; });
        /* harmony import */ var _internal_core_data_DataParser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(836);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataParser", function () { return _internal_core_data_DataParser__WEBPACK_IMPORTED_MODULE_12__["DataParser"]; });
        /* harmony import */ var _internal_core_data_DataSource__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(833);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataSource", function () { return _internal_core_data_DataSource__WEBPACK_IMPORTED_MODULE_13__["DataSource"]; });
        /* harmony import */ var _internal_core_data_JSONParser__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(837);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONParser", function () { return _internal_core_data_JSONParser__WEBPACK_IMPORTED_MODULE_14__["JSONParser"]; });
        /* harmony import */ var _internal_core_defs_SVGDefaults__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(786);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SVGDefaults", function () { return _internal_core_defs_SVGDefaults__WEBPACK_IMPORTED_MODULE_15__["SVGDefaults"]; });
        /* harmony import */ var _internal_core_elements_Button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(865);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function () { return _internal_core_elements_Button__WEBPACK_IMPORTED_MODULE_16__["Button"]; });
        /* harmony import */ var _internal_core_elements_Circle__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(866);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function () { return _internal_core_elements_Circle__WEBPACK_IMPORTED_MODULE_17__["Circle"]; });
        /* harmony import */ var _internal_core_elements_Ellipse__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(867);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ellipse", function () { return _internal_core_elements_Ellipse__WEBPACK_IMPORTED_MODULE_18__["Ellipse"]; });
        /* harmony import */ var _internal_core_elements_Image__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(868);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function () { return _internal_core_elements_Image__WEBPACK_IMPORTED_MODULE_19__["Image"]; });
        /* harmony import */ var _internal_core_elements_Label__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(845);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function () { return _internal_core_elements_Label__WEBPACK_IMPORTED_MODULE_20__["Label"]; });
        /* harmony import */ var _internal_core_elements_Line__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(850);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function () { return _internal_core_elements_Line__WEBPACK_IMPORTED_MODULE_21__["Line"]; });
        /* harmony import */ var _internal_core_elements_Popup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(782);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function () { return _internal_core_elements_Popup__WEBPACK_IMPORTED_MODULE_22__["Popup"]; });
        /* harmony import */ var _internal_core_elements_Modal__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(794);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function () { return _internal_core_elements_Modal__WEBPACK_IMPORTED_MODULE_23__["Modal"]; });
        /* harmony import */ var _internal_core_elements_PointedRectangle__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(869);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PointedRectangle", function () { return _internal_core_elements_PointedRectangle__WEBPACK_IMPORTED_MODULE_24__["PointedRectangle"]; });
        /* harmony import */ var _internal_core_elements_PointedShape__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(870);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PointedShape", function () { return _internal_core_elements_PointedShape__WEBPACK_IMPORTED_MODULE_25__["PointedShape"]; });
        /* harmony import */ var _internal_core_elements_Polyarc__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(871);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polyarc", function () { return _internal_core_elements_Polyarc__WEBPACK_IMPORTED_MODULE_26__["Polyarc"]; });
        /* harmony import */ var _internal_core_elements_Polygon__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(873);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polygon", function () { return _internal_core_elements_Polygon__WEBPACK_IMPORTED_MODULE_27__["Polygon"]; });
        /* harmony import */ var _internal_core_elements_Polyline__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(872);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polyline", function () { return _internal_core_elements_Polyline__WEBPACK_IMPORTED_MODULE_28__["Polyline"]; });
        /* harmony import */ var _internal_core_elements_Polyspline__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(875);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polyspline", function () { return _internal_core_elements_Polyspline__WEBPACK_IMPORTED_MODULE_29__["Polyspline"]; });
        /* harmony import */ var _internal_core_elements_Preloader__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(876);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Preloader", function () { return _internal_core_elements_Preloader__WEBPACK_IMPORTED_MODULE_30__["Preloader"]; });
        /* harmony import */ var _internal_core_elements_Rectangle__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(831);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rectangle", function () { return _internal_core_elements_Rectangle__WEBPACK_IMPORTED_MODULE_31__["Rectangle"]; });
        /* harmony import */ var _internal_core_elements_ResizeButton__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(878);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeButton", function () { return _internal_core_elements_ResizeButton__WEBPACK_IMPORTED_MODULE_32__["ResizeButton"]; });
        /* harmony import */ var _internal_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(862);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RoundedRectangle", function () { return _internal_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_33__["RoundedRectangle"]; });
        /* harmony import */ var _internal_core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(879);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scrollbar", function () { return _internal_core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_34__["Scrollbar"]; });
        /* harmony import */ var _internal_core_elements_Slider__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(880);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function () { return _internal_core_elements_Slider__WEBPACK_IMPORTED_MODULE_35__["Slider"]; });
        /* harmony import */ var _internal_core_elements_Slice__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(877);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slice", function () { return _internal_core_elements_Slice__WEBPACK_IMPORTED_MODULE_36__["Slice"]; });
        /* harmony import */ var _internal_core_elements_TextLink__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(881);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextLink", function () { return _internal_core_elements_TextLink__WEBPACK_IMPORTED_MODULE_37__["TextLink"]; });
        /* harmony import */ var _internal_core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(882);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function () { return _internal_core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_38__["Tooltip"]; });
        /* harmony import */ var _internal_core_elements_Trapezoid__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(884);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Trapezoid", function () { return _internal_core_elements_Trapezoid__WEBPACK_IMPORTED_MODULE_39__["Trapezoid"]; });
        /* harmony import */ var _internal_core_elements_Triangle__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(885);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Triangle", function () { return _internal_core_elements_Triangle__WEBPACK_IMPORTED_MODULE_40__["Triangle"]; });
        /* harmony import */ var _internal_core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(886);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WavedCircle", function () { return _internal_core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_41__["WavedCircle"]; });
        /* harmony import */ var _internal_core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(849);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WavedLine", function () { return _internal_core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_42__["WavedLine"]; });
        /* harmony import */ var _internal_core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(853);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WavedRectangle", function () { return _internal_core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_43__["WavedRectangle"]; });
        /* harmony import */ var _internal_core_elements_ZoomOutButton__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(887);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ZoomOutButton", function () { return _internal_core_elements_ZoomOutButton__WEBPACK_IMPORTED_MODULE_44__["ZoomOutButton"]; });
        /* harmony import */ var _internal_core_elements_PlayButton__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(888);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlayButton", function () { return _internal_core_elements_PlayButton__WEBPACK_IMPORTED_MODULE_45__["PlayButton"]; });
        /* harmony import */ var _internal_core_elements_3d_Cone__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(889);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cone", function () { return _internal_core_elements_3d_Cone__WEBPACK_IMPORTED_MODULE_46__["Cone"]; });
        /* harmony import */ var _internal_core_elements_3d_Rectangle3D__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(893);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rectangle3D", function () { return _internal_core_elements_3d_Rectangle3D__WEBPACK_IMPORTED_MODULE_47__["Rectangle3D"]; });
        /* harmony import */ var _internal_core_elements_3d_Slice3D__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(895);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slice3D", function () { return _internal_core_elements_3d_Slice3D__WEBPACK_IMPORTED_MODULE_48__["Slice3D"]; });
        /* harmony import */ var _internal_core_export_Export__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(811);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Export", function () { return _internal_core_export_Export__WEBPACK_IMPORTED_MODULE_49__["Export"]; });
        /* harmony import */ var _internal_core_export_ExportMenu__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(812);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportMenu", function () { return _internal_core_export_ExportMenu__WEBPACK_IMPORTED_MODULE_50__["ExportMenu"]; });
        /* harmony import */ var _internal_core_formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(809);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateFormatter", function () { return _internal_core_formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_51__["DateFormatter"]; });
        /* harmony import */ var _internal_core_formatters_DurationFormatter__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(810);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DurationFormatter", function () { return _internal_core_formatters_DurationFormatter__WEBPACK_IMPORTED_MODULE_52__["DurationFormatter"]; });
        /* harmony import */ var _internal_core_formatters_NumberFormatter__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(805);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberFormatter", function () { return _internal_core_formatters_NumberFormatter__WEBPACK_IMPORTED_MODULE_53__["NumberFormatter"]; });
        /* harmony import */ var _internal_core_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(808);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextFormatter", function () { return _internal_core_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_54__["TextFormatter"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTextFormatter", function () { return _internal_core_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_54__["getTextFormatter"]; });
        /* harmony import */ var _internal_core_interaction_Inertia__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(791);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Inertia", function () { return _internal_core_interaction_Inertia__WEBPACK_IMPORTED_MODULE_55__["Inertia"]; });
        /* harmony import */ var _internal_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(784);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Interaction", function () { return _internal_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_56__["Interaction"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInteraction", function () { return _internal_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_56__["getInteraction"]; });
        /* harmony import */ var _internal_core_interaction_InteractionKeyboardObject__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(790);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionKeyboardObject", function () { return _internal_core_interaction_InteractionKeyboardObject__WEBPACK_IMPORTED_MODULE_57__["InteractionKeyboardObject"]; });
        /* harmony import */ var _internal_core_interaction_InteractionObject__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(788);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionObject", function () { return _internal_core_interaction_InteractionObject__WEBPACK_IMPORTED_MODULE_58__["InteractionObject"]; });
        /* harmony import */ var _internal_core_interaction_InteractionObjectEvents__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(789);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionObjectEventDispatcher", function () { return _internal_core_interaction_InteractionObjectEvents__WEBPACK_IMPORTED_MODULE_59__["InteractionObjectEventDispatcher"]; });
        /* harmony import */ var _internal_core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(803);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MouseCursorStyle", function () { return _internal_core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_60__["MouseCursorStyle"]; });
        /* harmony import */ var _internal_core_rendering_AMElement__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(778);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AMElement", function () { return _internal_core_rendering_AMElement__WEBPACK_IMPORTED_MODULE_61__["AMElement"]; });
        /* harmony import */ var _internal_core_rendering_Group__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(780);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function () { return _internal_core_rendering_Group__WEBPACK_IMPORTED_MODULE_62__["Group"]; });
        /* harmony import */ var _internal_core_rendering_Paper__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(777);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Paper", function () { return _internal_core_rendering_Paper__WEBPACK_IMPORTED_MODULE_63__["Paper"]; });
        /* harmony import */ var _internal_core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(851);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tension", function () { return _internal_core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_64__["Tension"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Basis", function () { return _internal_core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_64__["Basis"]; });
        /* harmony import */ var _internal_core_rendering_SVGContainer__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(781);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SVGContainer", function () { return _internal_core_rendering_SVGContainer__WEBPACK_IMPORTED_MODULE_65__["SVGContainer"]; });
        /* harmony import */ var _internal_core_rendering_fills_ColorModifier__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(892);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorModifier", function () { return _internal_core_rendering_fills_ColorModifier__WEBPACK_IMPORTED_MODULE_66__["ColorModifier"]; });
        /* harmony import */ var _internal_core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(801);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinearGradient", function () { return _internal_core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_67__["LinearGradient"]; });
        /* harmony import */ var _internal_core_rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(890);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinearGradientModifier", function () { return _internal_core_rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_68__["LinearGradientModifier"]; });
        /* harmony import */ var _internal_core_rendering_fills_RadialGradientModifier__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(896);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadialGradientModifier", function () { return _internal_core_rendering_fills_RadialGradientModifier__WEBPACK_IMPORTED_MODULE_69__["RadialGradientModifier"]; });
        /* harmony import */ var _internal_core_rendering_fills_LinePattern__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(897);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinePattern", function () { return _internal_core_rendering_fills_LinePattern__WEBPACK_IMPORTED_MODULE_70__["LinePattern"]; });
        /* harmony import */ var _internal_core_rendering_fills_Pattern__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(799);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pattern", function () { return _internal_core_rendering_fills_Pattern__WEBPACK_IMPORTED_MODULE_71__["Pattern"]; });
        /* harmony import */ var _internal_core_rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(802);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadialGradient", function () { return _internal_core_rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_72__["RadialGradient"]; });
        /* harmony import */ var _internal_core_rendering_fills_RectPattern__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(898);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RectPattern", function () { return _internal_core_rendering_fills_RectPattern__WEBPACK_IMPORTED_MODULE_73__["RectPattern"]; });
        /* harmony import */ var _internal_core_rendering_filters_ColorizeFilter__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(899);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorizeFilter", function () { return _internal_core_rendering_filters_ColorizeFilter__WEBPACK_IMPORTED_MODULE_74__["ColorizeFilter"]; });
        /* harmony import */ var _internal_core_rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(900);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DesaturateFilter", function () { return _internal_core_rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_75__["DesaturateFilter"]; });
        /* harmony import */ var _internal_core_rendering_filters_DropShadowFilter__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(883);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropShadowFilter", function () { return _internal_core_rendering_filters_DropShadowFilter__WEBPACK_IMPORTED_MODULE_76__["DropShadowFilter"]; });
        /* harmony import */ var _internal_core_rendering_filters_BlurFilter__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(901);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BlurFilter", function () { return _internal_core_rendering_filters_BlurFilter__WEBPACK_IMPORTED_MODULE_77__["BlurFilter"]; });
        /* harmony import */ var _internal_core_rendering_filters_Filter__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(776);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Filter", function () { return _internal_core_rendering_filters_Filter__WEBPACK_IMPORTED_MODULE_78__["Filter"]; });
        /* harmony import */ var _internal_core_rendering_filters_FocusFilter__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(902);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusFilter", function () { return _internal_core_rendering_filters_FocusFilter__WEBPACK_IMPORTED_MODULE_79__["FocusFilter"]; });
        /* harmony import */ var _internal_core_rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(894);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LightenFilter", function () { return _internal_core_rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_80__["LightenFilter"]; });
        /* harmony import */ var _internal_core_responsive_Responsive__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(838);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Responsive", function () { return _internal_core_responsive_Responsive__WEBPACK_IMPORTED_MODULE_81__["Responsive"]; });
        /* harmony import */ var _internal_core_utils_Adapter__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(770);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GlobalAdapter", function () { return _internal_core_utils_Adapter__WEBPACK_IMPORTED_MODULE_82__["GlobalAdapter"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "globalAdapter", function () { return _internal_core_utils_Adapter__WEBPACK_IMPORTED_MODULE_82__["globalAdapter"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Adapter", function () { return _internal_core_utils_Adapter__WEBPACK_IMPORTED_MODULE_82__["Adapter"]; });
        /* harmony import */ var _internal_core_utils_Animation__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(785);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Animation", function () { return _internal_core_utils_Animation__WEBPACK_IMPORTED_MODULE_83__["Animation"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "animate", function () { return _internal_core_utils_Animation__WEBPACK_IMPORTED_MODULE_83__["animate"]; });
        /* harmony import */ var _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(759);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nextFrame", function () { return _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__["nextFrame"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "readFrame", function () { return _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__["readFrame"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "writeFrame", function () { return _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__["writeFrame"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "whenIdle", function () { return _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__["whenIdle"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "triggerIdle", function () { return _internal_core_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_84__["triggerIdle"]; });
        /* harmony import */ var _internal_core_utils_Cache__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(764);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cache", function () { return _internal_core_utils_Cache__WEBPACK_IMPORTED_MODULE_85__["Cache"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cache", function () { return _internal_core_utils_Cache__WEBPACK_IMPORTED_MODULE_85__["cache"]; });
        /* harmony import */ var _internal_core_utils_Color__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(774);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Color", function () { return _internal_core_utils_Color__WEBPACK_IMPORTED_MODULE_86__["Color"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function () { return _internal_core_utils_Color__WEBPACK_IMPORTED_MODULE_86__["color"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isColor", function () { return _internal_core_utils_Color__WEBPACK_IMPORTED_MODULE_86__["isColor"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "castColor", function () { return _internal_core_utils_Color__WEBPACK_IMPORTED_MODULE_86__["castColor"]; });
        /* harmony import */ var _internal_core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(903);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorSet", function () { return _internal_core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_87__["ColorSet"]; });
        /* harmony import */ var _internal_core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(800);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InterfaceColorSet", function () { return _internal_core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_88__["InterfaceColorSet"]; });
        /* harmony import */ var _internal_core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(760);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DictionaryDisposer", function () { return _internal_core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_89__["DictionaryDisposer"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dictionary", function () { return _internal_core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_89__["Dictionary"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DictionaryTemplate", function () { return _internal_core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_89__["DictionaryTemplate"]; });
        /* harmony import */ var _internal_core_utils_Disposer__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(754);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Disposer", function () { return _internal_core_utils_Disposer__WEBPACK_IMPORTED_MODULE_90__["Disposer"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiDisposer", function () { return _internal_core_utils_Disposer__WEBPACK_IMPORTED_MODULE_90__["MultiDisposer"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MutableValueDisposer", function () { return _internal_core_utils_Disposer__WEBPACK_IMPORTED_MODULE_90__["MutableValueDisposer"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CounterDisposer", function () { return _internal_core_utils_Disposer__WEBPACK_IMPORTED_MODULE_90__["CounterDisposer"]; });
        /* harmony import */ var _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(779);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StyleRule", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["StyleRule"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StyleClass", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["StyleClass"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getElement", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["getElement"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addClass", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["addClass"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeClass", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["removeClass"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "blur", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["blur"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focus", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["focus"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "outerHTML", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["outerHTML"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElement", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["isElement"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyAttributes", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["copyAttributes"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fixPixelPerfect", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["fixPixelPerfect"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ready", function () { return _internal_core_utils_DOM__WEBPACK_IMPORTED_MODULE_91__["ready"]; });
        /* harmony import */ var _internal_core_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(752);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDispatcher", function () { return _internal_core_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_92__["EventDispatcher"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TargetedEventDispatcher", function () { return _internal_core_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_92__["TargetedEventDispatcher"]; });
        /* harmony import */ var _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(762);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIterator", function () { return _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__["ListIterator"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function () { return _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__["min"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function () { return _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__["max"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "join", function () { return _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__["join"]; });
        /* harmony import */ var _internal_core_utils_Keyboard__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(792);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Keyboard", function () { return _internal_core_utils_Keyboard__WEBPACK_IMPORTED_MODULE_94__["Keyboard"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keyboard", function () { return _internal_core_utils_Keyboard__WEBPACK_IMPORTED_MODULE_94__["keyboard"]; });
        /* harmony import */ var _internal_core_utils_Language__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(806);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Language", function () { return _internal_core_utils_Language__WEBPACK_IMPORTED_MODULE_95__["Language"]; });
        /* harmony import */ var _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(769);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexedIterable", function () { return _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__["IndexedIterable"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGrouper", function () { return _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__["ListGrouper"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDisposer", function () { return _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__["ListDisposer"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function () { return _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__["List"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplate", function () { return _internal_core_utils_List__WEBPACK_IMPORTED_MODULE_96__["ListTemplate"]; });
        /* harmony import */ var _internal_core_utils_Morpher__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(874);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Morpher", function () { return _internal_core_utils_Morpher__WEBPACK_IMPORTED_MODULE_97__["Morpher"]; });
        /* harmony import */ var _internal_core_utils_Order__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(773);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reverse", function () { return _internal_core_utils_Order__WEBPACK_IMPORTED_MODULE_98__["reverse"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "or", function () { return _internal_core_utils_Order__WEBPACK_IMPORTED_MODULE_98__["or"]; });
        /* harmony import */ var _internal_core_utils_Percent__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(758);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Percent", function () { return _internal_core_utils_Percent__WEBPACK_IMPORTED_MODULE_99__["Percent"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "percent", function () { return _internal_core_utils_Percent__WEBPACK_IMPORTED_MODULE_99__["percent"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPercent", function () { return _internal_core_utils_Percent__WEBPACK_IMPORTED_MODULE_99__["isPercent"]; });
        /* harmony import */ var _internal_core_utils_SortedList__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(771);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrderedList", function () { return _internal_core_utils_SortedList__WEBPACK_IMPORTED_MODULE_100__["OrderedList"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortedList", function () { return _internal_core_utils_SortedList__WEBPACK_IMPORTED_MODULE_100__["SortedList"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrderedListTemplate", function () { return _internal_core_utils_SortedList__WEBPACK_IMPORTED_MODULE_100__["OrderedListTemplate"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortedListTemplate", function () { return _internal_core_utils_SortedList__WEBPACK_IMPORTED_MODULE_100__["SortedListTemplate"]; });
        /* harmony import */ var _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(796);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PX", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["PX"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "STRING", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["STRING"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NUMBER", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["NUMBER"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATE", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["DATE"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DURATION", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["DURATION"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PLACEHOLDER", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["PLACEHOLDER"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PLACEHOLDER2", function () { return _internal_core_utils_Strings__WEBPACK_IMPORTED_MODULE_101__["PLACEHOLDER2"]; });
        /* harmony import */ var _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(757);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNaN", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["isNaN"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkString", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["checkString"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkBoolean", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["checkBoolean"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkNumber", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["checkNumber"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkObject", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["checkObject"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "castString", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["castString"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "castNumber", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["castNumber"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isString", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["isString"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNumber", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["isNumber"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObject", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["isObject"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isArray", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__["isArray"]; });
        /* harmony import */ var _internal_core_utils_Validatable__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(814);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Validatable", function () { return _internal_core_utils_Validatable__WEBPACK_IMPORTED_MODULE_103__["Validatable"]; });
        /* harmony import */ var _internal_core_rendering_Path__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(852);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "path", function () { return _internal_core_rendering_Path__WEBPACK_IMPORTED_MODULE_104__; });
        /* harmony import */ var _internal_core_utils_Colors__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(775);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "colors", function () { return _internal_core_utils_Colors__WEBPACK_IMPORTED_MODULE_105__; });
        /* harmony import */ var _internal_core_utils_Ease__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(787);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "ease", function () { return _internal_core_utils_Ease__WEBPACK_IMPORTED_MODULE_106__; });
        /* harmony import */ var _internal_core_utils_Math__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(756);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "math", function () { return _internal_core_utils_Math__WEBPACK_IMPORTED_MODULE_107__; });
        /* harmony import */ var _internal_core_utils_Number__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(772);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "number", function () { return _internal_core_utils_Number__WEBPACK_IMPORTED_MODULE_108__; });
        /* harmony import */ var _internal_core_utils_Object__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(761);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "object", function () { return _internal_core_utils_Object__WEBPACK_IMPORTED_MODULE_109__; });
        /* harmony import */ var _internal_core_utils_String__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(763);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "string", function () { return _internal_core_utils_String__WEBPACK_IMPORTED_MODULE_110__; });
        /* harmony import */ var _internal_core_utils_Time__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(793);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "time", function () { return _internal_core_utils_Time__WEBPACK_IMPORTED_MODULE_111__; });
        /* harmony import */ var _internal_core_utils_Utils__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(795);
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "utils", function () { return _internal_core_utils_Utils__WEBPACK_IMPORTED_MODULE_112__; });
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "iter", function () { return _internal_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_93__; });
        /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "type", function () { return _internal_core_utils_Type__WEBPACK_IMPORTED_MODULE_102__; });
        /* harmony import */ var _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(904);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function () { return _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__["create"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createFromConfig", function () { return _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__["createFromConfig"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useTheme", function () { return _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__["useTheme"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unuseTheme", function () { return _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__["unuseTheme"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unuseAllThemes", function () { return _internal_core_utils_Instance__WEBPACK_IMPORTED_MODULE_113__["unuseAllThemes"]; });
        /**
         * This module houses all core/framework functionality and is required for
         * all charting components to work
         */
        /**
         * Elements: core
         */
        /**
         * Elements: data
         */
        /**
         * Elements: elements
         */
        /**
         * Elements: 3d
         */
        /**
         * Elements: export
         */
        /**
         * Elements: formatters
         */
        /**
         * Elements: interaction
         */
        /**
         * Elements: rendering
         */
        /**
         * Elements: fills
         */
        /**
         * Elements: filters
         */
        /**
         * Elements: responsive
         */
        /**
         * Elements: utils
         */
        /**
         * Functions: rendering
         */
        /**
         * Functions: utils
         */
        //# sourceMappingURL=core.js.map
        /***/ 
    }),
    /* 750 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "System", function () { return System; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "system", function () { return system; });
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(751);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(832);
        /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(804);
        /* harmony import */ var _utils_AsyncPending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(759);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(785);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(755);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * The main class that handles system-wide tasks, like caching, heartbeats, etc.
         * @important
         */
        var System = /** @class */ (function () {
            /**
             * Performs initialization of the System object.
             *
             * Called when the first [[Sprite]] object is created.
             *
             * @ignore Exclude from docs
             */
            function System() {
                /**
                 * A flag indicating if the system is on pause.
                 *
                 * @type {boolean}
                 */
                this._isPaused = false;
                /**
                 * Unique ID of the object.
                 *
                 * @type {string}
                 */
                this.uid = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].getUniqueId();
                /**
                 * @todo Description
                 * @todo Needed?
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                this.dummyCounter = 0;
                this._frameRequested = false;
                this._updateStepDuration = 50;
                this.time = Date.now();
            }
            /**
             * Reports time elapsed since timer was reset.
             *
             * @ignore Exclude from docs
             * @todo Needed?
             * @param {string}   msg    Message to report in console
             * @param {boolean}  reset  Reset time counter
             */
            System.prototype.reportTime = function (msg, reset) {
                if (this.dummyCounter < 6) {
                    //console.log(Date.now() - this.time, msg, this.dummyCounter2);
                }
                if (reset) {
                    this.time = Date.now();
                }
            };
            /**
             * Performs "heartbeat" operations `frameRate` number of times per second.
             *
             * When the chart element is invalidated, it is not immediately redrawn.
             *
             * Instead it waits for the next `update()` cycle to be re-validated.
             *
             * @ignore Exclude from docs
             * @todo Maybe should be private?
             */
            System.prototype.update = function () {
                if (this._isPaused) {
                    return;
                }
                this._frameRequested = false;
                var time = Date.now();
                _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].dispatchImmediately("enterframe");
                //this.validateLayouts();
                //this.validatePositions();
                var skippedComponents = [];
                // data objects first - do all calculations
                // only data is parsed in chunks, thats why we do for loop instead of a while like with other invalid items.
                // important to go backwards, as items are removed!
                // TODO use iterator instead
                for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas) {
                    var invalidData = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas[key];
                    while (invalidData.length > 0) {
                        var component = invalidData[0];
                        var dataProvider = component.dataProvider;
                        if (!component.isDisposed()) {
                            if (dataProvider && dataProvider.dataInvalid) {
                                try {
                                    dataProvider.validateData();
                                    if (dataProvider.dataValidationProgress < 1) {
                                        break;
                                    }
                                }
                                catch (e) {
                                    _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidData, dataProvider);
                                    dataProvider.raiseCriticalError(e);
                                }
                            }
                            else {
                                try {
                                    component.validateData();
                                    if (component.dataValidationProgress < 1) {
                                        break;
                                    }
                                }
                                catch (e) {
                                    _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidData, component);
                                    component.raiseCriticalError(e);
                                }
                            }
                        }
                        else {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidData, component);
                        }
                    }
                    if (Date.now() - time > this._updateStepDuration) {
                        break;
                    }
                }
                while (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidRawDatas.length > 0) {
                    var component = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidRawDatas[0];
                    if (!component.isDisposed()) {
                        try {
                            component.validateRawData();
                        }
                        catch (e) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidRawDatas, component);
                            component.raiseCriticalError(e);
                        }
                    }
                    else {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidRawDatas, component);
                    }
                }
                // TODO use iterator instead
                while (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataItems.length > 0) {
                    var component = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataItems[0];
                    var dataProvider = component.dataProvider;
                    // this is needed to avoid partial value validation when data is parsed in chunks
                    if (component.isDisposed() || component.dataInvalid || (dataProvider && dataProvider.dataInvalid)) {
                        // void
                    }
                    else {
                        try {
                            component.validateDataItems();
                        }
                        catch (e) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataItems, component);
                            component.raiseCriticalError(e);
                        }
                    }
                    // this might seem too much, as validateValues removes from invalidDataItems aswell, but just to be sure (in case validateData is overriden and no super is called)
                    _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataItems, component);
                }
                // TODO use iterator instead
                while (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataRange.length > 0) {
                    var component = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataRange[0];
                    var dataProvider = component.dataProvider;
                    if (component.isDisposed() || component.dataInvalid || (dataProvider && dataProvider.dataInvalid)) {
                        // void
                    }
                    else {
                        try {
                            component.validateDataRange();
                            if (!component.skipRangeEvent) {
                                component.dispatchImmediately("datarangechanged");
                            }
                            component.skipRangeEvent = false;
                        }
                        catch (e) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataRange, component);
                            component.raiseCriticalError(e);
                        }
                    }
                    // this might seem too much, as validateDataRange removes from invalidDataRange aswell, but just to be sure (in case validateData is overriden and no super is called)
                    _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDataRange, component);
                }
                var skippedSprites = [];
                // display objects later
                // TODO use iterator instead
                for (var key_1 in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidLayouts) {
                    this.validateLayouts(key_1);
                }
                for (var key_2 in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidPositions) {
                    this.validatePositions(key_2);
                }
                var hasSkipped = false;
                time = Date.now();
                for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites) {
                    var count = 0;
                    var invalidSprites = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites[key];
                    while (invalidSprites.length > 0) {
                        this.validateLayouts(key);
                        this.validatePositions(key);
                        count++;
                        if (count == 5) {
                            if (Date.now() - time > this._updateStepDuration) {
                                break;
                            }
                            count = 0;
                        }
                        var sprite = invalidSprites[invalidSprites.length - 1];
                        // we need to check this, as validateLayout might validate sprite
                        if (sprite && !sprite.isDisposed()) {
                            if (sprite instanceof _Component__WEBPACK_IMPORTED_MODULE_2__["Component"] && (sprite.dataInvalid || (sprite.dataProvider && sprite.dataProvider.dataInvalid))) {
                                // void
                                skippedSprites.push(sprite);
                            }
                            else {
                                if (sprite.dataItem && sprite.dataItem.component && sprite.dataItem.component.dataInvalid && !sprite.dataItem.component.isTemplate) {
                                    // void
                                    skippedSprites.push(sprite);
                                }
                                else {
                                    try {
                                        if (sprite instanceof _Container__WEBPACK_IMPORTED_MODULE_1__["Container"]) {
                                            sprite.children.each(function (child) {
                                                if (child.invalid) {
                                                    if (child instanceof _Component__WEBPACK_IMPORTED_MODULE_2__["Component"] && (child.dataInvalid || (child.dataProvider && child.dataProvider.dataInvalid))) {
                                                        skippedSprites.push(child);
                                                    }
                                                    else if (child.dataItem && child.dataItem.component && child.dataItem.component.dataInvalid) {
                                                        skippedSprites.push(child);
                                                    }
                                                    else {
                                                        child.validate();
                                                    }
                                                }
                                            });
                                        }
                                        sprite.validate();
                                    }
                                    catch (e) {
                                        sprite.invalid = false;
                                        _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidSprites, sprite);
                                        sprite.raiseCriticalError(e);
                                    }
                                }
                            }
                            // this might seem too much, but it's ok
                            sprite.invalid = false;
                        }
                        _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidSprites, sprite);
                    }
                    _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites[key] = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites[key].concat(skippedSprites);
                }
                for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites) {
                    if (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites[key].length > 0) {
                        hasSkipped = true;
                    }
                }
                for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas) {
                    if (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas[key].length > 0) {
                        hasSkipped = true;
                    }
                }
                // TODO make this more efficient
                // TODO don't copy the array
                _utils_Array__WEBPACK_IMPORTED_MODULE_6__["each"](_utils_Array__WEBPACK_IMPORTED_MODULE_6__["copy"](_utils_Animation__WEBPACK_IMPORTED_MODULE_5__["animations"]), function (x) {
                    x.update();
                });
                // to avoid flicker, we validate positions last time
                //this.validateLayouts();
                //this.validatePositions();
                //if(!hasSkipped){
                for (var key_3 in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidLayouts) {
                    this.validateLayouts(key_3);
                }
                for (var key_4 in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidPositions) {
                    this.validatePositions(key_4);
                }
                //}
                Object(_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_4__["triggerIdle"])();
                // to avoid flicker, we validate positions last time
                //this.validateLayouts();
                //this.validatePositions();
                _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].dispatchImmediately("exitframe");
                if (hasSkipped || _utils_Animation__WEBPACK_IMPORTED_MODULE_5__["animations"].length > 0 || skippedComponents.length > 0) {
                    this.requestFrame();
                }
                if (this._updateStepDuration < 200) {
                    var all0 = true;
                    for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas) {
                        if (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidDatas[key].length > 0) {
                            all0 = false;
                        }
                    }
                    for (var key in _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites) {
                        if (_Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidSprites[key].length > 0) {
                            all0 = false;
                        }
                    }
                    if (all0) {
                        this._updateStepDuration = 200;
                    }
                }
            };
            /**
             * Requests new animation frame
             */
            System.prototype.requestFrame = function () {
                var _this = this;
                if (!this._frameRequested) {
                    Object(_utils_AsyncPending__WEBPACK_IMPORTED_MODULE_4__["raf"])(function () {
                        _this.update();
                    });
                    this._frameRequested = true;
                }
            };
            /**
             * Triggers position re-validation on all [[Sprite]] elements that have
             * invalid(ated) positions.
             *
             * @ignore Exclude from docs
             * @todo Maybe should be private?
             */
            System.prototype.validatePositions = function (id) {
                // invalid positions
                // TODO use iterator instead
                var invalidPositions = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidPositions[id];
                while (invalidPositions.length > 0) {
                    var sprite = invalidPositions[invalidPositions.length - 1];
                    if (!sprite.isDisposed()) {
                        try {
                            if (sprite instanceof _Container__WEBPACK_IMPORTED_MODULE_1__["Container"]) {
                                sprite.children.each(function (sprite) {
                                    if (sprite.positionInvalid) {
                                        sprite.validatePosition();
                                    }
                                });
                            }
                            sprite.validatePosition();
                        }
                        catch (e) {
                            sprite.positionInvalid = false;
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidPositions, sprite);
                            sprite.raiseCriticalError(e);
                        }
                    }
                    else {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidPositions, sprite);
                    }
                }
            };
            /**
             * Triggers position re-validation on all [[Container]] elements that have
             * invalid(ated) layouts.
             *
             * @ignore Exclude from docs
             * @todo Maybe should be private?
             */
            System.prototype.validateLayouts = function (id) {
                // invalid positions
                // TODO use iterator instead
                var invalidLayouts = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].invalidLayouts[id];
                while (invalidLayouts.length > 0) {
                    var container = invalidLayouts[invalidLayouts.length - 1];
                    if (!container.isDisposed()) {
                        try {
                            container.children.each(function (sprite) {
                                if (sprite instanceof _Container__WEBPACK_IMPORTED_MODULE_1__["Container"] && sprite.layoutInvalid && !sprite.isDisposed()) {
                                    sprite.validateLayout();
                                }
                            });
                            container.validateLayout();
                        }
                        catch (e) {
                            container.layoutInvalid = false;
                            _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidLayouts, container);
                            container.raiseCriticalError(e);
                        }
                    }
                    else {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](invalidLayouts, container);
                    }
                }
            };
            /**
             * Outputs string to console if `verbose` is `true`.
             *
             * @param {any} value Message to output to console
             */
            System.prototype.log = function (value) {
                if (_Options__WEBPACK_IMPORTED_MODULE_3__["options"].verbose) {
                    if (console) {
                        console.log(value);
                    }
                }
            };
            Object.defineProperty(System.prototype, "isPaused", {
                /**
                 * @return {boolean} Is system on pause?
                 */
                get: function () {
                    return this._isPaused;
                },
                /**
                 * Pauses all the processes of all the amCharts objects on the page
                 *
                 * @return {boolean} is paused?
                 */
                set: function (value) {
                    this._isPaused = value;
                    if (!value) {
                        this._frameRequested = false;
                        this.requestFrame();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * amCharts Version.
             *
             * This follows npm's semver specification.
             *
             * @see {@link https://docs.npmjs.com/misc/semver}
             * @type {string}
             */
            System.VERSION = "4.0.1";
            return System;
        }());
        /**
         * A singleton global instance of [[System]].
         *
         * All code should use this, rather than instantiating their
         * own System objects.
         */
        var system = new System();
        //# sourceMappingURL=System.js.map
        /***/ 
    }),
    /* 751 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Registry", function () { return Registry; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registry", function () { return registry; });
        /* harmony import */ var _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(752);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(760);
        /* harmony import */ var _utils_Cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(764);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(757);
        /* harmony import */ var _utils_String__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(763);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(755);
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Registry is used to store miscellaneous system-wide information, like ids,
         * maps, themes, and registered classes.
         *
         * @ignore Exclude from docs
         */
        var Registry = /** @class */ (function () {
            function Registry() {
                /**
                 * Event dispacther.
                 *
                 * @type {EventDispatcher}
                 */
                this.events = new _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_0__["EventDispatcher"]();
                /**
                 * All currently applied themes. All new chart instances created will
                 * automatically inherit and retain System's themes.
                 *
                 * @type {ITheme}
                 */
                this.themes = [];
                /**
                 * List of all loaded available themes.
                 *
                 * Whenever a theme loads, it registers itself in System's `loadedThemes`
                 * collection.
                 */
                this.loadedThemes = {};
                /**
                 * An indeternal counter used to generate unique IDs.
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                this._uidCount = 0;
                /**
                 * Keeps register of class references so that they can be instnatiated using
                 * string key.
                 *
                 * @ignore Exclude from docs
                 */
                this.registeredClasses = {};
                /**
                 * Holds all generated placeholders.
                 */
                this._placeholders = {};
                /**
             * A list of invalid(ated) [[Sprite]] objects that need to be re-validated
             * during next cycle.
             *
             * @ignore Exclude from docs
             * @type { [index: string]: Array<Sprite> }
             */
                this.invalidSprites = {};
                /**
                 * Components are added to this list when their data provider changes to
                 * a new one or data is added/removed from their data provider.
                 *
                 * @ignore Exclude from docs
                 * @type { [index: string]: Array<Component> }
                 */
                this.invalidDatas = {};
                /**
                 * Components are added to this list when values of their raw data change.
                 * Used when we want a smooth animation from one set of values to another.
                 *
                 * @ignore Exclude from docs
                 * @type {Array<Component>}
                 */
                this.invalidRawDatas = [];
                /**
                 * Components are added to this list when values of their data changes
                 * (but not data provider itself).
                 *
                 * @ignore Exclude from docs
                 * @type {Array<Component>}
                 */
                this.invalidDataItems = [];
                /**
                 * Components are added to this list when their data range (selection) is
                 * changed, e.g. zoomed.
                 *
                 * @ignore Exclude from docs
                 * @type {Array<Component>}
                 */
                this.invalidDataRange = [];
                /**
                 * A list of [[Sprite]] objects that have invalid(ated) positions, that need
                 * to be recalculated.
                 *
                 * @ignore Exclude from docs
                 * @type { [index: string]: Array<Sprite>}
                 */
                this.invalidPositions = {};
                /**
                 * A list of [[Container]] objects with invalid(ated) layouts.
                 *
                 * @ignore Exclude from docs
                 * @type { [index: string]: Array<Container>}
                 */
                this.invalidLayouts = {};
                /**
                 * An array holding all active (non-disposed) top level elemens.
                 *
                 * When, for example, a new chart is created, its instance will be added to
                 * this array, and will be removed when the chart is disposed.
                 *
                 * @type {Array<Sprite>}
                 */
                this.baseSprites = [];
                this.baseSpritesByUid = {};
                this.uid = this.getUniqueId();
                this.invalidSprites.noBase = [];
                this.invalidDatas.noBase = [];
                this.invalidLayouts.noBase = [];
                this.invalidPositions.noBase = [];
            }
            /**
             * Generates a unique chart system-wide ID.
             *
             * @return {string} Generated ID
             */
            Registry.prototype.getUniqueId = function () {
                var uid = this._uidCount;
                this._uidCount += 1;
                return "id-" + uid;
            };
            Object.defineProperty(Registry.prototype, "map", {
                /**
                 * Returns a universal collection for mapping ids with objects.
                 *
                 * @ignore Exclude from docs
                 * @return {Dictionary<string, any>} Map collection
                 */
                get: function () {
                    if (!this._map) {
                        this._map = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__["Dictionary"]();
                    }
                    return this._map;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Caches value in object's cache.
             *
             * @ignore Exclude from docs
             * @param {string}  key    Key
             * @param {any}     value  Value
             * @param {number}  ttl    TTL in seconds
             */
            Registry.prototype.setCache = function (key, value, ttl) {
                _utils_Cache__WEBPACK_IMPORTED_MODULE_2__["cache"].set(this.uid, key, value, ttl);
            };
            /**
             * Retrieves cached value.
             *
             * @ignore Exclude from docs
             * @param  {string}  key    Key
             * @param  {any}     value  Value to return if cache is not available
             * @return {any}            Value
             */
            Registry.prototype.getCache = function (key, value) {
                if (value === void 0) {
                    value = undefined;
                }
                return _utils_Cache__WEBPACK_IMPORTED_MODULE_2__["cache"].get(this.uid, key, value);
            };
            /**
             * Dispatches an event using own event dispatcher. Will automatically
             * populate event data object with event type and target (this element).
             * It also checks if there are any handlers registered for this sepecific
             * event.
             *
             * @param {Key} eventType Event type (name)
             * @param {any}    data      Data to pass into event handler(s)
             */
            Registry.prototype.dispatch = function (eventType, data) {
                // @todo Implement proper type check
                if (this.events.isEnabled(eventType)) {
                    if (data) {
                        data.type = eventType;
                        data.target = data.target || this;
                        this.events.dispatch(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                    else {
                        this.events.dispatch(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                }
            };
            /**
             * Works like `dispatch`, except event is triggered immediately, without
             * waiting for the next frame cycle.
             *
             * @param {Key} eventType Event type (name)
             * @param {any}    data      Data to pass into event handler(s)
             */
            Registry.prototype.dispatchImmediately = function (eventType, data) {
                // @todo Implement proper type check
                if (this.events.isEnabled(eventType)) {
                    if (data) {
                        data.type = eventType;
                        data.target = data.target || this;
                        this.events.dispatchImmediately(eventType, data);
                    }
                    else {
                        this.events.dispatchImmediately(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                }
            };
            /**
             * Returns a unique placeholder suitable for the key.
             *
             * @param  {string}  key  Key
             * @return {string}       Random string to be used as placeholder
             */
            Registry.prototype.getPlaceholder = function (key) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_3__["hasValue"](this._placeholders[key])) {
                    return this._placeholders[key];
                }
                this._placeholders[key] = "__amcharts_" + key + "_" + _utils_String__WEBPACK_IMPORTED_MODULE_4__["random"](8) + "__";
                return this._placeholders[key];
            };
            /**
             * @ignore
             */
            Registry.prototype.addToInvalidComponents = function (component) {
                if (component.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["move"](this.invalidDatas[component.baseId], component);
                }
                else {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["move"](this.invalidDatas["noBase"], component);
                }
            };
            /**
             * @ignore
             */
            Registry.prototype.removeFromInvalidComponents = function (component) {
                if (component.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidDatas[component.baseId], component);
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidDatas["noBase"], component);
            };
            /**
             * @ignore
             */
            Registry.prototype.addToInvalidSprites = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidSprites[sprite.baseId], sprite);
                }
                else {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidSprites["noBase"], sprite);
                }
            };
            /**
             * @ignore
             */
            Registry.prototype.removeFromInvalidSprites = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidSprites[sprite.baseId], sprite);
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidSprites["noBase"], sprite);
            };
            /**
             * @ignore
             */
            Registry.prototype.addToInvalidPositions = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidPositions[sprite.baseId], sprite);
                }
                else {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidPositions["noBase"], sprite);
                }
            };
            /**
             * @ignore
             */
            Registry.prototype.removeFromInvalidPositions = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidPositions[sprite.baseId], sprite);
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidPositions["noBase"], sprite);
            };
            /**
             * @ignore
             */
            Registry.prototype.addToInvalidLayouts = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidLayouts[sprite.baseId], sprite);
                }
                else {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["add"](this.invalidLayouts["noBase"], sprite);
                }
            };
            /**
             * @ignore
             */
            Registry.prototype.removeFromInvalidLayouts = function (sprite) {
                if (sprite.baseId) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidLayouts[sprite.baseId], sprite);
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](this.invalidLayouts["noBase"], sprite);
            };
            return Registry;
        }());
        /**
         * A singleton global instance of [[Registry]].
         *
         * @ignore Exclude from docs
         */
        var registry = new Registry();
        //# sourceMappingURL=Registry.js.map
        /***/ 
    }),
    /* 752 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventDispatcher", function () { return EventDispatcher; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TargetedEventDispatcher", function () { return TargetedEventDispatcher; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Disposer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(754);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(755);
        /* harmony import */ var _AsyncPending__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(759);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Event Dispatcher module is used for registering listeners and dispatching
         * events across amCharts system.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /*export interface IEventDispatcher<T> {
            isDisposed(): boolean;
            dispose(): void;
            hasListeners(): boolean;
            enable(): void;
            disable(): void;
            enableType<Key extends keyof T>(type: Key): void;
            disableType<Key extends keyof T>(type: Key, amount?: number): void;
            isEnabled<Key extends keyof T>(type: Key): boolean;
            has<C, Key extends keyof T>(type: Key, callback?: (this: C, event: T[Key]) => void, context?: C): boolean;
            dispatchImmediately<Key extends keyof T>(type: Key, event: T[Key]): void;
            dispatch<Key extends keyof T>(type: Key, event: T[Key]): void;
            onAll<C, Key extends keyof T>(callback: (this: C, type: Key, event: T[Key]) => void, context?: C): IDisposer;
            on<C, Key extends keyof T>(type: Key, callback: (this: C, event: T[Key]) => void, context?: C): IDisposer;
            once<C, Key extends keyof T>(type: Key, callback: (this: C, event: T[Key]) => void, context?: C): IDisposer;
            off<C, Key extends keyof T>(type: Key, callback: (this: C, event: T[Key]) => void, context?: C): void;
            off<C, Key extends keyof T>(type: Key, callback: (this: C, event: T[Key]) => void, context?: C): void;
            copyFrom(source: this): void;
        }*/
        /**
         * Universal Event Dispatcher.
         *
         * @important
         */
        var EventDispatcher = /** @class */ (function () {
            /**
             * Constructor
             */
            function EventDispatcher() {
                this._listeners = [];
                this._killed = [];
                this._disabled = {};
                this._iterating = 0;
                this._enabled = true;
                this._disposed = false;
            }
            /**
             * Returns if this object has been already disposed.
             *
             * @return {boolean} Disposed?
             */
            EventDispatcher.prototype.isDisposed = function () {
                return this._disposed;
            };
            /**
             * Dispose (destroy) this object.
             */
            EventDispatcher.prototype.dispose = function () {
                if (!this._disposed) {
                    this._disposed = true;
                    var a = this._listeners;
                    this._iterating = 1;
                    this._listeners = null;
                    this._disabled = null;
                    try {
                        _Array__WEBPACK_IMPORTED_MODULE_2__["each"](a, function (x) {
                            x.disposer.dispose();
                        });
                    }
                    finally {
                        this._killed = null;
                        this._iterating = null;
                    }
                }
            };
            /**
             * Checks if this particular event dispatcher has any listeners set.
             *
             * @return {boolean} Has listeners?
             */
            EventDispatcher.prototype.hasListeners = function () {
                return this._listeners.length !== 0;
            };
            /**
             * Checks if this particular event dispatcher has any particular listeners set.
             *
             * @return {boolean} Has particular event listeners?
             */
            EventDispatcher.prototype.hasListenersByType = function (type) {
                return _Array__WEBPACK_IMPORTED_MODULE_2__["any"](this._listeners, function (x) { return (x.type === null || x.type === type) && !x.killed; });
            };
            /**
             * Enable dispatching of events if they were previously disabled by
             * `disable()`.
             */
            EventDispatcher.prototype.enable = function () {
                this._enabled = true;
            };
            /**
             * Disable dispatching of events until re-enabled by `enable()`.
             */
            EventDispatcher.prototype.disable = function () {
                this._enabled = false;
            };
            /**
             * Enable dispatching particular event, if it was disabled before by
             * `disableType()`.
             *
             * @param {Key} type Event type
             */
            EventDispatcher.prototype.enableType = function (type) {
                delete this._disabled[type];
            };
            /**
             * Disable dispatching of events for a certain event type.
             *
             * Optionally, can set how many dispatches to skip before automatically
             * re-enabling the dispatching.
             *
             * @param {Key}                type    Event type
             * @param {number = Infinity}  amount  Number of event dispatches to skip
             */
            EventDispatcher.prototype.disableType = function (type, amount) {
                if (amount === void 0) {
                    amount = Infinity;
                }
                this._disabled[type] = amount;
            };
            /**
             * Removes listener from dispatcher.
             *
             * Will throw an exception if such listener does not exists.
             *
             * @param {EventListener<T>} listener Listener to remove
             */
            EventDispatcher.prototype._removeListener = function (listener) {
                if (this._iterating === 0) {
                    var index = this._listeners.indexOf(listener);
                    if (index === -1) {
                        throw new Error("Invalid state: could not remove listener");
                    }
                    this._listeners.splice(index, 1);
                }
                else {
                    this._killed.push(listener);
                }
            };
            /**
             * Removes existing listener by certain parameters.
             *
             * @param {boolean}     once         Listener's once setting
             * @param {Key | null}  type         Listener's type
             * @param {A}           callback     Callback function
             * @param {B}           context      Callback context
             */
            EventDispatcher.prototype._removeExistingListener = function (once, type, callback, context) {
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                var index = _Array__WEBPACK_IMPORTED_MODULE_2__["findIndex"](this._listeners, function (info) {
                    return info.once === once && // TODO is this correct ?
                        info.type === type &&
                        info.callback === callback &&
                        info.context === context;
                });
                if (index !== -1) {
                    this._listeners[index].disposer.dispose();
                }
            };
            /**
             * Checks if dispatching for particular event type is enabled.
             *
             * @param  {Key}      type  Event type
             * @return {boolean}        Enabled?
             */
            EventDispatcher.prototype.isEnabled = function (type) {
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                // TODO is this check correct ?
                return this._enabled && this._listeners.length > 0 && this.hasListenersByType(type) && this._disabled[type] == null;
            };
            /**
             * Checks if there's already a listener with specific parameters.
             *
             * @param   {Key | null}  type      Listener's type
             * @param   {A}           callback  Callback function
             * @param   {B}           context   Callback context
             * @return {boolean}                Has listener?
             */
            EventDispatcher.prototype.has = function (type, callback, context) {
                var index = _Array__WEBPACK_IMPORTED_MODULE_2__["findIndex"](this._listeners, function (info) {
                    return info.once !== true && // Ignoring "once" listeners
                        info.type === type &&
                        (!callback || info.callback === callback) &&
                        info.context === context;
                });
                return index !== -1;
            };
            /**
             * Checks whether event of the particular type should be dispatched.
             *
             * @param  {Key}   type  Event type
             * @return {boolean}        Dispatch?
             */
            EventDispatcher.prototype._shouldDispatch = function (type) {
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                var count = this._disabled[type];
                if (!_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](count)) {
                    return this._enabled;
                }
                else {
                    if (count <= 1) {
                        delete this._disabled[type];
                    }
                    else {
                        --this._disabled[type];
                    }
                    return false;
                }
            };
            /**
             * [_eachListener description]
             *
             * All of this extra code is needed when a listener is removed while iterating
             *
             * @todo Description
             * @param {EventListener<T>) => void} fn [description]
             */
            EventDispatcher.prototype._eachListener = function (fn) {
                var _this = this;
                ++this._iterating;
                try {
                    _Array__WEBPACK_IMPORTED_MODULE_2__["each"](this._listeners, fn);
                }
                finally {
                    --this._iterating;
                    // TODO should this be inside or outside the finally ?
                    if (this._iterating === 0 && this._killed.length !== 0) {
                        // Remove killed listeners
                        _Array__WEBPACK_IMPORTED_MODULE_2__["each"](this._killed, function (killed) {
                            _this._removeListener(killed);
                        });
                        this._killed.length = 0;
                    }
                }
            };
            /**
             * Dispatches an event immediately without waiting for next cycle.
             *
             * @param {Key}     type   Event type
             * @param {T[Key]}  event  Event object
             * @todo automatically add in type and target properties if they are missing
             */
            EventDispatcher.prototype.dispatchImmediately = function (type, event) {
                if (this._shouldDispatch(type)) {
                    // TODO check if it's faster to use an object of listeners rather than a single big array
                    // TODO if the function throws, maybe it should keep going ?
                    this._eachListener(function (listener) {
                        if (!listener.killed && (listener.type === null || listener.type === type)) {
                            listener.dispatch(type, event);
                        }
                    });
                }
            };
            /**
             * Shelves the event to be dispatched within next update cycle.
             *
             * @param {Key}     type   Event type
             * @param {T[Key]}  event  Event object
             * @todo automatically add in type and target properties if they are missing
             */
            EventDispatcher.prototype.dispatch = function (type, event) {
                if (this._shouldDispatch(type)) {
                    this._eachListener(function (listener) {
                        // TODO check if it's faster to use an object of listeners rather than a single big array
                        if (!listener.killed && (listener.type === null || listener.type === type)) {
                            // TODO if the function throws, maybe it should keep going ?
                            // TODO dispatch during the update cycle, rather than using whenIdle
                            _AsyncPending__WEBPACK_IMPORTED_MODULE_3__["whenIdle"](function () {
                                if (!listener.killed) {
                                    listener.dispatch(type, event);
                                }
                            });
                        }
                    });
                }
            };
            /**
             * Creates, catalogs and returns an [[EventListener]].
             *
             * Event listener can be disposed.
             *
             * @param   {boolean}     once         Listener's once setting
             * @param   {Key | null}  type         Listener's type
             * @param   {A}           callback     Callback function
             * @param   {B}           context      Callback context
             * @param   {boolean}     shouldClone  Whether the listener should be copied when the EventDispatcher is copied
             * @param   {function}    dispatch
             * @returns {EventListener} An event listener
             */
            EventDispatcher.prototype._on = function (once, type, callback, context, shouldClone, dispatch) {
                var _this = this;
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                this._removeExistingListener(once, type, callback, context);
                var info = {
                    type: type,
                    callback: callback,
                    context: context,
                    shouldClone: shouldClone,
                    dispatch: dispatch,
                    killed: false,
                    once: once,
                    disposer: new _Disposer__WEBPACK_IMPORTED_MODULE_1__["Disposer"](function () {
                        info.killed = true;
                        _this._removeListener(info);
                    })
                };
                this._listeners.push(info);
                return info;
            };
            /**
             * Creates an event listener to be invoked on **any** event.
             *
             * @param   {A}           callback     Callback function
             * @param   {B}           context      Callback context
             * @param   {boolean}     shouldClone  Whether the listener should be copied when the EventDispatcher is copied
             * @returns {IDisposer}                A disposable event listener
             * @todo what if `listen` is called on the same function twice ?
             */
            EventDispatcher.prototype.onAll = function (callback, context, shouldClone) {
                if (shouldClone === void 0) {
                    shouldClone = true;
                }
                return this._on(false, null, callback, context, shouldClone, function (type, event) { return callback.call(context, type, event); }).disposer;
            };
            /**
             * Creates an event listener to be invoked on a specific event type.
             *
             * ```TypeScript
             * series.events.on("hidden", (ev) => {
             *   console.log("Series hidden: " + ev.target.name);
             * }, this);
             * ```
             * ```JavaScript
             * series.events.on("hidden", function(ev) {
             *   console.log("Series hidden: " + ev.target.name);
             * }, this);
             * ```
             * ```JSON
             * {
             *   // ...
             *   "series": [{
             *     // ...
             *     "events": {
             *     	"hidden": function(ev) {
             *     	  console.log("Series hidden: " + ev.target.name);
             *     	}
             *     }
             *   }]
             * }
             * ```
             *
             * The above will invoke our custom event handler whenever series we put
             * event on is hidden.
             *
             * @param   {Key | null}  type         Listener's type
             * @param   {A}           callback     Callback function
             * @param   {B}           context      Callback context
             * @param   {boolean}     shouldClone  Whether the listener should be copied when the EventDispatcher is copied
             * @returns {IDisposer}                A disposable event listener
             * @todo what if `listen` is called on the same function twice ?
             */
            EventDispatcher.prototype.on = function (type, callback, context, shouldClone) {
                if (shouldClone === void 0) {
                    shouldClone = true;
                }
                return this._on(false, type, callback, context, shouldClone, function (type, event) { return callback.call(context, event); }).disposer;
            };
            /**
             * Creates an event listener to be invoked on a specific event type once.
             *
             * Once the event listener is invoked, it is automatically disposed.
             *
             * ```TypeScript
             * series.events.on("hidden", (ev) => {
             *   console.log("Series hidden: " + ev.target.name);
             * }, this);
             * ```
             * ```JavaScript
             * series.events.on("hidden", function(ev) {
             *   console.log("Series hidden: " + ev.target.name);
             * }, this);
             * ```
             * ```JSON
             * {
             *   // ...
             *   "series": [{
             *     // ...
             *     "events": {
             *     	"hidden": function(ev) {
             *     	  console.log("Series hidden: " + ev.target.name);
             *     	}
             *     }
             *   }]
             * }
             * ```
             *
             * The above will invoke our custom event handler the first time series we
             * put event on is hidden.
             *
             * @param   {Key | null}  type         Listener's type
             * @param   {A}           callback     Callback function
             * @param   {B}           context      Callback context
             * @param   {boolean}     shouldClone  Whether the listener should be copied when the EventDispatcher is copied
             * @returns {IDisposer}                A disposable event listener
             * @todo what if `listen` is called on the same function twice ?
             */
            EventDispatcher.prototype.once = function (type, callback, context, shouldClone) {
                if (shouldClone === void 0) {
                    shouldClone = true;
                }
                var x = this._on(true, type, callback, context, shouldClone, function (type, event) {
                    x.disposer.dispose();
                    callback.call(context, event);
                });
                // TODO maybe this should return a different Disposer ?
                return x.disposer;
            };
            /**
             * Removes the event listener with specific parameters.
             *
             * @param   {Key | null}  type         Listener's type
             * @param   {A}           callback     Callback function
             * @param   {B}           context      Callback context
             */
            EventDispatcher.prototype.off = function (type, callback, context) {
                this._removeExistingListener(false, type, callback, context);
            };
            /**
             * Copies all dispatcher parameters, including listeners, from another event
             * dispatcher.
             *
             * @param {this} source Source event dispatcher
             */
            EventDispatcher.prototype.copyFrom = function (source) {
                var _this = this;
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                if (source === this) {
                    throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
                }
                _Array__WEBPACK_IMPORTED_MODULE_2__["each"](source._listeners, function (x) {
                    // TODO is this correct ?
                    if (!x.killed && x.shouldClone) {
                        if (x.type === null) {
                            _this.onAll(x.callback, x.context);
                        }
                        else if (x.once) {
                            _this.once(x.type, x.callback, x.context);
                        }
                        else {
                            _this.on(x.type, x.callback, x.context);
                        }
                    }
                });
            };
            return EventDispatcher;
        }());
        /**
         * A version of the [[EventDispatcher]] that dispatches events for a specific
         * target object.
         *
         * @type {[type]}
         * @important
         */
        var TargetedEventDispatcher = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TargetedEventDispatcher, _super);
            /**
             * Constructor
             *
             * @param {Target} target Event dispatcher target
             */
            function TargetedEventDispatcher(target) {
                var _this = _super.call(this) || this;
                _this.target = target;
                return _this;
            }
            /**
             * Copies all dispatcher parameters, including listeners, from another event
             * dispatcher.
             *
             * @param {this} source Source event dispatcher
             */
            TargetedEventDispatcher.prototype.copyFrom = function (source) {
                var _this = this;
                if (this._disposed) {
                    throw new Error("EventDispatcher is disposed");
                }
                if (source === this) {
                    throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
                }
                _Array__WEBPACK_IMPORTED_MODULE_2__["each"](source._listeners, function (x) {
                    // TODO very hacky
                    if (x.context === source.target) {
                        return;
                    }
                    // TODO is this correct ?
                    if (!x.killed && x.shouldClone) {
                        if (x.type === null) {
                            _this.onAll(x.callback, x.context);
                        }
                        else if (x.once) {
                            _this.once(x.type, x.callback, x.context);
                        }
                        else {
                            _this.on(x.type, x.callback, x.context);
                        }
                    }
                });
            };
            return TargetedEventDispatcher;
        }(EventDispatcher));
        //# sourceMappingURL=EventDispatcher.js.map
        /***/ 
    }),
    /* 753 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function () { return __extends; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function () { return __assign; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function () { return __rest; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function () { return __decorate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function () { return __param; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function () { return __metadata; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function () { return __awaiter; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function () { return __generator; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function () { return __exportStar; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function () { return __values; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function () { return __read; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function () { return __spread; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function () { return __await; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function () { return __asyncGenerator; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function () { return __asyncDelegator; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function () { return __asyncValues; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function () { return __makeTemplateObject; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function () { return __importStar; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function () { return __importDefault; });
        /*! *****************************************************************************
        Copyright (c) Microsoft Corporation. All rights reserved.
        Licensed under the Apache License, Version 2.0 (the "License"); you may not use
        this file except in compliance with the License. You may obtain a copy of the
        License at http://www.apache.org/licenses/LICENSE-2.0
        
        THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
        WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
        MERCHANTABLITY OR NON-INFRINGEMENT.
        
        See the Apache Version 2.0 License for specific language governing permissions
        and limitations under the License.
        ***************************************************************************** */
        /* global Reflect, Promise */
        var extendStatics = function (d, b) {
            extendStatics = Object.setPrototypeOf ||
                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                function (d, b) { for (var p in b)
                    if (b.hasOwnProperty(p))
                        d[p] = b[p]; };
            return extendStatics(d, b);
        };
        function __extends(d, b) {
            extendStatics(d, b);
            function __() { this.constructor = d; }
            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
        }
        var __assign = function () {
            __assign = Object.assign || function __assign(t) {
                for (var s, i = 1, n = arguments.length; i < n; i++) {
                    s = arguments[i];
                    for (var p in s)
                        if (Object.prototype.hasOwnProperty.call(s, p))
                            t[p] = s[p];
                }
                return t;
            };
            return __assign.apply(this, arguments);
        };
        function __rest(s, e) {
            var t = {};
            for (var p in s)
                if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                    t[p] = s[p];
            if (s != null && typeof Object.getOwnPropertySymbols === "function")
                for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
                    if (e.indexOf(p[i]) < 0)
                        t[p[i]] = s[p[i]];
            return t;
        }
        function __decorate(decorators, target, key, desc) {
            var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
            if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
                r = Reflect.decorate(decorators, target, key, desc);
            else
                for (var i = decorators.length - 1; i >= 0; i--)
                    if (d = decorators[i])
                        r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
            return c > 3 && r && Object.defineProperty(target, key, r), r;
        }
        function __param(paramIndex, decorator) {
            return function (target, key) { decorator(target, key, paramIndex); };
        }
        function __metadata(metadataKey, metadataValue) {
            if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
                return Reflect.metadata(metadataKey, metadataValue);
        }
        function __awaiter(thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        }
        function __generator(thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        }
        function __exportStar(m, exports) {
            for (var p in m)
                if (!exports.hasOwnProperty(p))
                    exports[p] = m[p];
        }
        function __values(o) {
            var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
            if (m)
                return m.call(o);
            return {
                next: function () {
                    if (o && i >= o.length)
                        o = void 0;
                    return { value: o && o[i++], done: !o };
                }
            };
        }
        function __read(o, n) {
            var m = typeof Symbol === "function" && o[Symbol.iterator];
            if (!m)
                return o;
            var i = m.call(o), r, ar = [], e;
            try {
                while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
                    ar.push(r.value);
            }
            catch (error) {
                e = { error: error };
            }
            finally {
                try {
                    if (r && !r.done && (m = i["return"]))
                        m.call(i);
                }
                finally {
                    if (e)
                        throw e.error;
                }
            }
            return ar;
        }
        function __spread() {
            for (var ar = [], i = 0; i < arguments.length; i++)
                ar = ar.concat(__read(arguments[i]));
            return ar;
        }
        function __await(v) {
            return this instanceof __await ? (this.v = v, this) : new __await(v);
        }
        function __asyncGenerator(thisArg, _arguments, generator) {
            if (!Symbol.asyncIterator)
                throw new TypeError("Symbol.asyncIterator is not defined.");
            var g = generator.apply(thisArg, _arguments || []), i, q = [];
            return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
            function verb(n) { if (g[n])
                i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
            function resume(n, v) { try {
                step(g[n](v));
            }
            catch (e) {
                settle(q[0][3], e);
            } }
            function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
            function fulfill(value) { resume("next", value); }
            function reject(value) { resume("throw", value); }
            function settle(f, v) { if (f(v), q.shift(), q.length)
                resume(q[0][0], q[0][1]); }
        }
        function __asyncDelegator(o) {
            var i, p;
            return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
            function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
        }
        function __asyncValues(o) {
            if (!Symbol.asyncIterator)
                throw new TypeError("Symbol.asyncIterator is not defined.");
            var m = o[Symbol.asyncIterator], i;
            return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
            function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
            function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
        }
        function __makeTemplateObject(cooked, raw) {
            if (Object.defineProperty) {
                Object.defineProperty(cooked, "raw", { value: raw });
            }
            else {
                cooked.raw = raw;
            }
            return cooked;
        }
        ;
        function __importStar(mod) {
            if (mod && mod.__esModule)
                return mod;
            var result = {};
            if (mod != null)
                for (var k in mod)
                    if (Object.hasOwnProperty.call(mod, k))
                        result[k] = mod[k];
            result.default = mod;
            return result;
        }
        function __importDefault(mod) {
            return (mod && mod.__esModule) ? mod : { default: mod };
        }
        /***/ 
    }),
    /* 754 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Disposer", function () { return Disposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiDisposer", function () { return MultiDisposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MutableValueDisposer", function () { return MutableValueDisposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CounterDisposer", function () { return CounterDisposer; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(755);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for disposable objects.
         *
         * @ignore Exclude from docs
         */
        var Disposer = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {function}  dispose  Function that disposes object
             */
            function Disposer(dispose) {
                this._disposed = false;
                this._dispose = dispose;
            }
            /**
             * Checks if object is disposed.
             *
             * @return {boolean} Disposed?
             */
            Disposer.prototype.isDisposed = function () {
                return this._disposed;
            };
            /**
             * Disposes the object.
             */
            Disposer.prototype.dispose = function () {
                if (!this._disposed) {
                    this._disposed = true;
                    this._dispose();
                }
            };
            return Disposer;
        }());
        /**
         * A collection of related disposers that can be disposed in one go.
         *
         * @ignore Exclude from docs
         */
        var MultiDisposer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MultiDisposer, _super);
            function MultiDisposer(disposers) {
                return _super.call(this, function () {
                    _Array__WEBPACK_IMPORTED_MODULE_1__["each"](disposers, function (x) {
                        x.dispose();
                    });
                }) || this;
            }
            return MultiDisposer;
        }(Disposer));
        /**
         * A special kind of Disposer that has attached value set.
         *
         * If a new value is set using `set()` method, the old disposer value is
         * disposed.
         *
         * @ignore Exclude from docs
         * @todo Description
         */
        var MutableValueDisposer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MutableValueDisposer, _super);
            /**
             * Constructor.
             */
            function MutableValueDisposer() {
                var _this = _super.call(this, function () {
                    if (_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](_this._disposer)) {
                        _this._disposer.dispose();
                        _this._disposer = undefined;
                    }
                }) || this;
                return _this;
            }
            /**
             * Returns current value.
             *
             * @return {Optional<T>} Value
             */
            MutableValueDisposer.prototype.get = function () {
                return this._value;
            };
            /**
             * Sets value and disposes previous disposer if it was set.
             *
             * @param {Optional<T>}          value     New value
             * @param {Optional<IDisposer>}  disposer  Disposer
             */
            MutableValueDisposer.prototype.set = function (value, disposer) {
                if (_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](this._disposer)) {
                    this._disposer.dispose();
                }
                this._disposer = disposer;
                this._value = value;
            };
            /**
             * Resets the disposer value.
             */
            MutableValueDisposer.prototype.reset = function () {
                this.set(undefined, undefined);
            };
            return MutableValueDisposer;
        }(Disposer));
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        var CounterDisposer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CounterDisposer, _super);
            function CounterDisposer() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * [_counter description]
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._counter = 0;
                return _this;
            }
            /**
             * [increment description]
             *
             * @todo Description
             */
            CounterDisposer.prototype.increment = function () {
                var _this = this;
                // TODO throw an error if it is disposed
                ++this._counter;
                // TODO make this more efficient
                return new Disposer(function () {
                    --_this._counter;
                    if (_this._counter === 0) {
                        _this.dispose();
                    }
                });
            };
            return CounterDisposer;
        }(Disposer));
        //# sourceMappingURL=Disposer.js.map
        /***/ 
    }),
    /* 755 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexOf", function () { return indexOf; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "any", function () { return any; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function () { return map; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "each", function () { return each; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachReverse", function () { return eachReverse; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachContinue", function () { return eachContinue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shiftLeft", function () { return shiftLeft; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "last", function () { return last; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "first", function () { return first; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insert", function () { return insert; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setIndex", function () { return setIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pushAll", function () { return pushAll; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remove", function () { return remove; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "move", function () { return move; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "add", function () { return add; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replace", function () { return replace; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function () { return toArray; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "has", function () { return has; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function () { return copy; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function () { return slice; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertIndex", function () { return insertIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeIndex", function () { return removeIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSortedIndex", function () { return getSortedIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function () { return findIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function () { return find; });
        /* harmony import */ var _Math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(756);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /**
         * ============================================================================
         * UTILITY FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Searches `array` for `value`.
         *
         * Returns -1 if not found.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {A}             value  Value to search
         * @returns {number}               Index
         */
        function indexOf(array, value) {
            var length = array.length;
            for (var i = 0; i < length; ++i) {
                // TODO handle NaN
                if (array[i] === value) {
                    return i;
                }
            }
            return -1;
        }
        /**
         * Calls `test` for each element in `array`.
         *
         * If `test` returns `true` then it immediately returns `true`.
         *
         * If `test` returns `false` for all of the elements in `array` then it returns `false`.
         *
         * @param   {ArrayLike<A>}           array  Source array
         * @param   {(value: A) => boolean}  test   Function which is called on each element
         * @returns {boolean}                Whether `test` returned true or not
         */
        function any(array, test) {
            var length = array.length;
            for (var i = 0; i < length; ++i) {
                if (test(array[i])) {
                    return true;
                }
            }
            return false;
        }
        /**
         * Calls `fn` function for every member of array and returns a new array out
         * of all outputs.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {function}      fn     Callback function
         * @returns {number}               New array
         */
        function map(array, fn) {
            var length = array.length;
            var output = new Array(length);
            for (var i = 0; i < length; ++i) {
                output[i] = fn(array[i], i);
            }
            return output;
        }
        /**
         * Iterates through all items in array and calls `fn` function for each of
         * them.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {function}      fn     Callback function
         */
        function each(array, fn) {
            var length = array.length;
            for (var i = 0; i < length; ++i) {
                fn(array[i], i);
            }
        }
        /**
         * Iterates through all items in array in reverse order and calls `fn` function for each of
         * them.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {function}      fn     Callback function
         */
        function eachReverse(array, fn) {
            var i = array.length;
            while (i--) {
                fn(array[i], i);
            }
        }
        /**
         * Iterates through all items in array and calls `fn` function for each of
         * them.
         *
         * If `fn` call evaluates to `false`, further iteration is cancelled.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {function}      fn     Callback function
         */
        function eachContinue(array, fn) {
            var length = array.length;
            for (var i = 0; i < length; ++i) {
                if (!fn(array[i], i)) {
                    break;
                }
            }
        }
        /**
         * Shifts an item at `index` towards beginning of the array.
         *
         * @param {ArrayLike<A>}  array  Source array
         * @param {number}        index  Target element index
         */
        function shiftLeft(array, index) {
            var length = array.length;
            for (var i = index; i < length; ++i) {
                array[i - index] = array[i];
            }
            array.length = length - index;
        }
        /**
         * Returns the last item of the array.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @returns {A}                    Last item
         */
        function last(array) {
            var length = array.length;
            return length ? array[length - 1] : undefined;
        }
        /**
         * Returns the first item of the array.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @returns {A}                    Last item
         */
        function first(array) {
            return array[0];
        }
        /**
         * Inserts `element` into `array` at `index`.
         *
         * Caps `index` to be between `0` and `array.length`
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item to insert
         * @param {ArrayLike<A>}  array    Index to insert item at
         */
        function insert(array, element, index) {
            //if (array) {
            index = _Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](index, 0, array.length);
            array.splice(index, 0, element);
            //}
        }
        /**
         * Removes all copies of `element` from `array` (if they exist) and then
         * inserts `element` at `index`.
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item
         * @param {ArrayLike<A>}  array    Index to move item to
         */
        function setIndex(array, element, index) {
            remove(array, element);
            insert(array, element, index);
        }
        /**
         * Pushes all of the elements from `input` into `array`.
         *
         * @param {ArrayLike<A>}  array  Output array
         * @param {ArrayLike<A>}  input  Input array
         */
        function pushAll(array, input) {
            var length = input.length;
            for (var i = 0; i < length; ++i) {
                array.push(input[i]);
            }
        }
        /**
         * Removes `element` from `array`.
         *
         * If there are multiple copies of `element`, they are all removed.
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item to remove
         */
        function remove(array, element) {
            var found = false;
            var index = array.indexOf(element);
            if (index !== -1) {
                found = true;
                array.splice(index, 1);
                var length_1 = array.length;
                while (index < length_1) {
                    // TODO handle NaN
                    if (array[index] === element) {
                        array.splice(index, 1);
                        --length_1;
                    }
                    else {
                        ++index;
                    }
                }
            }
            return found;
        }
        /**
         * Adds an `element` to `array`.
         *
         * If array already contains and item like this, it is removed before adding
         * it again.
         *
         * Optionally `toIndex` can be specified to add element at specific index.
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item to add
         * @param {ArrayLike<A>}  array    Index to move item to
         */
        function move(array, element, toIndex) {
            // @todo this implementation must be the same as the List.moveValue method
            // @todo don't do anything if the desired index is the same as the current index
            var index = indexOf(array, element);
            // @todo remove all old values rather than only the first ?
            if (index !== -1) {
                removeIndex(array, index);
            }
            if (toIndex == null) {
                array.push(element);
            }
            else {
                insertIndex(array, toIndex, element);
            }
        }
        /**
         * Inserts `element` into `array` at `index`.
         *
         * If `index` is not provided, it will insert `element` at the end of `array`.
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item to add
         * @param {ArrayLike<A>}  array    Index to add item at
         */
        function add(array, element, index) {
            // Append to the end if index is not set
            if (!_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](index)) {
                array.push(element);
            }
            // Add to the beginning of array if index is 0
            else if (index === 0) {
                array.unshift(element);
            }
            // Add to indicated place if index is set
            else {
                array.splice(index, 0, element);
            }
        }
        /**
         * Removes `element` from `array` (if it exists) and then inserts `element` at
         * `index`.
         *
         * If `index` is not provided, it will insert `element` at the end of `array`.
         *
         * @param {ArrayLike<A>}  array    Source array
         * @param {ArrayLike<A>}  element  Item to remove
         * @param {ArrayLike<A>}  array    Index to move item to
         */
        function replace(array, element, index) {
            // check if exists
            var ind = array.indexOf(element);
            // remove if exists
            if (ind !== -1) {
                array.splice(ind, 1);
            }
            // add to end if index is not set
            if (!_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](index)) {
                array.push(element);
            }
            // add to indicated place if index is set
            else {
                array.splice(index, 0, element);
            }
        }
        /**
         * Wraps `input` in an array, if it isn't already an array.
         *
         * @param {Array<A> | A}  input  Source value
         * @return {Array<A>} An array
         */
        function toArray(input) {
            if (Array.isArray(input)) {
                return input;
            }
            else {
                return [input];
            }
        }
        /**
         * Returns `true` if `element` exists in `array`.
         *
         * @param   {ArrayLike<A>}  array    Source array
         * @param   {ArrayLike<A>}  element  Item to search for
         * @returns {boolean}                Item in array?
         */
        function has(array, element) {
            return indexOf(array, element) !== -1;
        }
        /**
         * Returns a shallow copy of `array`.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @returns {boolean}              Copy of the array
         */
        function copy(array) {
            var length = array.length;
            // It's faster to create the array with a pre-defined length
            var output = new Array(length);
            for (var i = 0; i < length; ++i) {
                // Because the array has a pre-defined length, we have to assign rather than push
                // This is also faster than pushing
                output[i] = array[i];
            }
            return output;
        }
        /**
         * Returns a copy of `array` which contains all the elements between `start`
         * and `end`. (including `start` and excluding `end`)
         *
         * If `end` is not provided, it defaults to `array.length`.
         *
         * @param   {ArrayLike<A>}  array  Source array
         * @param   {number}        start  Start index
         * @param   {number}        end    End index
         * @returns {Array<A>}             Part of the array
         */
        function slice(array, start, end) {
            if (end === void 0) {
                end = array.length;
            }
            var output = new Array(end - start);
            for (var i = start; i < end; ++i) {
                output[i - start] = array[i];
            }
            return output;
        }
        /**
         * Inserts a value into array at specific index.
         *
         * @param {Array<A>}  array  Source array
         * @param {number}    index  Index
         * @param {A}         value  Value to insert
         */
        function insertIndex(array, index, value) {
            array.splice(index, 0, value);
        }
        /**
         * Removes a value from array at specific index.
         *
         * @param {Array<A>}  array  Source array
         * @param {number}    index  Index
         */
        function removeIndex(array, index) {
            array.splice(index, 1);
        }
        /**
         * Orders an array using specific `ordering` function and returns index of
         * the `value`.
         *
         * @ignore Exclude from docs
         * @param   {ArrayLike<A>}  array     Source array
         * @param   {function}      ordering  An ordering function
         * @param   {ArrayLike<A>}  value     Value to search for
         * @returns {SortResult}              Result of the search
         */
        function getSortedIndex(array, ordering, value) {
            var start = 0;
            var end = array.length;
            var found = false;
            while (start < end) {
                // TODO is this faster/slower than using Math.floor ?
                var pivot = (start + end) >> 1;
                var order = ordering(value, array[pivot]);
                // less
                if (order < 0) {
                    end = pivot;
                    // equal
                }
                else if (order === 0) {
                    found = true;
                    start = pivot + 1;
                    // more
                }
                else {
                    start = pivot + 1;
                }
            }
            return {
                found: found,
                index: (found ? start - 1 : start)
            };
        }
        /**
         * Searches the array using custom function and returns index of the item if
         * found.
         *
         * Will call `matches` function on all items of the array. If return value
         * evaluates to `true`, index is returned.
         *
         * Otherwise returns -1.
         *
         * @param   {ArrayLike<A>}  array    Source array
         * @param   {function}      matches  Search function
         * @returns {number}                 Index of the item if found
         */
        function findIndex(array, matches) {
            var length = array.length;
            for (var i = 0; i < length; ++i) {
                if (matches(array[i], i)) {
                    return i;
                }
            }
            return -1;
        }
        /**
         * Searches the array using custom function and returns item if found.
         *
         * Will call `matches` function on all items of the array. If return value
         * evaluates to `true`, index is returned.
         *
         * Otherwise returns `undefined`.
         *
         * @param   {ArrayLike<A>}  array    Source array
         * @param   {function}      matches  Search function
         * @returns {number}                 Item if found
         */
        function find(array, matches) {
            var index = findIndex(array, matches);
            if (index !== -1) {
                return array[index];
            }
        }
        //# sourceMappingURL=Array.js.map
        /***/ 
    }),
    /* 756 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PI", function () { return PI; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HALFPI", function () { return HALFPI; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RADIANS", function () { return RADIANS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEGREES", function () { return DEGREES; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toNumberRange", function () { return toNumberRange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "round", function () { return round; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ceil", function () { return ceil; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stretch", function () { return stretch; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitToRange", function () { return fitToRange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function () { return sin; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tan", function () { return tan; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function () { return cos; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function () { return max; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function () { return min; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function () { return closest; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersect", function () { return intersect; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invertRange", function () { return invertRange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function () { return intersection; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDistance", function () { return getDistance; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScale", function () { return getScale; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMidPoint", function () { return getMidPoint; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRotation", function () { return getRotation; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAngle", function () { return getAngle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCenterShift", function () { return getCenterShift; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBBox", function () { return getBBox; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommonRectangle", function () { return getCommonRectangle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPointOnQuadraticCurve", function () { return getPointOnQuadraticCurve; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPointOnCubicCurve", function () { return getPointOnCubicCurve; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCubicControlPointA", function () { return getCubicControlPointA; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCubicControlPointB", function () { return getCubicControlPointB; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustTension", function () { return adjustTension; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeAngle", function () { return normalizeAngle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitAngleToRange", function () { return fitAngleToRange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getArcRect", function () { return getArcRect; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInRectangle", function () { return isInRectangle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLineIntersection", function () { return getLineIntersection; });
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(757);
        /**
         * A collection of Math-related functions
         *
         * @todo Comment trigonometric functions?
         */
        /**
         * ============================================================================
         * CONSTANTS
         * ============================================================================
         * @hidden
         */
        var PI = Math.PI;
        var HALFPI = PI / 2;
        var RADIANS = PI / 180;
        var DEGREES = 180 / PI;
        /**
         * Converts any value and fits it into a specific value range.
         *
         * @param  {any}     value  Source value
         * @param  {number}  min    Minimum allowable value
         * @param  {number}  max    Maximum allowable value
         * @return {number}         Number
         */
        function toNumberRange(value, min, max) {
            if (_Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](value)) {
                value = _Type__WEBPACK_IMPORTED_MODULE_0__["toNumber"](value);
                return fitToRange(value, min, max);
            }
            return value;
        }
        /**
         * Rounds the numeric value to whole number or specific precision of set.
         *
         * @param  {number} value      Value
         * @param  {number} precision  Precision (number of decimal points)
         * @param  {boolean} floor  In case value ends with 0.5 and precision is 0, we might need to floor the value instead of ceiling it.
         * @return {number}            Rounded value
         */
        function round(value, precision, floor) {
            if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](precision) || precision <= 0) {
                var rounded = Math.round(value);
                if (floor) {
                    if (rounded - value == 0.5) {
                        rounded--;
                    }
                }
                return rounded;
            }
            else {
                var d = Math.pow(10, precision);
                return Math.round(value * d) / d;
            }
        }
        /**
         * Ceils the numeric value to whole number or specific precision of set.
         *
         * @param  {number} value      Value
         * @param  {number} precision  Precision (number of decimal points)
         * @return {number}            Rounded value
         */
        function ceil(value, precision) {
            if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](precision) || precision <= 0) {
                return Math.ceil(value);
            }
            else {
                var d = Math.pow(10, precision);
                return Math.ceil(value * d) / d;
            }
        }
        /**
         * Stretches `t` so that it will always be between `from` and `to`.
         *
         * @param  {number} t     Number from 0 to 1
         * @param  {number} from  Lowest possible value
         * @param  {number} to    Highest possible value
         * @return {number}       Adjusted value
         */
        function stretch(t, from, to) {
            return (t * (to - from)) + from;
        }
        /**
         * Adjust numeric value so it fits to specific value range.
         *
         * @param  {number} value     Value
         * @param  {Optional<number>} minValue  Lowest possible value
         * @param  {Optional<number>} maxValue  Highest possible value
         * @return {number}                     Adjusted value
         */
        function fitToRange(value, minValue, maxValue) {
            if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](minValue)) {
                if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](maxValue) && maxValue < minValue) {
                    var temp = maxValue;
                    maxValue = minValue;
                    minValue = temp;
                }
                if (value < minValue) {
                    value = minValue;
                }
            }
            if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](maxValue)) {
                if (value > maxValue) {
                    value = maxValue;
                }
            }
            return value;
        }
        /**
         * Returns sine of a number.
         *
         * @param  {number} value  Value
         * @return {number}        Sine
         */
        function sin(value) {
            return round(Math.sin(RADIANS * value), 10);
        }
        /**
         * Returns tan of a number.
         *
         * @param  {number} value  Value
         * @return {number}        Sine
         */
        function tan(value) {
            return round(Math.tan(RADIANS * value), 10);
        }
        /**
         * Returns cosine of a number.
         *
         * @param  {number} value  Value
         * @return {number}        Cosine
         */
        function cos(value) {
            return round(Math.cos(RADIANS * value), 10);
        }
        function max(left, right) {
            if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](left)) {
                if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](right)) {
                    if (right > left) {
                        return right;
                    }
                    else {
                        return left;
                    }
                }
                else {
                    return left;
                }
            }
            else if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](right)) {
                return right;
            }
            else {
                return null;
            }
        }
        function min(left, right) {
            if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](left)) {
                if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](right)) {
                    if (right < left) {
                        return right;
                    }
                    else {
                        return left;
                    }
                }
                else {
                    return left;
                }
            }
            else if (_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](right)) {
                return right;
            }
            else {
                return null;
            }
        }
        /**
         * Returns the closest value from the array of values to the reference value.
         *
         * @param  {number[]}  values  Array of values
         * @param  {number}    value   Reference value
         * @return {number}            Closes value from the array
         */
        function closest(values, referenceValue) {
            return values.reduce(function (prev, curr) {
                return (Math.abs(curr - referenceValue) < Math.abs(prev - referenceValue) ? curr : prev);
            });
        }
        /**
         * Checks whether two ranges of values intersect.
         *
         * @param {IRange}    range1  Range 1
         * @param {IRange}    range2  Range 2
         * @return {boolean}          Any intersecting numbers?
         */
        function intersect(range1, range2) {
            var start1 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range1.start);
            var start2 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range2.start);
            var end1 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range1.end);
            var end2 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range2.end);
            return Math.max(start1, start2) <= Math.min(end1, end2);
        }
        /**
         * Inverts the range of values.
         *
         * @param {IRange}  range  Range
         */
        function invertRange(range) {
            var start = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range.start);
            var end = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range.end);
            return { start: 1 - end, end: 1 - start };
        }
        /**
         * Returns an intersection range between two ranges of values.
         *
         * @param  {IRange}  range1  Range 1
         * @param  {IRange}  range2  Range 2
         * @return {IRange}          Intersecting value range
         */
        function intersection(range1, range2) {
            var start1 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range1.start);
            var start2 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range2.start);
            var end1 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range1.end);
            var end2 = _Type__WEBPACK_IMPORTED_MODULE_0__["getValue"](range2.end);
            var startMax = Math.max(start1, start2);
            var endMin = Math.min(end1, end2);
            if (endMin < startMax) {
                return undefined;
            }
            else {
                return { start: startMax, end: endMin };
            }
        }
        /**
         * Returns pixel "distance" between two points.
         *
         * If second point is not specified, distance from {x:0, y:0} point is
         * calculated.
         *
         * @param  {IPoint}  point1  Point 1
         * @param  {IPoint}  point2  Point 2
         * @return {number}          Distance in relative pixels
         */
        function getDistance(point1, point2) {
            if (!point2) {
                point2 = { x: 0, y: 0 };
            }
            return Math.sqrt(Math.pow(Math.abs(point1.x - point2.x), 2) + Math.pow(Math.abs(point1.y - point2.y), 2));
        }
        /**
         * Returns scale based on original and end position of the two points.
         *
         * @param  {IPoint}  point1       Current position of point 1
         * @param  {IPoint}  startPoint1  Start position of point 1
         * @param  {IPoint}  point2       Current position of point 1
         * @param  {IPoint}  startPoint2  Start position of point 2
         * @return {number}  Scale        Calculated scale
         */
        function getScale(point1, startPoint1, point2, startPoint2) {
            var initialDistance = getDistance(startPoint1, startPoint2);
            var currentDistance = getDistance(point1, point2);
            return Math.abs(currentDistance / initialDistance);
        }
        /**
         * Returns an exact mid point between two points.
         *
         * @param  {IPoint}  point1     Position of point 1
         * @param  {IPoint}  point2     Position of point 2
         * @return {IPoint}  Mid point  Position of mid-point
         */
        function getMidPoint(point1, point2, position) {
            if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](position)) {
                position = 0.5;
            }
            return {
                "x": (point1.x + (point2.x - point1.x) * position),
                "y": (point1.y + (point2.y - point1.y) * position)
            };
        }
        /**
         * Returns difference in angles between starting and ending position of two
         * vectors.
         *
         * @param  {IPoint}  point1       Current position of point 1
         * @param  {IPoint}  startPoint1  Start position of point 1
         * @param  {IPoint}  point2       Current position of point 1
         * @param  {IPoint}  startPoint2  Start position of point 2
         * @return {number}               Angle difference in degrees
         */
        function getRotation(point1, startPoint1, point2, startPoint2) {
            // Get start and end angles
            var startAngle = getAngle(startPoint1, startPoint2);
            var angle = getAngle(point1, point2);
            // Calculate angle
            var diff = startAngle - angle;
            if (diff < 0) {
                diff += 360;
            }
            return diff;
        }
        /**
         * Calculates angle of the vector based on two or one point.
         *
         * @param  {IPoint}  point1  Point 1
         * @param  {IPoint}  point2  Point 2
         * @return {number}          Angle in degrees
         */
        function getAngle(point1, point2) {
            if (!point2) {
                point2 = { x: point1.x * 2, y: point1.y * 2 };
            }
            var diffX = point2.x - point1.x;
            var diffY = point2.y - point1.y;
            var angle = Math.atan2(diffY, diffX) * DEGREES;
            if (angle < 0) {
                angle += 360;
            }
            return normalizeAngle(angle);
        }
        /**
         * Returns the shift in coordinates of the center when item is rotated, moved
         * and scaled at the same time.
         *
         * @param  {IPoint}  center       Current center
         * @param  {IPoint}  point1       Frst reference point
         * @param  {IPoint}  startPoint1  Original position of the first reference point
         * @param  {IPoint}  point2       Second reference point
         * @param  {IPoint}  startPoint2  Original position of the first reference point
         * @return {IPoint}               Shift in center point coordinates
         */
        function getCenterShift(center, point1, startPoint1, point2, startPoint2) {
            // Get angle
            var angle = getRotation(point1, startPoint1, point2, startPoint2) - 90;
            if (angle < 0) {
                angle += 360;
            }
            // Get distance between new position
            var distance = getDistance(point1, point2);
            // Calculate new X
            var x = Math.cos(angle) / distance + point1.x;
            var y = Math.cos(angle) / distance + point1.y;
            var shift = {
                "x": x - center.x,
                "y": y - center.y
            };
            return shift;
        }
        /**
         * Converts an array of points into a bounding box rectangle.
         *
         * Array can contain any number of points.
         *
         * @param  {IPoint[]}              points  Points
         * @return {Optional<IRectangle>}          Bounding box rectangle
         */
        function getBBox(points) {
            if (points) {
                var length_1 = points.length;
                if (length_1 !== 0) {
                    var left = void 0;
                    var right = void 0;
                    var top_1;
                    var bottom = void 0;
                    for (var i = 0; i < length_1; i++) {
                        var point = points[i];
                        if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](right) || (point.x > right)) {
                            right = point.x;
                        }
                        if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](left) || (point.x < left)) {
                            left = point.x;
                        }
                        if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](top_1) || (point.y < top_1)) {
                            top_1 = point.y;
                        }
                        if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](bottom) || (point.y > bottom)) {
                            bottom = point.y;
                        }
                    }
                    return { x: left, y: top_1, width: right - left, height: bottom - top_1 };
                }
            }
            return { x: 0, y: 0, width: 0, height: 0 };
        }
        /**
         * Returns a [[IRectangle]] object representing a common rectangle that fits
         * all passed in rectangles in it.
         *
         * @param {IRectangle[]}           rectangles  An array of rectangles
         * @return {Optional<IRectangle>}              Common rectangle
         */
        function getCommonRectangle(rectangles) {
            var length = rectangles.length;
            if (length !== 0) {
                var minX = void 0;
                var minY = void 0;
                var maxX = void 0;
                var maxY = void 0;
                for (var i = 0; i < length; i++) {
                    var rectangle = rectangles[i];
                    minX = min(rectangle.x, minX);
                    minY = min(rectangle.y, minY);
                    maxX = max(rectangle.x + rectangle.width, maxX);
                    maxY = max(rectangle.y + rectangle.height, maxY);
                }
                return { x: minX, y: minY, width: maxX - minX, height: maxY - minY };
            }
        }
        /**
         * [getPointOnQuadraticCurve description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {IPoint}  pointA        [description]
         * @param  {IPoint}  pointB        [description]
         * @param  {IPoint}  controlPoint  [description]
         * @param  {number}  position      [description]
         * @return {IPoint}                [description]
         */
        function getPointOnQuadraticCurve(pointA, pointB, controlPoint, position) {
            var x = (1 - position) * (1 - position) * pointA.x + 2 * (1 - position) * position * controlPoint.x + position * position * pointB.x;
            var y = (1 - position) * (1 - position) * pointA.y + 2 * (1 - position) * position * controlPoint.y + position * position * pointB.y;
            return { x: x, y: y };
        }
        /**
         * [getPointOnCubicCurve description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {IPoint}  pointA         [description]
         * @param  {IPoint}  pointB         [description]
         * @param  {IPoint}  controlPointA  [description]
         * @param  {IPoint}  controlPointB  [description]
         * @param  {number}  position       [description]
         * @return {IPoint}                 [description]
         */
        function getPointOnCubicCurve(pointA, pointB, controlPointA, controlPointB, position) {
            var point = { x: 0, y: 0 };
            var mt1 = 1 - position;
            var mt2 = mt1 * mt1;
            var mt3 = mt2 * mt1;
            point.x = pointA.x * mt3 + controlPointA.x * 3 * mt2 * position + controlPointB.x * 3 * mt1 * position * position + pointB.x * position * position * position;
            point.y = pointA.y * mt3 + controlPointA.y * 3 * mt2 * position + controlPointB.y * 3 * mt1 * position * position + pointB.y * position * position * position;
            return point;
        }
        /**
         * [getCubicControlPointA description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {IPoint}  p0        [description]
         * @param  {IPoint}  p1        [description]
         * @param  {IPoint}  p2        [description]
         * @param  {IPoint}  p3        [description]
         * @param  {number}  tensionX  [description]
         * @param  {number}  tensionY  [description]
         * @return {IPoint}            [description]
         */
        function getCubicControlPointA(p0, p1, p2, p3, tensionX, tensionY) {
            tensionX = adjustTension(tensionX);
            tensionY = adjustTension(tensionY);
            return { x: ((-p0.x + p1.x / tensionX + p2.x) * tensionX), y: ((-p0.y + p1.y / tensionY + p2.y) * tensionY) };
        }
        /**
         * [getCubicControlPointB description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {IPoint}  p0        [description]
         * @param  {IPoint}  p1        [description]
         * @param  {IPoint}  p2        [description]
         * @param  {IPoint}  p3        [description]
         * @param  {number}  tensionX  [description]
         * @param  {number}  tensionY  [description]
         * @return {IPoint}            [description]
         */
        function getCubicControlPointB(p0, p1, p2, p3, tensionX, tensionY) {
            tensionX = adjustTension(tensionX);
            tensionY = adjustTension(tensionY);
            return { x: ((p1.x + p2.x / tensionX - p3.x) * tensionX), y: ((p1.y + p2.y / tensionY - p3.y) * tensionY) };
        }
        /**
         * [adjustTension description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number}  tension  [description]
         * @return {number}           [description]
         */
        function adjustTension(tension) {
            return 1 - tension + 0.00001;
        }
        /**
         * [normalizeAngle description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number}  value  [description]
         * @return {number}         [description]
         */
        function normalizeAngle(value) {
            if (value == 360) {
                return 360;
            }
            return value % 360;
        }
        /**
         * [normalizeAngleToRange description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @todo review this with various angles, can be tested on radar chart with custom start/end angles
         * @param {number}   value       [description]
         * @param {number}   startAngle  [description]
         * @param {number}   endAngle    [description]
         * @return {number}              [description]
         */
        function fitAngleToRange(value, startAngle, endAngle) {
            if (startAngle > endAngle) {
                var temp = startAngle;
                startAngle = endAngle;
                endAngle = temp;
            }
            value = normalizeAngle(value);
            var count = (startAngle - normalizeAngle(startAngle)) / 360;
            if (value < startAngle) {
                value += 360 * (count + 1);
            }
            var maxEnd = startAngle + (endAngle - startAngle) / 2 + 180;
            var maxStart = startAngle + (endAngle - startAngle) / 2 - 180;
            if (value > endAngle) {
                if (value - 360 > startAngle) {
                    value -= 360;
                }
                else {
                    if (value < maxEnd) {
                        value = endAngle;
                    }
                    else {
                        value = startAngle;
                    }
                }
            }
            if (value < startAngle) {
                if (value > maxStart) {
                    value = startAngle;
                }
                else {
                    value = endAngle;
                }
            }
            return value;
        }
        /**
         * Returns [[IRectangle]] of an arc in relative values, assuming that the
         * center is at the circle center.
         *
         * Used to find out max radius of an arc.
         *
         * @ignore Exclude from docs
         * @param  {number}      startAngle  Start angle
         * @param  {number}      endAngle    End angle
         * @param  {number}      radius    	 Relative radius
         * @return {IRectangle}              Rectangle
         */
        function getArcRect(startAngle, endAngle, radius) {
            // do not normalize here!
            //startAngle = normalizeAngle(startAngle);
            //endAngle = normalizeAngle(endAngle);
            if (!_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](radius)) {
                radius = 1;
            }
            if (startAngle == endAngle) {
                endAngle += 360;
            }
            if (startAngle > endAngle) {
                var temp = endAngle;
                endAngle = startAngle;
                startAngle = temp;
            }
            var minX;
            var maxX;
            var minY;
            var maxY;
            var step = (endAngle - startAngle) / 720;
            for (var angle = startAngle; angle < endAngle; angle += step) {
                minX = min(cos(angle) * radius, minX);
                maxX = max(cos(angle) * radius, maxX);
                minY = min(sin(angle) * radius, minY);
                maxY = max(sin(angle) * radius, maxY);
            }
            return { x: minX, y: minY, width: (maxX - minX), height: (maxY - minY) };
        }
        /**
         * Returns true if a point is within rectangle
         *
         * @param  {IPoint}      point
         * @param  {IRectangle}  rectangle
         * @return {boolean}
         */
        function isInRectangle(point, rectangle) {
            if (point.x >= rectangle.x && point.x <= rectangle.x + rectangle.width && point.y > rectangle.y && point.y < rectangle.y + rectangle.height) {
                return true;
            }
            return false;
        }
        function getLineIntersection(pointA1, pointA2, pointB1, pointB2) {
            var x = ((pointA1.x * pointA2.y - pointA2.x * pointA1.y) * (pointB1.x - pointB2.x) - (pointA1.x - pointA2.x) * (pointB1.x * pointB2.y - pointB1.y * pointB2.x)) / ((pointA1.x - pointA2.x) * (pointB1.y - pointB2.y) - (pointA1.y - pointA2.y) * (pointB1.x - pointB2.x));
            var y = ((pointA1.x * pointA2.y - pointA2.x * pointA1.y) * (pointB1.y - pointB2.y) - (pointA1.y - pointA2.y) * (pointB1.x * pointB2.y - pointB1.y * pointB2.x)) / ((pointA1.x - pointA2.x) * (pointB1.y - pointB2.y) - (pointA1.y - pointA2.y) * (pointB1.x - pointB2.x));
            return { x: x, y: y };
        }
        //# sourceMappingURL=Math.js.map
        /***/ 
    }),
    /* 757 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNaN", function () { return isNaN; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getType", function () { return getType; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefault", function () { return getDefault; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkString", function () { return checkString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkBoolean", function () { return checkBoolean; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkNumber", function () { return checkNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkObject", function () { return checkObject; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkArray", function () { return checkArray; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkDate", function () { return checkDate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "castString", function () { return castString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "castNumber", function () { return castNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toBoolean", function () { return toBoolean; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toNumber", function () { return toNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toText", function () { return toText; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toNumberOrPercent", function () { return toNumberOrPercent; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasValue", function () { return hasValue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValue", function () { return getValue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueDefault", function () { return getValueDefault; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDate", function () { return isDate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isString", function () { return isString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumber", function () { return isNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObject", function () { return isObject; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function () { return isArray; });
        /* harmony import */ var _Percent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(758);
        /**
         * A collection of utility functions for various type checks and conversion
         * @todo Review unused functions for removal
         * @hidden
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * TYPE CHECK
         * ============================================================================
         * @hidden
         */
        /**
         * Returns `true` if value is not a number (NaN).
         *
         * @param  {number}  value Input value
         * @return {boolean}       Is NaN?
         * @deprecated Is not used anywhere. JS built-in isNaN is used everywhere. Maybe we don't need this, or if we do, then we should use it everywhere
         */
        function isNaN(value) {
            return Number(value) !== value;
        }
        /**
         * Returns a type of the value.
         *
         * @param  {any}   value  Input value
         * @return {Type}         Type of the value
         */
        function getType(value) {
            return ({}).toString.call(value);
        }
        /**
         * Returns a default value if the passed in value is empty.
         *
         * @param  {any}   value     Input value
         * @param  {any}   optional  Default value
         * @return {any}             Value or default value whichever is available
         * @deprecated Not used anywhere
         */
        function getDefault(value, optional) {
            return value || optional;
        }
        /**
         * Checks if the passed in value is a string.
         *
         * @param  {any}   value  Value
         * @return {value}        Is string?
         * @throws {Error}
         * @deprecated Not used anywhere
         */
        function checkString(value) {
            if (typeof value === "string") {
                return true;
            }
            else {
                throw new Error("Expected a string but got " + getType(value));
            }
        }
        /**
         * Checks if the passed in value is a boolean.
         *
         * @param  {any}   value  Value
         * @return {value}        Is boolean?
         * @throws {Error}
         * @deprecated Not used anywhere
         */
        function checkBoolean(value) {
            if (typeof value === "boolean") {
                return true;
            }
            else {
                throw new Error("Expected a boolean but got " + getType(value));
            }
        }
        /**
         * Checks if the passed in value is a number.
         *
         * @param  {any}   value  Value
         * @return {value}        Is number?
         * @throws {Error}
         */
        function checkNumber(value) {
            if (typeof value === "number") {
                if (isNaN(value)) {
                    throw new Error("Expected a number but got NaN");
                }
            }
            else {
                throw new Error("Expected a number but got " + getType(value));
            }
            return true;
        }
        /**
         * Checks if the passed in value is an object.
         *
         * @param  {any}   value  Value
         * @return {value}        Is object?
         * @throws {Error}
         * @todo Is the input type correct?
         * @deprecated Not used anywhere
         */
        function checkObject(value) {
            var t = getType(value);
            if (t === "[object Object]") {
                return true;
            }
            else {
                throw new Error("Expected an object but got " + t);
            }
        }
        /**
         * Checks if the passed in value is an array.
         *
         * @param  {any}   value  Value
         * @return {value}        Is array?
         * @throws {Error}
         * @deprecated Not used anywhere
         */
        function checkArray(value) {
            if (Array.isArray(value)) {
                return true;
            }
            else {
                throw new Error("Expected an array but got " + getType(value));
            }
        }
        /**
         * Checks if the passed in value is a Date object.
         *
         * @param  {any}   value  Value
         * @return {value}        Is Date object?
         * @throws {Error}
         * @deprecated Not used anywhere
         */
        function checkDate(value) {
            var t = getType(value);
            if (t === "[object Date]") {
                return true;
            }
            else {
                throw new Error("Expected a date but got " + t);
            }
        }
        /**
         * ============================================================================
         * TYPE CASTING
         * ============================================================================
         * @hidden
         */
        /**
         * Casts string or a number into string.
         *
         * @param  {string | number}  value  Input
         * @return {string}                  String value
         * @deprecated Not used anywhere
         */
        function castString(value) {
            if (typeof value === "string") {
                return value;
            }
            else if (typeof value === "number") {
                return "" + value;
            }
            else {
                throw new Error("Expected a string or number but got " + getType(value));
            }
        }
        /**
         * Casts string or a number into a number.
         *
         * @param  {string | number | Date}  value   Input value
         * @return {number}                  Number  value
         * @throws {Error}
         */
        function castNumber(value) {
            if (typeof value === "string") {
                var number = +value;
                if (isNaN(number)) {
                    throw new Error("Cannot cast string " + JSON.stringify(value) + " to a number");
                }
                else {
                    return number;
                }
            }
            else if (typeof value === "number") {
                if (isNaN(value)) {
                    throw new Error("Expected a number but got NaN");
                }
                else {
                    return value;
                }
            }
            else {
                var t = getType(value);
                if (t === "[object Date]") {
                    return value.getTime();
                }
                else {
                    throw new Error("Expected a string, number, or date but got " + t);
                }
            }
        }
        /**
         * Casts number, string or Date into a Date object.
         *
         * @param  {string | number | Date}   value  Input value
         * @return {Date}                            Date object
         * @deprecated Not used anywhere
         * @throws {Error}
         * @hidden
         * @deprecated
         */
        /*export function castDate(value: string | number | Date, formatter?: DateFormatter): Date {
            if (typeof value === "string") {
                if (formatter) {
                    return formatter.parse(value);
                }
                return new Date(value);
        
            } else if (typeof value === "number") {
                return new Date(value);
        
            } else {
                const t = getType(value);
        
                if (t === "[object Date]") {
                    return value;
        
                } else {
                    throw new Error("Expected a string, number, or date but got " + t);
                }
            }
        }*/
        /**
         * ============================================================================
         * QUICK CONVERSION
         * ============================================================================
         * @hidden
         */
        /**
         * Converts any value into `boolean`.
         *
         * @param  {any}      value  Source value
         * @return {boolean}         `true` or `false`
         */
        function toBoolean(value) {
            return value ? true : false;
        }
        /**
         * Converts any value into a `number`.
         *
         * @param  {any}     value  Source value
         * @return {number}         Number representation of value
         */
        function toNumber(value) {
            if (hasValue(value) && !isNumber(value)) {
                var converted = Number(value);
                if (isNaN(converted) && isString(value) && value != "") {
                    return toNumber(value.replace(/[^0-9.\-]+/g, ''));
                }
                return converted;
            }
            return value;
        }
        /**
         * Converts any value into a string (text).
         *
         * @param  {any}     value  Source value
         * @return {string}         String representation of the input
         */
        function toText(value) {
            if (hasValue(value) && !isString(value)) {
                return castString(value);
            }
            return value;
        }
        /**
         * Converts any value to a number or [[Percent]].
         *
         * If the parameter is a string and contains "%", it will
         * convert it into a [[Percent]].
         *
         * Otherwise, it will convert into a number.
         *
         * @param {number | Percent}   value  Number or percent
         * @return {number | Percent}         Percent object
         */
        function toNumberOrPercent(value) {
            if (!hasValue(value) || isNumber(value) || Object(_Percent__WEBPACK_IMPORTED_MODULE_0__["isPercent"])(value)) {
                return value;
            }
            if (isString(value) && value.indexOf("%") != -1) {
                return Object(_Percent__WEBPACK_IMPORTED_MODULE_0__["percent"])(toNumber(value));
            }
            return toNumber(value);
        }
        /**
         * Checks if a variable has a value.
         *
         * @param {Optional<A> | null}  a  Input value
         * @returns                        Has value?
         */
        function hasValue(a) {
            return a != null;
        }
        /**
         * Returns a value or throws an {Error} exception if the variable has not
         * value.
         *
         * @param {Optional<A> | null}  a  Input value
         * @returns                        Value
         */
        function getValue(a) {
            if (hasValue(a)) {
                return a;
            }
            else {
                throw new Error("Value doesn't exist");
            }
        }
        /**
         * Returns a value, or returns the default value if it doesn't have a value.
         *
         * @param {Optional<A> | null}  a  Input value
         * @returns                        Value
         */
        function getValueDefault(a, defaultValue) {
            if (hasValue(a)) {
                return a;
            }
            else {
                return defaultValue;
            }
        }
        /**
         * ============================================================================
         * TYPE CHECK
         * ============================================================================
         * @hidden
         */
        /**
         * Checks if parameter is `Date`.
         *
         * @param  {any}    value  Input value
         * @return {value}         Is Date?
         */
        function isDate(value) {
            return getType(value) === "[object Date]";
        }
        /**
         * Checks if parameter is `string`.
         *
         * @param  {any}    value  Input value
         * @return {value}         Is string?
         */
        function isString(value) {
            return typeof value === "string";
        }
        /**
         * Checks if parameter is `number`.
         *
         * @param  {any}    value  Input value
         * @return {value}         Is number?
         */
        function isNumber(value) {
            return typeof value === "number" && !isNaN(value);
        }
        /**
         * Checks if parameter is `object`.
         *
         * @param  {any}    value  Input value
         * @return {value}         Is object?
         */
        function isObject(value) {
            return typeof value === "object";
        }
        /**
         * Checks if parameter is `Array`.
         *
         * @param  {any}    value  Input value
         * @return {value}         Is Array?
         */
        function isArray(value) {
            return Array.isArray(value);
        }
        //# sourceMappingURL=Type.js.map
        /***/ 
    }),
    /* 758 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Percent", function () { return Percent; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "percent", function () { return percent; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPercent", function () { return isPercent; });
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents a relative value. (percent)
         */
        var Percent = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {number}  percent  Percent value
             */
            function Percent(percent) {
                this._value = percent;
            }
            Object.defineProperty(Percent.prototype, "value", {
                /**
                 * Relative value.
                 *
                 * E.g. 100% is 1, 50% is 0.5, etc.
                 *
                 * This is useful to apply transformations to other values. E.g.:
                 *
                 * ```TypeScript
                 * let value = 256;
                 * let percent = new am4core.Percent(50);
                 * console.log(value * percent.value); // outputs 128
                 * ```
                 * ```JavaScript
                 * var value = 256;
                 * var percent = new am4core.Percent(50);
                 * console.log(value * percent.value); // outputs 128
                 * ```
                 *
                 * @readonly
                 * @return {number} Relative value
                 */
                get: function () {
                    return this._value / 100;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Percent.prototype, "percent", {
                /**
                 * Value in percent.
                 *
                 * @return {number} Percent
                 */
                get: function () {
                    return this._value;
                },
                enumerable: true,
                configurable: true
            });
            return Percent;
        }());
        /**
         * Converts numeric percent value to a proper [[Percent]] object.
         *
         * ```TypeScript
         * pieSeries.radius = am4core.percent(80);
         * ```
         * ```JavaScript
         * pieSeries.radius = am4core.percent(80);
         * ```
         *
         * @param  {number}   value  Percent
         * @return {Percent}         Percent object
         */
        function percent(value) {
            return new Percent(value);
        }
        /**
         * Checks if value is a [[Percent]] object.
         *
         * @ignore Exclude from docs
         * @param  {any}      value  Input value
         * @return {boolean}         Is percent?
         */
        function isPercent(value) {
            return value instanceof Percent;
        }
        //# sourceMappingURL=Percent.js.map
        /***/ 
    }),
    /* 759 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "raf", function () { return raf; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nextFrame", function () { return nextFrame; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readFrame", function () { return readFrame; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "writeFrame", function () { return writeFrame; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "whenIdle", function () { return whenIdle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "triggerIdle", function () { return triggerIdle; });
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(755);
        /**
         * A collection of low-level async operation stuff.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        var pendingFrame = false;
        var nextQueue = [];
        var readQueue = [];
        var writeQueue = [];
        var idleQueue = [];
        var fps = 1000 / 60;
        /**
         * [raf description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {[type]}
         */
        var raf = (typeof requestAnimationFrame === "function"
            ? function (fn) {
                requestAnimationFrame(fn);
            }
            : function (fn) {
                setTimeout(fn, fps);
            });
        /**
         * [frameLoop description]
         *
         * @ignore Exclude from docs
         * @todo Description
         */
        function frameLoop() {
            var now = Date.now();
            var length = nextQueue.length;
            for (var i = 0; i < length; ++i) {
                nextQueue[i](now);
            }
            _Array__WEBPACK_IMPORTED_MODULE_0__["shiftLeft"](nextQueue, length);
            for (var i = 0; i < readQueue.length; ++i) {
                readQueue[i](now);
            }
            readQueue.length = 0;
            for (var i = 0; i < writeQueue.length; ++i) {
                writeQueue[i](now);
            }
            writeQueue.length = 0;
            if (nextQueue.length === 0 && readQueue.length === 0) {
                pendingFrame = false;
            }
            else {
                raf(frameLoop);
            }
        }
        /**
         * [pendFrame description]
         *
         * @ignore Exclude from docs
         * @todo Description
         */
        function pendFrame() {
            if (!pendingFrame) {
                pendingFrame = true;
                raf(frameLoop);
            }
        }
        /**
         * [nextFrame description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param {Listener} fn [description]
         */
        function nextFrame(fn) {
            nextQueue.push(fn);
            pendFrame();
        }
        /**
         * [readFrame description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param {Listener} fn [description]
         */
        function readFrame(fn) {
            readQueue.push(fn);
            pendFrame();
        }
        /**
         * [writeFrame description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param {Listener} fn [description]
         */
        function writeFrame(fn) {
            writeQueue.push(fn);
            pendFrame();
        }
        /**
         * [whenIdle description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param {Listener} fn [description]
         */
        function whenIdle(fn) {
            idleQueue.push(fn);
        }
        /**
         * [triggerIdle description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @todo Maybe don't trigger a callback which was added while in the middle of triggering?
         */
        function triggerIdle() {
            var now = Date.now();
            var length = idleQueue.length;
            for (var i = 0; i < length; ++i) {
                idleQueue.shift()(now);
            }
        }
        //# sourceMappingURL=AsyncPending.js.map
        /***/ 
    }),
    /* 760 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DictionaryDisposer", function () { return DictionaryDisposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dictionary", function () { return Dictionary; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DictionaryTemplate", function () { return DictionaryTemplate; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Disposer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(754);
        /* harmony import */ var _EventDispatcher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(752);
        /* harmony import */ var _Object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(761);
        /* harmony import */ var _Iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(762);
        /* harmony import */ var _String__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(763);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * A disposable dictionary, which when disposed itself will call `dispose()`
         * method on all its items.
         */
        var DictionaryDisposer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DictionaryDisposer, _super);
            function DictionaryDisposer(dict) {
                var _this = this;
                var disposer = dict.events.on("removed", function (x) {
                    x.oldValue.dispose();
                }, undefined, false);
                _this = _super.call(this, function () {
                    disposer.dispose();
                    // TODO clear the dictionary ?
                    _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](dict.iterator(), function (a) {
                        var v = a[1];
                        v.dispose();
                    });
                }) || this;
                return _this;
            }
            return DictionaryDisposer;
        }(_Disposer__WEBPACK_IMPORTED_MODULE_1__["Disposer"]));
        /**
         * A Dictionary is collection where values of some type can be mapped to
         * string keys.
         *
         * You might call it an "associative list" or "associative array".
         */
        var Dictionary = /** @class */ (function () {
            /**
             * Constructor
             */
            function Dictionary() {
                /**
                 * Event dispatcher.
                 *
                 * @type {EventDispatcher<AMEvent<Dictionary<Key, T>, IDictionaryEvents<Key, T>>>}
                 */
                this.events = new _EventDispatcher__WEBPACK_IMPORTED_MODULE_2__["EventDispatcher"]();
                this._dictionary = {};
            }
            /**
             * Returns `true` if key exists in Dictionary.
             *
             * @param  {Key}      key  The key to search for
             * @return {boolean}       `true` if key exists, `false` if it doesn't
             */
            Dictionary.prototype.hasKey = function (key) {
                return _Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key);
            };
            /**
             * Returns the value for a specific key.
             *
             * @param  {Key}          key  The key to search for
             * @return {Optional<T>}       Value for the key, or `undefined` if it doesn't exist
             */
            Dictionary.prototype.getKey = function (key) {
                return this._dictionary[key];
            };
            /**
             * Inserts value at specific key.
             *
             * Will thrown an exception if the key already exists in the dictionary.
             *
             * @param {Key}  key    Key
             * @param {T}    value  Value
             */
            Dictionary.prototype.insertKey = function (key, value) {
                if (_Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key)) {
                    throw new Error("Key " + key + " already exists in dictionary");
                }
                else {
                    this._dictionary[key] = value;
                    if (this.events.isEnabled("insertKey")) {
                        this.events.dispatchImmediately("insertKey", {
                            type: "insertKey",
                            target: this,
                            key: key,
                            newValue: value
                        });
                    }
                }
            };
            /**
             * Adds or updates key/value into dictionary.
             *
             * If the key already exists, the old value will be overwritten.
             *
             * If the new value is exactly the same as the old value (using ===), it won't do anything.
             *
             * @param  {Key}  key    Key
             * @param  {T}    value  Value
             */
            Dictionary.prototype.setKey = function (key, value) {
                if (_Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key)) {
                    var oldValue = this._dictionary[key];
                    if (oldValue !== value) {
                        this._dictionary[key] = value;
                        if (this.events.isEnabled("setKey")) {
                            this.events.dispatchImmediately("setKey", {
                                type: "setKey",
                                target: this,
                                key: key,
                                oldValue: oldValue,
                                newValue: value
                            });
                        }
                        if (this.events.isEnabled("removed")) {
                            this.events.dispatchImmediately("removed", {
                                type: "removed",
                                target: this,
                                oldValue: oldValue
                            });
                        }
                    }
                }
                else {
                    this._dictionary[key] = value;
                    if (this.events.isEnabled("insertKey")) {
                        this.events.dispatchImmediately("insertKey", {
                            type: "insertKey",
                            target: this,
                            key: key,
                            newValue: value
                        });
                    }
                }
            };
            /**
             * Updates the value at specific `key` using custom function.
             *
             * Passes in current value into the function, and uses its output as a new
             * value.
             *
             * If the new value is exactly the same as the old value (using ===), it won't do anything.
             *
             * @ignore Exclude from docs
             * @param {Key}       key  Key
             * @param {function}  fn   Function to transform the value
             */
            Dictionary.prototype.updateKey = function (key, fn) {
                if (_Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key)) {
                    var oldValue = this._dictionary[key];
                    var newValue = fn(oldValue);
                    if (oldValue !== newValue) {
                        this._dictionary[key] = newValue;
                        if (this.events.isEnabled("setKey")) {
                            this.events.dispatchImmediately("setKey", {
                                type: "setKey",
                                target: this,
                                key: key,
                                oldValue: oldValue,
                                newValue: newValue
                            });
                        }
                        if (this.events.isEnabled("removed")) {
                            this.events.dispatchImmediately("removed", {
                                type: "removed",
                                target: this,
                                oldValue: oldValue
                            });
                        }
                    }
                }
                else {
                    throw new Error("Key " + key + " doesn't exist in dictionary");
                }
            };
            /**
             * Removes value at specific `key` from dictionary.
             *
             * @param {Key}  key  Key to remove
             */
            Dictionary.prototype.removeKey = function (key) {
                if (_Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key)) {
                    var oldValue = this._dictionary[key];
                    delete this._dictionary[key];
                    if (this.events.isEnabled("removeKey")) {
                        this.events.dispatchImmediately("removeKey", {
                            type: "removeKey",
                            target: this,
                            key: key,
                            oldValue: oldValue
                        });
                    }
                    if (this.events.isEnabled("removed")) {
                        this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: this,
                            oldValue: oldValue
                        });
                    }
                }
            };
            /**
             * [insertKeyIfEmpty description]
             *
             * @ignore Exclude from docs
             * @todo description
             * @param  {Key}       key      [description]
             * @param  {function}  ifEmpty  [description]
             * @return {T}                  [description]
             */
            Dictionary.prototype.insertKeyIfEmpty = function (key, ifEmpty) {
                if (!this.hasKey(key)) {
                    this.insertKey(key, ifEmpty());
                }
                return this.getKey(key);
            };
            /**
             * Removes all items from the dictionary.
             */
            Dictionary.prototype.clear = function () {
                var _this = this;
                // TODO dispatch this after clear
                if (this.events.isEnabled("removed")) {
                    _Object__WEBPACK_IMPORTED_MODULE_3__["each"](this._dictionary, function (key, value) {
                        _this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: _this,
                            oldValue: value
                        });
                    });
                }
                this._dictionary = {};
                if (this.events.isEnabled("cleared")) {
                    this.events.dispatchImmediately("cleared", {
                        type: "cleared",
                        target: this
                    });
                }
            };
            /**
             * Copies items from another Dictionary.
             *
             * @param {Dictionary<Key, T>}  source  A Dictionary to copy items from
             */
            Dictionary.prototype.copyFrom = function (source) {
                var _this = this;
                _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](source.iterator(), function (a) {
                    // TODO fix this type cast
                    _this.setKey(a[0], a[1]);
                });
            };
            /**
             * Returns an interator that can be used to iterate through all items in
             * the dictionary.
             *
             * @return {Iterator} Iterator
             */
            Dictionary.prototype.iterator = function () {
                // @todo fix this type after the Iterator bug is fixed
                // https://github.com/Microsoft/TypeScript/issues/16730
                return _Object__WEBPACK_IMPORTED_MODULE_3__["entries"](this._dictionary);
            };
            /**
             * Returns an ES6 iterator for the keys/values of the dictionary.
             */
            Dictionary.prototype[Symbol.iterator] = function () {
                var _a, _b, _i, key;
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_c) {
                    switch (_c.label) {
                        case 0:
                            _a = [];
                            for (_b in this._dictionary)
                                _a.push(_b);
                            _i = 0;
                            _c.label = 1;
                        case 1:
                            if (!(_i < _a.length))
                                return [3 /*break*/, 4];
                            key = _a[_i];
                            if (!_Object__WEBPACK_IMPORTED_MODULE_3__["hasKey"](this._dictionary, key))
                                return [3 /*break*/, 3];
                            return [4 /*yield*/, [key, this._dictionary[key]]];
                        case 2:
                            _c.sent();
                            _c.label = 3;
                        case 3:
                            _i++;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            };
            /**
             * Calls `f` for each key/value in the dictionary.
             */
            Dictionary.prototype.each = function (f) {
                _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](this.iterator(), function (_a) {
                    var _b = tslib__WEBPACK_IMPORTED_MODULE_0__["__read"](_a, 2), key = _b[0], value = _b[1];
                    return f(key, value);
                });
            };
            /**
             * Returns an iterator that can be used to iterate through all items in
             * the dictionary, ordered by key.
             *
             * @ignore Exclude from docs
             * @return {Iterator} Iterator
             */
            Dictionary.prototype.sortedIterator = function () {
                return _Iterator__WEBPACK_IMPORTED_MODULE_4__["sort"](this.iterator(), function (x, y) { return _String__WEBPACK_IMPORTED_MODULE_5__["order"](x[0], y[0]); });
            };
            return Dictionary;
        }());
        /**
         * A version of a [[Dictionary]] that has a "template".
         *
         * A template is an instance of an object, that can be used to create new
         * elements in the list without actually needing to create instances for those.
         *
         * When new element is created in the list, e.g. by calling its `create()`
         * method, an exact copy of the element is created (including properties and
         * other attributes), inserted into the list and returned.
         */
        var DictionaryTemplate = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DictionaryTemplate, _super);
            /**
             * Constructor
             *
             * @param {T} t Template object
             */
            function DictionaryTemplate(t) {
                var _this = _super.call(this) || this;
                _this.template = t;
                return _this;
            }
            Object.defineProperty(DictionaryTemplate.prototype, "template", {
                /**
                 * @return {T} Template object
                 */
                get: function () {
                    return this._template;
                },
                /**
                 * A "template" object to copy all properties from when creating new list
                 * items.
                 *
                 * @param {T}  v  Template object
                 */
                set: function (v) {
                    v.isTemplate = true;
                    this._template = v;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all elements from other dictionary.
             *
             * @param {DictionaryTemplate}  source  Source dictionary
             */
            DictionaryTemplate.prototype.copyFrom = function (source) {
                var _this = this;
                _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](source.iterator(), function (a) {
                    // TODO fix this type cast
                    // TODO why does this need to clone ?
                    _this.setKey(a[0], a[1].clone());
                });
            };
            /**
             * Instantiates a new object of the specified type, adds it to specified
             * `key` in the dictionary, and returns it.
             *
             * @param make  Item type to use. Will use the default type for the dictionary if not specified.
             * @return      Newly created item
             */
            DictionaryTemplate.prototype.create = function (key) {
                var _this = this;
                return this.insertKeyIfEmpty(key, function () { return _this.template.clone(); });
            };
            return DictionaryTemplate;
        }(Dictionary));
        //# sourceMappingURL=Dictionary.js.map
        /***/ 
    }),
    /* 761 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "entries", function () { return entries; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function () { return keys; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keysOrdered", function () { return keysOrdered; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasKey", function () { return hasKey; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKey", function () { return getKey; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachContinue", function () { return eachContinue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "each", function () { return each; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachOrdered", function () { return eachOrdered; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function () { return copy; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function () { return merge; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyProperties", function () { return copyProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "softCopyProperties", function () { return softCopyProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forceCopyProperties", function () { return forceCopyProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyAllProperties", function () { return copyAllProperties; });
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(755);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * UTILITY FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Returns an iterator for all entries in object.
         *
         * Can be used to safely iterate through all properties of the object.
         *
         * @param   {object}    object  Source object
         * @returns {Iterator}          Iterator
         */
        function entries(object) {
            return function (push) {
                // TODO make this more efficient ?
                for (var key in object) {
                    if (hasKey(object, key)) {
                        if (!push([key, object[key]])) {
                            break;
                        }
                    }
                }
            };
        }
        /**
         * Returns an array of object's property names.
         *
         * @param   {object}        object  Source object
         * @returns {Array<string}          Object property names
         */
        function keys(object) {
            var output = [];
            for (var key in object) {
                if (hasKey(object, key)) {
                    output.push(key);
                }
            }
            return output;
        }
        /**
         * Returns an array of object's property names ordered using specific ordering
         * function.
         *
         * @param   {object}        object  Source object
         * @param   {function}      order   Ordering function
         * @returns {Array<string>}          Object property names
         */
        function keysOrdered(object, order) {
            return keys(object).sort(order);
        }
        /**
         * Checks if `object` has a specific `key`.
         *
         * @param   {object}   object  Source object
         * @param   {string}   key     Property name
         * @returns {boolean}          Has key?
         */
        function hasKey(object, key) {
            return {}.hasOwnProperty.call(object, key);
        }
        /**
         * Returns value of the specific `key`.
         *
         * @param   {object}   object  Source object
         * @param   {string}   key     Property name
         * @returns {any}              Key value
         */
        function getKey(object, key) {
            return object[key];
        }
        /**
         * Iterates through all properties of the object calling `fn` for each of them.
         *
         * If return value of the function evaluates to `false` further iteration is
         * cancelled.
         *
         * @param {object}   object  Source object
         * @param {function} fn      Callback function
         */
        function eachContinue(object, fn) {
            for (var key in object) {
                if (hasKey(object, key)) {
                    if (!fn(key, object[key])) {
                        break;
                    }
                }
            }
        }
        /**
         * Iterates through all properties of the object calling `fn` for each of them.
         *
         * @param {object}   object  Source object
         * @param {function} fn      Callback function
         */
        function each(object, fn) {
            eachContinue(object, function (key, value) {
                fn(key, value);
                return true;
            });
        }
        /**
         * Orders object properties using custom `ord` function and iterates through
         * them calling `fn` for each of them.
         *
         * @param {object}    object  Source object
         * @param {function}  fn      Callback function
         * @param {function}  order   Ordering function
         */
        function eachOrdered(object, fn, ord) {
            _Array__WEBPACK_IMPORTED_MODULE_0__["each"](keysOrdered(object, ord), function (key) {
                fn(key, object[key]);
            });
        }
        /**
         * Returns a copy of the object.
         *
         * @param   {object} object  Source object
         * @returns {object}         Copy of the object
         */
        function copy(object) {
            return Object.assign({}, object);
        }
        /**
         * Merges two objects and returns a new object that contains properties from
         * both source objects.
         *
         * @param   {object} object1  Source object #1
         * @param   {object} object2  Source object #2
         * @returns {object}          Combined object
         */
        function merge(object1, object2) {
            return Object.assign({}, object1, object2);
        }
        /**
         * Copies a list of properties from one object to another.
         *
         * Will not copy empty properties.
         *
         * @param {object}         source  Source object
         * @param {object}         target    Target object
         * @param {Array<string>}  keys  List of keys to copy
         */
        function copyProperties(source, target, keys) {
            _Array__WEBPACK_IMPORTED_MODULE_0__["each"](keys, function (key) {
                if (_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](source[key])) {
                    target[key] = source[key];
                }
            });
        }
        /**
         * Copies a list of properties from one object to another only if target does't have value of the property set.
         *
         * Will not copy empty properties.
         *
         * @param {object}         source  Source object
         * @param {object}         target    Target object
         * @param {Array<string>}  keys  List of keys to copy
         */
        function softCopyProperties(source, target, keys) {
            _Array__WEBPACK_IMPORTED_MODULE_0__["each"](keys, function (key) {
                if (_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](source[key]) && !(_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](target[key]))) {
                    target[key] = source[key];
                }
            });
        }
        /**
         * Copies a list of properties from one object to another.
         *
         * Will copy empty properties.
         *
         * @param {object}         source  Source object
         * @param {object}         target    Target object
         * @param {Array<string>}  keys  List of keys to copy
         */
        function forceCopyProperties(source, target, keys) {
            _Array__WEBPACK_IMPORTED_MODULE_0__["each"](keys, function (key) {
                target[key] = source[key];
            });
        }
        /**
         * Copies all properties from one object to another.
         *
         * @param {object}  from  Source object
         * @param {object}  to    Target object
         */
        function copyAllProperties(from, to) {
            copyProperties(from, to, keys(from));
        }
        //# sourceMappingURL=Object.js.map
        /***/ 
    }),
    /* 762 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArray", function () { return fromArray; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "length", function () { return length; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function () { return toArray; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachContinue", function () { return eachContinue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "each", function () { return each; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sort", function () { return sort; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function () { return map; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function () { return filter; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function () { return concat; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatten", function () { return flatten; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexed", function () { return indexed; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function () { return findIndex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function () { return find; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findMap", function () { return findMap; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contains", function () { return contains; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "foldl", function () { return foldl; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function () { return min; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function () { return max; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "join", function () { return join; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListIterator", function () { return ListIterator; });
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(755);
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        function fromArray(array) {
            return function (push) {
                var length = array.length;
                for (var i = 0; i < length; ++i) {
                    if (!push(array[i])) {
                        break;
                    }
                }
            };
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        function length(iter) {
            var sum = 0;
            iter(function (_) {
                ++sum;
                return true;
            });
            return sum;
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        function toArray(iter) {
            var output = [];
            iter(function (value) {
                output.push(value);
                return true;
            });
            return output;
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function eachContinue(iter, fn) {
            return iter(fn);
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function each(iter, fn) {
            return iter(function (value) {
                fn(value);
                return true;
            });
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function sort(iter, fn) {
            return fromArray(toArray(iter).sort(fn));
        }
        /**
         * [A description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {[type]}
         */
        function map(iter, fn) {
            return function (push) { return iter(function (value) { return push(fn(value)); }); };
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function filter(iter, fn) {
            return function (push) {
                return iter(function (value) {
                    if (fn(value)) {
                        return push(value);
                    }
                    else {
                        return true;
                    }
                });
            };
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        function concat() {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            return function (push) {
                var go = true;
                var push2 = function (value) { return (go = push(value)); };
                var length = args.length;
                for (var i = 0; i < length; ++i) {
                    args[i](push2);
                    if (!go) {
                        break;
                    }
                }
            };
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        function flatten(iter) {
            return function (push) {
                var go = true;
                var push2 = function (value) { return (go = push(value)); };
                return iter(function (value) {
                    value(push2);
                    return go;
                });
            };
        }
        /**
         * [number description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {[type]}
         */
        function indexed(iter) {
            return function (push) {
                var index = 0;
                return iter(function (value) { return push([index++, value]); });
            };
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function findIndex(iter, matches) {
            var found = false;
            var i = 0;
            iter(function (value) {
                if (matches(value)) {
                    found = true;
                    return false;
                }
                else {
                    ++i;
                    return true;
                }
            });
            return (found ? i : -1);
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function find(iter, matches) {
            var output;
            iter(function (value) {
                if (matches(value)) {
                    output = value;
                    return false;
                }
                else {
                    return true;
                }
            });
            return output;
        }
        /**
         * [A description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {[type]}
         */
        function findMap(iter, matches) {
            var output;
            iter(function (value) {
                var v = matches(value);
                if (v !== null) {
                    output = v;
                    return false;
                }
                else {
                    return true;
                }
            });
            return output;
        }
        /**
         * [iter description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Iterator<A>}
         */
        function contains(iter, matches) {
            var output = false;
            iter(function (value) {
                if (matches(value)) {
                    output = true;
                    return false;
                }
                else {
                    return true;
                }
            });
            return output;
        }
        /**
         * [A description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {[type]}
         */
        function foldl(iter, init, fn) {
            iter(function (value) {
                init = fn(init, value);
                return true;
            });
            return init;
        }
        /**
         * [min2 description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number |     null}        left [description]
         * @param  {number}    right [description]
         * @return {number}          [description]
         */
        function min2(left, right) {
            if (left == null || right < left) {
                return right;
            }
            else {
                return left;
            }
        }
        /**
         * [min description]
         *
         * @ignore Exclude from docs
         * @todo Verify that this works correctly
         * @todo Description
         * @param  {Iterator<number>} a [description]
         * @return {number}             [description]
         */
        function min(a) {
            return foldl(a, null, min2);
        }
        /**
         * [max2 description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number |     null}        left [description]
         * @param  {number}    right [description]
         * @return {number}          [description]
         */
        function max2(left, right) {
            if (left == null || right > left) {
                return right;
            }
            else {
                return left;
            }
        }
        /**
         * [max description]
         *
         * @ignore Exclude from docs
         * @todo Verify that this works correctly
         * @todo Description
         * @param  {Iterator<number>} a [description]
         * @return {number}             [description]
         */
        function max(a) {
            return foldl(a, null, max2);
        }
        /**
         * [join description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {Iterator<string>} iter [description]
         * @param  {string        =    ""}          separator [description]
         * @return {string}                [description]
         */
        function join(iter, separator) {
            if (separator === void 0) {
                separator = "";
            }
            var first = true;
            var init = "";
            iter(function (value) {
                if (first) {
                    first = false;
                }
                else {
                    init += separator;
                }
                init += value;
                return true;
            });
            return init;
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        var ListIterator = /** @class */ (function () {
            /**
             * Constructor
             *
             * @param {Iterable<T>} list [description]
             * @param {()       =>   T}           create [description]
             */
            function ListIterator(list, create) {
                // flag specifies if iterator should create new list item if it is reqested for a nextItem but there is no more left in the list
                this.createNewItems = false;
                this.list = list;
                this._create = create;
                this.reset();
            }
            ListIterator.prototype.reset = function () {
                this._listCopy = toArray(this.list.iterator());
            };
            ListIterator.prototype.clear = function () {
                this._listCopy.length = 0;
            };
            ListIterator.prototype.getFirst = function () {
                return this.returnItem(0);
            };
            ListIterator.prototype.getLast = function () {
                return this.returnItem(this._listCopy.length - 1);
            };
            ListIterator.prototype.find = function (fn) {
                var index = _Array__WEBPACK_IMPORTED_MODULE_0__["findIndex"](this._listCopy, fn);
                if (index !== -1) {
                    var item = this._listCopy[index];
                    // TODO use removeIndex instead ?
                    _Array__WEBPACK_IMPORTED_MODULE_0__["remove"](this._listCopy, item);
                    return item;
                }
                else {
                    return this.getLast();
                }
            };
            ListIterator.prototype.removeItem = function (item) {
                return _Array__WEBPACK_IMPORTED_MODULE_0__["remove"](this._listCopy, item);
            };
            ListIterator.prototype.returnItem = function (index) {
                if (index >= 0 && index < this._listCopy.length) {
                    var item = this._listCopy[index];
                    // TODO use removeIndex instead ?
                    _Array__WEBPACK_IMPORTED_MODULE_0__["remove"](this._listCopy, item);
                    return item;
                }
                else if (this.createNewItems) {
                    return this._create();
                }
            };
            ListIterator.prototype.iterator = function () {
                return fromArray(this._listCopy);
            };
            return ListIterator;
        }());
        //# sourceMappingURL=Iterator.js.map
        /***/ 
    }),
    /* 763 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "order", function () { return order; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function () { return repeat; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "random", function () { return random; });
        /**
         * ============================================================================
         * COMPARING FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Comparing function used for ordering.
         *
         * @ignore Exclude from docs
         * @todo Use localeCompare
         * @param  {string}    a  Item 1
         * @param  {string}    b  Item 2
         * @return {Ordering}     Result
         */
        function order(a, b) {
            if (a === b) {
                return 0;
            }
            else if (a < b) {
                return -1;
            }
            else {
                return 1;
            }
        }
        /**
         * ============================================================================
         * OTHER FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Repeats a `string` number of times as set in `amount`.
         *
         * @ignore Exclude from docs
         * @todo Make this faster
         * @param  {string}  string  Source string
         * @param  {number}  amount  Number of times to repeat string
         * @return {string}          New string
         */
        function repeat(string, amount) {
            return new Array(amount + 1).join(string);
        }
        /**
         * Generates a random string `characters` length.
         *
         * @param  {number}  chars  Number of characters
         * @return {string}         Random string
         */
        function random(chars) {
            var res = "";
            var choice = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
            for (var i = 0; i < chars; i++) {
                res += choice.charAt(Math.floor(Math.random() * choice.length));
            }
            return res;
        }
        //# sourceMappingURL=String.js.map
        /***/ 
    }),
    /* 764 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cache", function () { return Cache; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cache", function () { return cache; });
        /* harmony import */ var _Dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(760);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents object cache.
         *
         * @ignore Exclude from docs
         * @todo Better storage
         * @todo TTL logging
         * @todo Garbage collector
         */
        var Cache = /** @class */ (function () {
            function Cache() {
                /**
                 * Storage for cache items.
                 *
                 * @type {Object}
                 */
                this._storage = new _Dictionary__WEBPACK_IMPORTED_MODULE_0__["Dictionary"]();
                /**
                 * Default TTL in milliseconds.
                 *
                 * @type {number}
                 */
                this.ttl = 1000;
            }
            /**
             * Caches or updates cached value, resets TTL.
             *
             * If `ttl` is set to zero, item will never expire.
             *
             * @param {string}  owner  An id of the object that owns this cache
             * @param {string}  key    Index key
             * @param {A}       value  Value
             * @param {number}  ttl    TTL of the cache to live in milliseconds
             */
            Cache.prototype.set = function (owner, key, value, ttl) {
                // Create if storage does not exist for this owner
                var ownerStorage = this._storage.insertKeyIfEmpty(owner, function () { return new _Dictionary__WEBPACK_IMPORTED_MODULE_0__["Dictionary"](); });
                // Create cache item
                var item = {
                    "touched": new Date().getTime(),
                    "ttl": _Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](ttl) ? ttl : this.ttl,
                    "value": value
                };
                // Set
                ownerStorage.setKey(key, item);
            };
            /**
             * Rerturns cached item, respecting TTL.
             *
             * @param  {string}  owner  An id of the object that owns this cache
             * @param  {string}  key    Index key
             * @param  {string}  value  Value to return if cache not available
             * @return {A}              Value, or `undefined` if not set
             */
            Cache.prototype.get = function (owner, key, value) {
                if (value === void 0) {
                    value = undefined;
                }
                // 		 || ypeof this._storage[owner][key] === "undefined" || this._storage[owner][key].expired === true) {
                if (this._storage.hasKey(owner)) {
                    var ownerStorage = this._storage.getKey(owner);
                    if (ownerStorage.hasKey(key)) {
                        var cacheItem = ownerStorage.getKey(key);
                        if (cacheItem.ttl && ((cacheItem.touched + cacheItem.ttl) < new Date().getTime())) {
                            cacheItem.expired = true;
                        }
                        if (cacheItem.expired) {
                            ownerStorage.removeKey(key);
                            return value;
                        }
                        return cacheItem.value;
                    }
                    else {
                        return value;
                    }
                }
                else {
                    return value;
                }
            };
            /**
             * Clears cache for specific owner or everything.
             *
             * @param {string} owner Owner to clear cache for
             */
            Cache.prototype.clear = function (owner) {
                if (owner) {
                    this._storage.removeKey(owner);
                }
                else {
                    this._storage.clear();
                }
            };
            return Cache;
        }());
        /**
         * ============================================================================
         * GLOBAL INSTANCE
         * ============================================================================
         * @hidden
         */
        /**
         * A global instance of cache. Use this instance to cache any values.
         *
         * @ignore Exclude from docs
         */
        var cache = new Cache();
        //# sourceMappingURL=Cache.js.map
        /***/ 
    }),
    /* 765 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Container", function () { return Container; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _SpriteState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(767);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(760);
        /* harmony import */ var _elements_Rectangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(831);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(758);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(800);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(762);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(755);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(757);
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(750);
        /**
         * Container module
         * @todo Needs description
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Container can contain multiple sprites and arrange them in various layouts.
         *
         * @see {@link IContainerEvents} for a list of available events
         * @see {@link IContainerAdapters} for a list of available Adapters
         * @important
         */
        var Container = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Container, _super);
            /**
             * Constructor
             */
            function Container() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Container children. (sorted by layout)
                 *
                 * @ignore Exclude from docs
                 * @type {List<Sprite>}
                 */
                _this._childrenByLayout = [];
                /**
                 * Container's disposers for its child elements.
                 *
                 * @ignore Exclude from docs
                 * @type {Dictionary<string, IDisposer>}
                 */
                _this._childrenDisposers = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["Dictionary"]();
                /**
                 * Indicates if this container contains any focused elements, including
                 * itself.
                 *
                 * @type {boolean}
                 */
                _this.hasFocused = false;
                /**
                 * Specifies if, when state is applied on this container, the same state
                 * should be applied to container's children as well as `background`.
                 *
                 * @type {boolean}
                 */
                _this.setStateOnChildren = false;
                /**
                 * An array of references to elements the state should be set, when it is set
                 * on this element.
                 *
                 * @type {Sprite[]}
                 */
                _this.setStateOnSprites = [];
                /*
                 * @ignore
                 */
                _this.layoutInvalid = false;
                _this._absoluteWidth = 0;
                _this._absoluteHeight = 0;
                /**
                 * An array of child Sprites that should be ready before this object can
                 * fire a "ready" event.
                 */
                _this._shouldBeReady = [];
                _this.className = "Container";
                _this._element = _this.paper.addGroup("g");
                _this.group.add(_this.element);
                _this.setPropertyValue("pixelPerfect", false);
                _this.setPropertyValue("layout", "absolute");
                _this.setPropertyValue("fixedWidthGrid", false);
                _this.setPropertyValue("verticalCenter", "none");
                _this.setPropertyValue("horizontalCenter", "none");
                _this._positionPrecision = 4;
                _this._disposers.push(new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["DictionaryDisposer"](_this._childrenDisposers));
                _this.children.events.on("inserted", _this.handleChildAdded, _this);
                _this.children.events.on("removed", _this.handleChildRemoved, _this);
                _this.applyTheme();
                return _this;
            }
            /**
             * Handles adding of a new child into `children`. Adding new children might
             * affect the whole layout so it needs to be revalidated.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Sprite>["inserted"]} event Event object
             * @todo Throw an exception on adding a disposed object. Of course it's better NOT TO add disposed objects, so that what we should focus on.
             */
            Container.prototype.handleChildAdded = function (event) {
                this.processChild(event.newValue);
            };
            /**
             * @ignore
             */
            Container.prototype.processChild = function (child) {
                // try solves the problem when somedy adds child directly to children
                try {
                    this._childrenDisposers.insertKey(child.uid, new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                        // it's not enough to listen to POSITION_CHANGED only, as some extra redrawals will happen.
                        child.events.on("transformed", this.handleChildTransform, this),
                        child.events.on("zIndexChanged", this.sortAndAdd, this)
                    ]));
                }
                catch (err) {
                    // void
                }
                if (this.element) {
                    var group = this.element;
                    group.add(child.group);
                }
                child.parent = this;
                child.paper = this.paper;
                this.dispatchImmediately("childadded", { type: "childadded", newValue: child });
                this.invalidate();
            };
            /**
             * @ignore
             */
            Container.prototype.sortAndAdd = function () {
                this.sortChildren();
                this.addChildren();
            };
            /**
             * Handles child removal. Changing size of the child may change the
             * whole layout of the Container, hence layout needs to be invalidated.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Sprite>["removed"]} event Event object
             */
            Container.prototype.handleChildRemoved = function (event) {
                var child = event.oldValue;
                // TODO figure out why the key sometimes doesn't exist
                this._childrenDisposers.removeKey(child.uid);
                if (this.element) {
                    var group = this.element;
                    group.removeElement(child.group);
                }
                if (child.isMeasured) {
                    this.invalidateLayout();
                }
                this.dispatchImmediately("childremoved", { type: "childremoved", oldValue: child });
            };
            /**
             * Handles child transformation. Changing size of the child may change the
             * whole layout of the Container, hence layout needs to be invalidated.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["transformed"]} event Event object
             */
            Container.prototype.handleChildTransform = function (event) {
                var child = event.target;
                if (child.isMeasured) { // && this.layout != "none" && this.layout != "absolute") {
                    this.invalidateLayout();
                }
            };
            /**
             * Invalidates Container's layout, causing it to be re-evaluated again.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.invalidateLayout = function () {
                if (this.disabled || this.isTemplate || this.layout == "none" || this.__disabled) {
                    return;
                }
                if (!this.layoutInvalid) {
                    this.layoutInvalid = true;
                    _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].addToInvalidLayouts(this);
                    _System__WEBPACK_IMPORTED_MODULE_14__["system"].requestFrame();
                }
            };
            /**
             * Invalidates element.
             *
             * Object will be redrawn during the next update cycle.
             *
             * Please note that in most cases elements will auto-invalidate when needed. If
             * everything works, DO NOT use this method. Use it only if some changes do
             * not take otherwise.
             */
            Container.prototype.invalidate = function () {
                _super.prototype.invalidate.call(this);
                this.invalidateLayout();
            };
            /**
             * Invalidates the whole element, including layout AND all its child
             * elements.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.deepInvalidate = function () {
                _super.prototype.invalidate.call(this);
                //this.sortChildren();
                _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this._childrenByLayout, function (child) {
                    if (child instanceof Container) {
                        child.deepInvalidate();
                    }
                    else {
                        child.invalidate();
                    }
                });
                this.invalidateLayout();
            };
            Object.defineProperty(Container.prototype, "children", {
                /**
                 * Returns a list of the child [[Sprite]] elements contained in this
                 * Container.
                 *
                 * @return {List<Sprite>} List of child elements (Sprites)
                 */
                get: function () {
                    // @todo Review if we can add all children to disposers
                    if (!this._children) {
                        this._children = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        //this._disposers.push(new ListDisposer(this._children));
                    }
                    return this._children;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "minWidth", {
                /**
                 * @return {Optional<number>} Width (px)
                 */
                get: function () {
                    return this.getPropertyValue("minWidth");
                },
                /**
                 * Minimum width (px) for the Container. A container will not
                 * auto-shrink beyond this value, even if child elements are smaller.
                 *
                 * @param {Optional<number>}  value  Width (px)
                 */
                set: function (value) {
                    if (this.setPropertyValue("minWidth", value)) {
                        this.invalidateLayout();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "minHeight", {
                /**
                 * @return {Optional<number>} Height (px)
                 */
                get: function () {
                    return this.getPropertyValue("minHeight");
                },
                /**
                 * Minimum height (px) for the Container. A container will not
                 * auto-shrink beyond this value, even if child elements are smaller.
                 *
                 * @param {Optional<number>}  value  Height (px)
                 */
                set: function (value) {
                    if (this.setPropertyValue("minHeight", value)) {
                        this.invalidateLayout();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Overrides the original `removeElement` so that Container's actual element
             * is not removed. We do not need to remove element of a Container.
             *
             * We do this because remove element each time will fail the `getBBox`.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.removeElement = function () {
            };
            /**
             * Sorts Container's children: the ones with variable width and height are
             * put at the end of the list (depending on layout type), so that fixed-width
             * ones can be drawn first.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.sortChildren = function () {
                var _this = this;
                this._childrenByLayout = [];
                if (this.layout == "none" || this.layout == "absolute" || !this.layout) {
                    //$iter.each(this.children.iterator(), (child) => {
                    //	this._childrenByLayout.push(child);
                    //});
                    this._childrenByLayout = this.children.values;
                }
                else {
                    // Assemble fixed-size and relative lists
                    var fixed_1 = [];
                    var relative_1 = [];
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](this.children.iterator(), function (child) {
                        if (_this.layout == "horizontal" || _this.layout == "grid") {
                            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                                fixed_1.push(child);
                            }
                            else {
                                relative_1.push(child);
                            }
                        }
                        else if (_this.layout == "vertical") {
                            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                                fixed_1.push(child);
                            }
                            else {
                                relative_1.push(child);
                            }
                        }
                        else {
                            fixed_1.push(child);
                        }
                    });
                    // Concat everything into list
                    this._childrenByLayout = fixed_1.concat(relative_1);
                }
                this.calculateRelativeSize();
            };
            /**
             * Calculates relative sizes for all Container's children.
             *
             * @ignore Exclude from docs
             * @todo Make it protected?
             */
            Container.prototype.calculateRelativeSize = function () {
                var _this = this;
                var totalRelativeWidth = 0;
                var totalRelativeHeight = 0;
                _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this._childrenByLayout, function (child) {
                    // if child is not measured, we do not care about it at all.
                    if (child.isMeasured) {
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                            totalRelativeWidth += child.percentWidth;
                        }
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                            totalRelativeHeight += child.percentHeight;
                        }
                    }
                });
                _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this._childrenByLayout, function (child) {
                    if (child.isMeasured) {
                        if (_this.layout == "horizontal") {
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                                child.relativeWidth = child.percentWidth / totalRelativeWidth;
                            }
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                                child.relativeHeight = child.percentHeight / 100;
                            }
                        }
                        if (_this.layout == "vertical") {
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                                child.relativeHeight = child.percentHeight / totalRelativeHeight;
                            }
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                                child.relativeWidth = child.percentWidth / 100;
                            }
                        }
                        if (_this.layout == "grid") {
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                                child.relativeHeight = child.percentHeight / 100;
                            }
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                                child.relativeWidth = child.percentWidth / 100;
                            }
                        }
                    }
                    if (_this.layout == "absolute" || !child.isMeasured) {
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                            child.relativeWidth = child.percentWidth / 100;
                        }
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                            child.relativeHeight = child.percentHeight / 100;
                        }
                    }
                });
            };
            /**
             * Adds all children to Container's SVG element.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.addChildren = function () {
                /*
                  Need this check because a child might be assigned to parent even before element is created, for example a theme
                  access scrollbar.thumb
                */
                if (this.element) {
                    var zindexed = _utils_Array__WEBPACK_IMPORTED_MODULE_11__["copy"](this.children.values); // not children by layout!
                    var sortArray = zindexed.map(function (data, idx) {
                        return { idx: idx, data: data };
                    });
                    sortArray.sort(function (a, b) {
                        var ai = (a.data.zIndex || 0);
                        var bi = (b.data.zIndex || 0);
                        if (ai < bi)
                            return -1;
                        if (ai > bi)
                            return 1;
                        return a.idx - b.idx;
                    });
                    zindexed = sortArray.map(function (val) {
                        return val.data;
                    });
                    var group_1 = this.element;
                    // check, maybe the order is good already
                    var isCorrect = true;
                    if (group_1.node && group_1.node.childNodes) {
                        for (var i = 0, len = group_1.node.childNodes.length; i < len; i++) {
                            if (group_1.node.childNodes[i] != zindexed[i].group.node) {
                                isCorrect = false;
                                break;
                            }
                        }
                    }
                    if (!isCorrect) {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](zindexed, function (child) {
                            if (child.group) {
                                group_1.add(child.group);
                            }
                        });
                        if (this._background) {
                            this.group.addToBack(this._background.group);
                        }
                        this.invalidateLayout();
                    }
                }
            };
            /**
             * Creates a new element of specific type and assigns as a child to the
             * Container.
             *
             * @param  {T extends Sprite}  Class type for the new element
             * @return {T}                 New element
             */
            Container.prototype.createChild = function (classType) {
                var sprite = new classType();
                sprite.parent = this;
                return sprite;
            };
            /**
             * Removes all Container's children without actually destroying them.
             *
             * To destroy children use `disposeChildren()` instead.
             */
            Container.prototype.removeChildren = function () {
                // remove all children
                // TODO use iteration instead
                while (this.children.length > 0) {
                    var child = this.children.getIndex(0);
                    child.parent = undefined;
                    this.children.removeValue(child);
                }
            };
            /**
             * Removes and destroys all Container's children.
             *
             * To remove children from Container without destroying them, use
             * `removeChildren()`.
             */
            Container.prototype.disposeChildren = function () {
                // TODO use iteration instead
                while (this.children.length > 0) {
                    var child = this.children.getIndex(0);
                    child.dispose();
                    this.children.removeValue(child);
                }
            };
            Object.defineProperty(Container.prototype, "background", {
                /**
                 * @return {Sprite} Background element
                 */
                get: function () {
                    if (!this._background) {
                        this._background = this.createBackground();
                        this.processBackground();
                    }
                    return this._background;
                },
                /**
                 * An element to use as container background.
                 *
                 * @param {Sprite}  background  Background element
                 */
                set: function (background) {
                    if (this._background && this.background != background) {
                        this.removeDispose(this._background);
                    }
                    if (background) {
                        this._background = background;
                        this._disposers.push(background);
                        this.processBackground();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles the situation where parent element is resized.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.handleGlobalScale = function () {
                _super.prototype.handleGlobalScale.call(this);
                this.children.each(function (child) {
                    child.handleGlobalScale();
                });
            };
            /**
             * Creates and returns a [[Rectangle]] to use as a background for Container.
             *
             * @ignore Exclude from docs
             * @return {this} Background Rectangle element
             */
            Container.prototype.createBackground = function () {
                return new _elements_Rectangle__WEBPACK_IMPORTED_MODULE_6__["Rectangle"]();
            };
            /**
             * Decorates background element with required properties.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.processBackground = function () {
                var background = this._background;
                if (background) {
                    background.isMeasured = false;
                    this._background.fill = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_9__["InterfaceColorSet"]().getFor("background");
                    background.parent = this;
                    background.isMeasured = false;
                    this.children.removeValue(background);
                    this._disposers.push(background);
                    this.group.addToBack(this._background.group);
                }
            };
            /**
             * Measures the size of container and informs its children of how much size
             * they can occupy, by setting their relative `maxWidth` and `maxHeight`
             * properties.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.validateLayout = function () {
                var _this = this;
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].removeFromInvalidLayouts(this);
                this.layoutInvalid = false;
                // prevents from drawing if topparent is 0x0
                /*
                let topParent = this.topParent;
                if (topParent) {
                    if (!topParent.maxWidth || !topParent.maxHeight) {
                        this._disposers.push(topParent.events.once("maxsizechanged", this.invalidateLayout, this));
                    }
                }*/
                this._availableWidth = this.innerWidth;
                this._availableHeight = this.innerHeight;
                var measuredWidth = 0;
                var measuredHeight = 0;
                var allValid = true;
                if (this.children) {
                    this.sortChildren();
                    // we itterate through list of children, sorted by layout priority. sprites which width non-relative width/height will go first, so we will reduce available width before proceeding to sprites with relative width/height
                    _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this._childrenByLayout, function (child) {
                        var maxWidth;
                        var maxHeight;
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeWidth)) {
                            maxWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"](_this._availableWidth * child.relativeWidth, 2);
                            if (_this.layout == "horizontal") { // || this.layout == "absolute") {
                                maxWidth -= child.pixelMarginRight + child.pixelMarginLeft;
                            }
                        }
                        else {
                            if (_this.layout == "horizontal") {
                                if (child.invalid) {
                                    child.validate();
                                }
                            }
                        }
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeHeight)) {
                            maxHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"](_this._availableHeight * child.relativeHeight, 2);
                            if (_this.layout == "vertical") { //  || this.layout == "absolute") {
                                maxHeight -= child.pixelMarginTop + child.pixelMarginBottom;
                            }
                        }
                        else {
                            if (_this.layout == "vertical") {
                                if (child.invalid) {
                                    child.validate();
                                }
                            }
                        }
                        // if child is valid
                        if (child.invalid == false) {
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeWidth)) {
                                child.maxWidth = maxWidth;
                            }
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeHeight)) {
                                child.maxHeight = maxHeight;
                            }
                            if (child.isMeasured) {
                                // reduce available width if this is horizontal layout
                                if (_this.layout == "horizontal") {
                                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentWidth)) {
                                        if (child.measuredWidth > 0) {
                                            _this._availableWidth -= child.measuredWidth + child.pixelMarginLeft + child.pixelMarginRight;
                                        }
                                    }
                                }
                                // reduce available height if this is vertical layout
                                if (_this.layout == "vertical") {
                                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.percentHeight)) {
                                        if (child.measuredHeight > 0) {
                                            _this._availableHeight -= child.measuredHeight + child.pixelMarginTop + child.pixelMarginBottom;
                                        }
                                    }
                                }
                                var childMeasuredWidth = child.measuredWidth;
                                var childMeasuredHeight = child.measuredHeight;
                                if (child.align != "none") {
                                    childMeasuredWidth += child.pixelMarginLeft + child.pixelMarginRight;
                                }
                                if (child.valign != "none") {
                                    childMeasuredHeight += child.pixelMarginTop + child.pixelMarginBottom;
                                }
                                measuredWidth = Math.max(measuredWidth, childMeasuredWidth);
                                measuredHeight = Math.max(measuredHeight, childMeasuredHeight);
                            }
                        }
                        // if child is not valid
                        else {
                            // tell child what maximum width/ height it can occupy
                            if (child.isMeasured) {
                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeWidth)) {
                                    if (child.maxWidth != maxWidth) { // need to check this because of allValid
                                        child.maxWidth = maxWidth;
                                        allValid = false;
                                    }
                                }
                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](child.relativeHeight)) {
                                    if (child.maxHeight != maxHeight) { // need to check this because of allValid
                                        child.maxHeight = maxHeight;
                                        allValid = false;
                                    }
                                }
                            }
                        }
                    });
                }
                this._absoluteWidth = measuredWidth;
                this._absoluteHeight = measuredHeight;
                // arrange after measuring, only if all children are valid already
                if (allValid) {
                    this.arrange();
                }
            };
            /**
             * Arranges children according to layout specs and available space / child
             * sizes.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.arrange = function () {
                var _this = this;
                var children = this.children;
                /*
                   in this method we not only arrange children but also find out the size of the container
                   it might seem it would be easier to get container size using sprite's measure method,
                   however it would return only actual size of the bbox. However as each child meight have
                   margins set, we need to check each child - we do it here.
        
                   This method doesn't do anything with DOM, so it's not expensive
                */
                var measuredWidth = 0;
                var measuredHeight = 0;
                //let innerWidth: number = this.innerWidth; //$math.max(this.innerWidth, this._measuredWidth - paddingLeft - paddingRight);
                //let innerHeight: number = this.innerHeight; //$math.max(this.innerHeight, this._measuredHeight - paddingTop - paddingBottom);
                // above is wrong, as if a w/h is not specified, it is 0 and alignment doesn't work at all.
                var innerWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](this.innerWidth, this._absoluteWidth);
                var innerHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](this.innerHeight, this._absoluteHeight);
                var left; // = 0;
                var right; // = innerWidth;
                var top; // = 0;
                var bottom; // = innerHeight;
                var paddingLeft = this.pixelPaddingLeft;
                var paddingRight = this.pixelPaddingRight;
                var paddingTop = this.pixelPaddingTop;
                var paddingBottom = this.pixelPaddingBottom;
                var nextX = 0;
                var nextY = 0;
                var row = 0;
                var column = 0;
                var columnWidth = [];
                var rowHeight = [];
                var maxCellWidth;
                var minCellWidth;
                var columnCount;
                var maxWidth = this.maxWidth;
                var maxHeight = this.maxHeight;
                var minWidth = this.minWidth;
                var minHeight = this.minHeight;
                // GRID PRECALCULATIONS
                if (this.layout == "grid") {
                    minCellWidth = maxWidth;
                    maxCellWidth = 1;
                    for (var i = 0, len = children.length; i < len; i++) {
                        var child = children.getIndex(i);
                        if (child.isMeasured && !child.disabled && !child.__disabled) {
                            var childMeasuredWidth = child.measuredWidth;
                            if (childMeasuredWidth < minCellWidth) {
                                minCellWidth = childMeasuredWidth;
                            }
                            if (childMeasuredWidth > maxCellWidth) {
                                maxCellWidth = childMeasuredWidth;
                            }
                        }
                    }
                    minCellWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["fitToRange"](minCellWidth, 1, maxWidth);
                    maxCellWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["fitToRange"](maxCellWidth, 1, maxWidth);
                    if (this.fixedWidthGrid) {
                        columnCount = maxWidth / maxCellWidth;
                    }
                    else {
                        columnCount = maxWidth / minCellWidth; // predicted number of columns, yes it is usually much more than real number, but we fix that later
                    }
                    columnCount = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](1, Math.floor(columnCount));
                    columnCount = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["min"](this.maxColumns, columnCount);
                    columnWidth = this.getColumnWidth(columnCount, maxCellWidth);
                }
                var contentLeft;
                var contentRight;
                var contentTop;
                var contentBottom;
                // we itterate through array of children
                // TODO use iterator instead
                for (var i = 0, len = children.length; i < len; i++) {
                    var child = children.getIndex(i);
                    if (child.isMeasured && !child.disabled && !child.__disabled) {
                        var x = undefined; //child.pixelX; // must reset
                        var y = undefined; //child.pixelY; // must reset
                        var childMarginLeft = child.pixelMarginLeft;
                        var childMarginRight = child.pixelMarginRight;
                        var childMarginTop = child.pixelMarginTop;
                        var childMarginBottom = child.pixelMarginBottom;
                        var childWidth = child.measuredWidth;
                        var childHeight = child.measuredHeight;
                        var childLeft = void 0;
                        var childRight = void 0;
                        var childTop = void 0;
                        var childBottom = void 0;
                        switch (this.layout) {
                            case "none":
                                break;
                            // absolute layout
                            case "absolute":
                                // horizontal alignment
                                switch (child.align) {
                                    case "left":
                                        x = childMarginLeft - child.maxLeft;
                                        break;
                                    case "center":
                                        x = (innerWidth - childWidth) / 2 - child.maxLeft;
                                        break;
                                    case "right":
                                        x = innerWidth - childMarginRight - child.maxRight;
                                        break;
                                    default:
                                        if (!(child.x instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"])) {
                                            x = child.pixelX;
                                        }
                                        break;
                                }
                                // vertical alignment
                                switch (child.valign) {
                                    case "top":
                                        y = childMarginTop - child.maxTop;
                                        break;
                                    case "middle":
                                        y = (innerHeight - childHeight) / 2 - child.maxTop;
                                        break;
                                    case "bottom":
                                        y = innerHeight - childMarginBottom - child.maxBottom;
                                        break;
                                    default:
                                        if (!(child.y instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"])) {
                                            y = child.pixelY;
                                        }
                                        break;
                                }
                                break;
                            // vertical layout
                            case "vertical":
                                //if ($type.isNumber(child.relativeHeight)) {
                                //	childHeight = child.maxHeight;
                                //}
                                switch (child.align) {
                                    case "left":
                                        x = childMarginLeft - child.maxLeft;
                                        break;
                                    case "center":
                                        x = (innerWidth - childWidth) / 2 - child.maxLeft;
                                        break;
                                    case "right":
                                        x = innerWidth - childMarginRight - child.maxRight;
                                        break;
                                    default:
                                        x = child.pixelX;
                                        break;
                                }
                                y = nextY + childMarginTop - child.maxTop;
                                nextY = y + child.maxBottom + childMarginBottom;
                                break;
                            // horizontal layout
                            case "horizontal":
                                //if ($type.isNumber(child.relativeHeight)) {
                                //	childHeight = child.maxHeight;
                                //}
                                switch (child.valign) {
                                    case "top":
                                        y = childMarginTop - child.maxTop;
                                        break;
                                    case "middle":
                                        y = (innerHeight - childHeight) / 2 - child.maxTop;
                                        break;
                                    case "bottom":
                                        y = innerHeight - childMarginBottom - child.maxBottom;
                                        break;
                                    default:
                                        y = child.pixelY;
                                        break;
                                }
                                x = nextX + childMarginLeft - child.maxLeft;
                                nextX = x + child.maxRight + childMarginRight;
                                break;
                            case "grid":
                                x = nextX + childMarginLeft - child.maxLeft;
                                switch (child.valign) {
                                    case "top":
                                        y = nextY + childMarginTop - child.maxTop;
                                        break;
                                    case "middle":
                                        y = nextY + (innerHeight - childHeight) / 2 - child.maxTop;
                                        break;
                                    case "bottom":
                                        y = nextY + innerHeight - childMarginBottom - child.maxBottom;
                                        break;
                                    default:
                                        y = nextY - child.maxTop;
                                        break;
                                }
                                nextX += columnWidth[column];
                                rowHeight[row] = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](rowHeight[row], childHeight);
                                column++;
                                var nextColumnWidth = columnWidth[column];
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](nextColumnWidth)) {
                                    nextColumnWidth = maxCellWidth;
                                }
                                if (nextX > _utils_Math__WEBPACK_IMPORTED_MODULE_12__["min"](this.innerWidth, maxWidth) - nextColumnWidth + 1 && column < columnCount) {
                                    columnCount = column;
                                    nextX = 0;
                                    nextY = 0;
                                    row = 0;
                                    column = 0;
                                    columnWidth = this.getColumnWidth(columnCount, maxCellWidth);
                                    rowHeight = [];
                                    i = -1;
                                    continue;
                                }
                                if (column >= columnCount) {
                                    column = 0;
                                    nextY += rowHeight[row];
                                    row++;
                                    nextX = 0;
                                }
                                break;
                        }
                        if (this.layout !== "none") {
                            child.moveTo({ x: x, y: y }); // must use moveTo, otherwise x/y set in percent won't work
                            childLeft = x + child.maxLeft - childMarginLeft;
                            childRight = x + child.maxRight + childMarginRight;
                            childTop = y + child.maxTop - childMarginTop;
                            childBottom = y + child.maxBottom + childMarginBottom;
                            if (childRight > right || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](right)) {
                                right = childRight;
                            }
                            if (childLeft < left || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](left)) {
                                left = childLeft;
                            }
                            if (childTop < top || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](top)) {
                                top = childTop;
                            }
                            if (childBottom > bottom || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](bottom)) {
                                bottom = childBottom;
                            }
                            if (childRight > contentRight || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentRight)) {
                                contentRight = childRight;
                            }
                            if (childLeft < contentLeft || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentLeft)) {
                                contentLeft = childLeft;
                            }
                            if (childTop < contentTop || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentTop)) {
                                contentTop = childTop;
                            }
                            if (childBottom > contentBottom || !_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentBottom)) {
                                contentBottom = contentBottom;
                            }
                        }
                    }
                    else {
                        child.validatePosition();
                    }
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](left)) {
                    left = 0;
                    contentLeft = 0;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](right)) {
                    right = this._availableWidth;
                    contentRight = right;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](top)) {
                    top = 0;
                    contentTop = 0;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](bottom)) {
                    bottom = this._availableHeight;
                    contentBottom = bottom;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentTop)) {
                    contentTop = 0;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentBottom)) {
                    contentBottom = contentTop;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentLeft)) {
                    contentLeft = 0;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](contentRight)) {
                    contentRight = contentLeft;
                }
                measuredWidth = right - left;
                measuredHeight = bottom - top;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this.relativeWidth)) {
                    measuredWidth = maxWidth - this.pixelPaddingLeft - this.pixelPaddingRight;
                    left = 0;
                    right = measuredWidth;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this.relativeHeight)) {
                    measuredHeight = maxHeight - this.pixelPaddingTop - this.pixelPaddingBottom;
                    top = 0;
                    bottom = measuredHeight;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this._pixelWidth)) {
                    left = 0;
                    measuredWidth = this._pixelWidth;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](minWidth) && measuredWidth < minWidth) {
                    left = 0;
                    measuredWidth = this.minWidth;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this._pixelHeight)) {
                    top = 0;
                    measuredHeight = this._pixelHeight;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](minHeight) && measuredHeight < minHeight) {
                    top = 0;
                    measuredHeight = minHeight;
                }
                var measuredContentWidth = contentRight - contentLeft;
                var measuredContentHeight = contentBottom - contentTop;
                /// handle content alignment
                if (this.layout != "none") {
                    var dx_1;
                    var dy_1;
                    var mwa = measuredWidth;
                    var mha = measuredHeight;
                    if (mwa < measuredContentWidth) {
                        mwa = measuredContentWidth;
                    }
                    if (mha < measuredContentHeight) {
                        mha = measuredContentHeight;
                    }
                    if (this.contentAlign == "center") {
                        dx_1 = (mwa - measuredContentWidth) / 2;
                    }
                    if (this.contentAlign == "right") {
                        dx_1 = mwa - measuredContentWidth;
                    }
                    if (this.contentValign == "middle") {
                        dy_1 = (mha - measuredContentHeight) / 2;
                    }
                    if (this.contentValign == "bottom") {
                        dy_1 = mha - measuredContentHeight;
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](dx_1)) {
                        _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](children.iterator(), function (child) {
                            var childLeft = child.maxLeft;
                            var ddx = dx_1;
                            if (_this.layout == "horizontal") {
                                child.x = child.pixelX + ddx;
                            }
                            // individual grid elements can not be aligned vertically, that's why it's different from horizontal
                            if (_this.layout == "grid") {
                                child.x = child.pixelX + ddx;
                            }
                            if (_this.layout == "vertical") {
                                ddx += child.pixelMarginLeft;
                                if (child.align == "none") {
                                    child.x = ddx - childLeft;
                                }
                            }
                            if (_this.layout == "absolute") {
                                ddx += child.pixelMarginLeft;
                                if (child.align == "none") {
                                    child.x = ddx - childLeft;
                                }
                            }
                        });
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](dy_1)) {
                        _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](children.iterator(), function (child) {
                            var childTop = child.maxTop;
                            var ddy = dy_1;
                            if (_this.layout == "horizontal") {
                                ddy += child.pixelMarginTop;
                                if (child.valign == "none") {
                                    child.y = ddy - childTop;
                                }
                            }
                            // individual grid elements can not be aligned vertically, that's why it's different from horizontal
                            if (_this.layout == "grid") {
                                ddy += child.pixelMarginTop;
                                child.y = ddy - childTop;
                            }
                            if (_this.layout == "vertical") {
                                child.y = child.pixelY + ddy;
                            }
                            if (_this.layout == "absolute") {
                                ddy += child.pixelMarginTop;
                                if (child.valign == "none") {
                                    child.y = ddy - childTop;
                                }
                            }
                        });
                    }
                }
                var oldBBox = this.bbox;
                // this will mess up maxw/maxh set by container layout, we need a separate min/maxwidth for users
                // this prevents invalidating layout in such cases as scrolling category axis, when labels go outside bounds and results transformed event
                // todo: need to check if this doesn't cause other problems.
                //if (this.maxWidth > 0) {
                //measuredWidth = $math.min(measuredWidth, this.maxWidth);
                //measuredWidth = $math.max(measuredWidth, this.minWidth);
                //}
                //if (this.maxHeight > 0) {
                //measuredHeight = $math.min(measuredHeight, this.maxHeight);
                //measuredHeight = $math.max(measuredHeight, this.minHeight);
                //}
                measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](measuredWidth, minWidth);
                measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](measuredHeight, minHeight);
                this.contentWidth = measuredWidth;
                this.contentHeight = measuredHeight;
                // new
                measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["min"](measuredWidth, maxWidth);
                measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["min"](measuredHeight, maxHeight);
                this._bbox = { x: left, y: top, width: measuredWidth, height: measuredHeight };
                var prevLeft = this.maxLeft;
                var prevTop = this.maxTop;
                var prevBotttom = this.maxBottom;
                var prevRight = this.maxRight;
                this.measure();
                if (prevLeft != this.maxLeft || prevRight != this.maxRight || prevTop != this.maxTop || prevBotttom != this.maxBottom) {
                    if (this.events.isEnabled("transformed")) {
                        var event_1 = {
                            type: "transformed",
                            target: this
                        };
                        if (oldBBox) {
                            event_1.dummyData = oldBBox.width + " " + measuredWidth + "  " + oldBBox.height + " " + measuredHeight;
                        }
                        this.events.dispatchImmediately("transformed", event_1);
                    }
                }
            };
            /**
             * Positions element according its center settings.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            Container.prototype.updateCenter = function () {
                _super.prototype.updateCenter.call(this);
                this.updateBackground();
            };
            /**
             * Update the background to fit into specific dimensions.
             *
             * @ignore Exclude from docs
             * @todo Make it protected?
             */
            Container.prototype.updateBackground = function () {
                var background = this._background; // accessing protected, as getter creates instance if it doesn't exist
                if (background) {
                    background.x = this.maxLeft;
                    background.y = this.maxTop;
                    background.width = this.maxRight - this.maxLeft;
                    background.height = this.maxBottom - this.maxTop;
                }
            };
            /**
             * Returns widths of all columns in a horizontal Container layout.
             *
             * @ignore Exclude from docs
             * @param  {number}    columnCount   Number of columns
             * @param  {number}    maxCellWidth  Maximum width of one grid cell
             * @return {number[]}                An array of column widths
             */
            Container.prototype.getColumnWidth = function (columnCount, maxCellWidth) {
                var _this = this;
                var columnWidth = [];
                var column = 0;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](this.children.iterator(), function (child) {
                    if (child.isMeasured) {
                        if (_this.fixedWidthGrid) {
                            columnWidth[column] = maxCellWidth;
                        }
                        else {
                            columnWidth[column] = _utils_Math__WEBPACK_IMPORTED_MODULE_12__["max"](columnWidth[column], child.measuredWidth + child.pixelMarginRight + child.pixelMarginLeft);
                        }
                        column++;
                        if (column == columnCount) {
                            column = 0;
                        }
                    }
                });
                return columnWidth;
            };
            Object.defineProperty(Container.prototype, "layout", {
                /**
                 * @return {ContainerLayout} Layout
                 */
                get: function () {
                    return this.getPropertyValue("layout");
                },
                /**
                 * Container layout.
                 *
                 * Options: "absolute" (default), "vertical", "horizontal", "grid", "none". "none" is quite the same as "absolute" - the objects will
                 * be positioned at their x, y coordinates, the difference is that with "absolute" you can still use align/valign for children and with "none" you can not.
                 * Use "none" as much as you can as it's most cpu-saving layout.
                 *
                 * @default "absolute"
                 * @param {ContainerLayout} value Layout
                 */
                set: function (value) {
                    if (this.setPropertyValue("layout", value)) {
                        this.invalidateLayout();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "contentValign", {
                /**
                 * @return {VerticalAlign} Vertical alignment
                 */
                get: function () {
                    return this.getPropertyValue("contentValign");
                },
                /**
                 * Vertical alignment of the elements for the vertical Container.
                 *
                 * This is used when Container is larger than the height of all its children.
                 *
                 * @param {VerticalAlign} value vertical alignment
                 */
                set: function (value) {
                    this.setPropertyValue("contentValign", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "contentAlign", {
                /**
                 * @return {Align} Horizontal alignment
                 */
                get: function () {
                    return this.getPropertyValue("contentAlign");
                },
                /**
                 * Horizontal alignment of the elements for the horizontal Container.
                 *
                 * This is used when Container is larger than the height of all its children.
                 *
                 * @param {Align}  value  Horizontal alignment
                 */
                set: function (value) {
                    this.setPropertyValue("contentAlign", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "fixedWidthGrid", {
                /**
                 * @return {boolean} Should use fixed width grid?
                 */
                get: function () {
                    return this.getPropertyValue("fixedWidthGrid");
                },
                /**
                 * Controls if the grid of the Container should use fixed width. Fixed width
                 * grid will divide available space to all its columns/rows equally, without
                 * adapting to actual child sizes or size requirements.
                 *
                 * @default false
                 * @param {boolean}  value  Should use fixed width grid?
                 */
                set: function (value) {
                    this.setPropertyValue("fixedWidthGrid", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "maxColumns", {
                /**
                 * @return {Optional<number>} Should use fixed width grid?
                 */
                get: function () {
                    return this.getPropertyValue("maxColumns");
                },
                /**
                 * Maximum number of columns (when using grid layout).
                 *
                 * @param {Optional<number>}  value  Should use fixed width grid?
                 */
                set: function (value) {
                    this.setPropertyValue("maxColumns", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if point is within bounds of a container.
             *
             * @param  {IPoint}   point  A coordinate to check
             * @return {boolean}         `true` if it fits within container
             */
            Container.prototype.fitsToBounds = function (point) {
                var x = point.x;
                var y = point.y;
                var deviation = 0.5; // sometimes coordinates are rounded to numbers like .999 so we add deviation here
                if (x >= -deviation && x <= this.pixelWidth + deviation && y >= -deviation && y <= this.pixelHeight + deviation) {
                    return true;
                }
                else {
                    return false;
                }
            };
            /**
             * Copies all properties from different Container, including background
             * clone.
             *
             * @param {this}  source  Source Container to copy from
             */
            Container.prototype.copyFrom = function (source) {
                var _this = this;
                _super.prototype.copyFrom.call(this, source);
                this.layout = source.layout;
                this.setStateOnChildren = source.setStateOnChildren;
                if (source._background) {
                    this.background = source._background.clone();
                    this.background.copyFrom(source._background); // won't work without this
                }
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](source.children.iterator(), function (child) {
                    if (child.shouldClone) {
                        var clonedChild = child.clone();
                        clonedChild.parent = _this;
                    }
                });
            };
            Object.defineProperty(Container.prototype, "preloader", {
                /**
                 * @return {Optional<Preloader>} Preloader instance
                 */
                get: function () {
                    var preloader = this._preloader;
                    if (preloader) {
                        return preloader;
                    }
                    else if (this.parent) {
                        return this.parent.preloader;
                    }
                },
                /**
                 * A [[Preloader]] instance to be used when Container is busy.
                 *
                 * @param {Optional<Preloader>}  preloader  Preloader instance
                 */
                set: function (preloader) {
                    if (this._preloader) {
                        this.removeDispose(this._preloader);
                    }
                    this._preloader = preloader;
                    if (preloader) {
                        preloader.parent = this.tooltipContainer;
                        this._disposers.push(preloader);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets [[Paper]] instance to use to draw elements.
             * @ignore
             * @param {Paper} paper Paper
             * @return {boolean} true if paper was changed, false, if it's the same
             */
            Container.prototype.setPaper = function (paper) {
                var _this = this;
                var changed = _super.prototype.setPaper.call(this, paper);
                if (changed) {
                    if (this._background) {
                        this._background.paper = paper;
                        this._background.topParent = this.topParent;
                    }
                    this.children.each(function (child) {
                        child.setPaper(paper);
                        child.topParent = _this.topParent;
                    });
                }
                return changed;
            };
            /**
             * Removes Container from the system-wide list of invalid Containers.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.removeFromInvalids = function () {
                _super.prototype.removeFromInvalids.call(this);
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].removeFromInvalidLayouts(this);
            };
            /**
             * Sets a [[DataItem]] to be used as data for the Container.
             *
             * @todo Description
             * @param {DataItem} dataItem DataItem
             */
            Container.prototype.setDataItem = function (dataItem) {
                // this place is potentially dangerous, as if we set datItem for some dummy container, all children dataItems will be overriden
                // the main reason for doing this is that we need a setDataItem code to be called for each sprite, otherwise property fields won't be
                // applied. Also, getting dataItem from parent all the time is more expensive than saving value.
                if (this._dataItem != dataItem) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](this.children.iterator(), function (child) {
                        child.dataItem = dataItem;
                    });
                }
                _super.prototype.setDataItem.call(this, dataItem);
            };
            /**
             * Measures the element.
             *
             * @ignore Exclude from docs
             */
            Container.prototype.measureElement = function () {
                if (this.disabled || this.isTemplate || this.layout == "none" || this.__disabled) {
                    // void
                }
                else {
                    this.validateLayout();
                }
            };
            /**
             * Returns Tooltip X coordinate if it's set, or middle of the element.
             *
             * @ignore Exclude from docs
             * @return {number} X (px)
             */
            Container.prototype.getTooltipX = function () {
                return _super.prototype.getTooltipX.call(this);
            };
            /**
             * Returns Tooltip Y coordinate if it's set, or middle of the element.
             *
             * @ignore Exclude from docs
             * @return {number} Y (px)
             */
            Container.prototype.getTooltipY = function () {
                return _super.prototype.getTooltipY.call(this);
            };
            Object.defineProperty(Container.prototype, "fontFamily", {
                /**
                 * @return {any} Font family
                 */
                get: function () {
                    return this.getPropertyValue("fontFamily");
                },
                /**
                 * Font family to be used for the text.
                 *
                 * Parts of the text may override this setting using in-line formatting.
                 *
                 * @param {string} value Font family value
                 */
                set: function (value) {
                    if (this.setPropertyValue("fontFamily", value, true)) {
                        this.setSVGAttribute({ "font-family": value });
                        this.invalidateLabels();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "fontSize", {
                /**
                 * @return {any} Font size
                 */
                get: function () {
                    return this.getPropertyValue("fontSize");
                },
                /**
                 * Font size to be used for the text. The size can either be numeric, in
                 * pixels, or other measurements.
                 *
                 * Parts of the text may override this setting using in-line formatting.
                 *
                 * @param {any} value Font size value
                 */
                set: function (value) {
                    if (this.setPropertyValue("fontSize", value, true)) {
                        this.setSVGAttribute({ "font-size": value });
                        this.invalidateLabels();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * When fontSize of fontFamily changes we need to hard-invalidate all Labels of this container to position them properly.
             */
            Container.prototype.invalidateLabels = function () {
                this.children.each(function (child) {
                    // can't import Label because of Circular dependencies
                    if (child["hardInvalidate"]) {
                        child["hardInvalidate"]();
                    }
                    else if (child instanceof Container) {
                        child.invalidateLabels();
                    }
                });
            };
            Object.defineProperty(Container.prototype, "fontWeight", {
                /**
                 * @return {FontWeight} Font weight
                 */
                get: function () {
                    return this.getPropertyValue("fontWeight");
                },
                /**
                 * Font weight to use for text.
                 *
                 * Parts of the text may override this setting using in-line formatting.
                 *
                 * @param {FontWeight} value Font weight
                 */
                set: function (value) {
                    this.setPropertyValue("fontWeight", value);
                    this.setSVGAttribute({ "font-weight": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Container.prototype, "textDecoration", {
                /**
                 * @return {TextDecoration} Decoration
                 */
                get: function () {
                    return this.getPropertyValue("textDecoration");
                },
                /**
                 * A text decoration to use for text.
                 *
                 * Parts of the text may override this setting using in-line formatting.
                 *
                 * @param {TextDecoration}  value  Decoration
                 */
                set: function (value) {
                    this.setPropertyValue("textDecoration", value);
                    this.setSVGAttribute({ "text-decoration": value });
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Disposes (destroys) the element and all its children.
             */
            Container.prototype.dispose = function () {
                if (this._background) {
                    this._background.dispose();
                }
                this._shouldBeReady = [];
                this.disposeChildren();
                _super.prototype.dispose.call(this);
            };
            /**
             * Applies a [[SpriteState]] on this element.
             *
             * The first parameter can either be a name of the state or a [[SpriteState]]
             * instance.
             *
             * When run, this method will apply SVG properties defined in a
             * [[SpriteState]], but only those that are relevant to this particular
             * element, that is are listed in its respective `properties` array.
             *
             * @see {@link SpriteState}
             * @param {string | SpriteState} value               A state - name key or instance
             * @param {number}               transitionDuration  Duration of the transition between current and new state
             * @param {number) => number}    easing              An easing function
             */
            Container.prototype.setState = function (value, transitionDuration, easing) {
                var stateName = value;
                if (value instanceof _SpriteState__WEBPACK_IMPORTED_MODULE_2__["SpriteState"]) {
                    stateName = value.name;
                }
                if (this.setStateOnChildren) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](this.children.iterator(), function (child) {
                        child.setState(stateName, transitionDuration, easing);
                        // not good to set it in child setState
                        if (stateName != "active") {
                            child.isActive = false;
                        }
                    });
                }
                if (this._background) {
                    this._background.setState(stateName);
                }
                if (this.setStateOnSprites.length) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this.setStateOnSprites, function (item) {
                        item.setState(stateName, transitionDuration, easing);
                    });
                }
                return _super.prototype.setState.call(this, value, transitionDuration, easing);
            };
            // otherwise isActive won't work properly with background
            Container.prototype.setActive = function (value) {
                _super.prototype.setActive.call(this, value);
                if (this._background) {
                    this._background.isActive = value;
                }
            };
            /**
             * Dispatches ready event. Dispatches when all children are ready.
             */
            Container.prototype.dispatchReady = function () {
                if (!this.isReady()) {
                    var allReady_1 = true;
                    this.children.each(function (sprite) {
                        if (!sprite.__disabled && !sprite.disabled && !sprite.isReady()) {
                            allReady_1 = false;
                        }
                    });
                    _utils_Array__WEBPACK_IMPORTED_MODULE_11__["each"](this._shouldBeReady, function (sprite) {
                        if (!sprite.__disabled && !sprite.disabled && !sprite.isReady()) {
                            allReady_1 = false;
                        }
                    });
                    if (allReady_1) {
                        _super.prototype.dispatchReady.call(this);
                    }
                    else {
                        _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].events.once("exitframe", this.dispatchReady, this, false);
                        _System__WEBPACK_IMPORTED_MODULE_14__["system"].requestFrame();
                    }
                }
            };
            return Container;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        //# sourceMappingURL=Container.js.map
        /***/ 
    }),
    /* 766 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visualProperties", function () { return visualProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sprite", function () { return Sprite; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _SpriteState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(767);
        /* harmony import */ var _SpriteEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(798);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpriteEventDispatcher", function () { return _SpriteEvents__WEBPACK_IMPORTED_MODULE_2__["SpriteEventDispatcher"]; });
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(768);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(770);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(760);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(769);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(754);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(785);
        /* harmony import */ var _rendering_Paper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(777);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(765);
        /* harmony import */ var _rendering_fills_Pattern__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(799);
        /* harmony import */ var _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(801);
        /* harmony import */ var _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(802);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(774);
        /* harmony import */ var _interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(784);
        /* harmony import */ var _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(803);
        /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(804);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(751);
        /* harmony import */ var _formatters_NumberFormatter__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(805);
        /* harmony import */ var _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(809);
        /* harmony import */ var _formatters_DurationFormatter__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(810);
        /* harmony import */ var _formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(808);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(806);
        /* harmony import */ var _export_Export__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(811);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(795);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(756);
        /* harmony import */ var _utils_Strings__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(796);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(755);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(757);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(762);
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(750);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(758);
        /**
         * This is the main class that encapsulates every object on the chart.
         *
         * If it's an element that is to be displayed on the screen at some point, its
         * class must extend [[Sprite]] class.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines list ofvisual properties
         */
        var visualProperties = ["fill", "fillOpacity", "stroke", "strokeOpacity", "strokeWidth", "strokeDasharray"]; // do not add opacity here, as it is used for showing/hiding
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Sprite represents any displayable element.
         *
         * This is the main class that encapsulates every object on the chart.
         *
         * If it's an element that is to be displayed on the screen at some point, its
         * class must extend [[Sprite]] class.
         *
         * [[Sprite]] class represents the a hierarchical structure. Every object that
         * extends [[Sprite]] can have children, that would inherit their properties,
         * such as language, formatters, etc.
         *
         * @see {@link SpriteState}
         * @see {@link ISpriteEvents} for a list of available events
         * @see {@link ISpriteAdapters} for a list of available Adapters
         *
         * @todo Review child elements that need to go into `_disposers`
         * @important
         */
        var Sprite = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Sprite, _super);
            /**
             * Constructor:
             * * Creates initial node
             * * Sets default properties
             * * Creates required default states
             * * Inits accessibility
             */
            function Sprite() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Holds values for Sprite's properties.
                 */
                _this.properties = {};
                /**
                 * Event dispacther.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/event-listeners/} for more info about Events
                 * @type {SpriteEventDispatcher<AMEvent<Sprite, ISpriteEvents>>} Event dispatcher instance
                 */
                _this.events = new _SpriteEvents__WEBPACK_IMPORTED_MODULE_2__["SpriteEventDispatcher"](_this);
                /**
                 * Holds Adapter.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/adapters/} for more info about Adapters
                 * @type {Adapter<Sprite, ISpriteAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_4__["Adapter"](_this);
                /**
                 * @ignore Exclude from docs
                 * @todo Description
                 */
                _this._bindings = {};
                /**
                 * Holds indicator if this Sprite is a "template" to be used for creating
                 * other Sprites from and should not be treated as full-fledged element.
                 *
                 * @ignore Exclude from docs
                 * @type {Optional<boolean>}
                 */
                _this._isTemplate = false;
                /**
                 * Holds indicator whether this sprite was already initialized.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._inited = false;
                /**
                 * Holds indicator whether this sprite was already initialized and ready.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._ready = false;
                /**
                 * If `sprite.hide()` is called and we have "hidden" state and
                 * `transitionDuration > 0`, we set `isHiding` flag to `true` in order to
                 * avoid restarting animations in case `hide()` method is called multiple
                 * times.
                 *
                 * @type {boolean}
                 */
                _this.isHiding = false;
                /**
                 * If `sprite.hide()` is called, we set isHidden to true when sprite is hidden.
                 * This was added becaus hidden state might have visibility set to true and so
                 * there would not be possible to find out if a sprite is technically hidden or not.
                 *
                 * @type {boolean}
                 */
                _this._isHidden = false;
                /**
                 * This property indicates if Sprite is currently being revealed from hidden
                 * state. This is used to prevent multiple calls to `sprite.show()` to
                 * restart reveal animation. (if enabled)
                 *
                 * @type {boolean}
                 */
                _this.isShowing = false;
                /**
                 * Indicates if this element is a standalone instance. A "standalone
                 * instance" means this is a autonomous object which maintains its own
                 * set of controls like Preloader, Export, etc.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this.isStandaloneInstance = false;
                /**
                 * Indicates if togglable Sprite is currently active (toggled on).
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._isActive = false;
                /**
                 * A Sprite element to use as a mask for this Sprite.
                 *
                 * @ignore Exclude from docs
                 * @type {MutableValueDisposer}
                 */
                _this._mask = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MutableValueDisposer"]();
                /**
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {number}
                 */
                _this._positionPrecision = 3;
                /**
                 * An instance of [[Language]].
                 *
                 * @ignore Exclude from docs
                 * @type {Language}
                 */
                _this._language = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MutableValueDisposer"]();
                /**
                 * Indicates if the chart should follow righ-to-left rules.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._rtl = false;
                /**
                 * Holds [[Export]] object.
                 *
                 * @ignore Exclude from docs
                 * @type {Export}
                 */
                _this._exporting = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MutableValueDisposer"]();
                /**
                 * Defines bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                _this._bbox = { x: 0, y: 0, width: 0, height: 0 };
                /**
                 * Indicates if this element is invalid and should be re-validated (redrawn).
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this.invalid = false;
                /**
                 * Indicates if this elements position is invalid and should be repositioned
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this.positionInvalid = false;
                /**
                 * A collection of key/value pairs that can be used to bind specific Sprite
                 * properties to [[DataItem]].
                 *
                 * For example: `fill` property can be bound to `myCustomColor` field in
                 * DataItem. The Sprite will automatically get the value for `fill` from its
                 * DataItem.
                 *
                 * Can be set for each [[SpriteState]] individually to override default
                 * bindings.
                 *
                 * @see {@link SpriteState}
                 * @type {Object}
                 */
                _this.propertyFields = {};
                /**
                 * Specifies if property changes on this object should be propagated to the
                 * objects cloned from this object.
                 *
                 * This setting affects property changes *after* cloning, since at the moment
                 * of cloning all of properties from source object are copied to the clone
                 * anyway.
                 *
                 * @default false
                 */
                _this.applyOnClones = false;
                // read only, sprite extreme coordinates
                /**
                 * @ignore
                 */
                _this.maxLeft = 0;
                /**
                 * @ignore
                 */
                _this.maxRight = 0;
                /**
                 * @ignore
                 */
                _this.maxTop = 0;
                /**
                 * @ignore
                 */
                _this.maxBottom = 0;
                _this._isDragged = false;
                /**
                 * @deprecated Moved to [[SpriteProperties]]
                 * @type {boolean}
                 */
                _this._disabled = false;
                _this._internalDisabled = false;
                _this._updateDisabled = false;
                _this._internalDefaultsApplied = false;
                /**
                 * Time in milliseconds after which rollout event happens when user rolls-out of the sprite. This helps to avoid flickering in some cases.
                 * @type {number}
                 */
                _this.rollOutDelay = 0;
                /**
                 * @ignore
                 * this flag is set to true for the initial sprite you create and place to the div so that we could clear all additional sprites/containers when this sprite is disposed
                 */
                _this.isBaseSprite = false;
                /**
                 * Indicates whether this sprite should be cloned when cloning its parent
                 * container. We set this to `false` in those cases when a sprite is created
                 * by the class, so that when cloning a duplicate sprite would not appear.
                 *
                 * @type {boolean}
                 */
                _this.shouldClone = true;
                /**
                 * A read-only flag which indicates if a sprite has completed its initial
                 * animation (if `showOnInit = true`).
                 *
                 * In case `showOnInit = false`, `appeared` is set to `true` on init.
                 *
                 * @readonly
                 * @type {boolean}
                 */
                _this.appeared = false;
                _this.ex = 0;
                _this.ey = 0;
                _this.className = "Sprite";
                // Generate a unique ID
                _this.uid;
                // Create SVG group to hold everything in
                _this.group = _this.paper.addGroup("g");
                // Set defaults
                // it is better to set defauls like this in order to save invaliation calls and events
                _this.setPropertyValue("scale", 1);
                _this.setPropertyValue("rotation", 0);
                _this.setPropertyValue("align", "none");
                _this.setPropertyValue("valign", "none");
                _this.setPropertyValue("pixelPerfect", false);
                _this.setPropertyValue("visible", true);
                _this.setPropertyValue("tooltipPosition", "fixed");
                _this.setPropertyValue("verticalCenter", "none");
                _this.setPropertyValue("horizontalCenter", "none");
                _this.setPropertyValue("marginTop", 0);
                _this.setPropertyValue("marginBottom", 0);
                _this.setPropertyValue("marginLeft", 0);
                _this.setPropertyValue("marginRight", 0);
                _this.setPropertyValue("dx", 0);
                _this.setPropertyValue("dy", 0);
                _this.setPropertyValue("paddingTop", 0);
                _this.setPropertyValue("paddingBottom", 0);
                _this.setPropertyValue("paddingRight", 0);
                _this.setPropertyValue("paddingLeft", 0);
                _this.setPropertyValue("togglable", false);
                _this.setPropertyValue("hidden", false);
                _this.setPropertyValue("urlTarget", "_self");
                _this._prevMeasuredWidth = 0;
                _this._prevMeasuredHeight = 0;
                _this._measuredWidth = 0;
                _this._measuredHeight = 0;
                _this._isMeasured = true;
                // Invalidate the Sprite so that renderer knows it needs to be drawn
                _this.invalidate();
                //this.states.create("default").properties.opacity = 1;
                // Apply the theme
                _this.applyTheme();
                //this._disposers.push(this._clickable);
                // Decorate adapter with events so that we can apply its settings whenever
                // it is modified
                // @todo Think what to do here. We can't just apply the adapter value to
                // property since not all of those are for properties. Commented out for
                // now.
                /*this.adapter.events.on("inserted", (ev: any) => {
                    (<any>this)[ev.newValue.key] = (<any>this)[ev.newValue.key];
                });
                this.adapter.events.on("removed", (ev: any) => {
                    (<any>this)[ev.newValue.key] = (<any>this)[ev.newValue.key];
                });*/
                // Add disposable dependencies to `_disposers` so they are automatically
                // disposed of when this object is disposed
                _this._disposers.push(_this.events);
                _this._disposers.push(_this.group);
                _this._disposers.push(_this._mask);
                _this._disposers.push(_this._language);
                _this._disposers.push(_this._exporting);
                //this._disposers.push(this._parent);
                //this._disposers.push(this._modal);
                _this._disposers.push(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["Disposer"](function () {
                    _utils_Object__WEBPACK_IMPORTED_MODULE_29__["each"](_this._bindings, function (key, value) {
                        value.dispose();
                    });
                }));
                _this.setPropertyValue("interactionsEnabled", true);
                return _this;
            }
            /**
             * ==========================================================================
             * ELEMENT VALIDATION, INIT, AND DRAWING STUFF
             * ==========================================================================
             * @hidden
             */
            /**
             * Applies properties from all assigned themes.
             *
             * We do this here so that we can apply class names as well.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.applyTheme = function () {
                _super.prototype.applyTheme.call(this);
                if (_Options__WEBPACK_IMPORTED_MODULE_17__["options"].autoSetClassName) {
                    this.setClassName();
                }
            };
            /**
             * Returns theme(s) used by this object either set explicitly on this
             * element, inherited from parent, or inherited from [[System]].
             *
             * @return {ITheme} An array of theme references
             */
            Sprite.prototype.getCurrentThemes = function () {
                var themes = this._themes;
                if (themes) {
                    return themes;
                }
                else {
                    var parent_1 = this.parent;
                    if (parent_1) {
                        return parent_1.getCurrentThemes();
                    }
                    else {
                        return _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].themes;
                    }
                }
            };
            /**
             * Called just before element's validation, this function allows setting
             * defaults.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.applyInternalDefaults = function () {
                // Nothing here, but extending classes might override this function
                // so that they can set their defaults
                this._internalDefaultsApplied = true;
            };
            /**
             * Invalidates element.
             *
             * Object will be redrawn during the next update cycle.
             *
             * Please note that in most cases elements will auto-invalidate when needed. If
             * everything works, DO NOT use this method. Use it only if some changes do
             * not take otherwise.
             */
            Sprite.prototype.invalidate = function () {
                if (this.disabled || this._isTemplate) {
                    return;
                }
                // We no longer reset this on each invalidate, so that they are applied
                // only once, and do not overwrite user-defined settings
                //this._internalDefaultsApplied = false;
                if (!this.invalid) {
                    this.invalid = true;
                    _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].addToInvalidSprites(this);
                    _System__WEBPACK_IMPORTED_MODULE_32__["system"].requestFrame();
                }
            };
            /**
             * Validates element:
             * * Triggers events
             * * Redraws the element
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.validate = function () {
                this.dispatchImmediately("beforevalidated");
                // prevents from drawing if topparent is 0x0
                /*
                let topParent = this.topParent;
        
                if (topParent) {
                    if (!topParent.maxWidth || !topParent.maxHeight) {
                        this._disposers.push(topParent.events.once("maxsizechanged", this.invalidate, this));
                    }
                }*/
                // Set internal defaults
                if (!this._internalDefaultsApplied) {
                    this.applyInternalDefaults();
                }
                this.beforeDraw();
                this.draw();
                this.invalid = false;
                _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].removeFromInvalidSprites(this);
                this.afterDraw();
            };
            /**
             * Invalidates element's position.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.invalidatePosition = function () {
                if (this.disabled || this._isTemplate) {
                    return;
                }
                if (!this.positionInvalid) {
                    this.positionInvalid = true;
                    _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].addToInvalidPositions(this);
                    _System__WEBPACK_IMPORTED_MODULE_32__["system"].requestFrame();
                }
            };
            /**
             * Transforms the element.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            Sprite.prototype.validatePosition = function () {
                var pixelX = this.pixelX;
                var pixelY = this.pixelY;
                var dx = this.dx;
                var dy = this.dy;
                var x = pixelX + dx;
                var y = pixelY + dy;
                if (this._updateDisabled) {
                    if (this._internalDisabled) {
                        this.group.attr({ "display": "none" });
                    }
                    else {
                        if (!this.disabled) {
                            this.removeSVGAttribute("display");
                        }
                    }
                    this._updateDisabled = false;
                }
                var sizeChanged = this.measure();
                //if (!this.invalid) {
                var prevGroupTransform = this.group.transformString;
                this.group.moveTo({ x: x, y: y });
                this.group.rotation = this.rotation;
                if (this.nonScaling) {
                    this.group.scale = this.scale / this.globalScale;
                }
                else {
                    this.group.scale = this.scale;
                }
                if (prevGroupTransform != this.group.transformString || sizeChanged) {
                    // not yet sure, this is to avoid many transforms=>container layout invalidation on initial buid
                    if (prevGroupTransform == null) {
                        this.dispatch("transformed");
                    }
                    else {
                        this.dispatchImmediately("transformed");
                    }
                    // TODO clear existing positionchanged dispatches ?
                    this.dispatch("positionchanged");
                }
                //}
                // it might happen that x and y changed again, so we only remove if they didn't
                if (pixelX + dx == x && pixelY + dy == y) {
                    _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].removeFromInvalidPositions(this);
                    this.positionInvalid = false;
                }
                var maskRectangle = this._maskRectangle;
                // todo: verify this
                if (maskRectangle) {
                    this._clipElement.moveTo({ x: maskRectangle.x - pixelX, y: maskRectangle.y - pixelY });
                }
            };
            /**
             * A placeholder method that is called **before** element begins to be drawn.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.beforeDraw = function () {
            };
            /**
             * A placeholder method that draws the element.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.draw = function () {
            };
            /**
             * A placeholder method that is called **after** element finishes drawing
             * itself.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.afterDraw = function () {
                if (this.isMeasured || this.horizontalCenter !== "none" || this.verticalCenter !== "none") {
                    this.measureElement();
                }
                //this.applyMask();
                if (!this._inited) {
                    try {
                        // used to be applySVGAttrbutes here, this is more efficient
                        for (var _a = tslib__WEBPACK_IMPORTED_MODULE_0__["__values"](this.adapter.keys()), _b = _a.next(); !_b.done; _b = _a.next()) {
                            var key = _b.value;
                            switch (key) {
                                case "mask":
                                case "fill":
                                case "opacity":
                                case "fillOpacity":
                                case "stroke":
                                case "strokeOpacity":
                                case "shapeRendering":
                                case "strokeDasharray":
                                    //case "focusable":
                                    //case "tabindex":
                                    //case "role":
                                    this[key] = this[key];
                                    break;
                            }
                        }
                    }
                    catch (e_1_1) {
                        e_1 = { error: e_1_1 };
                    }
                    finally {
                        try {
                            if (_b && !_b.done && (_c = _a.return))
                                _c.call(_a);
                        }
                        finally {
                            if (e_1)
                                throw e_1.error;
                        }
                    }
                    this.applyFilters();
                    this.visible = this.visible;
                    this.interactionsEnabled = this.getPropertyValue("interactionsEnabled"); // can't use .interactionsEnabled as it get's parent's
                    this._inited = true;
                    this.applyMask();
                    this.dispatch("validated");
                    this.dispatch("inited");
                    this.dispatchReady();
                }
                else {
                    this.dispatch("validated");
                }
                var e_1, _c;
            };
            /**
             * Dispatches `"ready"` event. Sprite dispatches it right after `"inited"` event.
             *
             * @ignore
             */
            Sprite.prototype.dispatchReady = function () {
                if (!this.isReady()) {
                    this._ready = true;
                    this.dispatch("ready");
                }
            };
            /**
             * Triggers a re-initialization of this element.
             *
             * Will result in complete redrawing of the element.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.reinit = function () {
                this._inited = false;
                this.setState(this.defaultState);
                this.invalidate();
            };
            /**
             * Handles the situation where parent element is resized.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.handleGlobalScale = function () {
                this.dispatch("globalscalechanged");
                if (this.nonScalingStroke) {
                    this.strokeWidth = this.strokeWidth;
                }
                if (this.nonScaling) {
                    this.invalidatePosition();
                }
                this.updateFilterScale();
            };
            /**
             * Updates filter properties which might depend on scale
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.updateFilterScale = function () {
                var _this = this;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["each"](this.filters.iterator(), function (filter) {
                    filter.scale = _this.globalScale;
                });
            };
            /**
             * Removes itself from system's invalid lists.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.removeFromInvalids = function () {
                _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].removeFromInvalidSprites(this);
                _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].removeFromInvalidPositions(this);
            };
            /**
             * Copies all parameters from another [[Sprite]].
             *
             * @param {Sprite} source Source Sprite
             */
            Sprite.prototype.copyFrom = function (source) {
                var _this = this;
                _super.prototype.copyFrom.call(this, source);
                this.events.copyFrom(source.events);
                this.isMeasured = source.isMeasured;
                this.states.copyFrom(source.states);
                if (source.filters.length > 0) {
                    source.filters.each(function (filter) {
                        _this.filters.push(filter.clone());
                    });
                }
                this.adapter.copyFrom(source.adapter);
                //helps to avoid calling getter which creates instance
                if (source["_interaction"]) {
                    this.interactions.copyFrom(source.interactions);
                }
                this.configField = source.configField;
                this.applyOnClones = source.applyOnClones;
                // this.numberFormatter = source.numberFormatter; // todo: this creates loose number formatter and copies it to all clones. somehow we need to know if source had numberFormatter explicitly created and not just because a getter was called.
                //this.mask = source.mask; need to think about this, generally this causes a lot of problems
                this.disabled = source.disabled;
                this.virtualParent = source.virtualParent;
                this.exportable = source.exportable;
                //@todo: create tooltip if it's on source but not on this?
                //const tooltip = this._tooltip;
                //if (tooltip) {
                //	tooltip.copyFrom(source.tooltip);
                //}
                if (source._tooltip) {
                    if (this._tooltip) {
                        this._tooltip.copyFrom(source.tooltip);
                    }
                    else {
                        this.tooltip = source.tooltip.clone();
                    }
                }
                if (source["_tooltip"] && !this._tooltip) {
                    this._tooltip = source["_tooltip"];
                }
                this._showSystemTooltip = source.showSystemTooltip;
                _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["copyProperties"](source.propertyFields, this.propertyFields);
                _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["copyProperties"](source.properties, this);
                if (source.fillModifier) {
                    this.fillModifier = source.fillModifier.clone();
                }
                if (source.strokeModifier) {
                    this.strokeModifier = source.strokeModifier.clone();
                }
            };
            Sprite.prototype.dispose = function () {
                if (!this.isDisposed()) {
                    if (this.isBaseSprite) {
                        if (this.htmlContainer) {
                            while (this.htmlContainer.childNodes.length > 0) {
                                this.htmlContainer.removeChild(this.htmlContainer.firstChild);
                            }
                        }
                        this.isBaseSprite = false;
                    }
                    _super.prototype.dispose.call(this);
                    // Clear adapters
                    this.adapter.clear();
                    if (this.applyOnClones) {
                        if (this._clones) {
                            for (var i = this._clones.length - 1; i >= 0; i--) {
                                var clone = this._clones.getIndex(i);
                                clone.dispose();
                            }
                        }
                    }
                    if (this._svgContainer) {
                        this._svgContainer.dispose();
                    }
                    if (this._interactionDisposer) {
                        this._interactionDisposer.dispose();
                    }
                    if (this._urlDisposer) {
                        this._urlDisposer.dispose();
                    }
                    this.removeFromInvalids();
                    if (this.element) {
                        this.element.dispose();
                    }
                    if (this.group) {
                        this.group.dispose();
                    }
                    if (this._numberFormatter) {
                        this._numberFormatter.dispose();
                    }
                    if (this._focusFilter) {
                        this._focusFilter.dispose();
                    }
                    if (this.stroke && !(this.stroke instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"])) {
                        this.stroke.dispose();
                    }
                    // TODO a bit hacky
                    if (this.fill && !(this.fill instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"])) {
                        this.fill.dispose();
                    }
                    // remove from map
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.id)) {
                        this.map.removeKey(this.id);
                    }
                    this.parent = undefined;
                    if (this._filters) {
                        while (this._filters.length > 0) {
                            var filter = this._filters.getIndex(0);
                            filter.dispose();
                            this._filters.removeValue(filter);
                        }
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "isTemplate", {
                /**
                 * @ignore Exclude from docs
                 * @return {boolean} Is template?
                 */
                get: function () {
                    return this._isTemplate;
                },
                /**
                 * Indicates if this element is a "template".
                 *
                 * Template Sprites act only as a holders for config for other "real"
                 * elements to be cloned from.
                 *
                 * Templates are treated differently, as they are not validated, redrawn, or
                 * otherwise are processed.
                 *
                 * @ignore Exclude from docs
                 * @param {boolean} value Is template?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this._isTemplate != value) {
                        this._isTemplate = value;
                        if (this instanceof _Container__WEBPACK_IMPORTED_MODULE_10__["Container"]) {
                            _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["each"](this.children.iterator(), function (child) {
                                child.isTemplate = value;
                            });
                        }
                        if (value) {
                            this.parent = this.parent;
                            this.removeFromInvalids();
                        }
                        else {
                            this.invalidate();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "showSystemTooltip", {
                /**
                 * @return {boolean} Show system tooltip?
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this._showSystemTooltip)) {
                        if (this.parent) {
                            return this.parent.showSystemTooltip;
                        }
                        else {
                            return false;
                        }
                    }
                    return this._showSystemTooltip;
                },
                /**
                 * Indicates whether the element should attempt to construct itself in a way
                 * so that system tooltip is shown if its `readerTitle` is set.
                 *
                 * @param {boolean} value Show system tooltip?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this._showSystemTooltip = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "topParent", {
                /**
                 * ==========================================================================
                 * HIERARCHY AND STRUCTURE RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Sprites's top-level [[Container]].
                 *
                 * In most cases that will be a Chart.
                 *
                 * @return {Optional<Container>} Top-level ascendant
                 */
                get: function () {
                    if (this._topParent) {
                        return this._topParent;
                    }
                    else {
                        if (this.parent) {
                            return this.parent.topParent;
                        }
                    }
                },
                /**
                 * @ignore
                 * @param value {Container} top parent of a sprite
                 */
                set: function (value) {
                    this._topParent = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "parent", {
                /**
                 * @return {Optional<Container>} Parent container
                 */
                get: function () {
                    return this._parent;
                },
                /**
                 * Elements' parent [[Container]].
                 *
                 * @param {Optional<Container>}  parent  Parent container
                 */
                set: function (parent) {
                    if (this._isTemplate) {
                        return;
                    }
                    var currentPaper = this.paper;
                    var oldParent = this._parent;
                    if (oldParent != parent) {
                        if (oldParent) {
                            oldParent.children.removeValue(this);
                        }
                        this._parent = parent;
                        if (parent) {
                            this.topParent = parent.topParent;
                            if (parent.isTemplate) {
                                this.isTemplate = true;
                            }
                            this.baseId = parent.baseId;
                            parent.children.push(this);
                            // insert handler at Container invalidates +  invalidatesLayout + adds to group
                            if (this._tooltip && !this._tooltipContainer) {
                                this._tooltip.parent = parent.tooltipContainer;
                            }
                            if (!this._dataItem) {
                                this.dataItem = parent.dataItem;
                            }
                        }
                        else {
                            this.topParent = undefined;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "virtualParent", {
                /**
                 * @return {Optional<Container>} Virtual parent
                 */
                get: function () {
                    return this._virtualParent;
                },
                /**
                 * Element's "virtual" parent.
                 *
                 * This is required in ordere to maintain proper inheritance (like
                 * formatters).
                 *
                 * Sometimes an element is a "logical" parent, even though it's not a direct
                 * ascendant.
                 *
                 * Example: a bullet is not a child of the axis, but it would make sense
                 * for it to inherit series' formatters.
                 *
                 * @ignore Exclude from docs
                 * @param {Sprite}  value  Virtual parent
                 */
                set: function (value) {
                    this._virtualParent = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Moves `<defs>` to correct place in DOM.
             *
             * Some elements are initially created in "ghost" container. When moving
             * those into proper place in DOM, their respective `<defs>` need to be moved
             * as well.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.appendDefs = function () {
                if (this.filterElement) {
                    this.paper.appendDef(this.filterElement);
                }
                var fill = this.fill;
                if (fill && fill.element) {
                    this.paper.appendDef(fill.element);
                }
                var stroke = this.stroke;
                if (stroke && stroke.element) {
                    this.paper.appendDef(stroke.element);
                }
                if (this.fillModifier && this.fill instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                    var fill_1 = this.fillModifier.modify(this.fill);
                    if (fill_1 && fill_1.element) {
                        this.paper.appendDef(fill_1.element);
                    }
                }
                if (this.strokeModifier && this.stroke instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                    var stroke_1 = this.fillModifier.modify(this.stroke);
                    if (stroke_1 && stroke_1.element) {
                        this.paper.appendDef(stroke_1.element);
                    }
                }
                if (this._clipPath) {
                    this.paper.appendDef(this._clipPath);
                }
            };
            Object.defineProperty(Sprite.prototype, "map", {
                /**
                 * Returns a [[Dictionary]] which maps object ids with their respective
                 * objects.
                 *
                 * Can be used to retrieve any object by id, e.g.:
                 *
                 * ```TypeScript
                 * console.log(mySprite.map.getKey("myid"));
                 * ```
                 * ```JavaScript
                 * console.log(mySprite.map.getKey("myid"));
                 * ```
                 *
                 * @ignore Exclude from docs
                 * @return {Dictionary<string, any>} Map collection
                 */
                get: function () {
                    var top = this.topParent;
                    if (top) {
                        return top.map;
                    }
                    else if (!this._map) {
                        this._map = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["Dictionary"]();
                    }
                    return this._map;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "id", {
                /**
                 * @return {string} ID
                 */
                get: function () {
                    return this._id;
                },
                /**
                 * Element's user-defined ID.
                 *
                 * Will throw an Error if there already is an object with the same ID.
                 *
                 * Please note that above check will be performed withing the scope of the
                 * current chart instance. It will not do checks across other chart instances
                 * or in globally in DOM.
                 *
                 * Make sure the IDs are unique.
                 *
                 * @param {string} value ID
                 */
                set: function (value) {
                    if (this._id != value) {
                        this._id = value;
                        if (this.map.hasKey(value)) {
                            throw Error("Duplicate id (" + value + ") used on multiple objects.");
                        }
                        else {
                            this.map.setKey(value, this);
                        }
                        if (_Options__WEBPACK_IMPORTED_MODULE_17__["options"].autoSetClassName) {
                            this.setClassName();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "dom", {
                /**
                 * ==========================================================================
                 * ELEMENT AND DOM TREE MANIPULATION AND MEASURING
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns DOM element reference associated with this element.
                 *
                 * @readonly
                 * @return {SVGSVGElement} DOM element
                 */
                get: function () {
                    return this.group.node;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "paper", {
                /**
                 * @ignore Exclude from docs
                 * @return {Paper} Paper
                 */
                get: function () {
                    if (this._paper) {
                        return this._paper;
                    }
                    else {
                        if (this.parent) {
                            return this.parent.paper;
                        }
                    }
                    return Object(_rendering_Paper__WEBPACK_IMPORTED_MODULE_9__["getGhostPaper"])();
                },
                /**
                 * A [[Paper]] instance to place elements on.
                 *
                 * If there's no Paper set for this element, it goes up the ascendant tree
                 * until it finds one.
                 *
                 * This method is used by important `addChild()` method, so it's essential
                 * to have a [[Paper]] instance.
                 *
                 * If this element has a separate `htmlContainer` set, it will have a
                 * [[Paper]] instance itself.
                 *
                 * @ignore Exclude from docs
                 * @param {Paper}  paper  Paper
                 */
                set: function (paper) {
                    this.setPaper(paper);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets [[Paper]] instance to use to draw elements.
             * @ignore
             * @param {Paper} paper Paper
             * @return {boolean} true if paper was changed, false, if it's the same
             */
            Sprite.prototype.setPaper = function (paper) {
                var oldPaper = this._paper;
                if (oldPaper != paper) {
                    this._paper = paper;
                    this.appendDefs();
                    return true;
                }
                return false;
            };
            Object.defineProperty(Sprite.prototype, "htmlContainer", {
                /**
                 * @return {Optional<HTMLElement>} HTML element
                 */
                get: function () {
                    if (this._htmlContainer) {
                        return this._htmlContainer;
                    }
                    else {
                        if (this.parent) {
                            return this.parent.htmlContainer;
                        }
                    }
                },
                /**
                 * An HTML element to be used when placing wrapper element (`<div>`)
                 * for the whole chart.
                 *
                 * This is the same for **all** elements within the same chart.
                 *
                 * @param {Optional<HTMLElement>} htmlContainer HTML element
                 */
                set: function (htmlContainer) {
                    this._htmlContainer = htmlContainer;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "titleElement", {
                /**
                 * Creates (if not yet created) and returns element's `<title>` element.
                 *
                 * @ignore Exclude from docs
                 * @return {AMElement} Title element
                 */
                get: function () {
                    if (!this._titleElement) {
                        this._titleElement = this.paper.add("title");
                        this.group.add(this._titleElement);
                    }
                    return this._titleElement;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "descriptionElement", {
                /**
                 * Creates (if not yet created) and returns element's `<desc>` element.
                 *
                 * @ignore Exclude from docs
                 * @return {AMElement} Desc element
                 */
                get: function () {
                    if (!this._descriptionElement) {
                        this._descriptionElement = this.paper.add("desc");
                        this.group.add(this._descriptionElement);
                    }
                    return this._descriptionElement;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "filters", {
                /**
                 * Returns list of SVG filters (effects) applied to element. If the filter
                 * list is not yet initilized, creates and returns an empty one.
                 * Note, not all filters combine well with one another. We recommend using one filter per sprite.
                 *
                 * @return {List<Filter>} List of filters
                 */
                get: function () {
                    if (!this._filters) {
                        this._filters = new _utils_List__WEBPACK_IMPORTED_MODULE_6__["List"]();
                        // TODO only add certain events ?
                        this._disposers.push(this._filters.events.onAll(this.applyFilters, this));
                        this._disposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_6__["ListDisposer"](this._filters));
                    }
                    return this._filters;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets required SVG attributes. Must be called every time an element is
             * redrawn so that attributes are (re)applied.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.setSVGAttributes = function () {
                this.fill = this.fill;
                this.opacity = this.opacity;
                this.fillOpacity = this.fillOpacity;
                this.stroke = this.stroke;
                this.strokeOpacity = this.strokeOpacity;
                this.shapeRendering = this.shapeRendering;
                this.strokeDasharray = this.strokeDasharray;
                this.focusable = this.focusable;
                this.tabindex = this.tabindex;
                this.role = this.role;
            };
            /**
             * Sets an attribute directly on an SVG element.
             *
             * @ignore Exclude from docs
             * @param {ISVGAttribute} attribute Attribute object
             */
            Sprite.prototype.setSVGAttribute = function (attribute) {
                this.group.attr(attribute);
            };
            /**
             * Removes an attribute directly from SVG element.
             *
             * @param {string} attribute Attribute key to remove
             */
            Sprite.prototype.removeSVGAttribute = function (attribute) {
                this.group.removeAttr(attribute);
            };
            /**
             * Sets `class` attribute of the elements SVG node.
             *
             * Uses `am4core.options.classNamePrefix`.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.setClassName = function () {
                var className = this.className;
                var classNamePrefix = _Options__WEBPACK_IMPORTED_MODULE_17__["options"].classNamePrefix;
                if (this.element) {
                    this.element.addClass(classNamePrefix + className);
                }
                this.group.addClass(classNamePrefix + className + "-group");
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.id)) {
                    this.group.addClass(classNamePrefix + this.id);
                }
            };
            /**
             * Adds an `id` attribute the the element and returns the id.
             *
             * @ignore Exclude from docs
             * @return {string} Element's ID
             */
            Sprite.prototype.uidAttr = function () {
                this.setSVGAttribute({ "id": this.uid });
                return this.uid;
            };
            /**
             * [updateClipPath description]
             *
             * @todo Description
             */
            Sprite.prototype.updateClipPath = function () {
                var element = this._clipElement;
                if (element) {
                    element.moveTo({ x: this.mask.pixelX, y: this.mask.pixelY });
                }
            };
            /**
             * @ignore
             */
            Sprite.prototype.createClipPath = function () {
                if (!this._clipPath) {
                    this._clipPath = this.paper.addGroup("clipPath");
                    this.paper.appendDef(this._clipPath);
                    this._disposers.push(this._clipPath);
                    var id = _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].getUniqueId();
                    this._clipPath.attr({ "id": id });
                    this.group.attr({ "clip-path": "url(#" + id + ")" });
                }
            };
            /**
             * Applies the mask Sprite.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.applyMask = function () {
                var mask = this.mask;
                if (this._clipPath && mask) {
                    // Container
                    if (mask instanceof _Container__WEBPACK_IMPORTED_MODULE_10__["Container"]) {
                        this._clipElement.attr({ "width": _utils_Math__WEBPACK_IMPORTED_MODULE_26__["max"](0, mask.pixelWidth), "height": _utils_Math__WEBPACK_IMPORTED_MODULE_26__["max"](0, mask.pixelHeight) });
                    }
                    // Sprite
                    else {
                        if (mask.element && mask.element != this._clipElement) {
                            this._clipElement = mask.element;
                            this._clipPath.add(this._clipElement);
                        }
                        this._clipPath.scale = mask.scale;
                        this._clipPath.x = mask.pixelX;
                        this._clipPath.y = mask.pixelY;
                        this._clipPath.rotation = mask.rotation;
                    }
                }
            };
            /**
             * Applies filters to the element.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.applyFilters = function () {
                var _this = this;
                // we create a separate filter for each sprite as otherwise it would be impossible to animate filter.
                // svg doesn't support multiple filters applied to one element, so we put all the primitives to one filterElement of a sprite.
                if (this._filters && this._filters.length > 0) {
                    var width_1 = 100;
                    var height_1 = 100;
                    if (!this.filterElement) {
                        this.filterElement = this.paper.addGroup("filter");
                        this._disposers.push(this.filterElement);
                    }
                    else {
                        this.filterElement.removeChildNodes();
                    }
                    this.paper.appendDef(this.filterElement);
                    var id = "filter-" + this.uid;
                    this.filterElement.attr({ "id": id });
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["each"](this.filters.iterator(), function (filter) {
                        filter.sprite = _this;
                        filter.paper = _this.paper;
                        filter.appendPrimitives(_this.filterElement);
                        if (filter.width > width_1) {
                            width_1 = filter.width;
                        }
                        if (filter.height > height_1) {
                            height_1 = filter.height;
                        }
                        filter.scale = _this.globalScale;
                    });
                    this.filterElement.attr({ "width": width_1 + "%", "height": height_1 + "%", "x": -(width_1 - 100) / 2 + "%", "y": -(height_1 - 100) / 2 + "%" });
                    this.group.attr({ "filter": "url(#" + id + ")" });
                }
                else if (this.filterElement) {
                    this.group.removeAttr("filter");
                    this.filterElement.removeChildNodes();
                }
            };
            /**
             * [removeClipPath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Sprite.prototype.removeClipPath = function () {
                if (this._clipPath) {
                    //this._clipPath.dispose();
                    this.removeDispose(this._clipPath);
                    this._clipPath = undefined;
                }
            };
            Sprite.prototype.setElement = function (element) {
                this.element = element;
                this.setSVGAttributes();
                this.applyAccessibility();
            };
            Object.defineProperty(Sprite.prototype, "element", {
                /**
                 * @return {AMElement} Element
                 */
                get: function () {
                    return this._element;
                },
                /**
                 * The main element for this Sprite, usually an SVG `<g>`.
                 *
                 * All other sub-elements are created in it.
                 *
                 * @param {Optional<AMElement>}  element  Element
                 */
                set: function (element) {
                    // Destroy previous element if there was one before
                    this.removeElement();
                    // Set new element
                    this._element = element;
                    // Add element to group
                    // Since we are adding Element to group, which is already in the
                    // `.disposers` it will be removed automatically when Sprite is disposed
                    // of
                    this.group.add(element);
                    // This is needed if someone is setting element not in draw method but
                    // from outside
                    if (!this.invalid) {
                        this.validate();
                    }
                    if (_Options__WEBPACK_IMPORTED_MODULE_17__["options"].autoSetClassName) {
                        this.setClassName();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "svgContainer", {
                /**
                 * HTML container (`<div>`) which is used to place chart's `<svg>` element
                 * in.
                 *
                 * @return {Optional<SVGContainer>} Container for chart elements
                 */
                get: function () {
                    if (this._svgContainer) {
                        return this._svgContainer;
                    }
                    else {
                        if (this.parent) {
                            return this.parent.svgContainer;
                        }
                    }
                },
                /**
                 * Sets HTML container to add SVG and other chart elements to.
                 *
                 * @param {Optional<SVGContainer>} svgContainer Container for chart elements
                 */
                set: function (svgContainer) {
                    this._svgContainer = svgContainer;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Measures main element.
             *
             * Saves measurements into private `_bbox` property.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.measureElement = function () {
                if (this.element) {
                    if (this.definedBBox) {
                        this._bbox = this.definedBBox;
                    }
                    else {
                        var svgBBox = this.element.getBBox();
                        this._bbox = { x: svgBBox.x, y: svgBBox.y, width: svgBBox.width, height: svgBBox.height };
                    }
                }
            };
            /**
             * Positions element according its center settings.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            Sprite.prototype.updateCenter = function () {
                if (this.element) {
                    var prevElementTransform = this.element.transformString;
                    var bbox = this.bbox;
                    var ex = 0;
                    var ey = 0;
                    var elementX = bbox.x;
                    var elementY = bbox.y;
                    var elementWidth = bbox.width;
                    var elementHeigth = bbox.height;
                    var pixelPaddingLeft = this.pixelPaddingLeft;
                    var pixelPaddingRight = this.pixelPaddingRight;
                    var pixelPaddingTop = this.pixelPaddingTop;
                    var pixelPaddingBottom = this.pixelPaddingBottom;
                    // add padding to the measured size
                    var measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["max"](bbox.width + pixelPaddingLeft + pixelPaddingRight, this.pixelWidth);
                    var measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["max"](bbox.height + pixelPaddingTop + pixelPaddingBottom, this.pixelHeight);
                    // extremes
                    var left = bbox.x;
                    var right = bbox.x + measuredWidth;
                    var top_1 = bbox.y;
                    var bottom = bbox.y + measuredHeight;
                    var horizontalCenter = this.horizontalCenter;
                    var verticalCenter = this.verticalCenter;
                    switch (horizontalCenter) {
                        case "none":
                            ex = elementX + pixelPaddingLeft;
                            break;
                        case "left":
                            ex = pixelPaddingLeft;
                            break;
                        case "middle":
                            ex = pixelPaddingLeft - (elementWidth + pixelPaddingRight + pixelPaddingLeft) / 2;
                            break;
                        case "right":
                            ex = -pixelPaddingRight - elementWidth;
                            break;
                    }
                    switch (verticalCenter) {
                        case "none":
                            ey = elementY + pixelPaddingTop;
                            break;
                        case "top":
                            ey = pixelPaddingTop;
                            break;
                        case "middle":
                            ey = pixelPaddingTop - (elementHeigth + pixelPaddingBottom + pixelPaddingTop) / 2;
                            break;
                        case "bottom":
                            ey = -pixelPaddingBottom - elementHeigth;
                            break;
                    }
                    this._measuredHeight = measuredHeight;
                    this._measuredWidth = measuredWidth;
                    var x = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](ex - elementX, this._positionPrecision, true);
                    var y = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](ey - elementY, this._positionPrecision, true);
                    this.ex = x - pixelPaddingLeft;
                    this.ey = y - pixelPaddingTop;
                    this.maxLeft = left + x - pixelPaddingLeft;
                    this.maxRight = right + x - pixelPaddingLeft;
                    this.maxTop = top_1 + y - pixelPaddingTop;
                    this.maxBottom = bottom + y - pixelPaddingTop;
                    if (this.pixelPerfect) {
                        x -= 0.5;
                        y -= 0.5;
                    }
                    this.element.moveTo({ x: x, y: y });
                    if (prevElementTransform != this.element.transformString) {
                        this.dispatchImmediately("transformed");
                    }
                }
            };
            /**
             * Measures the whole element.
             *
             * Returns `true` if the size has changed from the last measurement.
             *
             * @ignore Exclude from docs
             * @return {boolean} Did the size changed from the last measurement?
             */
            Sprite.prototype.measure = function () {
                this.updateCenter();
                var bbox = this.bbox;
                var measuredWidth = this._measuredWidth;
                var measuredHeight = this._measuredHeight;
                // extremes
                var left = this.maxLeft;
                var right = this.maxRight;
                var top = this.maxTop;
                var bottom = this.maxBottom;
                // non-parent wise size
                this._measuredWidthSelf = measuredWidth;
                this._measuredHeightSelf = measuredHeight;
                var positionPrecision = this._positionPrecision;
                // if a sprite is rotated or scaled, calculate measured size after transformations
                if (this.rotation !== 0 || this.scale !== 1) {
                    var svg = this.paper.svg;
                    var matrix = svg.createSVGMatrix();
                    var rotation = this.rotation;
                    matrix.a = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["cos"](rotation) * this.scale;
                    matrix.c = -_utils_Math__WEBPACK_IMPORTED_MODULE_26__["sin"](rotation) * this.scale;
                    matrix.e = 0;
                    matrix.b = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["sin"](rotation) * this.scale;
                    matrix.d = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["cos"](rotation) * this.scale;
                    matrix.f = 0;
                    var p1 = svg.createSVGPoint();
                    p1.x = left;
                    p1.y = top;
                    var p2 = svg.createSVGPoint();
                    p2.x = right;
                    p2.y = top;
                    var p3 = svg.createSVGPoint();
                    p3.x = right;
                    p3.y = bottom;
                    var p4 = svg.createSVGPoint();
                    p4.x = left;
                    p4.y = bottom;
                    var pt1 = p1.matrixTransform(matrix);
                    var pt2 = p2.matrixTransform(matrix);
                    var pt3 = p3.matrixTransform(matrix);
                    var pt4 = p4.matrixTransform(matrix);
                    left = Math.min(pt1.x, pt2.x, pt3.x, pt4.x);
                    right = Math.max(pt1.x, pt2.x, pt3.x, pt4.x);
                    top = Math.min(pt1.y, pt2.y, pt3.y, pt4.y);
                    bottom = Math.max(pt1.y, pt2.y, pt3.y, pt4.y);
                    measuredWidth = right - left;
                    measuredHeight = bottom - top;
                    this.maxLeft = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](left, positionPrecision, true);
                    this.maxRight = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](right, positionPrecision, true);
                    this.maxTop = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](top, positionPrecision, true);
                    this.maxBottom = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](bottom, positionPrecision, true);
                }
                this._measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](measuredWidth, positionPrecision, true);
                this._measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](measuredHeight, positionPrecision, true);
                // dispatch event
                if (this._measuredWidth != this._prevMeasuredWidth || this._measuredHeight != this._prevMeasuredHeight) {
                    this._prevMeasuredHeight = this._measuredHeight;
                    this._prevMeasuredWidth = this._measuredWidth;
                    // TODO clear existing sizechanged dispatches ?
                    this.dispatch("sizechanged");
                    if (this.isHover && this.tooltip && this.tooltip.visible) {
                        this.updateTooltipPosition();
                    }
                    return true;
                }
                return false;
            };
            /**
             * Insert this element before sibling element.
             *
             * @param  {Sprite}  sprite  Target element
             * @return {Sprite}          This element
             */
            Sprite.prototype.insertBefore = function (sprite) {
                var parent = this.parent;
                if (parent) {
                    var index = parent.children.indexOf(sprite);
                    if (index !== -1) {
                        parent.children.moveValue(this, index);
                        parent.sortChildren();
                    }
                }
                return this;
            };
            /**
             * Insert this element after sibling element.
             *
             * @param  {Sprite}  sprite  Target element
             * @return {Sprite}          This element
             */
            Sprite.prototype.insertAfter = function (sprite) {
                var parent = this.parent;
                if (parent) {
                    var index = parent.children.indexOf(sprite);
                    if (index !== -1) {
                        parent.children.moveValue(this, index + 1);
                        parent.sortChildren();
                    }
                }
                return this;
            };
            /**
             * Removes the main SVG element.
             *
             * This does not destroy the whole Sprite element. To do that use
             * `dispose()` instead.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.removeElement = function () {
                // remove visual element
                if (this._element) {
                    this.removeDispose(this._element);
                    this._element = undefined;
                }
            };
            /**
             * Returns relative (percent) value of the X coordindate within this element.
             *
             * A relative value is a hundredth of a percent. So 100% would result in a 1
             * as relative value.
             *
             * @param  {number | Percent}  value  Absolute or relative X coordinate
             * @return {number}                   Relative value
             */
            Sprite.prototype.getRelativeX = function (value) {
                if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                    return value.value;
                }
                else if (this.parent) {
                    return value / this.parent.innerWidth;
                }
                return 0;
            };
            /**
             * Returns relative (percent) value of the Y coordindate within this element.
             *
             * A relative value is a hundredth of a percent. So 100% would result in a 1
             * as relative value.
             *
             * @param  {number | Percent}  value  Absolute or relative Y coordinate
             * @return {number}                   Relative value
             */
            Sprite.prototype.getRelativeY = function (value) {
                if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                    return value.value;
                }
                else if (this.parent) {
                    return value / this.parent.innerHeight;
                }
                return 0;
            };
            /**
             * Returns an X coordinate in pixel within the element.
             *
             * If number is passed in as parameter, the same number will be returned
             * back.
             *
             * If [[Percent]] is passed in, it will be recalculated to pixels.
             *
             * @param  {number | Percent}  value  Absolute or relative X coordinate
             * @return {number}                   X coordinate in pixels
             */
            Sprite.prototype.getPixelX = function (value) {
                // we don't use $utils.valueToRelative as this would mean that we should access parent.innerWidth
                // all the time and this would result chain of the same actions and will slow down the system a lot
                var pixel = 0;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                    pixel = value;
                }
                else if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                    var relative = value.value;
                    if (this.parent) {
                        pixel = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](this.parent.innerWidth * relative, this._positionPrecision, true);
                    }
                }
                return pixel;
            };
            /**
             * Returns an Y coordinate in pixel within the element.
             *
             * If number is passed in as parameter, the same number will be returned
             * back.
             *
             * If [[Percent]] is passed in, it will be recalculated to pixels.
             *
             * @param  {number | Percent}  value  Absolute or relative Y coordinate
             * @return {number}                   Y coordinate in pixels
             */
            Sprite.prototype.getPixelY = function (value) {
                // we don't use $utils.valueToRelative as this would mean that we should access parent.innerWidth
                // all the time and this would result chain of the same actions and will slow down the system a lot
                var pixel = 0;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                    pixel = value;
                }
                else if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                    var relative = value.value;
                    if (this.parent) {
                        pixel = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](this.parent.innerHeight * relative, this._positionPrecision, true);
                    }
                }
                return pixel;
            };
            /**
             * Moves the element to a specified coordinates.
             *
             * Using this method is preferred method of moving element, as it saves some
             * CPU processing power over setting `x` and `y` properties separately.
             *
             * The method respects element's center settings. The element will be
             * positioned so that `point` coordinates come in whatever "center" of the
             * element is, as set in `horizontalCenter` and `verticalCenter`.
             *
             * Besides moving the element, you can also at the same time scale and
             * rotate the element.
             *
             * @param {IPoint}  point     New coordinates
             * @param {number}  rotation  New rotation
             * @param {number}  scale     New Scale
             */
            Sprite.prototype.moveTo = function (point, rotation, scale, isDragged) {
                if (this.isDragged && !isDragged) {
                    return;
                }
                if (point) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](point.x)) {
                        this.setPropertyValue("x", point.x);
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](point.y)) {
                        this.setPropertyValue("y", point.y);
                    }
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](rotation)) {
                    this.rotation = rotation;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](scale)) {
                    this.scale = scale;
                }
                // must leave this
                this.invalidatePosition();
            };
            Object.defineProperty(Sprite.prototype, "mask", {
                /**
                 * Returns [[Sprite]] element currently used as mask for this element.
                 *
                 * @ignore Exclude from docs
                 * @return {Optional<Sprite>} A [[Sprite]] to use as mask
                 */
                get: function () {
                    return this.adapter.apply("mask", this._mask.get());
                },
                /**
                 * Sets another [[Sprite]] element as this elements mask.
                 *
                 * @ignore Exclude from docs
                 * @param {Optional<Sprite>} mask A [[Sprite]] to use as mask
                 */
                set: function (mask) {
                    var _this = this;
                    if (this._mask.get() !== mask) {
                        // this is good
                        if (mask) {
                            this.createClipPath();
                            if (!(mask instanceof _Container__WEBPACK_IMPORTED_MODULE_10__["Container"])) {
                                mask.isMeasured = false;
                                if (mask.element) {
                                    this._clipElement = mask.element;
                                }
                            }
                            else {
                                this._clipElement = this.paper.add("rect");
                            }
                            if (this._clipElement) {
                                this._clipPath.add(this._clipElement);
                            }
                            this._mask.set(mask, new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                //mask.addEventListener(SpriteEvent.TRANSFORMED, this.applyMask, false, this);
                                mask.events.on("maxsizechanged", function () {
                                    if (_this.inited) {
                                        _this.applyMask;
                                    }
                                }, undefined, false),
                                mask.events.on("validated", this.applyMask, this, false),
                                mask.events.on("positionchanged", this.applyMask, this, false)
                            ]));
                            this.applyMask();
                        }
                        else {
                            this._mask.reset();
                            this.group.removeAttr("clip-path");
                            this.removeClipPath();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "maskRectangle", {
                /**
                 * @ignore Exclude from docs
                 * @return {IRectangle} Mask Rectangle
                 */
                get: function () {
                    return this._maskRectangle;
                },
                // you can set IRectangle as a mask instead o a sprite. Note, the changes of the object won't be monitored
                /**
                 * Instead of creating a [[Sprite]] for mask, you can just use a
                 * [[Rectangle]] by setting this accessor.
                 *
                 * Please note that the element will not monitor any changes to the mask
                 * rectangle.
                 *
                 * @ignore Exclude from docs
                 * @param {IRectangle} rect Mask Rectangle
                 */
                set: function (rect) {
                    if (rect) {
                        this.createClipPath();
                        if (!this._clipElement) {
                            this._clipElement = this.paper.add("rect");
                            this._clipPath.add(this._clipElement);
                        }
                        this._clipElement.attr({ "width": rect.width, "height": rect.height });
                    }
                    else {
                        this.removeClipPath();
                        this._clipElement = undefined;
                    }
                    this._maskRectangle = rect;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "isMeasured", {
                /**
                 * @ignore Exclude from docs
                 * @return {boolean} Was element already measured?
                 */
                get: function () {
                    return this._isMeasured;
                },
                /**
                 * Indicates if this element was already measured.
                 *
                 * @ignore Exclude from docs
                 * @param {boolean} value Was element already measured?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (!value) {
                        this._measuredWidth = 0;
                        this._measuredHeight = 0;
                        //this._pixelHeight = 0;
                        //this._pixelWidth = 0;
                    }
                    if (this._isMeasured != value) {
                        this._isMeasured = value;
                        this.invalidatePosition();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if the this element has any of its parts overlapping with another
             * element.
             *
             * @todo Description (review)
             * @param  {Sprite}   sprite  Second element to test again
             * @return {boolean}          Overlapping?
             */
            Sprite.prototype.hitTest = function (sprite) {
                // validate, otherwise we will not know measuredWidth and measuredHeight
                if (this.invalid) {
                    this.validate();
                }
                if (sprite.invalid) {
                    sprite.validate();
                }
                var ax1 = this.pixelX;
                var ay1 = this.pixelY;
                var ax2 = ax1 + this.measuredWidth;
                var ay2 = ay1 + this.measuredHeight;
                var bx1 = sprite.pixelX;
                var by1 = sprite.pixelY;
                var bx2 = bx1 + sprite.measuredWidth;
                var by2 = by1 + sprite.measuredHeight;
                return !(bx1 > ax2 || bx2 < ax1 || by1 > ay2 || by2 < ay1);
            };
            Object.defineProperty(Sprite.prototype, "inited", {
                /**
                 * ==========================================================================
                 * STATE-RELATED
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns `true` if Sprite has already finished initializing.
                 *
                 * @return {boolean} Initialized?
                 */
                get: function () {
                    return this._inited;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns `true` if Sprite has already finished initializing and is ready.
             *
             * If this object is a [[Container]] it will wait for all of its children
             * are ready before becoming ready itself and firing a `"ready"` event.
             *
             * @return {boolean} is ready?
             */
            Sprite.prototype.isReady = function () {
                return this._ready;
            };
            Object.defineProperty(Sprite.prototype, "states", {
                /**
                 * Returns a collection of element's available [[SpriteState]] entries.
                 *
                 * @see {@link SpriteState}
                 * @return {DictionaryTemplate<string, SpriteState>} States
                 */
                get: function () {
                    if (!this._states) {
                        var state = new _SpriteState__WEBPACK_IMPORTED_MODULE_1__["SpriteState"]();
                        // works
                        this._states = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["DictionaryTemplate"](state);
                        // TODO what about removeKey ?
                        this._disposers.push(this._states.events.on("insertKey", this.processState, this, false));
                        this._disposers.push(this._states.events.on("setKey", this.processState, this, false));
                        this._disposers.push(new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["DictionaryDisposer"](this._states));
                        this._disposers.push(state);
                    }
                    return this._states;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "hiddenState", {
                /**
                 * Returns a [[SpriteState]] object for "hidden" state.
                 *
                 * This is a shortcut to `this.states.getKey("hidden")`.
                 *
                 * @return {SpriteState} Hidden state
                 */
                get: function () {
                    if (!this.states.getKey("hidden")) {
                        var hiddenState = this.states.create("hidden");
                        hiddenState.properties.opacity = 0;
                        hiddenState.properties.visible = false;
                    }
                    return this.states.getKey("hidden");
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "defaultState", {
                /**
                 * Returns a [[SpriteState]] object for "default" state.
                 *
                 * This is a shortcut to `this.states.getKey("default")`.
                 *
                 * @return {SpriteState} Hidden state
                 */
                get: function () {
                    if (!this.states.getKey("default")) {
                        var defaultState = this.states.create("default");
                        defaultState.properties.opacity = 1;
                    }
                    return this.states.getKey("default");
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if some key states are defined and updates Sprite properties
             * accordingly.
             *
             * For example if there's a state "down" defined for Sprite, we automatically
             * make it "clickable".
             *
             * @ignore Exclude from docs
             * @param {IDictionaryEvents<string, SpriteState>["insertKey" | "setKey"]} event An event which caused state list update
             */
            Sprite.prototype.processState = function (event) {
                var state = event.newValue;
                state.sprite = this;
                state.name = event.key;
                if (this.states.hasKey("hover") || _utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.tooltipHTML) || _utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.tooltipText)) {
                    this.hoverable = true;
                }
                if (this.states.hasKey("down")) {
                    this.clickable = true;
                }
                if (this.states.hasKey("focus")) {
                    this.focusable = true;
                }
            };
            Object.defineProperty(Sprite.prototype, "animations", {
                /**
                 * Returns a list elements's animations currently being played.
                 *
                 * If the list has not been initialized it is created.
                 *
                 * @return {Array<Animation>} List of animations
                 */
                get: function () {
                    if (!this._animations) {
                        this._animations = [];
                        this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_8__["AnimationDisposer"](this._animations));
                    }
                    return this._animations;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts element's local coordinates to the coordinates within the main
             * chart container.
             *
             * @param  {IPoint}  point  Local point
             * @return {IPoint}         Global point
             */
            Sprite.prototype.getSvgPoint = function (point) {
                // Calculate SVG point
                var bbox = this.htmlContainer.getBoundingClientRect();
                return {
                    "x": point.x - bbox.left,
                    "y": point.y - bbox.top
                };
            };
            /**
             * Creates and starts an [[Animation]] with given `animationOptions`.
             *
             * @see {@link Animation} for additional information about available options
             * @param  {ISpriteAnimationOptions[] | ISpriteAnimationOptions}  animationOptions  Animation options
             * @param  {number}                                               duration          Duration in milliseconds
             * @param  {(number) => number}                                   easing            Easing function
             * @return {Animation}                                                              Animation instance
             */
            Sprite.prototype.animate = function (animationOptions, duration, easing) {
                return new _utils_Animation__WEBPACK_IMPORTED_MODULE_8__["Animation"](this, animationOptions, duration, easing).start();
            };
            /**
             * Applies a [[SpriteState]] on this element.
             *
             * The first parameter can either be a name state or a [[SpriteState]]
             * instance.
             *
             * When run, this method will apply SVG properties defined in a
             * [[SpriteState]], but only those that are relevant to this particular
             * element, i.e. are in the `properties` array.
             *
             * @see {@link SpriteState}
             * @param {string | SpriteState} value               A state - name key or instance
             * @param {number}               transitionDuration  Duration of the transition between current and new state
             * @param {number) => number}    easing              An easing function
             */
            Sprite.prototype.setState = function (value, transitionDuration, easing) {
                var state;
                if (value instanceof _SpriteState__WEBPACK_IMPORTED_MODULE_1__["SpriteState"]) {
                    this.states.setKey(value.name, value);
                    state = value;
                }
                else {
                    state = this.states.getKey(value);
                    if (!state) {
                        return;
                    }
                }
                // stop previous transition
                // not good - foe expample, we are animating to some "active" state and in them middle "hover" state happens. then "active" stat won't be applied
                //if (this._transition) {
                //this._transition.stop();
                //}
                if (state.name == "hover") {
                    if (this.isHidden) {
                        return;
                    }
                    this.isHover = true;
                }
                if (state.name == "hidden") {
                    this.isHiding = true;
                }
                else {
                    if (!this.visible) {
                        this.setVisibility(state.properties.visible || this.defaultState.properties.visible);
                    }
                }
                if (state.name == "active") {
                    this.isActive = true;
                }
                // we do not set isActive = false here if it's not active, but container does that if setStateOnChildren = true
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](transitionDuration)) {
                    transitionDuration = state.transitionDuration;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](easing)) {
                    easing = state.transitionEasing;
                }
                return this.transitTo(state, transitionDuration, easing);
            };
            /**
             * Applies proper state based on the condition of the element. A condition is
             * deducted in this order:
             * * "hover" if Sprite has currently any pointers over it
             * * "down" if Sprite has any pointers (touch or mouse) currently pressed over it
             * * "focus" if Sprite has currently got focus (accessibility)
             * * "hidden" if Sprite is currently hidden
             *
             * Returns an [[Animation]] object, which is handling gradual transition from
             * current values of properties, to the new target state(s).
             *
             * @param  {number}     duration  Duration for the animation (ms)
             * @return {Optional<Animation>}  [[Animation]] object which is handling the transition
             */
            Sprite.prototype.applyCurrentState = function (duration) {
                //if (!this.isHidden) { // this was done for hover state not to take effect if "hidden" is actually visible, need to think about it.
                var animation = this.setState(this.defaultState, duration);
                if (this.isHover) {
                    animation = this.setState("hover", duration);
                }
                if (this.isDown && this.interactions.downPointers.length) {
                    animation = this.setState("down", duration);
                }
                this.isFocused = this.isFocused;
                if (this.isActive) {
                    animation = this.setState("active", duration);
                    if (this.isHover && this.states.hasKey("hoverActive")) {
                        animation = this.setState("hoverActive", duration);
                    }
                }
                return animation;
                //}
            };
            /**
             * Starts an [[Animation]] of the properties to specific values as they are
             * set in `state`.
             *
             * @ignore Exclude from docs
             * @param  {SpriteState}         state     Target State
             * @param  {number}              duration  Duration in milliseconds
             * @param  {(number) => number}  easing    Easing function
             * @return {Animation}                     Transition Animation
             */
            Sprite.prototype.transitTo = function (state, duration, easing) {
                var _this = this;
                // Init
                var options = [], propValues = state.allValues, transition;
                // todo: do this for numeric/color properties only?
                // @todo use state.getPropertyValue instead
                _utils_Object__WEBPACK_IMPORTED_MODULE_29__["each"](propValues, function (propertyName, finalValue) {
                    var currentValue = _this[propertyName];
                    // save current value to default state. this solves a big problem where values must be set both on sprite and default state
                    if (finalValue != currentValue && _this.defaultState.properties[propertyName] == undefined) {
                        _this.defaultState.properties[propertyName] = currentValue;
                    }
                    //if (finalValue != currentValue && $type.hasValue(finalValue)) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](finalValue)) {
                        var option = { from: currentValue, to: finalValue, property: propertyName };
                        options.push(option);
                    }
                });
                if (options.length > 0) {
                    transition = this.animate(options, duration, easing);
                    if (transition && !transition.isFinished()) {
                        // TODO should this use events.once ?
                        // TODO push onto _disposers array ?
                        this._disposers.push(transition.events.on("animationended", function () {
                            _this.dispatchImmediately("transitionended");
                        }));
                    }
                    else {
                        this.dispatchImmediately("transitionended");
                    }
                }
                // apply filters if set
                if (state.filters.length > 0) {
                    var newFilters_1 = [];
                    // check for the same filters
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["each"](state.filters.iterator(), function (stateFilter) {
                        var newFilter = stateFilter.clone();
                        newFilters_1.push(newFilter);
                        var animationOptions = [];
                        _utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["each"](_this.filters.iterator(), function (currentFilter) {
                            // if we have the same filters
                            if (currentFilter.className == newFilter.className) {
                                if (!_utils_Iterator__WEBPACK_IMPORTED_MODULE_31__["contains"](_this.defaultState.filters.iterator(), function (x) { return x.className === newFilter.className; })) {
                                    _this.defaultState.filters.push(currentFilter);
                                }
                                _utils_Object__WEBPACK_IMPORTED_MODULE_29__["each"](newFilter.properties, function (propertyName, newValue) {
                                    var currentValue = currentFilter.properties[propertyName];
                                    // if values are not the same, push to animation options array
                                    if (currentValue != newValue) {
                                        animationOptions.push({ property: propertyName, from: currentValue, to: newValue });
                                    }
                                });
                            }
                        });
                        // animate to new value
                        newFilter.animate(animationOptions, duration, easing);
                    });
                    this.filters.clear();
                    this.filters.pushAll(newFilters_1);
                }
                return transition;
            };
            /**
             * Returns `true` if Sprite is currently transiting from one state/value to
             * another.
             *
             * @return {boolean} Is in transition?
             */
            Sprite.prototype.isInTransition = function () {
                return this.animations.length > 0;
            };
            Object.defineProperty(Sprite.prototype, "isHover", {
                /**
                 * Returns indicator if this element has a mouse pointer currently hovering
                 * over it, or if it has any touch pointers pressed on it.
                 *
                 * @return {boolean} Is hovered?
                 */
                get: function () {
                    if (this.isInteractive()) {
                        return this.interactions.isHover;
                    }
                    return false;
                },
                /**
                 * Indicates if this element has a mouse pointer currently hovering
                 * over it, or if it has any touch pointers pressed on it.
                 *
                 * @param {boolean} value Is hovered?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (value !== this.isHover) {
                        if (this.isInteractive()) {
                            this.interactions.isHover = value;
                            if (value) {
                                this.handleOver();
                            }
                            else {
                                this.handleOut();
                            }
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "isDragged", {
                /**
                 * Returns indicator if this element is being dragged at the moment.
                 *
                 * @return {boolean} Is dragged?
                 */
                get: function () {
                    return this._isDragged;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "isDown", {
                /**
                 * @return {boolean} Is down?
                 */
                get: function () {
                    if (this.isInteractive()) {
                        return this.interactions.isDown;
                    }
                    return false;
                },
                /**
                 * Indicates if this element has any pointers (mouse or touch) pressing down
                 * on it.
                 *
                 * @param {boolean} value Is down?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.isInteractive() && this.isDown != value) {
                        this.interactions.isDown = value;
                        if (value) {
                            this.handleDown();
                        }
                        else {
                            this.handleUp();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "isFocused", {
                /**
                 * @return {boolean} Is focused?
                 */
                get: function () {
                    if (this.isInteractive()) {
                        return this.interactions.isFocused;
                    }
                    return false;
                },
                /**
                 * Indicates if this element is focused (possibly by tab navigation).
                 *
                 * @param {boolean} value Is focused?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.focusable && this.isFocused != value) {
                        if (this.isInteractive()) {
                            this.interactions.isFocused = value;
                            if (value === true) {
                                this.handleFocus();
                            }
                            else {
                                this.handleBlur();
                            }
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "isActive", {
                /**
                 * @return {boolean} Is active?
                 */
                get: function () {
                    return this._isActive;
                },
                /**
                 * Indicates if this element is currently active (toggled on) or not
                 * (toggled off).
                 *
                 * @param {boolean} value Is active?
                 */
                set: function (value) {
                    this.setActive(value);
                },
                enumerable: true,
                configurable: true
            });
            Sprite.prototype.setActive = function (value) {
                value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                if (this._isActive !== value) {
                    this._isActive = value;
                    if (value && this.states.hasKey("active")) {
                        this.setState("active");
                        if (this.isHover && this.states.hasKey("hoverActive")) {
                            this.setState("hoverActive");
                        }
                    }
                    else {
                        this.applyCurrentState();
                    }
                    this.dispatchImmediately("toggled");
                }
            };
            Object.defineProperty(Sprite.prototype, "disabled", {
                /**
                 * @return {boolean} Disabled?
                 */
                get: function () {
                    //if(this._internalDisabled){
                    //	return true;
                    //}
                    var current = this.getPropertyValue("disabled");
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](current)) {
                        return current;
                    }
                    else {
                        if (this.virtualParent) {
                            return this.virtualParent.disabled;
                        }
                        if (this.parent) {
                            return this.parent.disabled;
                        }
                    }
                    return false;
                },
                /**
                 * Controls if element is disabled.
                 *
                 * A disabled element is hidden, and is removed from any processing, layout
                 * calculations, and generally treated as if it does not exist.
                 *
                 * The element itself is not destroyed, though. Setting this back to `false`,
                 * will "resurrect" the element.
                 *
                 * @param {boolean}  value  Disabled?
                 */
                set: function (value) {
                    this.setDisabled(value);
                },
                enumerable: true,
                configurable: true
            });
            Sprite.prototype.setDisabled = function (value) {
                value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                var current = this.getPropertyValue("disabled");
                if (current != value) {
                    this.setPropertyValue("disabled", value, true);
                    if (value) {
                        this.parent = this.parent;
                        this.removeFromInvalids();
                        this.group.attr({ "display": "none" });
                    }
                    else {
                        if (this instanceof _Container__WEBPACK_IMPORTED_MODULE_10__["Container"]) {
                            this.deepInvalidate();
                        }
                        else {
                            this.invalidate();
                        }
                        if (!this.__disabled) {
                            this.removeSVGAttribute("display");
                        }
                    }
                    this.dispatch("transformed");
                    _System__WEBPACK_IMPORTED_MODULE_32__["system"].requestFrame();
                }
            };
            Object.defineProperty(Sprite.prototype, "__disabled", {
                /**
                 * @ignore
                 * @return {boolean} Disabled?
                 */
                get: function () {
                    return this._internalDisabled;
                },
                /**
                 * Internal disable method.
                 *
                 * Do not use it for disabling elements. Use `disabled` accessor instead.
                 *
                 * @ignore Exclude from docs
                 * @param {boolean} value Disabled?
                 */
                set: function (value) {
                    if (this._internalDisabled != value) {
                        this._internalDisabled = value;
                        this._updateDisabled = true;
                        this.invalidatePosition(); // better use this instead of invalidate()
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "numberFormatter", {
                /**
                 * @return {NumberFormatter} A [[NumberFormatter]] instance to be used
                 */
                get: function () {
                    if (this._numberFormatter) {
                        return this._numberFormatter;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.numberFormatter;
                    }
                    else if (this.parent) {
                        return this.parent.numberFormatter;
                    }
                    this._numberFormatter = new _formatters_NumberFormatter__WEBPACK_IMPORTED_MODULE_19__["NumberFormatter"]();
                    this._numberFormatter.language = this.language;
                    return this.numberFormatter;
                },
                /**
                 * ==========================================================================
                 * FORMATTERS AND OTHER EXTERNAL HELPERS
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * A [[NumberFormatter]] instance.
                 *
                 * This is used to format numbers.
                 *
                 * ```TypeScript
                 * chart.numberFormatter.numberFormat = "#,###.#####";
                 * ```
                 * ```JavaScript
                 * chart.numberFormatter.numberFormat = "#,###.#####";
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "numberFormatter": {
                 *     "numberFormat": "#,###.#####"
                 *   }
                 * }
                 * ```
                 *
                 * You can set a separate instance of formatter for each
                 * individual element. However that would be unnecessary overhead as
                 * all elements would automatically inherit formatter from their parents,
                 * all the way up to the chart itself.
                 *
                 *
                 * @see {@link NumberFormatter} for more info on formatting numbers
                 * @param {NumberFormatter}  value  An instance of NumberFormatter
                 */
                set: function (value) {
                    this._numberFormatter = value;
                    this._numberFormatter.language = this.language;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "dateFormatter", {
                /**
                 * @return {DateFormatter} An instance of DateFormatter
                 */
                get: function () {
                    if (this._dateFormatter) {
                        return this._dateFormatter;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.dateFormatter;
                    }
                    else if (this.parent) {
                        return this.parent.dateFormatter;
                    }
                    this._dateFormatter = new _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_20__["DateFormatter"]();
                    this._dateFormatter.language = this.language;
                    return this.dateFormatter;
                },
                /**
                 * A [[DateFormatter]] instance.
                 *
                 * This is used to format dates, e.g. on a date axes, balloons, etc.
                 *
                 * ```TypeScript
                 * chart.dateFormatter.dateFormat = "yyyy-MM-dd";
                 * ```
                 * ```JavaScript
                 * chart.dateFormatter.dateFormat = "yyyy-MM-dd";
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "dateFormatter": {
                 *     "dateFormat": "yyyy-MM-dd"
                 *   }
                 * }
                 * ```
                 *
                 * You can set a separate instance of formatter for each
                 * individual element. However that would be unnecessary overhead as
                 * all elements would automatically inherit formatter from their parents,
                 * all the way up to the chart itself.
                 *
                 * @see {@link DateFormatter} for more info on dates formatting
                 * @param {DateFormatter}  value  An instance of DateFormatter
                 */
                set: function (value) {
                    this._dateFormatter = value;
                    this._dateFormatter.language = this.language;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "durationFormatter", {
                /**
                 * @return {DurationFormatter} An instance of DurationFormatter
                 */
                get: function () {
                    if (this._durationFormatter) {
                        return this._durationFormatter;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.durationFormatter;
                    }
                    else if (this.parent) {
                        return this.parent.durationFormatter;
                    }
                    this._durationFormatter = new _formatters_DurationFormatter__WEBPACK_IMPORTED_MODULE_21__["DurationFormatter"]();
                    this._durationFormatter.language = this.language;
                    return this.durationFormatter;
                },
                /**
                 * A [[DurationFormatter]] instance.
                 *
                 * This is used to format numbers as durations, e.g. on a value axes.
                 *
                 * You can set a separate instance of formatter for each
                 * individual element. However that would be unnecessary overhead as
                 * all elements would automatically inherit formatter from their parents,
                 * all the way up to the chart itself.
                 *
                 * @see {@link DurationFormatter} for more info on durations
                 * @param {DurationFormatter}  value  An instance of DurationFormatter
                 */
                set: function (value) {
                    this._durationFormatter = value;
                    this._durationFormatter.language = this.language;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "language", {
                /**
                 * @return {Language} An instance of Language
                 */
                get: function () {
                    var language = this._language.get();
                    if (language) {
                        return language;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.language;
                    }
                    else if (this.parent) {
                        return this.parent.language;
                    }
                    language = new _utils_Language__WEBPACK_IMPORTED_MODULE_23__["Language"]();
                    this.language = language;
                    return language;
                },
                /**
                 * A [[Language]] instance to use for translations.
                 *
                 * Normally it is enough to set language for the top-most element - chart.
                 *
                 * All other element child elements will automatically re-use that language
                 * object.
                 *
                 * @param {Language}  value  An instance of Language
                 */
                set: function (value) {
                    var _this = this;
                    if (this._language.get() !== value) {
                        this._language.set(value, value.events.on("localechanged", function (ev) {
                            if (_this instanceof _Container__WEBPACK_IMPORTED_MODULE_10__["Container"]) {
                                _this.deepInvalidate();
                            }
                        }));
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * ==========================================================================
             * DATA-RELATED STUFF
             * ==========================================================================
             * @hidden
             */
            /**
             * Parses the string for meta tags `{tag}` and replaces them with a real
             * value. Supports straight up tags referring to the field in data, i.e.
             * `{value}` or tags with additional formatting info. E.g.:
             *
             * ```Text
             * {myfield.formatDate("yyyy-MM-dd")}
             * {myfield.formatDate()}
             * {myfield.formatNumber("#,####.00")}
             * {myfield.formatNumber()}
             * {myField.formatDuration("mm:ss")}
             * ```
             *
             * Etc.
             *
             * This method Will automatically detect and use proper formatter for the
             * value.
             *
             * The source value will be looked up in various places: (in order)
             * * Sprite's own `dataItem`
             * * Sprite's properties
             * * Parent's `dataItem`
             * * Parent's properties
             *
             * @ignore Exclude from docs
             * @param  {string}    string            A string to format
             * @param  {DataItem}  dataItem          DataItem
             * @return {string}                      Formatted string
             */
            Sprite.prototype.populateString = function (string, dataItem) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](string)) {
                    string = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["castString"](string);
                    string = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_22__["getTextFormatter"])().escape(string);
                    var tags = string.match(/\{([^}]+)\}/g);
                    var i = void 0;
                    if (tags) {
                        for (i = 0; i < tags.length; i++) {
                            var tag = tags[i].replace(/\{([^}]+)\}/, "$1");
                            var value = this.getTagValue(tag, "", dataItem);
                            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value)) {
                                value = "";
                            }
                            string = string.split(tags[i]).join(value);
                        }
                    }
                    string = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_22__["getTextFormatter"])().unescape(string);
                }
                else {
                    string = "";
                }
                return this.adapter.apply("populateString", string);
            };
            /**
             * Gets the value from data item and formats it according to specified format.
             *
             * If `format` is specified, it will use its contents to choose formatter for
             * the value. Otherwise it will select formatter accordingly to actual value
             * type.
             *
             * @ignore Exclude from docs
             * @todo Ability to force certain formatter on known numeric and date values
             * @see {@link NumberFormatter}
             * @see {@link DateFormatter}
             * @see {@link DurationFormatter}
             * @param  {string}    tagName           Tag name to replace
             * @param  {string}    format            Format to use
             * @param  {DataItem}  dataItem          DataItem
             * @return {string}                      Formatted value
             */
            Sprite.prototype.getTagValue = function (tagName, format, dataItem) {
                var value;
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](dataItem)) {
                    dataItem = this.dataItem;
                }
                // Parse parts
                var parts = [];
                var reg = /([^.]+)\(([^)]*)\)|([^.]+)/g;
                ;
                var matches;
                while ((matches = reg.exec(tagName)) !== null) {
                    if (matches[3]) {
                        // Simple property
                        parts.push({
                            prop: matches[3]
                        });
                    }
                    else {
                        // Method
                        // Parse parameters
                        var params = [];
                        if (_utils_Utils__WEBPACK_IMPORTED_MODULE_25__["trim"](matches[2]) != "") {
                            var reg2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g;
                            var matches2 = void 0;
                            while ((matches2 = reg2.exec(matches[2])) !== null) {
                                params.push(matches2[1] || matches2[2] || matches2[3]);
                            }
                        }
                        parts.push({
                            method: matches[1],
                            params: params
                        });
                    }
                }
                // Check if we can retrieve the value from data item
                if (dataItem) {
                    // Check values
                    value = this.getTagValueFromObject(parts, dataItem.values);
                    // Check properties
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value) || _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isObject"](value)) { // isObject helps to solve problem with date axis, as for example dateX will get dateX from values object and wont't get to the dateX date.
                        value = this.getTagValueFromObject(parts, dataItem);
                    }
                    // Check data context
                    var dataContext = dataItem.dataContext;
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value) && dataContext) {
                        value = this.getTagValueFromObject(parts, dataItem.dataContext);
                        // scond data context level sometimes exist (tree map)
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value) && dataContext.dataContext) {
                            value = this.getTagValueFromObject(parts, dataContext.dataContext);
                        }
                    }
                    // Check component's data item
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value) && dataItem.component && dataItem.component.dataItem !== dataItem) {
                        value = dataItem.component.getTagValue(tagName, format);
                    }
                }
                // Check sprite's properties
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value)) {
                    value = this.getTagValueFromObject(parts, this.populateStringFrom || this);
                }
                // Finally, check the parent
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value) && this.parent) {
                    value = this.parent.getTagValue(tagName, format);
                }
                return value;
            };
            /**
             * Tries to retrieve values from properties of any object, then applies
             * proper formatting to it.
             *
             * @ignore Exclude from docs
             * @todo Description (improve)
             * @param  {any[]}   parts   Properties ant methods to access
             * @param  {any}     object  Source object
             * @param  {string}  format  A specific format to apply
             * @return {any}             Formatted value
             */
            Sprite.prototype.getTagValueFromObject = function (parts, object, format) {
                var current = object;
                var formatApplied = false;
                for (var i = 0, len = parts.length; i < len; i++) {
                    var part = parts[i];
                    if (part.prop) {
                        // Regular property
                        current = current[part.prop];
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](current)) {
                            // Not set, return undefined
                            return;
                        }
                    }
                    else {
                        // Method
                        switch (part.method) {
                            case "formatNumber":
                                var numberValue = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["anyToNumber"](current);
                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](numberValue)) {
                                    current = this.numberFormatter.format(numberValue, format || part.params[0] || undefined);
                                    formatApplied = true;
                                }
                                break;
                            case "formatDate":
                                var dateValue = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["anyToDate"](current);
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isDate"](dateValue) || _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNaN"](dateValue.getTime())) {
                                    // Was not able to get date out of value, quitting and letting
                                    // calling method try another value
                                    return;
                                }
                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](dateValue)) {
                                    current = this.dateFormatter.format(dateValue, format || part.params[0] || undefined);
                                    formatApplied = true;
                                }
                                break;
                            case "formatDuration":
                                var durationValue = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["anyToNumber"](current);
                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](durationValue)) {
                                    current = this.durationFormatter.format(durationValue, format || part.params[0] || undefined, part.params[1] || undefined);
                                    formatApplied = true;
                                }
                                break;
                            case "urlEncode":
                            case "encodeURIComponent":
                                current = encodeURIComponent(current);
                                break;
                            default:
                                if (current[part.method]) {
                                    current[part.method].apply(this, part.params);
                                }
                                break;
                        }
                    }
                }
                // Apply default format if it wasn't applied explicitly
                if (!formatApplied) {
                    var formatParts = [{
                            method: "",
                            params: format
                        }];
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](format)) {
                        // Format is not set
                        // Determine from the type of the value
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](current)) {
                            formatParts[0].method = "formatNumber";
                            formatParts[0].params = "";
                        }
                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isDate"](current)) {
                            formatParts[0].method = "formatDate";
                            formatParts[0].params = "";
                        }
                    }
                    else {
                        // Format set
                        // Try to determine formatter based on the format
                        var formatterType = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["getFormat"](format);
                        // format
                        if (formatterType === _utils_Strings__WEBPACK_IMPORTED_MODULE_27__["NUMBER"]) {
                            formatParts[0].method = "formatNumber";
                        }
                        else if (formatterType === _utils_Strings__WEBPACK_IMPORTED_MODULE_27__["DATE"]) {
                            formatParts[0].method = "formatDate";
                        }
                        else if (formatterType === _utils_Strings__WEBPACK_IMPORTED_MODULE_27__["DURATION"]) {
                            formatParts[0].method = "formatDuration";
                        }
                    }
                    // Apply format
                    if (formatParts[0].method) {
                        current = this.getTagValueFromObject(formatParts, current);
                    }
                }
                return current;
            };
            Object.defineProperty(Sprite.prototype, "dataItem", {
                /**
                 * @return {this} [[DataItem]]
                 */
                get: function () {
                    if (!this._dataItem) {
                        if (this.virtualParent) {
                            return this.virtualParent.dataItem;
                        }
                        if (this.parent) {
                            return this.parent.dataItem;
                        }
                    }
                    return this._dataItem;
                },
                /**
                 * A [[DataItem]] to use as element's data source.
                 *
                 * @todo Review type
                 * @param {this["_dataItem"]}  dataItem  DataItem
                 */
                set: function (dataItem) {
                    //an not use this["_dataItem"] here, as we return parent data item if this sprite doesn't have one.
                    // @todo:think about it
                    this.setDataItem(dataItem);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets currently used [[DataItem]].
             *
             * If the element has also `configField` set, it will also look for any
             * config in DataItem's data context to apply to this element.
             *
             * @param {DataItem} dataItem DataItem
             */
            Sprite.prototype.setDataItem = function (dataItem) {
                if (this._dataItem != dataItem) {
                    this._dataItem = dataItem;
                    if (this.configField) {
                        if (dataItem.dataContext) {
                            this.config = dataItem.dataContext[this.configField];
                        }
                    }
                    var dataContext = dataItem.dataContext;
                    if (dataContext) {
                        for (var propertyName in this.propertyFields) {
                            var fieldValue = this.propertyFields[propertyName];
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](dataContext[fieldValue])) {
                                var anyThis = this;
                                anyThis[propertyName] = dataContext[fieldValue];
                            }
                        }
                    }
                    this.invalidate();
                }
            };
            /**
             * ==========================================================================
             * PROPERTY UTILITIES
             * ==========================================================================
             * @hidden
             */
            /**
             * Returns element's property value.
             *
             * Will check if there are any bindings with [[DataItem]].
             *
             * Will also apply any adapters bound to `propertyName`.
             *
             * @param  {ISpriteProperties}  propertyName  Property name
             * @return {any}                              Property value
             */
            Sprite.prototype.getPropertyValue = function (propertyName) {
                var propValue = this.properties[propertyName];
                // Apply adapter
                // @todo get rid of <any>
                if (!this._isTemplate) {
                    propValue = this.adapter.apply(propertyName, propValue);
                }
                return propValue;
            };
            Sprite.prototype.setColorProperty = function (property, value, invalidate) {
                var currentValue = this.properties[property];
                if (value instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"] && currentValue instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"] && value.hex == currentValue.hex) {
                    return false;
                }
                else {
                    return this.setPropertyValue(property, value, invalidate);
                }
            };
            Sprite.prototype.setPercentProperty = function (property, value, invalidate, transform, precision, floor) {
                value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumberOrPercent"](value);
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, precision, floor);
                    return this.setPropertyValue(property, value, invalidate, transform);
                }
                else {
                    var currentValue = this.properties[property];
                    if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"] && currentValue instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"] && value.value == currentValue.value) {
                        return false;
                    }
                    else {
                        return this.setPropertyValue(property, value, invalidate, transform);
                    }
                }
            };
            /**
             * Sets elements's property value. Will also propagate the same property value
             * on all element's clones.
             *
             * @param  {this["_properties"]}  property    Property
             * @param  {any}                  value       Value
             * @param  {boolean}              invalidate  Should the sprite be invalidated, cause it's re-rendering
             * @param  {boolean}              transform   Re-apply positioning of the element
             * @return {boolean}                          Did the value change? It will return `true` if the new value and the old value of the property are not the same
             * @todo Review propagation to clones. Right now we simply check if clone is disposed before setting the same property on it. It's better to remove from clone list altogether.
             */
            Sprite.prototype.setPropertyValue = function (property, value, invalidate, transform) {
                var currentValue = this.properties[property];
                if (this.properties[property] !== value) {
                    this.properties[property] = value;
                    if (this.events.isEnabled("propertychanged")) {
                        var event_1 = {
                            type: "propertychanged",
                            target: this,
                            property: property
                        };
                        this.events.dispatchImmediately("propertychanged", event_1);
                    }
                    if (invalidate) {
                        this.invalidate();
                    }
                    if (transform) {
                        this.invalidatePosition();
                    }
                    if (this.applyOnClones) {
                        var clones = this.clones.values;
                        var length_1 = clones.length;
                        for (var i = 0; i < length_1; ++i) {
                            var clone = clones[i];
                            if (!clone.isDisposed()) {
                                //(<Sprite>clone).setPropertyValue(<any>property, value, invalidate, transform);
                                clone[property] = value;
                            }
                        }
                    }
                    return true;
                }
                return false;
            };
            Sprite.prototype.bind = function (property, source, bindToProperty, modifier) {
                var _this = this;
                if (bindToProperty === void 0) {
                    bindToProperty = property;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this._bindings[property])) {
                    this._bindings[property].dispose();
                }
                // set current value
                this[property] = source[bindToProperty];
                //source.addEventListener(AMEvent.PROPERTY_CHANGED, this.handleBindings, false, this);
                this._bindings[property] = source.events.on("propertychanged", function (event) {
                    if (event.property === bindToProperty) {
                        var value = source[bindToProperty];
                        if (modifier) {
                            value = modifier(value);
                        }
                        // TODO clonesById
                        _this[property] = value;
                    }
                });
            };
            /**
             * Sets up and obeserver function to monitor changes in particular property
             * or properties.
             *
             * @ignore Exclude from docs
             * @param   {string | string[]}  property  Element's property name
             * @param   {function}           listener  Handler function
             * @param   {C}                  context   Context for handler function
             * @returns {IDisposer}                    Event Disposer
             */
            Sprite.prototype.observe = function (property, listener, context) {
                var _this = this;
                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"](_utils_Array__WEBPACK_IMPORTED_MODULE_28__["map"](_utils_Array__WEBPACK_IMPORTED_MODULE_28__["toArray"](property), function (prop) {
                    return _this.events.on("propertychanged", function (e) {
                        if (e.property === prop) {
                            listener.call(context, e);
                        }
                    });
                }));
            };
            /**
             * ==========================================================================
             * ACCESSIBILITY-RELATED PROPERTIES
             * ==========================================================================
             * @hidden
             */
            /**
             * Applies accessibility to the SVG element.
             *
             * Adds `<title>` and `<description>` elements as well as `aria-labelledby`
             * and `role` properties.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.applyAccessibility = function () {
                // Check if we need to add label and description
                var title = this.readerTitle, description = this.readerDescription, role = this.role, hidden = this.readerHidden, checked = this.readerChecked, controls = this.readerControls, live = this.readerLive;
                // Init label/describe ids
                var labelledByIds = [], describedByIds = [];
                var labelledBy = this.readerLabelledBy;
                if (labelledBy) {
                    labelledByIds.push(labelledBy);
                }
                var describedBy = this.readerDescribedBy;
                if (describedBy) {
                    describedByIds.push(describedBy);
                }
                // If we have only label, we use `aria-label` attribute.
                // If there are both label and description, we'll go with separate tags and
                // use `aria-labelledby`
                if (title && !description && !this.showSystemTooltip) {
                    // Only label is set, use attribute
                    this.setSVGAttribute({
                        "aria-label": title
                    });
                    // Remove previous elements
                    this.removeSVGAttribute("aria-description");
                    if (this._titleElement) {
                        this.group.removeElement(this._titleElement);
                        this._titleElement = undefined;
                    }
                    if (this._descriptionElement) {
                        this.group.removeElement(this._descriptionElement);
                        this._descriptionElement = undefined;
                    }
                }
                else {
                    if (title) {
                        var titleElement = this.titleElement;
                        var titleId = this.uid + "-title";
                        if (titleElement.node.textContent != title) {
                            titleElement.node.textContent = title;
                            titleElement.attr({ id: titleId });
                        }
                        labelledByIds.push(titleId);
                    }
                    else if (this._titleElement) {
                        this.group.removeElement(this._titleElement);
                        this._titleElement = undefined;
                    }
                    if (description) {
                        var descriptionElement = this.descriptionElement;
                        var descriptionId = this.uid + "-description";
                        if (descriptionElement.node.textContent != description) {
                            descriptionElement.node.textContent = description;
                            descriptionElement.attr({ id: descriptionId });
                        }
                        labelledByIds.push(descriptionId);
                    }
                    else if (this._descriptionElement) {
                        this.group.removeElement(this._descriptionElement);
                        this._descriptionElement = undefined;
                    }
                }
                // Add label and described properties
                if (labelledByIds.length) {
                    this.setSVGAttribute({ "aria-labelledby": labelledByIds.join(" ") });
                }
                if (describedByIds.length) {
                    this.setSVGAttribute({ "aria-describedby": describedByIds.join(" ") });
                }
                // Apply role
                if (role) {
                    this.setSVGAttribute({ "role": role });
                }
                else {
                    this.removeSVGAttribute("role");
                }
                // Apply aria-hidden
                if (hidden) {
                    this.setSVGAttribute({ "aria-hidden": "true" });
                }
                else {
                    this.removeSVGAttribute("aria-hidden");
                }
                // Apply aria-checked
                if (checked) {
                    this.setSVGAttribute({ "aria-checked": "true" });
                }
                else if (checked === false) {
                    this.setSVGAttribute({ "aria-checked": "false" });
                }
                else {
                    this.removeSVGAttribute("aria-checked");
                }
                // Apply aria-controls
                if (controls) {
                    this.setSVGAttribute({ "aria-controls": controls });
                }
                else {
                    this.removeSVGAttribute("aria-controls");
                }
                // Apply aria-live
                if (live) {
                    this.setSVGAttribute({ "aria-live": live });
                }
                else {
                    this.removeSVGAttribute("aria-live");
                }
            };
            Object.defineProperty(Sprite.prototype, "readerTitle", {
                /**
                 * @return {string} Title
                 */
                get: function () {
                    return this.getPropertyValue("readerTitle");
                },
                /**
                 * Screen reader title of the element.
                 *
                 * @param {string} value Title
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerTitle", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerDescription", {
                /**
                 * @return {string} Description
                 */
                get: function () {
                    return this.getPropertyValue("readerDescription");
                },
                /**
                 * Screen reader description of the element.
                 *
                 * @param {string} value Description
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerDescription", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "role", {
                /**
                 * @return {Roles} Role
                 */
                get: function () {
                    return this.getPropertyValue("role");
                },
                /**
                 * A WAI-ARIA role for the element.
                 *
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#role_definitions} for more information on WAI-ARIA roles
                 * @param {Roles}  value  Role
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("role", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerHidden", {
                /**
                 * @return {boolean} Hidden?
                 */
                get: function () {
                    return this.getPropertyValue("readerHidden");
                },
                /**
                 * Controls if element should be hidden from screen readers.
                 *
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#aria-hidden} for more information
                 * @param {boolean}  value  Hidden?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("readerHidden", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerChecked", {
                /**
                 * @ignore Exclude from docs
                 * @return {boolean} Checked?
                 */
                get: function () {
                    return this.getPropertyValue("readerChecked");
                },
                /**
                 * Controls if element is currently marked as "checked".
                 *
                 * @ignore Exclude from docs
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#aria-checked} for more information
                 * @param {boolean} value Checked?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("readerChecked", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerControls", {
                /**
                 * @ignore Exclude from docs
                 * @return {string} Setting value
                 */
                get: function () {
                    return this.getPropertyValue("readerControls");
                },
                /**
                 * A `uid` of an element this element controls.
                 *
                 * @ignore Exclude from docs
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#aria-controls} for more information
                 * @param {string} value Setting value
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerControls", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerLive", {
                /**
                 * @ignore Exclude from docs
                 * @return {AriaLive} Setting value
                 */
                get: function () {
                    return this.getPropertyValue("readerLive");
                },
                /**
                 * Controls accessibility setting "aria-live" for the element.
                 *
                 * @ignore Exclude from docs
                 * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions} for more information
                 * @param {AriaLive} value Setting value
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerLive", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerLabelledBy", {
                /**
                 * @ignore Exclude from docs
                 * @return {Sprite} Target element
                 */
                get: function () {
                    return this.getPropertyValue("readerLabelledBy");
                },
                /**
                 * A `uid` of an element that describes this element.
                 *
                 * @ignore Exclude from docs
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby} for more information
                 * @param {Sprite} value Target element
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerLabelledBy", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "readerDescribedBy", {
                /**
                 * @ignore Exclude from docs
                 * @return {Sprite} Target element
                 */
                get: function () {
                    return this.getPropertyValue("readerDescribedBy");
                },
                /**
                 * A `uid` of an element that describes this element.
                 *
                 * @ignore Exclude from docs
                 * @see {@link https://www.w3.org/TR/wai-aria-1.1/#aria-describedby} for more information
                 * @param {Sprite} value Target element
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("readerDescribedBy", value)) {
                        this.applyAccessibility();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "keyboardOptions", {
                /**
                 * ==========================================================================
                 * USER INTERACTIONS
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns elements keyboard options.
                 *
                 * @return {IKeyboardOptions} Keyboard options
                 */
                get: function () {
                    if (!this.interactions.keyboardOptions) {
                        if (this.virtualParent) {
                            return this.virtualParent.keyboardOptions;
                        }
                        if (this.parent) {
                            return this.parent.keyboardOptions;
                        }
                    }
                    return this.interactions.keyboardOptions;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "interactions", {
                /**
                 * Returns (creates if necessary) an [[InteractionObject]] associated with
                 * this element.
                 *
                 * [[InteractionObject]] is used to attach all kinds of user-interactions to
                 * the element, e.g. click/touch, dragging, hovering, and similar events.
                 *
                 * @return {InteractionObject} Interaction object
                 */
                get: function () {
                    if (!this._interaction) {
                        var interaction = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__["getInteraction"])().getInteraction(this.dom);
                        this._interaction = interaction;
                        this._interaction.clickable = this.clickable;
                        this._interaction.hoverable = this.hoverable;
                        this._interaction.trackable = this.trackable;
                        this._interaction.draggable = this.draggable;
                        this._interaction.swipeable = this.swipeable;
                        this._interaction.resizable = this.resizable;
                        this._interaction.wheelable = this.wheelable;
                        this._interaction.inert = this.inert;
                        this._disposers.push(this._interaction);
                    }
                    return this._interaction;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns true if interactions object was created. Mostly used just to avoid creating interactions object if not needed.
             * @return {boolean} Is Sprite interactive?
             */
            Sprite.prototype.isInteractive = function () {
                if (this._interaction) {
                    return true;
                }
                else {
                    return false;
                }
            };
            Object.defineProperty(Sprite.prototype, "focusable", {
                /**
                 * @return {Optional<boolean>} Can element be focused?
                 */
                get: function () {
                    return this.getPropertyValue("focusable");
                },
                /**
                 * ==========================================================================
                 * ELEMENT FOCUS-RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Controls if the element can gain focus.
                 *
                 * Focusable element will be selectable via TAB key.
                 *
                 * Please note, clicking it with a mouse or touching will not add focus to
                 * it.
                 *
                 * Focused element will show a system-specific highlight, which might ruin
                 * the overal look. This is why we don't focus element on click/touch.
                 *
                 * A default setting varies for different elements. By default all elements
                 * are not focusable, except certain items like buttons, legend items, etc.
                 *
                 * @default undefined (auto)
                 * @param {Optional<boolean>}  value  Can element be focused?
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("focusable", value)) {
                        if (!value && !this.isInteractive()) {
                        }
                        else {
                            this.interactions.focusable = value;
                            if (value) {
                                this.setSVGAttribute({ "focusable": value });
                            }
                            else {
                                this.removeSVGAttribute("focusable");
                            }
                            // Set focus events that would apply "focus" state
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-focusable", value, function () {
                                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                    _this.events.on("blur", _this.handleBlur, _this, false),
                                    _this.events.on("focus", _this.handleFocus, _this, false)
                                ]);
                            });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Applies filters (if set) when element gains focus.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["focus"]} ev Original event
             */
            Sprite.prototype.handleFocus = function (ev) {
                if (this.focusable) {
                    if (this.topParent) {
                        this.topParent.hasFocused = true;
                    }
                    if (this.focusFilter) {
                        // Any `filters` manipulation will trigger `applyFilters()` so we don't
                        // need to call it here
                        this.filters.push(this.focusFilter);
                    }
                    if (this.hoverOnFocus) {
                        // Trigger a hover event as well
                        this.isHover = true;
                        this.handleOver();
                    }
                }
            };
            /**
             * Removes focus filter (if set) when elementloses focus.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["blur"]} ev Original event
             */
            Sprite.prototype.handleBlur = function (ev) {
                if (this.focusable) {
                    if (this.topParent) {
                        this.topParent.hasFocused = false;
                    }
                    if (this.focusFilter) {
                        // Any `filters` manipulation will trigger `applyFilters()` so we don't
                        // need to call it here
                        this.filters.removeValue(this.focusFilter);
                    }
                    if (this.hoverOnFocus) {
                        // Trigger a out event as well
                        this.isHover = false;
                        this.handleOut();
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "focusFilter", {
                /**
                 * A reference to a [[Filter]] to apply to element when it gains focus.
                 *
                 * Normally, browsers will draw a default ugly square around focused element,
                 * which totally makes sense because its purpose is to help identify active
                 * element for visually impaired people.
                 *
                 * However, if you would rather apply a filter, so you can modify how focused
                 * element looks like, use `focusFilter`.
                 *
                 * Simply set it to an anstance of [[FocusFilter]], or any other filter
                 * object.
                 *
                 * ```TypeScript
                 * chart.focusFilter = new am4core.FocusFilter();
                 * ```
                 * ```JavaScript
                 * chart.focusFilter = new am4core.FocusFilter();
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "focusFilter": {
                 *     "type": "FocusFilter"
                 *   },
                 *   // ...
                 * }
                 * ```
                 *
                 * @see {@link Filter}
                 * @ignore Exclude from docs
                 * @return {Optional<Filter>} Focused element filter
                 * @todo This is still experimental, use at your own risk.
                 */
                get: function () {
                    /*if (!this._focusFilter) {
                        this._focusFilter = new FocusFilter();
                        this._disposers.push(this._focusFilter);
                    }*/
                    //return this._focusFilter;
                    var focusFilter = this._focusFilter;
                    if (focusFilter) {
                        return focusFilter;
                    }
                    if (this.virtualParent) {
                        return this.virtualParent.focusFilter;
                    }
                    else if (this.parent) {
                        return this.parent.focusFilter;
                    }
                    //this._focusFilter = new FocusFilter();
                    //this._disposers.push(this._focusFilter);
                },
                /**
                 * @see {@link Filter}
                 * @ignore Exclude from docs
                 * @todo This is still experimental, don't use it
                 */
                set: function (value) {
                    this._focusFilter = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "hoverOnFocus", {
                /**
                 * @return {boolean} Trigger hover on focus?
                 */
                get: function () {
                    return this.getPropertyValue("hoverOnFocus");
                },
                /**
                 * If set to `true`, this element will also trigger `"over"` event with all
                 * the related consequences, like "hover" state being applied and tooltip
                 * being shown.
                 *
                 * Useful as an accessibility feature to display rollover tooltips on items
                 * selected via keyboard.
                 *
                 * @param {boolean}  value  Trigger hover on focus?
                 * @default false
                 */
                set: function (value) {
                    if (value !== this.hoverOnFocus) {
                        this.setPropertyValue("hoverOnFocus", value);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tabindex", {
                /**
                 * Returns current TAB index for focusable item.
                 *
                 * @return {number} TAB index
                 */
                get: function () {
                    var index = this._tabindex;
                    if (index != null) {
                        return index;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.tabindex;
                    }
                    else if (this.parent) {
                        return this.parent.tabindex;
                    }
                },
                /**
                 * Sets TAB index.
                 *
                 * Tab index maintains the order in which focusable elements gain focus when
                 * TAB key is pressed.
                 *
                 * Please note, tab index is not local to the chart. It affects the whole
                 * of the page, including non-SVG elements. Maintain extreme causion when
                 * setting tab indexes, as it affects the user experience for the whole
                 * web page.
                 *
                 * @param {number} value TAB index
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (this.setPropertyValue("tabindex", value) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        this.interactions.tabindex = value;
                        this.setSVGAttribute({ "tabindex": value });
                        if (value > -1) {
                            this.focusable = true;
                        }
                        else {
                            this.focusable = undefined;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "inertiaOptions", {
                /**
                 * ==========================================================================
                 * DRAGGING AND RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns element's options to be used for inertia. This setting is
                 * inheritable, meaning that if not set directly, it will search in all its
                 * ascendants until very top.
                 *
                 * Inertia is used only if element's `inert` is set to `true`.
                 *
                 * "Inert" element, when dragged and released, will carry the momentum of the
                 * movement, and will continue moving in the same drag direction, gradually
                 * reducing in speed until finally stops.
                 *
                 * Check [[IInertiaOptions]] for how you tweak inertia animations.
                 *
                 * @return {Dictionary<InertiaTypes, IInertiaOptions>} Inertia options
                 */
                get: function () {
                    if (!this.interactions.inertiaOptions) {
                        if (this.parent) {
                            return this.parent.inertiaOptions;
                        }
                    }
                    return this.interactions.inertiaOptions;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "draggable", {
                /**
                 * @return {boolean} `true` if element can be dragged
                 */
                get: function () {
                    return this.getPropertyValue("draggable");
                },
                /**
                 * Controls if the element is draggable.
                 *
                 * @param {boolean}  value  `true` if element can be dragged
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("draggable", value)) {
                        if (!value && !this.isInteractive()) {
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.draggable = value;
                            //interaction.processDraggable(this);
                            // Add events
                            // @todo Maybe attach to InteractionObject's multidisposer so that
                            // sprites events get disposed together with them?
                            // this.interactions.disposers.getItem("movable")
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-draggable", value, function () {
                                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                    _this.events.on("down", _this.handleDown, _this, false),
                                    _this.events.on("dragstart", _this.handleDragStart, _this, false),
                                    _this.events.on("drag", _this.handleDragMove, _this, false),
                                    _this.events.on("dragstop", _this.handleDragStop, _this, false)
                                ]);
                            });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Executes when dragged element is being started to drag.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.handleDragStart = function () {
                this.interactions.originalPosition = {
                    x: this.pixelX,
                    y: this.pixelY
                };
                this._isDragged = true;
                this.hideTooltip(0);
            };
            /**
             * Tell this element to start being dragged. This is useful if you want to
             * drag items by interactions performed not directly on the target element.
             *
             * Parameter `pointer` is highly recommended. By passing in the Pointer you
             * will ensure that movement is tracked for the pointer that you want. If not
             * supplied, the system will try to determine the most logical pointer.
             *
             * However this may fail if you have more than one pointer active, which
             * might happen if you have several objects being dragged on a touch device.
             *
             * @ignore Exclude from docs
             * @param {IPointer} pointer Pointer to use for movement
             */
            Sprite.prototype.dragStart = function (pointer) {
                //this.dragStop(pointer);
                //this.draggable = true;
                this._isDragged = true;
                Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__["getInteraction"])().dragStart(this.interactions, pointer);
            };
            /**
             * Executes when dragged element is being dropped.
             *
             * @ignore Exclude from docs
             */
            Sprite.prototype.handleDragStop = function () {
                this._isDragged = false;
                this.showTooltip();
                this.interactions.originalPosition = undefined;
            };
            /**
             * Stops manually initiated dragging of the element.
             *
             * @ignore Exclude from docs
             * @param {IPointer} pointer Pointer to use as a reference
             */
            Sprite.prototype.dragStop = function (pointer) {
                //this.draggable = false;
                this._isDragged = false;
                Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__["getInteraction"])().dragStop(this.interactions, pointer);
                //this.handleDragStop();
            };
            /**
             * Executes when {Sprite} is being dragged.
             *
             * @ignore Exclude from docs
             * @param {InteractionEvent} ev Event object
             * @todo Implement parent position offset calculation
             */
            Sprite.prototype.handleDragMove = function (ev) {
                var point = this.interactions.originalPosition;
                if (point) {
                    var globalScale = this.parent.globalScale;
                    this.moveTo({ x: point.x + ev.shift.x / globalScale, y: point.y + ev.shift.y / globalScale }, undefined, undefined, true);
                    //this.dispatchImmediately("drag", ev);
                }
            };
            Object.defineProperty(Sprite.prototype, "inert", {
                /**
                 * @return {boolean} `true` if element should use inertia when animated
                 */
                get: function () {
                    return this.getPropertyValue("inert");
                },
                /**
                 * Controls if the element should use inertia when interacted with.
                 *
                 * "Inert" element, when dragged and released, will carry the momentum of the
                 * movement, and will continue moving in the same drag direction, gradually
                 * reducing in speed until finally stops.
                 *
                 * @default false
                 * @param {boolean} value `true` if element should use inertia when animated
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("inert", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.interactions.inert = value;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "hoverOptions", {
                /**
                 * ==========================================================================
                 * HOVERING
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns Sprite's hover options.
                 *
                 * @see {@link IHoverOptions} for available options.
                 * @return {IHoverOptions} Options
                 */
                get: function () {
                    if (!this.interactions.hoverOptions) {
                        if (this.virtualParent) {
                            return this.virtualParent.hoverOptions;
                        }
                        if (this.parent) {
                            return this.parent.hoverOptions;
                        }
                    }
                    return this.interactions.hoverOptions;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "hoverable", {
                /**
                 * @return {boolean} `true` if element is hoverable
                 */
                get: function () {
                    return this.getPropertyValue("hoverable");
                },
                /**
                 * Controls if the element is hoverable (hover events are registered).
                 *
                 * Use `over` and `out` events, to watch for those respective actions.
                 *
                 * @default false
                 * @param {boolean} value `true` if element can be hovered
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("hoverable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.hoverable = value;
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-hoverable", value, function () {
                                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                    _this.events.on("over", _this.handleOver, _this, false),
                                    _this.events.on("out", _this.handleOut, _this, false),
                                ]);
                            });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles tasks when element becomes hovered:
             * * Shows [[Tooltip]] if applicable
             * * Applies "hover" state
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["over"]} ev Event object
             */
            Sprite.prototype.handleOver = function (ev) {
                if (this._outTimeout) {
                    this._outTimeout.dispose();
                }
                if (this.isHover) {
                    if (this.states.hasKey("hover")) {
                        //this.setState("hover");
                        // This will check `isHover` and will set "hover" state
                        if (!this.isHidden) {
                            this.applyCurrentState();
                        }
                    }
                    var point = void 0;
                    if (ev && ev.pointer) {
                        point = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSvg"](ev.pointer.point, this.svgContainer.SVGContainer);
                    }
                    this.showTooltip(point);
                }
                else {
                    this.hideTooltip();
                    if (!this.isHidden && this.states.hasKey("hover")) {
                        this.applyCurrentState();
                    }
                }
            };
            /**
             * Handles tasks when element loses hover:
             *
             * * Hides [[Tooltip]]
             * * Applies default state
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["out"]} ev [description]
             */
            Sprite.prototype.handleOut = function (ev) {
                this.hideTooltip();
                this._outTimeout = this.setTimeout(this.handleOutReal.bind(this), this.rollOutDelay);
            };
            /**
             * [handleOutReal description]
             *
             * @ignore
             * @todo description
             */
            Sprite.prototype.handleOutReal = function () {
                if (!this.isHidden && !this.isHiding && this.states.hasKey("hover")) {
                    this.applyCurrentState();
                }
            };
            Object.defineProperty(Sprite.prototype, "hitOptions", {
                /**
                 * ==========================================================================
                 * CLICKING/TAPPING AND TOGGLING STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns Sprite's click (hit) options.
                 *
                 * Click (hit) options control things like double-click, timeouts, etc.
                 *
                 * @see {@link IHitOptions} for available options.
                 * @return {IHitOptions} Options
                 */
                get: function () {
                    if (!this.interactions.hitOptions) {
                        if (this.virtualParent) {
                            return this.virtualParent.hitOptions;
                        }
                        if (this.parent) {
                            return this.parent.hitOptions;
                        }
                    }
                    return this.interactions.hitOptions;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Prepares element's after `down` event.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["down"]} ev Event
             */
            Sprite.prototype.handleDown = function (ev) {
                if (this.interactions.downPointers.length === 1) {
                    this.interactions.originalPosition = {
                        x: this.pixelX,
                        y: this.pixelY
                    };
                    this.interactions.originalAngle = this.rotation;
                    this.interactions.originalScale = this.scale;
                    if (this.states.hasKey("down")) {
                        this.setState("down");
                    }
                }
            };
            /**
             * Prepares element's after `up` event.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["up"]} ev Event
             */
            Sprite.prototype.handleUp = function (ev) {
                /*if (!this.isDown) {
                    this.interactions.originalPosition = null;
                    this.interactions.originalAngle = null;
                    this.interactions.originalScale = null;
                }*/
                if (this.states.hasKey("down")) {
                    this.applyCurrentState();
                }
            };
            Object.defineProperty(Sprite.prototype, "clickable", {
                /**
                 * @return {boolean}
                 */
                get: function () {
                    return this.getPropertyValue("clickable");
                },
                /**
                 * Indicates if the element is clickable.
                 *
                 * Some type of the elements, like buttons are clickable by default.
                 *
                 * Most of the elements are not clickable by default.
                 *
                 * Use `hit`, `doublehit`, `up`, `down`, `toggled` events to watch for
                 * respective click/touch actions.
                 *
                 * @param {boolean} value `true` if element can be clicked
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("clickable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.clickable = value;
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-clickable", value, function () {
                                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                    _this.events.on("down", _this.handleDown, _this, false),
                                    _this.events.on("up", _this.handleUp, _this, false)
                                ]);
                            });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "togglable", {
                /**
                 * @return {boolean} Is togglable?
                 */
                get: function () {
                    return this.getPropertyValue("togglable");
                },
                /**
                 * Indicates if element can be toggled on and off by subsequent clicks/taps.
                 *
                 * Togglable element will alternate its `isActive` property between `true`
                 * and `false` with each click.
                 *
                 * @param {boolean} value Is togglable?
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("togglable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-togglable", value, function () { return _this.events.on("hit", _this.handleToggle, _this, false); });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles toggling of the element.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Sprite, ISpriteEvents>["hit"]} ev Event
             */
            Sprite.prototype.handleToggle = function (ev) {
                this.isActive = !this.isActive;
            };
            Object.defineProperty(Sprite.prototype, "url", {
                /**
                 * @return {Optional<string>} URL
                 */
                get: function () {
                    return this.getPropertyValue("url");
                },
                /**
                 * Click-through URL for this element.
                 *
                 * If set, clicking/tapping this element will open the new URL in a target
                 * window/tab as set by `urlTarget`.
                 *
                 * Please note that URL will be parsed by data placeholders in curly
                 * brackets, to be populated from data. E.g.:
                 *
                 * ```TypeScript
                 * series.columns.template.url = "https://www.google.com/search?q={category.urlEncode()}";
                 * ```
                 * ```JavaScript
                 * series.columns.template.url = "https://www.google.com/search?q={category.urlEncode()}";
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "series": [{
                 *     // ...
                 *     "columns": {
                 *       "url": "https://www.google.com/search?q={category.urlEncode()}"
                 *     }
                 *   }]
                 * }
                 * ```
                 *
                 * @param {Optional<string>} value URL
                 */
                set: function (value) {
                    if (this.setPropertyValue("url", value)) {
                        if (this._urlDisposer) {
                            this._urlDisposer.dispose();
                        }
                        // If URL is not empty, set up events
                        if (_utils_Utils__WEBPACK_IMPORTED_MODULE_25__["isNotEmpty"](value)) {
                            this._urlDisposer = this.events.on("hit", this.urlHandler, this, false);
                            // Set other required parameters
                            this.clickable = true;
                            this.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].pointer;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "baseId", {
                get: function () {
                    if (!this._baseId && this.parent) {
                        this.baseId = this.parent.baseId;
                    }
                    return this._baseId;
                },
                set: function (value) {
                    this.setBaseId(value);
                },
                enumerable: true,
                configurable: true
            });
            Sprite.prototype.setBaseId = function (value) {
                if (value != this._baseId) {
                    if (this.invalid) {
                        this.invalid = false;
                        _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].removeFromInvalidSprites(this);
                        this.invalidate();
                    }
                    this._baseId = value;
                }
            };
            Object.defineProperty(Sprite.prototype, "urlTarget", {
                /**
                 * @return {string} URL target
                 */
                get: function () {
                    return this.getPropertyValue("urlTarget");
                },
                /**
                 * Target to use for URL clicks:
                 *
                 * * _blank
                 * * _self (default)
                 * * _parent
                 * * _top
                 * * Name of the window/frame
                 *
                 * Ignored if `url` is not set.
                 *
                 * @param {string} value URL target
                 */
                set: function (value) {
                    this.setPropertyValue("urlTarget", value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles URL transition on element click.
             *
             * @ignore Exclude from docs
             * @param {InteractionEvent} ev An event object
             */
            Sprite.prototype.urlHandler = function (ev) {
                // Is URL set?
                if (_utils_Utils__WEBPACK_IMPORTED_MODULE_25__["isNotEmpty"](this.url)) {
                    // Proceed to the URL
                    var url = this.populateString(this.url);
                    if (this.urlTarget === "_self") {
                        window.location.href = url;
                    }
                    else {
                        window.open(url, this.urlTarget);
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "swipeOptions", {
                /**
                 * ==========================================================================
                 * SWIPING GESTURE TRACKING
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns element's swipe gesture options.
                 *
                 * @return {ISwipeOptions} Swipe gesture options
                 */
                get: function () {
                    if (!this.interactions.swipeOptions) {
                        if (this.virtualParent) {
                            return this.virtualParent.swipeOptions;
                        }
                        if (this.parent) {
                            return this.parent.swipeOptions;
                        }
                    }
                    return this.interactions.swipeOptions;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "swipeable", {
                /**
                 * @return {boolean} Element swipable?
                 */
                get: function () {
                    return this.getPropertyValue("swipeable");
                },
                /**
                 * Controls if element is swipeable.
                 *
                 * Swipable element will invoke `swipe`, `swipeleft` and `swiperight` events,
                 * when quick horizontal drag action is performed with either mouse or touch.
                 *
                 * Please note that combining swipe and drag is possible, however will incur
                 * a slight but noticeable delay in drag start.
                 *
                 * @param {boolean}  value  Element swipable?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("swipeable", value)) {
                        this.applyCursorStyle();
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.interactions.swipeable = value;
                        }
                        //interaction.processSwipeable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "trackable", {
                /**
                 * @return {boolean} Track cursor movement over element?
                 */
                get: function () {
                    return this.getPropertyValue("trackable");
                },
                /**
                 * ==========================================================================
                 * POINTER TRACKING
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Indicates if the element is trackable (mouse position over it is reported to
                 * event listeners).
                 *
                 * Will invoke `track` events whenever pointer (cursor) changes position
                 * while over element.
                 *
                 * Please note, touch devices will also invoke `track` events when touch
                 * point is moved while holding down on a trackable element.
                 *
                 * @param {boolean} value Track cursor movement over element?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("trackable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.trackable = value;
                        }
                        //interaction.processTrackable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "wheelable", {
                /**
                 * @return {boolean} Mouse wheel events enabled?
                 */
                get: function () {
                    return this.getPropertyValue("wheelable");
                },
                /**
                 * ==========================================================================
                 * MOUSE-WHEEL RELATED
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Indicates if the element can be interacted with mouse wheel.
                 *
                 * Will invoke `wheel`, `wheelup`, `wheeldown`, `wheelleft`, and `wheelright`
                 * events when using mouse wheel over the element.
                 *
                 * @param {boolean} value Mouse wheel events enabled?
                 */
                set: function (value) {
                    if (this.setPropertyValue("wheelable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.wheelable = value;
                        }
                        //interaction.processWheelable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "resizable", {
                /**
                 * @return {boolean} Element resizable?
                 */
                get: function () {
                    return this.getPropertyValue("resizable");
                },
                /**
                 * ==========================================================================
                 * RESIZE
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Indicates if this element is resizable.
                 *
                 * Enabling resize will turn on various interactions on the element. Their
                 * actual functionality will depend on other properties.
                 *
                 * If the element also `draggable`, resize will only happen with two points
                 * of contact on a touch device.
                 *
                 * If the element is not draggable, resize can be performed with just one
                 * point of contact, touch or mouse.
                 *
                 * Will invoke `resize` event every time the size of the element changes.
                 *
                 * @param {boolean}  value  Element resizable?
                 */
                set: function (value) {
                    var _this = this;
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("resizable", value)) {
                        if (!value && !this.isInteractive()) {
                            // void
                        }
                        else {
                            this.applyCursorStyle();
                            this.interactions.resizable = value;
                            // setEventDisposer will also remove listeners if value == false
                            this.interactions.setEventDisposer("sprite-resizable", value, function () {
                                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_7__["MultiDisposer"]([
                                    _this.events.on("down", _this.handleDown, _this, false),
                                    _this.events.on("resize", _this.handleResize, _this, false)
                                ]);
                            });
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles resize intermediate step.
             *
             * By default this method resizes actual element. Each element, can override
             * this method to implement their own resize logic.
             *
             * @ignore Exclude from docs
             * @param {InteractionEvent} ev Event object
             */
            Sprite.prototype.handleResize = function (ev) {
                this.scale = this.interactions.originalScale * ev.scale;
                this.validatePosition();
                /*center: (io.draggable
                ? $math.getMidPoint(point1, point2)
                : {
                    "x": io.originalPosition.x,
                    "y": io.originalPosition.y
                })*/
                //this.moveTo(this.originalPosition.x + ev.shift.x, this.originalPosition.y + ev.shift.y);
                if (this.draggable) {
                    var svgPoint1 = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSvg"](ev.point1, this.htmlContainer);
                    var svgPoint2 = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSvg"](ev.point2, this.htmlContainer);
                    var svgMidPoint = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["getMidPoint"](svgPoint1, svgPoint2);
                    var parentPoint1 = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSprite"](ev.startPoint1, this.parent);
                    var parentPoint2 = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSprite"](ev.startPoint2, this.parent);
                    var originalPosition = this.interactions.originalPosition;
                    var originalScale = this.interactions.originalScale;
                    if (originalPosition) {
                        var spritePoint1 = { x: (parentPoint1.x - originalPosition.x) / originalScale, y: (parentPoint1.y - originalPosition.y) / originalScale };
                        var spritePoint2 = { x: (parentPoint2.x - originalPosition.x) / originalScale, y: (parentPoint2.y - originalPosition.y) / originalScale };
                        var spriteMidPoint = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["getMidPoint"](spritePoint1, spritePoint2);
                        var parentPoint = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["svgPointToSprite"](svgMidPoint, this.parent);
                        this.moveTo({ x: parentPoint.x - spriteMidPoint.x * this.scale, y: parentPoint.y - spriteMidPoint.y * this.scale });
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "cursorOptions", {
                /**
                 * ==========================================================================
                 * MOUSE-RELATED
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns element's cursor options.
                 *
                 * Cursor options usually define cursor style for various states of the
                 * hovered element.
                 *
                 * Elements inherit `cursorOptions` from their parents if they don't have
                 * them set explicitly.
                 *
                 * @see {@link ICursorOptions} for a list of available options
                 * @return {ICursorOptions} Cursor options
                 */
                get: function () {
                    if (!this.interactions.cursorOptions) {
                        if (this.virtualParent) {
                            return this.virtualParent.cursorOptions;
                        }
                        if (this.parent) {
                            return this.parent.cursorOptions;
                        }
                    }
                    return this.interactions.cursorOptions;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "cursorOverStyle", {
                /**
                 * A shortcut to setting mouse cursor on hover.
                 *
                 * Example:
                 *
                 * ```TypeScript
                 * series.slices.template.cursorOverStyle = am4core.MouseCursorStyle.pointer;
                 * ```
                 * ```JavaScript
                 * series.slices.template.cursorOverStyle = am4core.MouseCursorStyle.pointer;
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "series": {
                 *     // ...
                 *     "slices": {
                 *       "cursorOverStyle": "pointer"
                 *     }
                 *   }
                 * }
                 * ```
                 *
                 * @param {Array<IStyleProperty>} style An array of styles to apply onhover
                 */
                set: function (style) {
                    this.cursorOptions.overStyle = style;
                    Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__["getInteraction"])().applyCursorOverStyle(this.interactions);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "cursorDownStyle", {
                /**
                 * A shortcut to setting mouse cursor when button is pressed down.
                 *
                 * Example:
                 *
                 * ```TypeScript
                 * series.slices.template.cursorDownStyle = am4core.MouseCursorStyle.grabbing;
                 * ```
                 * ```JavaScript
                 * series.slices.template.cursorDownStyle = am4core.MouseCursorStyle.grabbing;
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "series": {
                 *     // ...
                 *     "slices": {
                 *       "cursorDownStyle": "grabbing"
                 *     }
                 *   }
                 * }
                 * ```
                 *
                 * @param {Array<IStyleProperty>} style An array of styles to apply onhover
                 */
                set: function (style) {
                    this.cursorOptions.downStyle = style;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Applies default cursor styles for interactable elements.
             *
             * @ignore Exclude from docs
             * @todo Determine if this is necessary. Maybe let's not apply any cursor styles by default
             */
            Sprite.prototype.applyCursorStyle = function () {
                // Draggable styles
                /*if (this.draggable) {
        
                    if (!$type.hasValue(this.cursorOptions.overStyle)) {
                        this.cursorOptions.overStyle = MouseCursorStyle.grab;
                    }
        
                    if (!$type.hasValue(this.cursorOptions.downStyle)) {
                        this.cursorOptions.downStyle = MouseCursorStyle.grabbing;
                    }
                }*/
            };
            Object.defineProperty(Sprite.prototype, "interactionsEnabled", {
                /**
                 * @return {boolean} Is interaction enabled for this element?
                 */
                get: function () {
                    var value = this.getPropertyValue("interactionsEnabled");
                    if (value === false) {
                        return false;
                    }
                    if (this.virtualParent) {
                        return this.virtualParent.interactionsEnabled;
                    }
                    if (this.parent) {
                        return this.parent.interactionsEnabled;
                    }
                    return true;
                },
                /**
                 * Setting this to `false` will effectively disable all interactivity on the
                 * element.
                 *
                 * @param {boolean}  value  Is interaction enabled for this element?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("interactionsEnabled", value)) {
                        var pointerEvents = null; // must be null, not "null"!
                        if (!value) {
                            pointerEvents = "none";
                        }
                        else {
                            // this is for IE
                            this.group.node.style.pointerEvents = "";
                        }
                        this.group.node.style.pointerEvents = pointerEvents;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "exporting", {
                /**
                 * @return {Export} Export instance
                 */
                get: function () {
                    return this.getExporting();
                },
                /**
                 * ==========================================================================
                 * EXPORT-RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * An [[Export]] instance.
                 *
                 * Used to access API of the chart export functionality.
                 *
                 * If `exporting` is not set, the element inherits [[Export]] instance from
                 * its parents.
                 *
                 * Upon request, if no parent has such instance, a new one is created, using
                 * default settings, what in most cases is just enough.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/exporting/} for more info about exporting
                 * @param {Export}  exp  Export
                 */
                set: function (exp) {
                    this._exporting.set(exp, exp);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * This is here as a method so that inheriting classes could override it.
             *
             * @return {Export} Export instance
             */
            Sprite.prototype.getExporting = function () {
                var _export = this._exporting.get();
                if (_export) {
                    return _export;
                }
                else {
                    if (this.isStandaloneInstance || !this.parent) {
                        _export = new _export_Export__WEBPACK_IMPORTED_MODULE_24__["Export"](this.svgContainer.SVGContainer);
                        _export.sprite = this;
                        _export.language = this.language;
                        _export.dateFormatter = this.dateFormatter;
                        this._exporting.set(_export, _export);
                    }
                    else {
                        return this.parent.exporting;
                    }
                }
                return _export;
            };
            Object.defineProperty(Sprite.prototype, "exportable", {
                /**
                 * @return {boolean} Export?
                 */
                get: function () {
                    var svgContainer = this.svgContainer;
                    return !svgContainer || _utils_Array__WEBPACK_IMPORTED_MODULE_28__["indexOf"](svgContainer.nonExportableSprites, this) == -1;
                },
                /**
                 * If set to `false` this element will be omitted when exporting the chart
                 * to an image.
                 *
                 * @default true
                 * @param {boolean}  value  Export?
                 */
                set: function (value) {
                    var svgContainer = this.svgContainer;
                    if (svgContainer && value != this.exportable) {
                        if (value) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_28__["remove"](svgContainer.nonExportableSprites, this);
                        }
                        else {
                            svgContainer.nonExportableSprites.push(this);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * ==========================================================================
             * MODAL/POPUP RELATED STUFF
             * ==========================================================================
             * @hidden
             */
            /**
             * Private method to be used for "classPrefix" adapter for modals/popups.
             *
             * @param {string}  value  Prefix
             */
            Sprite.prototype.modalPrefix = function (value) {
                value = _Options__WEBPACK_IMPORTED_MODULE_17__["options"].classNamePrefix + value;
                return value;
            };
            Object.defineProperty(Sprite.prototype, "modal", {
                /**
                 * Returns a [[Modal]] instance, associated with this chart.
                 * (elements top parent)
                 *
                 * Accessing modal does not make it appear. To make a modal appear, use
                 * `showModal()` method.
                 *
                 * @see {@link Modal} for more information about using Modal windows
                 * @return {Modal} Modal instance
                 */
                get: function () {
                    var svgContainer = this.svgContainer;
                    if (svgContainer) {
                        var modal = svgContainer.modal;
                        if (!modal.adapter.has("classPrefix", this.modalPrefix)) {
                            modal.adapter.add("classPrefix", this.modalPrefix);
                        }
                        return modal;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Opens a modal window with specific content (`text` parameter) and,
             * optionally, `title`.
             *
             * The `text` parameter can contain HTML content.
             *
             * @see {@link Modal} for more information about using Modal windows
             * @param {string}  text   Modal contents
             * @param {string}  title  Title for the modal window
             */
            Sprite.prototype.openModal = function (text, title) {
                var svgContainer = this.svgContainer;
                if (svgContainer) {
                    return svgContainer.openModal(text, title);
                }
            };
            /**
             * Hides modal window if there is one currently open.
             */
            Sprite.prototype.closeModal = function () {
                var svgContainer = this.svgContainer;
                if (svgContainer) {
                    svgContainer.closeModal();
                }
            };
            Object.defineProperty(Sprite.prototype, "popups", {
                /**
                 * A list of popups for this chart.
                 *
                 * @return {ListTemplate<Popup>} Popups
                 */
                get: function () {
                    var svgContainer = this.svgContainer;
                    if (svgContainer) {
                        var popups = svgContainer.popups;
                        popups.template.sprite = this;
                        if (!popups.template.adapter.has("classPrefix", this.modalPrefix)) {
                            popups.template.adapter.add("classPrefix", this.modalPrefix);
                        }
                        return popups;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates, opens, and returns a new [[Popup]] window.
             *
             * `text` can be any valid HTML.
             *
             * `title` is currently not supported.
             *
             * @param  {string}  text   Popup contents
             * @param  {string}  title  Popup title
             * @return {Popup}          Popup instance
             */
            Sprite.prototype.openPopup = function (text, title) {
                var svgContainer = this.svgContainer;
                if (svgContainer) {
                    return svgContainer.openPopup(text, title);
                }
            };
            /**
             * Closes all currently open popup windows
             */
            Sprite.prototype.closeAllPopups = function () {
                var svgContainer = this.svgContainer;
                if (svgContainer) {
                    return svgContainer.closeAllPopups();
                }
            };
            Object.defineProperty(Sprite.prototype, "x", {
                /**
                 * @return {number | Percent} X coordinate
                 */
                get: function () {
                    return this.getPropertyValue("x");
                },
                /**
                 * ==========================================================================
                 * POSITIONAL PROPERTIES AND RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Element's absolute or relative X coordinate.
                 *
                 * If setting both X and Y, please consider using `moveTo()` method instead,
                 * as it will be faster to set both coordinates at once.
                 *
                 * @param {number | Percent} value X coordinate
                 */
                set: function (value) {
                    if (!this.isDragged) {
                        this.setPercentProperty("x", value, false, true, this._positionPrecision, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelX", {
                /**
                 * Returns element's current absolute X coordinate in pixels.
                 *
                 * @readonly
                 * @return {number} X coordinate (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelX", _utils_Math__WEBPACK_IMPORTED_MODULE_26__["fitToRange"](this.getPixelX(this.x), this.minX, this.maxX));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeX", {
                /**
                 * Returns element's current relative X coordinate in [[Percent]].
                 *
                 * @return {number} X coordinate ([[Percent]])
                 */
                get: function () {
                    return this.adapter.apply("relativeX", this.getRelativeX(this.x));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "minX", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Min X (px)
                 */
                get: function () {
                    return this.getPropertyValue("minX");
                },
                /**
                 * The smallest allowable absolute X coordinate for this element.
                 *
                 * This is used to contain element movement within certain boundaries.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Min X (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("minX", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "maxX", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Max X (px)
                 */
                get: function () {
                    return this.getPropertyValue("maxX");
                },
                /**
                 * The biggest allowable absolute X coordinate for this element.
                 *
                 * This is used to contain element movement within certain boundaries.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Max X (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("maxX", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "y", {
                /**
                 * @return {number | Percent} Y coordinate
                 */
                get: function () {
                    return this.getPropertyValue("y");
                },
                /**
                 * Element's absolute or relative Y coordinate.
                 *
                 * If setting both X and Y, please consider using `moveTo()` method instead,
                 * as it will be faster to set both coordinates at once.
                 *
                 * @param {number | Percent}  value  Y coordinate
                 */
                set: function (value) {
                    if (!this.isDragged) {
                        this.setPercentProperty("y", value, false, true, this._positionPrecision, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelY", {
                /**
                 * Returns element's current absolute Y coordinate in pixels.
                 *
                 * @readonly
                 * @return {number} Y coordinate (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelY", _utils_Math__WEBPACK_IMPORTED_MODULE_26__["fitToRange"](this.getPixelY(this.y), this.minY, this.maxY));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeY", {
                /**
                 * Returns element's current relative Y coordinate in [[Percent]].
                 *
                 * @readonly
                 * @return {number} Y coordinate ([[Percent]])
                 */
                get: function () {
                    return this.adapter.apply("relativeY", this.getRelativeX(this.y));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "minY", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Min Y (px)
                 */
                get: function () {
                    return this.getPropertyValue("minY");
                },
                /**
                 * The smallest allowable absolute Y coordinate for this element.
                 *
                 * This is used to contain element movement within certain boundaries.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Min Y (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("minY", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "maxY", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Max Y (px)
                 */
                get: function () {
                    return this.getPropertyValue("maxY");
                },
                /**
                 * The biggest allowable absolute Y coordinate for this element.
                 *
                 * This is used to contain element movement within certain boundaries.
                 *
                 * @ignore Exclude from docs
                 * @param {number}  value  Max Y (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("maxY", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "dx", {
                /**
                 * @return {number} Horizontal offset (px)
                 */
                get: function () {
                    return this.getPropertyValue("dx");
                },
                /**
                 * A horizontal offset for the element in pixels.
                 *
                 * Can be negative value for offset to the left.
                 *
                 * @param {number}  value  Horizontal offset (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("dx", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "dy", {
                /**
                 * @return {number} Vertical offset (px)
                 */
                get: function () {
                    return this.getPropertyValue("dy");
                },
                /**
                 * A vertical offset for the element in pixels.
                 *
                 * Can be negative value for offset upwards.
                 *
                 * @param {number}  value  Vertical offset (px)
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](value, this._positionPrecision, true);
                        this.setPropertyValue("dy", value, false, true);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "rotation", {
                /**
                 * @return {number} Rotation (0-360)
                 */
                get: function () {
                    return this.getPropertyValue("rotation");
                },
                /**
                 * Rotation of the element in degrees. (0-360)
                 *
                 * @param {number}  value  Rotation (0-360)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                        value = 0;
                    }
                    this.setPropertyValue("rotation", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "align", {
                /**
                 * @return {Align} Horizontal align
                 */
                get: function () {
                    return this.getPropertyValue("align");
                },
                /**
                 * Controls horizontal alignment of the element.
                 *
                 * This is used by parent [[Container]] when layouting its children.
                 *
                 * @param {Align}  value  Horizontal align
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    this.setPropertyValue("align", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "valign", {
                /**
                 * @return {VerticalAlign} Vertical align
                 */
                get: function () {
                    return this.getPropertyValue("valign");
                },
                /**
                 * Controls vertical alignment of the element.
                 *
                 * This is used by parent [[Container]] when layouting its children.
                 *
                 * @param {VerticalAlign}  value  Vertical align
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    this.setPropertyValue("valign", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "horizontalCenter", {
                /**
                 * @return {HorizontalCenter} Horizontal center
                 */
                get: function () {
                    return this.getPropertyValue("horizontalCenter");
                },
                /**
                 * Controls which part of the element to treat as a horizontal center.
                 *
                 * The setting will be used when positioning, resizing and rotating the
                 * element.
                 *
                 * @param {HorizontalCenter}  value  Horizontal center
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("horizontalCenter", value)) {
                        this.updateCenter();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "verticalCenter", {
                /**
                 * @return {VerticalCenter} Vertical center
                 */
                get: function () {
                    return this.getPropertyValue("verticalCenter");
                },
                /**
                 * Controls which part of the element to treat as a vertical center.
                 *
                 * The setting will be used when positioning, resizing and rotating the
                 * element.
                 *
                 * @param {VerticalCenter}  value  Vertical center
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("verticalCenter", value)) {
                        this.updateCenter();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "maxWidth", {
                /**
                 * @return {number} Maximum width (px)
                 */
                get: function () {
                    var maxWidth = this.getPropertyValue("maxWidth");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](maxWidth)) {
                        if (this.parent) {
                            return this.parent.maxWidth;
                        }
                    }
                    return maxWidth;
                },
                /**
                 * ==========================================================================
                 * DIMENSIONAL PROPERTIES AND RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Maximum allowed width for the element in pixels.
                 *
                 * @param {number}  value  Maximum width (px)
                 */
                set: function (value) {
                    this.setMaxWidth(value);
                },
                enumerable: true,
                configurable: true
            });
            Sprite.prototype.setMaxWidth = function (value) {
                var prevWidth = this.maxWidth;
                var prevHeight = this.maxHeight;
                if (this.setPropertyValue("maxWidth", value)) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this.relativeWidth)) {
                        this.invalidate();
                    }
                    var event_2 = {
                        type: "maxsizechanged",
                        target: this,
                        previousWidth: prevWidth,
                        previousHeight: prevWidth
                    };
                    this.dispatchImmediately("maxsizechanged", event_2);
                }
            };
            Object.defineProperty(Sprite.prototype, "maxHeight", {
                /**
                 * @return {number} Maximum height (px)
                 */
                get: function () {
                    var maxHeight = this.getPropertyValue("maxHeight");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](maxHeight)) {
                        if (this.parent) {
                            return this.parent.maxHeight;
                        }
                    }
                    return maxHeight;
                },
                /**
                 * Maximum allowed height for the element in pixels.
                 *
                 * @param {number}  value  Maximum height (px)
                 */
                set: function (value) {
                    this.setMaxHeight(value);
                },
                enumerable: true,
                configurable: true
            });
            Sprite.prototype.setMaxHeight = function (value) {
                var prevWidth = this.maxWidth;
                var prevHeight = this.maxHeight;
                if (this.setPropertyValue("maxHeight", value)) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this.relativeHeight)) {
                        this.invalidate();
                    }
                    var event_3 = {
                        type: "maxsizechanged",
                        target: this,
                        previousWidth: prevWidth,
                        previousHeight: prevWidth
                    };
                    this.dispatchImmediately("maxsizechanged", event_3);
                }
            };
            Object.defineProperty(Sprite.prototype, "minWidth", {
                /**
                 * @return {Optional<number>} Minimum width (px)
                 */
                get: function () {
                    return this.getPropertyValue("minWidth");
                },
                /**
                 * Minimum width of the element in pixels.
                 *
                 * Set to `undefined` to remove the limit.
                 *
                 * @param {Optional<number>}  value  Minimum width (px)
                 */
                set: function (value) {
                    this.setPropertyValue("minWidth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "minHeight", {
                /**
                 * @return {Optional<number>} Minimum height (px)
                 */
                get: function () {
                    return this.getPropertyValue("minHeight");
                },
                /**
                 * Minimum height for the element in pixels.
                 *
                 * Set to `undefined` to remove the limit.
                 *
                 * @param {Optional<number>}  value  Minimum height (px)
                 */
                set: function (value) {
                    this.setPropertyValue("minHeight", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "width", {
                /**
                 * @return {number | Percent} Width (absolute or relative)
                 */
                get: function () {
                    return this.getPropertyValue("width");
                },
                /**
                 * Element's absolute or relative width.
                 *
                 * The width can either be absolute, set in numer pixels, or relative, set
                 * in [[Percent]].
                 *
                 * Relative width will be calculated using closest measured ancestor
                 * [[Container]].
                 *
                 * @param {number | Percent}  value  Width (numeric in pixels or relative)
                 */
                set: function (value) {
                    var changed = this.setPercentProperty("width", value, true, false, this._positionPrecision, true);
                    if (changed) {
                        this.percentWidth = undefined;
                        this.relativeWidth = undefined;
                        if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                            this.percentWidth = value.percent;
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this._pixelWidth)) {
                                this.maxWidth = undefined;
                            }
                            this._pixelWidth = undefined;
                        }
                        else {
                            this._pixelWidth = Number(value);
                            this.maxWidth = this._pixelWidth;
                        }
                        this.invalidatePosition();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "height", {
                /**
                 * @return {number | Percent} height (absolute or relative)
                 */
                get: function () {
                    return this.getPropertyValue("height");
                },
                /**
                 * Element's absolute or relative height.
                 *
                 * The height can either be absolute, set in numer pixels, or relative, set
                 * in [[Percent]].
                 *
                 * Relative height will be calculated using closest measured ancestor
                 * [[Container]].
                 *
                 * @param {number | Percent}  value  Height (numeric in pixels or relative)
                 */
                set: function (value) {
                    var changed = this.setPercentProperty("height", value, true, false, this._positionPrecision, true);
                    if (changed) {
                        this.percentHeight = undefined;
                        this._relativeHeight = undefined;
                        if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_33__["Percent"]) {
                            this.percentHeight = value.percent;
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this._pixelHeight)) {
                                this.maxHeight = undefined;
                            }
                            this._pixelHeight = undefined;
                        }
                        else {
                            this._pixelHeight = Number(value);
                            this.maxHeight = this._pixelHeight; // yes, we reset maxWidth
                        }
                        this.invalidatePosition();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelWidth", {
                /**
                 * Returns element's width in pixels, if width was set. For actual width use measuredWidth property.
                 *
                 * @readonly
                 * @return {number} Width (px)
                 */
                get: function () {
                    var width;
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this.percentWidth)) {
                        width = this.maxWidth;
                    }
                    else if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this._pixelWidth)) {
                        width = this._pixelWidth;
                    }
                    else {
                        width = 0;
                    }
                    var minWidth = this.minWidth;
                    if (minWidth != null && width < minWidth) {
                        width = minWidth;
                    }
                    return this.adapter.apply("pixelWidth", _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](width, this._positionPrecision, true));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelHeight", {
                /**
                 * Returns element's height in pixels. For actual height use measuredHeight property.
                 *
                 * @readonly
                 * @return {number} Height (px)
                 */
                get: function () {
                    var height;
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this.percentHeight)) {
                        height = this.maxHeight;
                    }
                    else if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](this._pixelHeight)) {
                        height = this._pixelHeight;
                    }
                    else {
                        height = 0; //this._measuredHeightSelf;
                    }
                    var minHeight = this.minHeight;
                    if (minHeight != null && height < minHeight) {
                        height = minHeight;
                    }
                    return this.adapter.apply("pixelHeight", _utils_Math__WEBPACK_IMPORTED_MODULE_26__["round"](height, this._positionPrecision, true));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeWidth", {
                /**
                 * @return {$type.Optional<number>} Relative width
                 * @ignore
                 */
                get: function () {
                    var relativeWidth = this._relativeWidth;
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](relativeWidth)) {
                        return this.adapter.apply("relativeWidth", relativeWidth);
                    }
                },
                /**
                 * Element's relative width in [[Percent]].
                 * @ignore
                 *
                 * @param {$type.Optional<number>}  value  Relative width
                 */
                set: function (value) {
                    if (this._relativeWidth != value) {
                        this._relativeWidth = value;
                        //			this.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeHeight", {
                /**
                 * @return {$type.Optional<number>} Relative height
                 * @ignore
                 */
                get: function () {
                    var relativeHeight = this._relativeHeight;
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](relativeHeight)) {
                        return this.adapter.apply("relativeHeight", relativeHeight);
                    }
                },
                /**
                 * Element's relative height in [[Percent]].
                 *
                 * @param {$type.Optional<number>}  value  Relative height
                 * @ignore
                 */
                set: function (value) {
                    if (this._relativeHeight != value) {
                        this._relativeHeight = value;
                        //			this.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "measuredWidth", {
                /**
                 * Returns element's measured width in pixels.
                 *
                 * A measured width is actual width of contents plus `paddingRight` and* `paddingLeft`, relative to sprite parent, meaning that
                 * rotation and scale is taken into account.
                 *
                 * @readonly
                 * @return {number} Width (px)
                 */
                get: function () {
                    if (this.disabled || this.__disabled) {
                        return 0;
                    }
                    return this.adapter.apply("measuredWidth", this._measuredWidth);
                    // it's not good to fit to min/max range as then rotations and scale won't be taken into account
                    //return this.adapter.apply("measuredWidth", $math.fitToRange(this._measuredWidth, this.minWidth, this.maxWidth));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "measuredHeight", {
                /**
                 * Returns elements's measured height in pixels.
                 *
                 * A measured height is actual height of contents plus `paddingTop` and `paddingBottom`, relative to sprite parent, meaning that
                 * rotation and scale taken into account.
                 *
                 * @readonly
                 * @return {number} Height (px)
                 */
                get: function () {
                    if (this.disabled || this.__disabled) {
                        return 0;
                    }
                    // it's not good to fit to min/max range as then rotations and scale won't be taken into account
                    //return this.adapter.apply("measuredHeight", $math.fitToRange(this._measuredHeight, this.minHeight, this.maxHeight));
                    return this.adapter.apply("measuredHeight", this._measuredHeight);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "outerWidth", {
                /**
                 * Returns element's measured width plus its left and right margins in
                 * pixels.
                 *
                 * @readonly
                 * @return {number} Outer width (px)
                 */
                get: function () {
                    return this.adapter.apply("outerWidth", this.pixelWidth + this.pixelMarginRight + this.pixelMarginLeft);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "outerHeight", {
                /**
                 * Returns element's measured height plus its top and bottom margins in
                 * pixels.
                 *
                 * @readonly
                 * @return {number} Outer height (px)
                 */
                get: function () {
                    return this.adapter.apply("outerHeight", this.pixelHeight + this.pixelMarginTop + this.pixelMarginBottom);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "innerWidth", {
                /**
                 * Returns element's measured inner width in pixels.
                 *
                 * Inner width is actual available space for content, e.g. element's width
                 * minus horizontal padding.
                 *
                 * @readonly
                 * @return {number} Inner width (px)
                 */
                get: function () {
                    return this.adapter.apply("innerWidth", Math.max(0, this.pixelWidth - this.pixelPaddingRight - this.pixelPaddingLeft));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "innerHeight", {
                /**
                 * Returns element's measured inner height in pixels.
                 *
                 * Inner height is actual available space for content, e.g. element's height
                 * minus vertical padding.
                 *
                 * @readonly
                 * @return {number} Inner height (px)
                 */
                get: function () {
                    return this.adapter.apply("innerHeight", Math.max(0, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "globalScale", {
                /**
                 * Returns element's current "global" scale.
                 *
                 * Scale values accumulate over hierarchy of elements.
                 *
                 * E.g. if a [[Container]] has `scale = 2` and it's child has a `scale = 2`,
                 * the child's `globalScale` will be 4. (a multitude of `2 x 2`)
                 *
                 * @readonly
                 * @return {number} Global scale
                 */
                get: function () {
                    var scale = this.scale;
                    if (this.parent) {
                        scale = scale * this.parent.globalScale;
                    }
                    return this.adapter.apply("globalScale", scale);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "scale", {
                /**
                 * @return {number} Scale (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("scale");
                },
                /**
                 * Scale of the element.
                 *
                 * The scale is set from 0 (element reduced to nothing) to 1 (default size).
                 * * 2 will mean element is increased twice.
                 * * 0.5 - reduced by 50%.
                 *
                 * Etc.
                 *
                 * @param {number}  value  Scale (0-1)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (value < 0) {
                        value = 0;
                    }
                    if (value != this.getPropertyValue("scale")) {
                        this.setPropertyValue("scale", value, false, true);
                        this.handleGlobalScale();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets all four margins for the element at once.
             *
             * Margins are set in pixels.
             *
             * @param  {number}  top     Top margin
             * @param  {number}  right   Right margin
             * @param  {number}  bottom  Bottom margin
             * @param  {number}  left    Left margin
             * @return {Sprite}          Current element
             */
            Sprite.prototype.margin = function (top, right, bottom, left) {
                this.marginTop = top;
                this.marginRight = right;
                this.marginBottom = bottom;
                this.marginLeft = left;
                return this;
            };
            Object.defineProperty(Sprite.prototype, "marginLeft", {
                /**
                 * @return {number | Percent} Margin value
                 */
                get: function () {
                    return this.getPropertyValue("marginLeft");
                },
                /**
                 * Left margin - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Margin value
                 */
                set: function (value) {
                    this.setPercentProperty("marginLeft", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "marginRight", {
                /**
                 * @return {number | Percent} Margin value
                 */
                get: function () {
                    return this.getPropertyValue("marginRight");
                },
                /**
                 * Right margin - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Margin value
                 */
                set: function (value) {
                    this.setPercentProperty("marginRight", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "marginTop", {
                /**
                 * @return {number | Percent} Margin value
                 */
                get: function () {
                    return this.getPropertyValue("marginTop");
                },
                /**
                 * Top margin - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Margin value
                 */
                set: function (value) {
                    this.setPercentProperty("marginTop", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "marginBottom", {
                /**
                 * @return {number | Percent} Margin value
                 */
                get: function () {
                    return this.getPropertyValue("marginBottom");
                },
                /**
                 * Bottom margin - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Margin value
                 */
                set: function (value) {
                    this.setPercentProperty("marginBottom", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelMarginRight", {
                /**
                 * Returns current right margin in pixels.
                 *
                 * @readonly
                 * @return {number} Right margin (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelMarginRight", this.getPixelX(this.marginRight));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeMarginRight", {
                /**
                 * Returns current relative right margin.
                 *
                 * @readonly
                 * @return {number} Relative right margin
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.adapter.apply("relativeMarginRight", this.getRelativeX(this.marginRight));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelMarginLeft", {
                /**
                 * Returns current left margin in pixels.
                 *
                 * @readonly
                 * @return {number} Left margin (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelMarginLeft", this.getPixelX(this.marginLeft));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeMarginLeft", {
                /**
                 * Returns current relative left margin.
                 *
                 * @readonly
                 * @return {number} Relative left margin
                 */
                get: function () {
                    //@todo Maybe use [[Percent]]?
                    return this.adapter.apply("relativeMarginLeft", this.getRelativeX(this.marginLeft));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelMarginTop", {
                /**
                 * Returns current top margin in pixels.
                 *
                 * @readonly
                 * @return {number} Top margin (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelMarginTop", this.getPixelY(this.marginTop));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeMarginTop", {
                /**
                 * Returns current relative top margin.
                 *
                 * @readonly
                 * @return {number} Relative top margin
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.adapter.apply("relativeMarginTop", this.getRelativeY(this.marginTop));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelMarginBottom", {
                /**
                 * Returns current bottom margin in pixels.
                 *
                 * @readonly
                 * @return {number} Bottom margin (px)
                 */
                get: function () {
                    return this.adapter.apply("pixelMarginBottom", this.getPixelY(this.marginBottom));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativeMarginBottom", {
                /**
                 * Returns current relative bottom margin.
                 *
                 * @readonly
                 * @return {number} Relative bottom margin
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.adapter.apply("relativeMarginBottom", this.getRelativeY(this.marginBottom));
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets padding for the element in pixels.
             *
             * @param  {number}  top     Top padding (px)
             * @param  {number}  right   Right padding (px)
             * @param  {number}  bottom  Bottom padding (px)
             * @param  {number}  left    Left padding (px)
             * @return {Sprite}          Element
             */
            Sprite.prototype.padding = function (top, right, bottom, left) {
                this.paddingTop = top;
                this.paddingRight = right;
                this.paddingBottom = bottom;
                this.paddingLeft = left;
                return this;
            };
            Object.defineProperty(Sprite.prototype, "paddingLeft", {
                /**
                 * @return {number | Percent} Padding value
                 */
                get: function () {
                    return this.getPropertyValue("paddingLeft");
                },
                /**
                 * Left padding - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Padding value
                 */
                set: function (value) {
                    this.setPercentProperty("paddingLeft", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "paddingRight", {
                /**
                 * @return {number | Percent} Padding value
                 */
                get: function () {
                    return this.getPropertyValue("paddingRight");
                },
                /**
                 * Right padding - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Padding value
                 */
                set: function (value) {
                    this.setPercentProperty("paddingRight", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "paddingTop", {
                /**
                 * @return {number | Percent} Padding value
                 */
                get: function () {
                    return this.getPropertyValue("paddingTop");
                },
                /**
                 * Top padding - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Padding value
                 */
                set: function (value) {
                    this.setPercentProperty("paddingTop", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "paddingBottom", {
                /**
                 * @return {number | Percent} Padding value
                 */
                get: function () {
                    return this.getPropertyValue("paddingBottom");
                },
                /**
                 * Bottom padding - absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Padding value
                 */
                set: function (value) {
                    this.setPercentProperty("paddingBottom", value, true, true, this._positionPrecision, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelPaddingRight", {
                /**
                 * Returns current right padding in pixels.
                 *
                 * @readonly
                 * @return {number} Right padding (px)
                 */
                get: function () {
                    return this.getPixelX(this.paddingRight);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativePaddingRight", {
                /**
                 * Returns current relative right padding.
                 *
                 * @readonly
                 * @return {number} Relative right padding
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.getRelativeX(this.paddingRight);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelPaddingLeft", {
                /**
                 * Returns current left padding in pixels.
                 *
                 * @readonly
                 * @return {number} Left padding (px)
                 */
                get: function () {
                    return this.getPixelX(this.paddingLeft);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativePaddingLeft", {
                /**
                 * Returns current relative left padding.
                 *
                 * @readonly
                 * @return {number} Relative left padding
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.getRelativeX(this.paddingLeft);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelPaddingTop", {
                /**
                 * Returns current top padding in pixels.
                 *
                 * @readonly
                 * @return {number} Top padding (px)
                 */
                get: function () {
                    return this.getPixelY(this.paddingTop);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativePaddingTop", {
                /**
                 * Returns current relative top padding.
                 *
                 * @readonly
                 * @return {number} Relative top padding
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.getRelativeY(this.paddingTop);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelPaddingBottom", {
                /**
                 * Returns current bottom padding in pixels.
                 *
                 * @readonly
                 * @return {number} Bottom padding (px)
                 */
                get: function () {
                    return this.getPixelY(this.paddingBottom);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "relativePaddingBottom", {
                /**
                 * Returns current relative bottom padding.
                 *
                 * @readonly
                 * @return {number} Relative bottom padding
                 */
                get: function () {
                    // @todo Maybe use [[Percent]]?
                    return this.getRelativeY(this.paddingBottom);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "path", {
                /**
                 * Path of a tick element
                 * @type {string}
                 */
                get: function () {
                    return this.getPropertyValue("path");
                },
                /**
                 * ==========================================================================
                 * APPEARANCE-RELATED PROPERTIES AND RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Path of a sprite element
                 * @type {string}
                 */
                set: function (value) {
                    if (this.setPropertyValue("path", value)) {
                        if (!this.element) {
                            this.element = this.paper.add("path");
                        }
                        this.element.attr({ "d": value });
                        this.invalidatePosition();
                        // otherwise is 0x0
                        if (!this.inited) {
                            this.events.once("inited", this.validatePosition, this, false);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "fillModifier", {
                /**
                 * @return {ColorModifier} Fill color modifier
                 */
                get: function () {
                    return this.getPropertyValue("fillModifier");
                },
                /**
                 * [[ColorModifier]] that can be used to modify color and pattern of the
                 * element's fill, e.g. create gradients.
                 *
                 * @param {ColorModifier}  value  Fill color modifiier
                 */
                set: function (value) {
                    if (this.setPropertyValue("fillModifier", value)) {
                        this.setFill(this.fill);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "strokeModifier", {
                /**
                 * @return {ColorModifier} Stroke color modifier
                 */
                get: function () {
                    return this.getPropertyValue("strokeModifier");
                },
                /**
                 * [[ColorModifier]] that can be used to modify color and pattern of the
                 * element's stroke (outline), e.g. create gradients.
                 *
                 * @param {ColorModifier}  value  Stroke color modifier
                 */
                set: function (value) {
                    this.setPropertyValue("strokeModifier", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "fillOpacity", {
                /**
                 * @return {number} Opacity (0-9)
                 */
                get: function () {
                    return this.getPropertyValue("fillOpacity");
                },
                /**
                 * Element's fill opacity.
                 *
                 * Opacity ranges from 0 (fully transparent) to 1 (fully opaque).
                 *
                 * @param {number}  value  Opacity (0-1)
                 */
                set: function (value) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["toNumberRange"](value, 0, 1);
                    if (this.setPropertyValue("fillOpacity", value)) {
                        this.setSVGAttribute({ "fill-opacity": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "fill", {
                /**
                 * @return {Color} Fill
                 */
                get: function () {
                    return this.getPropertyValue("fill");
                },
                /**
                 * Element's fill color or pattern.
                 *
                 * @param {Optional<Color | Pattern | LinearGradient | RadialGradient>}  value  Fill
                 */
                set: function (value) {
                    this.setFill(value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets actual `fill` property on the SVG element, including applicable color
             * modifiers.
             *
             * @ignore Exclude from docs
             * @param {Optional<Color | Pattern | LinearGradient | RadialGradient>}  value  Fill
             */
            Sprite.prototype.setFill = function (value) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isObject"](value)) {
                    value = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_14__["toColor"])(value);
                }
                if (this.setColorProperty("fill", value) || this.fillModifier) {
                    // this can not go into next if, as value is turned to Gradient
                    if (value instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                        if (this.fillModifier) {
                            value = this.fillModifier.modify(value);
                        }
                    }
                    this.realFill = value;
                    // todo: review this place when some Color type will be added
                    if (value instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                        this.setSVGAttribute({ "fill": value.toString() });
                    }
                    else if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value)) {
                        this.removeSVGAttribute("fill");
                    }
                    else if (value instanceof _rendering_fills_Pattern__WEBPACK_IMPORTED_MODULE_11__["Pattern"] || value instanceof _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_12__["LinearGradient"] || value instanceof _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_13__["RadialGradient"]) {
                        var fill = value;
                        fill.paper = this.paper;
                        this.setSVGAttribute({ "fill": "url(#" + fill.id + ")" });
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "opacity", {
                /**
                 * @return {number} Opacity (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("opacity");
                },
                /**
                 * Element's opacity.
                 *
                 * Opacity setting can range from 0 (fully transparent) to 1 (fully opaque).
                 *
                 * ATTENTION: It is highly not recommended to use `opacity` directly on the
                 * element. The charts use `opacity` to hide/show elements, so your setting
                 * might be lost if element is hidden and then later shown.
                 *
                 * Instead use methods `hide()` and `show()` to completely toggle off and on
                 * the element.
                 *
                 * Or, use properties `fillOpacity` and `strokeOpacity`, if you need to make
                 * the element semi-transparent.
                 *
                 * @param {number} value Opacity (0-1)
                 */
                set: function (value) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["toNumberRange"](value, 0, 1);
                    if (this.setPropertyValue("opacity", value)) {
                        this.setSVGAttribute({ "opacity": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "stroke", {
                /**
                 * @return {Color} Stroke setting
                 */
                get: function () {
                    return this.getPropertyValue("stroke");
                },
                /**
                 * Element's stroke (outline) color or pattern.
                 *
                 * @param {Color | Pattern | LinearGradient | RadialGradient}  value  Stroke setting
                 */
                set: function (value) {
                    this.setStroke(value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets actual `stroke` property on the SVG element, including applicable
             * color modifiers.
             *
             * @ignore Exclude from docs
             * @param {Color | Pattern | LinearGradient | RadialGradient} value Stroke setting
             */
            Sprite.prototype.setStroke = function (value) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isObject"](value)) {
                    value = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_14__["toColor"])(value);
                }
                if (this.setColorProperty("stroke", value) || this.strokeModifier) {
                    // this can not go into next if, as value is turned to Gradient
                    if (value instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                        if (this.strokeModifier) {
                            value = this.strokeModifier.modify(value);
                        }
                    }
                    this.realStroke = value;
                    if (value instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                        if (value.hex == "none") {
                            this.removeSVGAttribute("stroke");
                        }
                        else {
                            this.setSVGAttribute({ "stroke": value.toString() });
                        }
                    }
                    else if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value)) {
                        this.removeSVGAttribute("stroke");
                    }
                    else if (value instanceof _rendering_fills_Pattern__WEBPACK_IMPORTED_MODULE_11__["Pattern"] || value instanceof _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_12__["LinearGradient"] || value instanceof _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_13__["RadialGradient"]) {
                        var stroke = value;
                        stroke.paper = this.paper;
                        this.setSVGAttribute({ "stroke": "url(#" + stroke.id + ")" });
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "strokeOpacity", {
                /**
                 * @return {number} Opacity (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("strokeOpacity");
                },
                /**
                 * Stroke (outline) opacity.
                 *
                 * The values may range from 0 (fully transparent) to 1 (fully opaque).
                 *
                 * @param {number}  value  Opacity (0-1)
                 */
                set: function (value) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_26__["toNumberRange"](value, 0, 1);
                    if (this.setPropertyValue("strokeOpacity", value)) {
                        this.setSVGAttribute({ "stroke-opacity": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "nonScalingStroke", {
                /**
                 * @return {boolean} Do not scale stroke (outline)
                 */
                get: function () {
                    return this.getPropertyValue("nonScalingStroke");
                },
                /**
                 * Controls if the element's stroke (outline) should remain keep constant
                 * thicnkess and do not scale when the whole element is resized.
                 *
                 * @param {boolean}  value  Do not scale stroke (outline)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (this.setPropertyValue("nonScalingStroke", value)) {
                        this.strokeWidth = this.strokeWidth;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "nonScaling", {
                /**
                 * @return {boolean} Is element scaleable?
                 */
                get: function () {
                    return this.getPropertyValue("nonScaling");
                },
                /**
                 * Controls if element should keep constant size and not scale even if there is
                 * space available, or it does not fit.
                 *
                 * @param {boolean}  value  Is element scaleable?
                 */
                set: function (value) {
                    // @todo Description (review)
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this.setPropertyValue("nonScaling", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "strokeWidth", {
                /**
                 * @return {number} Thickness (px)
                 */
                get: function () {
                    return this.getPropertyValue("strokeWidth");
                },
                /**
                 * Stroke (outline) thickness in pixels.
                 *
                 * @param {number}  value  Thickness (px)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    this.setPropertyValue("strokeWidth", value, true);
                    if (this.nonScalingStroke) {
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](value)) {
                            value = 1;
                        }
                        value = value / this.globalScale;
                    }
                    this.setSVGAttribute({ "stroke-width": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "strokeDasharray", {
                /**
                 * @return {string} `stroke-dasharray`
                 */
                get: function () {
                    return this.getPropertyValue("strokeDasharray");
                },
                /**
                 * A `stroke-dasharray` for the stroke (outline).
                 *
                 * "Dasharray" allows setting rules to make lines dashed, dotted, etc.
                 *
                 * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray} for more info on `stroke-dasharray`
                 * @param {string}  value  `stroke-dasharray`
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("strokeDasharray", value)) {
                        this.setSVGAttribute({ "stroke-dasharray": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "shapeRendering", {
                /**
                 * @return {ShapeRendering} 'shape-rendering' value
                 */
                get: function () {
                    return this.getPropertyValue("shapeRendering");
                },
                /**
                 * An SVG-specific `shape-rendering` value.
                 *
                 * `shape-rendering` controls how vector graphics are drawn and rendered.
                 *
                 * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering} for more information about `shape-rendering`
                 * @default "auto"
                 * @param {ShapeRendering}  value  'shape-rendering' value
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (this.setPropertyValue("shapeRendering", value)) {
                        this.setSVGAttribute({ "shape-rendering": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "pixelPerfect", {
                /**
                 * @return {boolean} Use pixel perfect?
                 */
                get: function () {
                    return this.getPropertyValue("pixelPerfect");
                },
                /**
                 * Controls if SVG vectors should be drawn with "pixel" precision, producing
                 * perfectly crisp lines on retina displays.
                 *
                 * Setting this to `true` might improve visual quality, but may have a
                 * negative effect on performance.
                 *
                 * Different elements use different default setting for `pixelPerfect`.
                 *
                 * We recommend leaving this at their default settings, unless there's a
                 * specific need.
                 *
                 * @param {boolean}  value  Use pixel perfect?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    if (value) {
                        this._positionPrecision = 0;
                    }
                    else {
                        this._positionPrecision = 3;
                    }
                    this.setPropertyValue("pixelPerfect", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "rtl", {
                /**
                 * @return {boolean} RTL?
                 */
                get: function () {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this._rtl)) {
                        return this._rtl;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.rtl;
                    }
                    else if (this.parent) {
                        return this.parent.rtl;
                    }
                    this.rtl = false;
                    return this.rtl;
                },
                /**
                 * An RTL (righ-to-left) setting.
                 *
                 * RTL may affect alignment, text, and other visual properties.
                 *
                 * @param {DateFormatter}  value  `true` for to use RTL
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this._rtl = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * ==========================================================================
             * VISIBILITY AND ORDER PROPERTIES AND RELATED STUFF
             * ==========================================================================
             * @hidden
             */
            /**
             * Reveals hidden element.
             *
             * Has no effect if element is already visible.
             *
             * If `duration` is not specified, it will use default.
             *
             * @param  {number}  duration  Fade in duration (ms)
             * @return {Optional<Animation>} Animation object if such object was created
             */
            Sprite.prototype.show = function (duration) {
                return this.showReal(duration);
            };
            /**
             * Performs actual operations to reveal this element.
             *
             * @ignore Exclude from docs
             * @param  {number} duration Fade in duration (ms)
             * @return {number}          Fade in duration (ms)
             */
            Sprite.prototype.showReal = function (duration) {
                var _this = this;
                var transition;
                var properties = this.defaultState.properties;
                if (!this.disabled && (this.isHidden || !this.visible || this.isHiding || (properties.opacity != null && this.opacity < properties.opacity && !this.isShowing))) {
                    // helps to avoid flicker, as show might change opacity or visibility but item might be at invalid state/position
                    if (this.invalid) {
                        this.validate();
                    }
                    if (this.positionInvalid) {
                        this.validatePosition();
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](duration)) {
                        duration = this.defaultState.transitionDuration;
                    }
                    if (this._hideAnimation) {
                        this._hideAnimation.kill();
                        this._hideAnimation = undefined;
                    }
                    // Cancel hide handler just in case it was there
                    if (this._showHideDisposer) {
                        this.removeDispose(this._showHideDisposer);
                    }
                    this._isHidden = false;
                    this.isHiding = false;
                    this.isShowing = true;
                    // Apply current state
                    transition = this.applyCurrentState(duration);
                    if (transition && !transition.isFinished()) {
                        this._showHideDisposer = transition.events.on("animationended", function () {
                            _this.isShowing = false;
                        });
                        this._disposers.push(this._showHideDisposer);
                    }
                    else {
                        this.isShowing = false;
                    }
                    // Make it visible
                    var visible = this.defaultState.properties.visible;
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](visible)) {
                        visible = true;
                    }
                    this.visible = visible;
                    // Dispatch "show" event
                    this.dispatchImmediately("shown");
                }
                return transition;
            };
            /**
             * Initiates hiding of Sprite.
             * When called it will fade out the the Sprite to transparency, then make it
             * invisible.
             * @param {number} duration Duration in millisecons
             */
            /**
             * Hides the element, by applying `hidden` state.
             *
             * Has no effect if element is already hidden.
             *
             * If `duration` is not specified, it will use default.
             *
             * While element is fading out, its `isHiding` property will resolve to
             * `true`.
             *
             * When element is hidden, its `visible` property will resolve to `false`.
             *
             * @param  {number}  duration  Fade out duration (ms)
             * @return {Optional<Animation>} hide Animation object if such object was created
             */
            Sprite.prototype.hide = function (duration) {
                return this.hideReal(duration);
            };
            /**
             * Hides actual SVG elements and handles hiding animations.
             *
             * @param  {number}  duration  Fade out duration (ms)
             * @return {Animation}            Fade out duration (ms)
             * @ignore
             */
            Sprite.prototype.hideReal = function (duration) {
                var _this = this;
                var transition;
                if (!this.isHiding && this.visible) {
                    this.hideTooltip(0);
                    if (this._hideAnimation) {
                        this._hideAnimation.kill();
                        this._hideAnimation = undefined;
                    }
                    this.isShowing = false;
                    // Cancel hide handler just in case it was there
                    if (this._showHideDisposer) {
                        this.removeDispose(this._showHideDisposer);
                    }
                    // Get state
                    var hiddenState = this.hiddenState;
                    // Transition to "hidden" state, provided Sprite has one set
                    if (hiddenState) {
                        // Yes, we have a "hidden" state
                        // `setState` will return an `Animation` object which we can set
                        // events on
                        transition = this.setState(hiddenState, duration, undefined);
                        if (transition && !transition.isFinished()) {
                            this._hideAnimation = transition;
                            this._showHideDisposer = transition.events.on("animationended", function () {
                                _this.isHiding = false;
                                _this._isHidden = true;
                            }, this);
                            this._disposers.push(this._showHideDisposer);
                            // Thrown everything into `_disposers` just in case Sprite gets
                            // destroyed in the meantime
                            this._disposers.push(transition);
                        }
                        else {
                            this.isHiding = false;
                            this._isHidden = true;
                        }
                    }
                    else {
                        // No hidden state, let's just set `visible` and call it a day
                        this.visible = false;
                        this.isHiding = false;
                        this._isHidden = true;
                    }
                    // Dispach "hidden" event
                    this.dispatchImmediately("hidden");
                    this.invalidate(); // hide it at once to avoid flickers // validate() causes SO
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](duration)) {
                    duration = this.hiddenState.transitionDuration;
                }
                return transition;
            };
            Object.defineProperty(Sprite.prototype, "visible", {
                /**
                 * Returns current visibility of the element.
                 *
                 * @return {boolean} Visible?
                 */
                get: function () {
                    return this.getVisibility();
                },
                /**
                 * Sets visibility of the element.
                 *
                 * @param {boolean} value Visible?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this.setVisibility(value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns visibility value
             * @ignore
             */
            Sprite.prototype.getVisibility = function () {
                var value = this.getPropertyValue("visible");
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](value)) {
                    value = true;
                }
                return value;
            };
            /**
             * Sets `visibility` property:
             *
             * * `true` - visible
             * * `false` - hidden
             *
             * @param  {boolean}  value  true - visible, false - hidden
             * @return {string}          Current visibility
             */
            Sprite.prototype.setVisibility = function (value) {
                if (this.setPropertyValue("visible", value)) {
                    if (value) {
                        this.group.removeAttr("visibility");
                    }
                    else {
                        this.group.attr({ "visibility": "hidden" });
                    }
                    //this.invalidatePosition();
                    if (this.events.isEnabled("visibilitychanged")) {
                        var event_4 = {
                            type: "visibilitychanged",
                            target: this,
                            visible: value
                        };
                        this.events.dispatchImmediately("visibilitychanged", event_4);
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "zIndex", {
                /**
                 * @return {number} zIndex
                 */
                get: function () {
                    return this.getPropertyValue("zIndex");
                },
                /**
                 * A "zIndex" of the element.
                 *
                 * "zIndex" determines the order of how elements are placed over each other.
                 *
                 * Higher "zIndex" will mean the element will be draw on top of elements
                 * with lower "zIndexes".
                 *
                 * @param {number}  value  zIndex
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (this.setPropertyValue("zIndex", value)) {
                        this.dispatch("zIndexChanged");
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Moves the element to the very top in element order, so that it appears
             * in front of other elements.
             */
            Sprite.prototype.toFront = function () {
                var parent = this.parent;
                if (parent && parent.children.indexOf(this) != parent.children.length - 1) {
                    parent.children.moveValue(this, parent.children.length - 1);
                    this.dispatch("zIndexChanged");
                }
            };
            /**
             * Moves the element to the very bottom in the element order, so that it
             * appears behind other elements.
             */
            Sprite.prototype.toBack = function () {
                var parent = this.parent;
                if (parent && parent.children.indexOf(this) != 0) {
                    parent.children.moveValue(this, 0);
                    this.dispatch("zIndexChanged");
                }
            };
            Object.defineProperty(Sprite.prototype, "tooltip", {
                /**
                 * @return {Optional<Tooltip>} Tooltip
                 */
                get: function () {
                    if (this._tooltip) {
                        return this._tooltip;
                    }
                    else if (this.virtualParent) {
                        return this.virtualParent.tooltip;
                    }
                    else if (this.parent) {
                        return this.parent.tooltip;
                    }
                },
                /**
                 * ==========================================================================
                 * TOOLTIP-RELATED PROPERTIES STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * A [[Tooltip]] object to be used when displayed rollover information for
                 * the element.
                 *
                 * @param {Tooltip}  tooltip  Tooltip
                 */
                set: function (tooltip) {
                    if (this._tooltip) {
                        //this._tooltip.dispose();
                        this.removeDispose(this._tooltip);
                    }
                    this._tooltip = tooltip;
                    if (tooltip) {
                        tooltip.parent = this.tooltipContainer;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipDataItem", {
                /**
                 * @return {DataItem} Tooltip data item
                 */
                get: function () {
                    var tooltipDataItem = this._tooltipDataItem;
                    if (tooltipDataItem) {
                        return tooltipDataItem;
                    }
                    else {
                        return this.dataItem;
                    }
                },
                /**
                 * A [[DataItem]] to use when populating content for the element's
                 * [[Tooltip]].
                 *
                 * @see {@link Tooltip}
                 * @see {@link DataItem}
                 * @param {DataItem}  value  Tooltip data item
                 */
                set: function (value) {
                    // important: do not dispose tooltip dataItem, as it is some actual data item from data!
                    this._tooltipDataItem = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipColorSource", {
                /**
                 * @return {Optional<Sprite>} Tooltip color source
                 */
                get: function () {
                    return this._tooltipColorSource;
                },
                /**
                 * A [[Sprite]] or sprite template to use when getting colors for tooltip. If a template is set,
                 * tooltip will look for a clone in tooltipDataItem.sprites. If no clone is found, then template colors will be used.
                 *
                 * @see {@link Tooltip}
                 * @see {@link Sprite}
                 * @param {Optional<Sprite>}  sprite Sprite
                 */
                set: function (sprite) {
                    this._tooltipColorSource = sprite;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Shows the element's [[Tooltip]].
             *
             * A tooltip will be populated using text templates in either `tooltipHTML` or
             * `tooltipText` as well as data in `tooltipDataItem`.
             *
             * @see {@link Tooltip}
             * @param {point} optional point (sprite-related) to which tooltip must point.
             * @return {boolean} returns true if the tooltip was shown and false if it wasn't (no text was found)
             */
            Sprite.prototype.showTooltip = function (point) {
                // do not show if hidden
                var sprite = this;
                while (sprite != undefined) {
                    if (!sprite.visible || sprite.disabled || sprite.__disabled) {
                        return;
                    }
                    sprite = sprite.parent;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.tooltipText) || _utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](this.tooltipHTML)) {
                    var tooltip = this.tooltip;
                    var tooltipDataItem = this.tooltipDataItem;
                    if (tooltip) {
                        var colorSource_1 = this;
                        var tooltipColorSource_1 = this.tooltipColorSource;
                        if ((tooltip.getStrokeFromObject || tooltip.getFillFromObject) && tooltipColorSource_1) {
                            if (tooltipColorSource_1.isTemplate) {
                                if (tooltipDataItem) {
                                    _utils_Array__WEBPACK_IMPORTED_MODULE_28__["eachContinue"](tooltipDataItem.sprites, function (sprite) {
                                        if (sprite.clonedFrom == tooltipColorSource_1) {
                                            colorSource_1 = sprite;
                                            return false;
                                        }
                                        return true;
                                    });
                                }
                            }
                            else {
                                colorSource_1 = tooltipColorSource_1;
                            }
                        }
                        if (tooltip.getStrokeFromObject) {
                            var stroke = this.stroke;
                            var source = colorSource_1;
                            while (source.parent != undefined) {
                                stroke = source.stroke;
                                if (stroke == undefined) {
                                    source = source.parent;
                                }
                                if (stroke != undefined) {
                                    break;
                                }
                            }
                            if (stroke instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                                tooltip.background.animate({ property: "stroke", to: stroke }, tooltip.animationDuration);
                            }
                            else {
                                tooltip.background.stroke = stroke;
                            }
                        }
                        // Set data item
                        tooltip.dataItem = tooltipDataItem;
                        tooltip.label.populateStringFrom = this;
                        if (tooltip.getFillFromObject) {
                            var fill = this.fill;
                            var source = colorSource_1;
                            while (source.parent != undefined) {
                                fill = source.fill;
                                if (fill == undefined || (fill instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"] && fill.rgb == undefined)) {
                                    source = source.parent;
                                }
                                else if (fill != undefined) {
                                    break;
                                }
                            }
                            if (fill == undefined) {
                                fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_14__["color"])("#000000");
                            }
                            if (fill instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                                if (!tooltip.visible) {
                                    tooltip.background.fill = fill;
                                }
                                else {
                                    tooltip.background.animate({ property: "fill", to: fill }, tooltip.animationDuration);
                                }
                            }
                            else {
                                tooltip.background.fill = fill;
                            }
                            if (tooltip.autoTextColor && fill instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_14__["Color"]) {
                                tooltip.label.fill = fill.alternative;
                            }
                        }
                        // Apply tooltip text
                        var text = "";
                        if (this.tooltipHTML) {
                            tooltip.html = this.tooltipHTML;
                            text = this.tooltipHTML;
                        }
                        if (this.tooltipText) {
                            tooltip.text = this.tooltipText;
                            text = this.tooltipText;
                        }
                        this.updateTooltipPosition(point);
                        // Set accessibility option
                        tooltip.readerDescribedBy = this.uidAttr();
                        // make label to render to be able to check currentText
                        if (tooltip.label.invalid) {
                            tooltip.label.validate();
                        }
                        if (text != undefined && text != "" && tooltip.label.currentText != "") {
                            //@todo: think of how to solve this better
                            if (tooltip && !tooltip.parent) {
                                tooltip.parent = this.tooltipContainer;
                            }
                            // Reveal tooltip
                            // showing it in 1 ms helps to avoid strange flickering in IE
                            var duration = tooltip.defaultState.transitionDuration;
                            if (duration <= 0) {
                                duration = 1;
                            }
                            tooltip.show(duration);
                            return true;
                        }
                    }
                }
                return false;
            };
            /**
             * @ignore
             */
            Sprite.prototype.updateTooltipPosition = function (point) {
                var _this = this;
                if (this.tooltipPosition == "pointer") {
                    this._interactionDisposer = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_15__["getInteraction"])().body.events.on("track", function (ev) {
                        _this.pointTooltipTo(_utils_Utils__WEBPACK_IMPORTED_MODULE_25__["documentPointToSvg"](ev.point, _this.svgContainer.SVGContainer), true);
                    });
                    if (point) {
                        this.pointTooltipTo(point, true);
                    }
                }
                else {
                    // Point to the X/Y of this Sprite
                    var globalPoint = _utils_Utils__WEBPACK_IMPORTED_MODULE_25__["spritePointToSvg"]({
                        "x": this.tooltipX,
                        "y": this.tooltipY
                    }, this);
                    this.pointTooltipTo(globalPoint);
                }
            };
            /**
             * Sets the point the [[Tooltip]] should point to.
             *
             * @param {IPoint}   point      Coordinates to point to
             * @param {boolean}  instantly  Move instantly without animation
             */
            Sprite.prototype.pointTooltipTo = function (point, instantly) {
                var tooltip = this.tooltip;
                if (tooltip) {
                    tooltip.pointTo(point, instantly);
                }
            };
            /**
             * Hides element's [[Tooltip]].
             *
             * @see {@link Tooltip}
             */
            Sprite.prototype.hideTooltip = function (duration) {
                var tooltip = this.tooltip;
                if (tooltip) {
                    tooltip.hide(duration);
                    if (this._interactionDisposer) {
                        this._interactionDisposer.dispose();
                    }
                }
            };
            Object.defineProperty(Sprite.prototype, "tooltipHTML", {
                /**
                 * @return {string} Tooltip HTML content template
                 */
                get: function () {
                    return this.getPropertyValue("tooltipHTML");
                },
                /**
                 * An HTML template to be used to populate [[Tooltip]] contents.
                 *
                 * If element has `tooltipDataItem` or `dataItem` set, this will be parsed
                 * for any data values to be replaced with the values from respective data
                 * items.
                 *
                 * @param {string} value Tooltip HTML content template
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    this.hoverable = true;
                    if (this.setPropertyValue("tooltipHTML", value)) {
                        if (this.tooltip) {
                            if (this.tooltip.visible) {
                                this.showTooltip();
                            }
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipText", {
                /**
                 * @return {string} Tooltip content template
                 */
                get: function () {
                    return this.getPropertyValue("tooltipText");
                },
                /**
                 * A text template to be used to populate Tooltip's contents.
                 *
                 * If element has `tooltipDataItem` or `dataItem` set, this will be parsed
                 * for any data values to be replaced with the values from respective data
                 * items.
                 *
                 * This template will also be parsed for any special formatting tags.
                 *
                 * @param {string} value Tooltip content template
                 * @see {@link TextFormatter}
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toText"](value);
                    if (value) {
                        this.hoverable = true;
                    }
                    if (this.setPropertyValue("tooltipText", value)) {
                        if (this.tooltip) {
                            if (this.tooltip.visible) {
                                this.showTooltip();
                            }
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipContainer", {
                /**
                 * @ignore Exclude from docs
                 * @return {Optional<Container>} Container
                 */
                get: function () {
                    if (this._tooltipContainer) {
                        return this._tooltipContainer;
                    }
                    else if (this.parent) {
                        return this.parent.tooltipContainer;
                    }
                },
                /**
                 * A container reference that should be used to place element's
                 * [[Tooltip]] in.
                 *
                 * Will use parent's container if does not have one set.
                 *
                 * @ignore Exclude from docs
                 * @param {Container} value Container
                 * @todo Dispose of the old _tooltipContainer ?
                 */
                set: function (value) {
                    this._tooltipContainer = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipX", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Tooltip X (px)
                 */
                get: function () {
                    return this.getTooltipX();
                },
                /**
                 * X coordinate the [[Tooltip]] should be shown at.
                 *
                 * @ignore Exclude from docs
                 * @param {number}  value  Tooltip X (px)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (this.setPropertyValue("tooltipX", value) && this.tooltip) {
                        this.tooltip.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipPosition", {
                /**
                 * @type {"fixed" | "pointer"} Position
                 */
                get: function () {
                    return this.getPropertyValue("tooltipPosition");
                },
                /**
                 * Specifies if [[Tooltip]] should follow the mouse or touch pointer or stay
                 * at the fixed position.
                 *
                 * @param { "fixed" | "pointer" }  value  Position
                 */
                set: function (value) {
                    this.setPropertyValue("tooltipPosition", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "tooltipY", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Tooltip Y (px)
                 */
                get: function () {
                    return this.getTooltipY();
                },
                /**
                 * Y coordinate the [[Tooltip]] should be shown at.
                 *
                 * @ignore Exclude from docs
                 * @param {number}  value  Tooltip Y (px)
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toNumber"](value);
                    if (this.setPropertyValue("tooltipY", value) && this.tooltip) {
                        this.tooltip.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns Tooltip X coordinate if it's set, or middle of the element.
             *
             * @ignore Exclude from docs
             * @return {number} X (px)
             */
            Sprite.prototype.getTooltipX = function () {
                var x = this.getPropertyValue("tooltipX");
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](x)) {
                    x = this.maxLeft + this.measuredWidth / 2 - this.pixelPaddingLeft - this.ex; // overflow is know only for measured items, so this is not always good
                }
                return x;
            };
            /**
             * Returns Tooltip Y coordinate if it's set, or middle of the element.
             *
             * @ignore Exclude from docs
             * @return {number} Y (px)
             */
            Sprite.prototype.getTooltipY = function () {
                var y = this.getPropertyValue("tooltipY");
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_30__["isNumber"](y)) {
                    y = this.maxTop + this.measuredHeight / 2 - this.pixelPaddingTop - this.ey; // overflow is know only for measured items, so this is not always good
                }
                return y;
            };
            /**
             * Displays a modal or console message with error, and halts any further
             * processing of this item.
             *
             * @ignore Exclude from docs
             * @param {Error} e Error
             * @todo Implement from applying further actions to this item
             */
            Sprite.prototype.raiseCriticalError = function (e) {
                if (this.svgContainer) {
                    this.modal.content = e.message;
                    this.modal.closable = false;
                    this.modal.open();
                    this.disabled = true;
                }
                if (_Options__WEBPACK_IMPORTED_MODULE_17__["options"].verbose) {
                    console.log(e);
                }
            };
            /**
         * Processes JSON-based config before it is applied to the object.
         *
         * @ignore Exclude from docs
         * @param {object}  config  Config
         */
            Sprite.prototype.processConfig = function (config) {
                if (config) {
                    // Tooltip color source
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.tooltipColorSource) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isString"](config.tooltipColorSource) && this.map.hasKey(config.tooltipColorSource)) {
                        config.tooltipColorSource = this.map.getKey(config.tooltipColorSource);
                    }
                    // Cursor styles
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.cursorOverStyle) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isString"](config.cursorOverStyle)) {
                        config.cursorOverStyle = this.getCursorStyle(config.cursorOverStyle);
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.cursorDowntyle) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isString"](config.cursorDowntyle)) {
                        config.cursorDowntyle = this.getCursorStyle(config.cursorDowntyle);
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.cursorOptions)) {
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.cursorOptions.overStyle) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isString"](config.cursorOptions.overStyle)) {
                            config.cursorOptions.overStyle = this.getCursorStyle(config.cursorOptions.overStyle);
                        }
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_30__["hasValue"](config.cursorOptions.downStyle) && _utils_Type__WEBPACK_IMPORTED_MODULE_30__["isString"](config.cursorOptions.downStyle)) {
                            config.cursorOptions.downStyle = this.getCursorStyle(config.cursorOptions.downStyle);
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * Converts string name of the cursor into actual [[MouseCursorStyle]].
             *
             * @param  {string}                      style  Cursor type
             * @return {Optional<MouseCursorStyle>}         Cursor definition
             */
            Sprite.prototype.getCursorStyle = function (style) {
                switch (style) {
                    case "grab":
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].grab;
                    case "grabbing":
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].grabbing;
                    case "pointer":
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].pointer;
                    case "horizontalResize":
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].horizontalResize;
                    case "verticalResize":
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].verticalResize;
                    default:
                        return _interaction_Mouse__WEBPACK_IMPORTED_MODULE_16__["MouseCursorStyle"].default;
                }
            };
            /**
             * This function is used to sort element's JSON config properties, so that
             * some properties that absolutely need to be processed last, can be put at
             * the end.
             *
             * @ignore Exclude from docs
             * @param  {string}  a  Element 1
             * @param  {string}  b  Element 2
             * @return {Ordering}   Sorting number
             */
            Sprite.prototype.configOrder = function (a, b) {
                if (a == b) {
                    return 0;
                }
                // Must come last
                else if (a == "tooltipColorSource") {
                    return 1;
                }
                else if (b == "tooltipColorSource") {
                    return -1;
                }
                else {
                    return _super.prototype.configOrder.call(this, a, b);
                }
            };
            Object.defineProperty(Sprite.prototype, "isHidden", {
                /**
                 * If `sprite.hide()` is called, we set isHidden to true when sprite is hidden.
                 * This was added becaus hidden state might have visibility set to true and so
                 * there would not be possible to find out if a sprite is technically hidden or not.
                 *
                 * @type {boolean}
                 */
                get: function () {
                    if (this._isHidden) {
                        return this._isHidden;
                    }
                    else if (this._parent) {
                        return this._parent.isHidden;
                    }
                    return false;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "showOnInit", {
                /**
                 * @return {boolean} Show on init?
                 */
                get: function () {
                    return this.getPropertyValue("showOnInit");
                },
                /**
                 * If this is set to `true`, Sprite, when inited will be instantly hidden
                 * ("hidden" state applied) and then shown ("default" state applied).
                 *
                 * If your "default" state's `transitionDuration > 0` this will result in
                 * initial animation from "hidden" state to "default" state.
                 *
                 * If you need a Sprite which has `showOnInit = true` not to be shown
                 * initially, set `sprite.hidden = true`. Setting `sprite.visible = false`
                 * will not prevent the animation and the sprite will be shown.
                 *
                 * @param {boolean}  value show on init?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this.setShowOnInit(value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            Sprite.prototype.setShowOnInit = function (value) {
                if (this.setPropertyValue("showOnInit", value) && value && !this.inited && !this.hidden) {
                    _Registry__WEBPACK_IMPORTED_MODULE_18__["registry"].events.once("enterframe", this.hideInitially, this);
                    this.events.once("beforevalidated", this.hideInitially, this, false);
                    this.events.on("inited", this.appear, this, false);
                }
            };
            /**
             * @ignore
             */
            Sprite.prototype.hideInitially = function () {
                this.appeared = false;
                //if (!this.hidden && !this._isHidden) { // not good for series, as on enterframe it doesn't have data items yet.
                if (!this.inited) {
                    this.hide(0);
                }
            };
            /**
             * Hides the chart instantly and then shows it. If defaultState.transitionDuration > 0, this will result an animation in which properties of hidden state will animate to properties of visible state.
             */
            Sprite.prototype.appear = function () {
                var _this = this;
                this.appeared = false;
                if (!this.hidden && !this.isHidden) {
                    this.hide(0);
                }
                if (!this.hidden) {
                    var animation = this.show();
                    if (animation && !animation.isFinished()) {
                        animation.events.on("animationended", function () {
                            _this.appeared = true;
                        });
                    }
                    else {
                        this.appeared = true;
                    }
                }
                else {
                    this.appeared = true;
                }
            };
            Object.defineProperty(Sprite.prototype, "hidden", {
                /**
                 * @return {boolean} Is initially hidden?
                 */
                get: function () {
                    return this.getPropertyValue("hidden");
                },
                /**
                 * If a sprite has `showOnInit = true`, it will animate from "hidden" to
                 * "default" state when initialized. To prevent this but keep
                 * `showOnInit = true`, you can set `sprite.hidden = true`.
                 *
                 * @param {boolean}  value initially hidden?
                 */
                set: function (value) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_30__["toBoolean"](value);
                    this.setPropertyValue("hidden", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Sprite.prototype, "bbox", {
                /**
                 * Returns bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                get: function () {
                    if (this.definedBBox) {
                        return this.definedBBox;
                    }
                    return this._bbox;
                },
                enumerable: true,
                configurable: true
            });
            return Sprite;
        }(_Base__WEBPACK_IMPORTED_MODULE_3__["BaseObjectEvents"]));
        //# sourceMappingURL=Sprite.js.map
        /***/ 
    }),
    /* 767 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpriteState", function () { return SpriteState; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _rendering_filters_Filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(776);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(774);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(787);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(757);
        /**
         * Module contains functionality related to [[Sprite]] states.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a state for [[Sprite]].
         *
         * A "state" is a special object that has all the same properties as the
         * [[Sprite]] of the same type, and which can be used to quickly apply a set
         * of property values. (set state)
         *
         * When [[Sprite]] (or any object that extends Sprite) is created it creates a
         * "default" state. You can modify the "default" state so that when the Sprite
         * returns to default state certain properties are added.
         *
         * Default state can be accessed using Sprite's `defaultState` getter.
         *
         * ```TypeScript
         * sprite.defaultState.properties.fillOpacity = 0.5;
         * ```
         * ```JavaScript
         * sprite.defaultState.properties.fillOpacity = 0.5;
         * ```
         * ```JSON
         * {
         *   // ...
         *   "defaultState": {
         *     "properties": {
         *       "fillOpacity": 0.5
         *     }
         *   }
         * }
         * ```
         *
         * If Sprite is "hoverable", it automatically adds a "hover" state, which is
         * applied when it has a cursor over it.
         *
         * ```TypeScript
         * let hoverstate = sprite.states.create("hover");
         * hoverstate.properties.fillOpacity = 1;
         * ```
         * ```JavaScript
         * var hoverstate = sprite.states.create("hover");
         * hoverstate.properties.fillOpacity = 1;
         * ```
         * ```JSON
         * {
         *   // ...
         *   "states": {
         *     "hover": {
         *       "properties": {
         *         "fillOpacity": 0.5
         *       }
         *     }
         *   }
         * }
         * ```
         *
         * The above will automatically apply "hover" state when the Sprite is hovered,
         * thus will set its `fillOpacity` property to 1, and will reset it to 0.5 when
         * it's no longer hovered.
         *
         * Every object that inherits from [[Sprite]] can and will add their own
         * properties to the available list.
         *
         * User can create their own states, and apply them as needed:
         *
         * ```TypeScript
         * let myCustomState = sprite.states.create("mystate");
         * myCustomState.properties.fillOpacity = 0.5;
         * myCustomState.properties.strokeOpacity = 0.8;
         * sprite.setState("mystate");
         * ```
         * ```JavaScript
         * var myCustomState = sprite.states.create("mystate");
         * myCustomState.properties.fillOpacity = 0.5;
         * myCustomState.properties.strokeOpacity = 0.8;
         * sprite.setState("mystate");
         * ```
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/states/}
         * @important
         */
        var SpriteState = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SpriteState, _super);
            /**
             * Constructor
             */
            function SpriteState() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Holds Adapter.
                 *
                 * @type {Adapter<Sprite, SpriteAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * Duration of the transition to this state. 0 means instantenous transition.
                 * Any number means the [[Sprite]] will transit smoothly to this state,
                 * animating all animatable properties.
                 *
                 * @default 0
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {number}
                 */
                _this.transitionDuration = 0;
                /**
                 * Easing function to use when transitioning to this state.
                 *
                 * @default cubicOut
                 * @see {@link Ease}
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {(number) => number}
                 */
                _this.transitionEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_8__["cubicOut"];
                /**
                 * Collection of properties and their values that should be applied to [[Sprite]]
                 * when switching to this State.
                 *
                 * The property values set on a [[SpriteState]] will override the ones set
                 * directly on a [[Sprite]].
                 *
                 * @type {Dictionary<string, any>}
                 */
                _this.properties = {};
                /**
                 * A collection of key/value pairs that can be used to bind specific Sprite
                 * properties to [[DataItem]].
                 *
                 * For example: `fill` property can be bound to `myCustomColor` field in
                 * DataItem. The Sprite will automatically get the value for `fill` from its
                 * DataItem.
                 *
                 * SpriteState-specific binding will override binding set directly on
                 * [[Sprite]]. I.e. you can make Sprite use different fill color on hover by
                 * adding a `fill` binding to a different DataItem key for Sprite's "hover"
                 * state object.
                 *
                 * @see {@link Sprite}
                 * @type {Object}
                 */
                _this.propertyFields = {};
                //public propertyFields: Dictionary<keyof this["_properties"], string> = new Dictionary<keyof this["_properties"], string>();;
                /**
                 * A list of [[Filter]] elements to be applied to the relative [[Sprite]]
                 * when switching to this State.
                 *
                 * @param {ListTemplate<Filter>}
                 */
                _this.filters = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](new _rendering_filters_Filter__WEBPACK_IMPORTED_MODULE_4__["Filter"]());
                /**
                 * Identifies if this object is a "template" and should not be treated as
                 * real object that is drawn or actually used in the chart.
                 *
                 * @type {boolean}
                 */
                _this.isTemplate = false;
                _this.className = "SpriteState";
                // Make filter list disposable
                _this._disposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.filters));
                _this._disposers.push(_this.filters.template);
                // Decorate adapter with events so that we can apply its settings whenever
                // it is modified
                _this.adapter.events.on("inserted", function (ev) {
                    _this[ev.newValue.key] = _this[ev.newValue.key];
                }, undefined, false);
                _this.adapter.events.on("removed", function (ev) {
                    _this[ev.newValue.key] = _this[ev.newValue.key];
                }, undefined, false);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns [[Sprite]] element's property value.
             *
             * Will check if there are any bindings with [[DataItem]] and if there are
             * any method callbacks set up for the specific property.
             *
             * @param  {Properties}  propertyName  Property name
             * @return {any}                       Property value
             */
            SpriteState.prototype.getPropertyValue = function (propertyName) {
                var propValue = this.properties[propertyName];
                var sprite = this.sprite;
                if (sprite) {
                    var fieldName = this.propertyFields[propertyName];
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](fieldName)) {
                        if (sprite.dataItem) {
                            propValue = sprite.dataItem.dataContext[fieldName];
                        }
                    }
                    // Apply adapters
                    // If the value itself is undefined, we're going to pass in Sprite's
                    // value to adapters
                    // @todo get rid of <any>
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](propValue)) {
                        var spriteValue = sprite.getPropertyValue(propertyName);
                        propValue = this.adapter.apply(propertyName, sprite.getPropertyValue(propertyName));
                        if (propValue == spriteValue) {
                            propValue = undefined;
                        }
                    }
                    else {
                        propValue = this.adapter.apply(propertyName, propValue);
                    }
                    /*let method = this.propertyMethods.getKey(propertyName);
                    if (method) {
                        propValue = method(sprite, propertyName);
                    }*/
                }
                return propValue;
            };
            /**
             * Copies all property and style values from another [[SpriteState]] object.
             *
             * @param {SpriteState}  source  Source [[SpriteState]]
             */
            SpriteState.prototype.copyFrom = function (source) {
                if (source && source != this) {
                    this.transitionDuration = source.transitionDuration;
                    this.transitionEasing = source.transitionEasing;
                    _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](source.properties, this.properties);
                    _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](source.propertyFields, this.propertyFields);
                    this.filters.copyFrom(source.filters);
                    this.adapter.copyFrom(source.adapter);
                }
            };
            Object.defineProperty(SpriteState.prototype, "allValues", {
                /**
                 * Returns all values that should be applied by the SpriteState.
                 *
                 * It takes adapters into account.
                 *
                 * @ignore Exclude from docs
                 * @return {ISpriteProperties} Properties
                 * @todo Add adapter values
                 * @todo proper type this["_properties"]
                 */
                get: function () {
                    var _this = this;
                    // Init return value
                    var res = {};
                    // Apply adapters to all values
                    _utils_Object__WEBPACK_IMPORTED_MODULE_9__["each"](this.properties, function (prop, value) {
                        res[prop] = _this.getPropertyValue(prop);
                    });
                    // Cycle through all adapters and add values for missing properties
                    var keys = this.adapter.keys();
                    for (var x in keys) {
                        var prop = keys[x];
                        var value = this.getPropertyValue(prop);
                        res[prop] = value;
                    }
                    // Cycle through all property fileds and add values for missing properties
                    var propertyFields = this.propertyFields;
                    for (var prop in propertyFields) {
                        var value = this.getPropertyValue(prop);
                        res[prop] = value;
                    }
                    return res;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Resets the State to initial state - no values or Filters applied.
             */
            SpriteState.prototype.reset = function () {
                this.properties = {};
                this.filters.clear();
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            SpriteState.prototype.processConfig = function (config) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](config) && _utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](config["properties"])) {
                    _utils_Object__WEBPACK_IMPORTED_MODULE_9__["each"](config["properties"], function (key, value) {
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isString"](value)) {
                            if (value.match(/^[0-9.\-]+\%$/)) {
                                config["properties"][key] = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(_utils_Type__WEBPACK_IMPORTED_MODULE_10__["toNumber"](value));
                            }
                            else if (value.match(/^\#[0-9abcdef]{3,}$/i)) {
                                config["properties"][key] = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_5__["toColor"])(value);
                            }
                        }
                    });
                }
                _super.prototype.processConfig.call(this, config);
            };
            return SpriteState;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=SpriteState.js.map
        /***/ 
    }),
    /* 768 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseObject", function () { return BaseObject; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseObjectEvents", function () { return BaseObjectEvents; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(769);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(760);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        /* harmony import */ var _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(752);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(770);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(774);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(758);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _utils_Cache__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(764);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(755);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /**
         * Base functionality
         */
        //import * as $debug from "./utils/Debug";
        /**
         * Provides base functionality for all derivative objects, like generating ids,
         * handling cache, etc.
         */
        var BaseObject = /** @class */ (function () {
            //protected _classes: { [index: string]: any } = {};
            /**
             * Constructor
             * * Sets class name
             */
            function BaseObject() {
                /**
                 * Indicates if this object has already been deleted. Any
                 * destruction/disposal code should take this into account when deciding
                 * wheter to run potentially costly disposal operations if they already have
                 * been run.
                 *
                 * @type {boolean}
                 * @ignore Exclude from docs
                 */
                this._disposed = false;
                /**
                 * List of IDisposer which will be disposed when the BaseObject is disposed.
                 *
                 * @ignore Exclude from docs
                 */
                this._disposers = [];
                this.className = "BaseObject";
                //this.debug();
            }
            BaseObject.prototype.debug = function () {
                //$debug.debug(this);
            };
            Object.defineProperty(BaseObject.prototype, "uid", {
                /**
                 * Returns object's internal unique ID.
                 *
                 * @return {string} Unique ID
                 */
                get: function () {
                    if (!this._uid) {
                        this._uid = _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].getUniqueId();
                        _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].map.setKey(this._uid, this);
                    }
                    return this._uid;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(BaseObject.prototype, "id", {
                /**
                 * @return {Optional<string>} Id
                 */
                get: function () {
                    return this._id;
                },
                /**
                 * Sets the user-defined id of the element.
                 *
                 * @param {Optional<string>} value Id
                 */
                set: function (value) {
                    //registry.map.setKey(value, this); // registry.map only stores by uid
                    this._id = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(BaseObject.prototype, "map", {
                /**
                 * Returns a universal collection for mapping ids with objects.
                 *
                 * @ignore Exclude from docs
                 * @return {Dictionary<string, any>} Map collection
                 */
                get: function () {
                    if (!this._map) {
                        this._map = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__["Dictionary"]();
                    }
                    return this._map;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Applies properties from all assigned themes.
             *
             * @ignore Exclude from docs
             */
            BaseObject.prototype.applyTheme = function () {
                var _this = this;
                // TODO is this needed ?
                if (_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"]) {
                    var themes = this.getCurrentThemes();
                    // TODO is this needed ?
                    if (themes) {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](themes, function (theme, index) {
                            theme(_this);
                        });
                    }
                }
            };
            Object.defineProperty(BaseObject.prototype, "themes", {
                /**
                 * @ignore Exclude from docs
                 * @return {Optional<ITheme[]>} An array of themes
                 */
                get: function () {
                    return this._themes;
                },
                /**
                 * A list of themes to be used for this element.
                 *
                 * @ignore Exclude from docs
                 * @param {Optional<ITheme[]>} value An array of themes
                 */
                set: function (value) {
                    this._themes = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a list of themes that should be applied to this element. It could
             * either be a list of themes set explicitly on this element, or system-wide.
             *
             * @return {ITheme[]} List of themes
             */
            BaseObject.prototype.getCurrentThemes = function () {
                return this.themes || _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].themes;
            };
            /**
             * Returns if this object has been already been disposed.
             *
             * @return {boolean} Is disposed?
             */
            BaseObject.prototype.isDisposed = function () {
                return this._disposed;
            };
            /**
             * Destroys this object and all related data.
             */
            BaseObject.prototype.dispose = function () {
                if (!this._disposed) {
                    this._disposed = true;
                    var a = this._disposers;
                    this._disposers = null;
                    while (a.length !== 0) {
                        var disposer = a.shift();
                        disposer.dispose();
                    }
                    // Clear cache
                    this.clearCache();
                    // remove from clones list
                    if (this.clonedFrom) {
                        this.clonedFrom.clones.removeValue(this);
                    }
                    var uid = this._uid;
                    if (uid != null) {
                        _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].map.removeKey(uid);
                    }
                }
            };
            /**
             * Adds an IDisposer, which will be disposed when this object is disposed.
             *
             * @param {IDisposer} target Object to dispose
             * @ignore Exclude from docs
             */
            BaseObject.prototype.addDisposer = function (target) {
                this._disposers.push(target);
            };
            /**
             * Disposes disposable object and removes it from `_disposers`.
             *
             * @param {IDisposer} target Object to dispose
             * @ignore Exclude from docs
             */
            BaseObject.prototype.removeDispose = function (target) {
                //if(target){
                if (!this._disposed) {
                    var index = _utils_Array__WEBPACK_IMPORTED_MODULE_10__["indexOf"](this._disposers, target);
                    if (index > -1) {
                        this._disposers.splice(index, 1);
                    }
                }
                target.dispose();
                //}
            };
            /**
             * Makes a copy of this object and returns the clone. Try to avoid cloning complex objects like chart, create new instances if you need them.
             *
             * @param   {string}  cloneId  An id to use for clone (if not set a unique id will be generated)
             * @returns {Object}           Clone
             */
            BaseObject.prototype.clone = function (cloneId) {
                if (!cloneId) {
                    cloneId = "clone-" + _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].getUniqueId();
                }
                var newObject = new this.constructor();
                newObject.cloneId = cloneId;
                newObject.copyFrom(this);
                // add to clones list
                // this.clones.push(newObject); // moved this to copyFrom
                return newObject;
            };
            Object.defineProperty(BaseObject.prototype, "clones", {
                /**
                 * Returns a collection of object's clones.
                 *
                 * @ignore Exclude from docs
                 * @return {Dictionary<string, this>} Clones
                 */
                get: function () {
                    if (!this._clones) {
                        this._clones = new _utils_List__WEBPACK_IMPORTED_MODULE_1__["List"]();
                    }
                    return this._clones;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all properties and related data from different element.
             *
             * @param {this} object Source element
             */
            BaseObject.prototype.copyFrom = function (object) {
                object.clones.moveValue(this);
                this.clonedFrom = object;
            };
            Object.defineProperty(BaseObject.prototype, "className", {
                /**
                 * @ignore Exclude from docs
                 * @return {string} Class name
                 */
                get: function () {
                    return this._className;
                },
                /**
                 * Element's class name. (a class that was used to instantiate the element)
                 *
                 * @ignore Exclude from docs
                 * @param {string}  value  Class name
                 */
                set: function (value) {
                    this._className = value;
                    /*if (registry) {
                        registry.registeredClasses[value] = typeof this;
                    }*/
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Caches value in object's cache.
             *
             * @ignore Exclude from docs
             * @param {string}  key    Key
             * @param {any}     value  Value
             * @param {number}  ttl    TTL in seconds
             */
            BaseObject.prototype.setCache = function (key, value, ttl) {
                _utils_Cache__WEBPACK_IMPORTED_MODULE_9__["cache"].set(this.uid, key, value, ttl);
            };
            /**
             * Retrieves cached value.
             *
             * If optional second padarameter is specified, it will return that value
             * if cache is not available or is expired.
             *
             * @ignore Exclude from docs
             * @param  {string}  key    Key
             * @param  {any}     value  Value to return if cache is not available
             * @return {any}            Value
             */
            BaseObject.prototype.getCache = function (key, value) {
                if (value === void 0) {
                    value = undefined;
                }
                return _utils_Cache__WEBPACK_IMPORTED_MODULE_9__["cache"].get(this.uid, key, value);
            };
            /**
             * Clears object's local cache.
             *
             * @ignore Exclude from docs
             */
            BaseObject.prototype.clearCache = function () {
                _utils_Cache__WEBPACK_IMPORTED_MODULE_9__["cache"].clear(this.uid);
            };
            /**
             * Creates [[Disposer]] for `setTimeout` function call. This ensures that all
             * timeouts created by the object will be cleared when object itself is
             * disposed.
             *
             * @ignore Exclude from docs
             * @param  {() => void}  fn     Callback function
             * @param  {number}      delay  Timeout (ms)
             * @return {IDisposer}          Disposer for timeout
             */
            BaseObject.prototype.setTimeout = function (fn, delay) {
                var _this = this;
                var id = setTimeout(function () {
                    _this.removeDispose(disposer);
                    fn();
                }, delay);
                var disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["Disposer"](function () {
                    clearTimeout(id);
                });
                this._disposers.push(disposer);
                return disposer;
            };
            Object.defineProperty(BaseObject.prototype, "config", {
                /**
                 * ==========================================================================
                 * JSON-BASED CONFIG PROCESSING
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Use this property to set JSON-based config. When set, triggers processing
                 * routine, which will go through all properties, and try to apply values,
                 * create instances, etc.
                 *
                 * Use this with caution, as it is a time-consuming process. It's used for
                 * initialchart setup only, not routine operations.
                 *
                 * @param {object} json JSON config
                 */
                set: function (config) {
                    try {
                        this.processConfig(config);
                    }
                    catch (e) {
                        /*if (this instanceof Sprite) {
                            this.raiseCriticalError(e);
                        }*/
                        this.raiseCriticalError(e);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes the JSON config.
             *
             * @param {object}  json  JSON config
             * @ignore Exclude from docs
             */
            BaseObject.prototype.processConfig = function (config) {
                var _this = this;
                if (!config) {
                    return;
                }
                // Get target
                var target = this;
                // Iterate through all of the items
                _utils_Object__WEBPACK_IMPORTED_MODULE_11__["eachOrdered"](config, function (configKey, value) {
                    var configValue = value;
                    // Is this a callback?
                    if (configKey == "callback" && typeof value == "function") {
                        value.call(target);
                    }
                    // Check if there's a property in target
                    if (_this.hasProperty(configKey)) {
                        var item_1;
                        // Do we have instructions to create an object?
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](configValue) && _utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](configValue["type"])) {
                            // Create new instance
                            if (item_1 = _this.createClassInstance(configValue["type"])) {
                                target[configKey] = item_1;
                            }
                            else {
                                item_1 = target[configKey];
                            }
                        }
                        else {
                            // Get item from the object
                            item_1 = target[configKey];
                        }
                        /**
                         * It is...
                         * --------------------------------------------------------------------
                         */
                        if (item_1 instanceof _utils_Adapter__WEBPACK_IMPORTED_MODULE_5__["Adapter"]) {
                            // ... an Adapter, try to add handlers to it
                            // ------------------------------------------------------------------
                            _this.processAdapters(item_1, configValue);
                        }
                        else if (item_1 instanceof _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_4__["EventDispatcher"]) {
                            // ... an EventDispatcher, try to add handlers to it
                            // ------------------------------------------------------------------
                            _this.processEvents(item_1, configValue);
                        }
                        else if (_this.asIs(configKey)) {
                            // ... a special field, just set it to new value
                            // ------------------------------------------------------------------
                            // (no need to add each indvidual item)
                            target[configKey] = configValue;
                        }
                        else if (configValue instanceof BaseObject) {
                            // ... a BaseObject object, we just going to use it as it is
                            // ------------------------------------------------------------------
                            target[configKey] = configValue;
                        }
                        else if (item_1 instanceof BaseObject) {
                            // ... another child BaseObject
                            // ------------------------------------------------------------------
                            // Let's just pass in config part in and let itself deal with it
                            item_1.config = configValue;
                        }
                        else if (item_1 instanceof _utils_List__WEBPACK_IMPORTED_MODULE_1__["ListTemplate"]) {
                            // ... a list with template
                            // ------------------------------------------------------------------
                            // Let's see what we can do with it
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](configValue)) {
                                // It's an array.
                                // Create a list item for entry, or try to apply properties to an
                                // existing entry if possible and it is present.
                                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](configValue, function (entry, index) {
                                    var type = _this.getConfigEntryType(entry);
                                    var listItem;
                                    if (item_1.hasIndex(index) && !entry["forceCreate"]) {
                                        listItem = item_1.getIndex(index);
                                    }
                                    else if (entry instanceof BaseObject) {
                                        // Item is already a BaseObject, no need to process it further
                                        item_1.push(entry);
                                        return;
                                    }
                                    else if (type) {
                                        listItem = item_1.create(type);
                                    }
                                    else {
                                        listItem = item_1.create();
                                    }
                                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](entry)) {
                                        // If the list item is BaseObject, we just need to let it
                                        // deal if its own config
                                        if (listItem instanceof BaseObject) {
                                            listItem.config = entry;
                                        }
                                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](listItem) && _utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](entry)) {
                                            _utils_Object__WEBPACK_IMPORTED_MODULE_11__["copyAllProperties"](entry, listItem);
                                        }
                                        else {
                                            item_1.setIndex(item_1.indexOf(listItem), entry);
                                        }
                                    }
                                });
                                // Truncate the list if it contains less items than the config
                                // array
                                while (configValue.length > item_1.length) {
                                    item_1.pop();
                                }
                            }
                            else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](configValue)) {
                                // It's a single oject.
                                // Treat it as a template.
                                if (configValue instanceof BaseObject) {
                                    // Item is already a BaseObject, no need to process it further
                                    item_1.template = configValue;
                                }
                                else if (item_1.template instanceof BaseObject) {
                                    // Template is a BaseObject so we will just let its config
                                    // deal with the configuration
                                    item_1.template.config = configValue;
                                }
                                else {
                                    _utils_Object__WEBPACK_IMPORTED_MODULE_11__["each"](configValue, function (entryKey, entryValue) {
                                        var listItem = item_1.template[entryKey];
                                        if (listItem instanceof _utils_Adapter__WEBPACK_IMPORTED_MODULE_5__["Adapter"]) {
                                            _this.processAdapters(listItem, entryValue);
                                        }
                                        else if (listItem instanceof _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_4__["EventDispatcher"]) {
                                            _this.processEvents(listItem, entryValue);
                                        }
                                        else if (listItem instanceof _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__["DictionaryTemplate"]) {
                                            _this.processDictionaryTemplate(listItem, entryValue);
                                        }
                                        else if (item_1.template[entryKey] instanceof BaseObject) {
                                            // Template is a BaseObject. Let it deal with its own config.
                                            item_1.template[entryKey].config = entryValue;
                                        }
                                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](entryValue) && _utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](entryValue["type"])) {
                                            if (listItem = _this.createClassInstance(entryValue["type"])) {
                                                if (listItem instanceof BaseObject) {
                                                    listItem.config = entryValue;
                                                }
                                                item_1.template[entryKey] = listItem;
                                            }
                                            else {
                                                item_1.template[entryKey] = entryValue;
                                            }
                                        }
                                        else if (listItem instanceof _utils_List__WEBPACK_IMPORTED_MODULE_1__["List"]) {
                                            // It's List, process it
                                            _this.processList(entryValue, listItem);
                                        }
                                        else {
                                            // Aything else. Just assing and be done with it.
                                            item_1.template[entryKey] = _this.maybeColorOrPercent(entryValue);
                                        }
                                    });
                                }
                            }
                            else {
                                // Something else?
                                // Not sure what to do with it on a list - ignore
                            }
                        }
                        else if (item_1 instanceof _utils_List__WEBPACK_IMPORTED_MODULE_1__["List"]) {
                            // ... a list
                            // ------------------------------------------------------------------
                            _this.processList(configValue, item_1);
                        }
                        else if (item_1 instanceof _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__["DictionaryTemplate"]) {
                            // ... a dictionary with template
                            // ------------------------------------------------------------------
                            _this.processDictionaryTemplate(item_1, configValue);
                        }
                        else if (item_1 instanceof _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__["Dictionary"]) {
                            // ... a dictionary
                            // ------------------------------------------------------------------
                            _this.processDictionary(item_1, configValue);
                        }
                        else if (item_1 instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_6__["Color"] || item_1 instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"]) {
                            // ... it's a Color or Percent
                            // ------------------------------------------------------------------
                            target[configKey] = _this.maybeColorOrPercent(configValue);
                        }
                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](item_1) && _utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](configValue)) {
                            // ... a regular object
                            // ------------------------------------------------------------------
                            _utils_Object__WEBPACK_IMPORTED_MODULE_11__["copyAllProperties"](configValue, item_1);
                        }
                        else {
                            // ... something else - probably a simple property or object
                            // ------------------------------------------------------------------
                            // Maybe convert to `Percent` or `Color`?
                            configValue = _this.maybeColorOrPercent(configValue);
                            // Assign
                            target[configKey] = configValue;
                        }
                    }
                }, this.configOrder);
            };
            /**
             * Tries to detect if value is color or percent and converts to proper object
             * if necessary.
             *
             * Returns the same source value if no color/percent detected
             *
             * @param  {any}  value  Source value
             * @return {any}         Converted value
             */
            BaseObject.prototype.maybeColorOrPercent = function (value) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isString"](value)) {
                    if (value.match(/^[0-9.\-]+\%$/)) {
                        return Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(_utils_Type__WEBPACK_IMPORTED_MODULE_12__["toNumber"](value));
                    }
                    else if (value.match(/^\#[0-9abcdef]{3,}$/i)) {
                        return Object(_utils_Color__WEBPACK_IMPORTED_MODULE_6__["color"])(value);
                    }
                }
                return value;
            };
            BaseObject.prototype.processAdapters = function (item, config) {
                var _this = this;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](config)) {
                    _utils_Object__WEBPACK_IMPORTED_MODULE_11__["each"](config, function (key, entry) {
                        if (!item.has(key, entry)) {
                            item.add(key, entry);
                        }
                    });
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](config)) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](config, function (entry, index) {
                        item.add(entry.type, entry.callback, entry.priority || 0, _this);
                    });
                }
            };
            BaseObject.prototype.processEvents = function (item, config) {
                var _this = this;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](config)) {
                    _utils_Object__WEBPACK_IMPORTED_MODULE_11__["each"](config, function (key, entry) {
                        if (!item.has(key, entry)) {
                            item.on(key, entry);
                        }
                    });
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](config)) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](config, function (entry, index) {
                        item.on(entry.type, entry.callback, _this);
                    });
                }
            };
            /**
             * Processes JSON config for a [[DictionaryTemplate]] item.
             *
             * @todo Description
             * @param {DictionaryTemplate<any, any>}  item    Item
             * @param {any}                           config  Config
             */
            BaseObject.prototype.processDictionaryTemplate = function (item, config) {
                // We can only process object
                // Not sure what to do with other types - ignore
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](config)) {
                    // Create an entry for each item, or override properties for
                    // existing one.
                    _utils_Object__WEBPACK_IMPORTED_MODULE_11__["each"](config, function (entryKey, entryValue) {
                        var listItem;
                        // Get existing one, or create a new one
                        if (entryKey == "template") {
                            listItem = item.template;
                        }
                        else if (item.hasKey(entryKey)) {
                            listItem = item.getKey(entryKey);
                        }
                        else {
                            listItem = item.create(entryKey);
                        }
                        // Set data
                        if (listItem instanceof BaseObject) {
                            listItem.config = entryValue;
                        }
                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](listItem) && _utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](entryValue)) {
                            _utils_Object__WEBPACK_IMPORTED_MODULE_11__["copyAllProperties"](entryValue, listItem);
                        }
                        else {
                            listItem.setKey(entryKey, entryValue);
                        }
                    });
                }
            };
            /**
             * Processes JSON config for a [[Dictionary]] item.
             *
             * @todo Description
             * @param {Dictionary<any, any>}  item    Item
             * @param {any}                   config  Config
             */
            BaseObject.prototype.processDictionary = function (item, config) {
                // We can only process object
                // Not sure what to do with other types - ignore
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](config)) {
                    // Create an entry for each item, or override properties for
                    // existing one.
                    // @todo support for non-basic types
                    _utils_Object__WEBPACK_IMPORTED_MODULE_11__["each"](config, function (entryKey, entryValue) {
                        item.setKey(entryKey, entryValue);
                    });
                }
            };
            /**
             * Processes [[List]].
             *
             * @param {any}        configValue  Config value
             * @param {List<any>}  item         Item
             */
            BaseObject.prototype.processList = function (configValue, item) {
                var _this = this;
                // Convert to array if necessary
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](configValue)) {
                    configValue = [configValue];
                }
                // It's an array
                // Create a list item for entry
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](configValue, function (entry, index) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](entry)) {
                        // An object.
                        //
                        // Let's see if we can instantiate a class out of it, or we need
                        // to push it into list as it is.
                        //
                        // If there are items already at the specified index in the list,
                        // apply properties rather than create a new one.
                        var listItem = void 0;
                        if (item.hasIndex(index) && !entry["forceCreate"]) {
                            listItem = item.getIndex(index);
                        }
                        else if (entry instanceof BaseObject) {
                            // Item is already a BaseObject, no need to process it further
                            item.push(entry);
                            return;
                        }
                        else {
                            listItem = _this.createEntryInstance(entry);
                            item.push(listItem);
                        }
                        // If the list item is BaseObject, we just need to let it
                        // deal if its own config
                        if (listItem instanceof BaseObject) {
                            listItem.config = entry;
                        }
                    }
                    else {
                        // Basic value.
                        // Just push it into list, or override existing value
                        if (item.hasIndex(index)) {
                            item.setIndex(index, entry);
                        }
                        else {
                            item.push(entry);
                        }
                    }
                });
                // Truncate the list if it contains less items than the config
                // array
                while (configValue.length > item.length) {
                    item.pop();
                }
            };
            /**
             * This function is used to sort element's JSON config properties, so that
             * some properties that absolutely need to be processed last, can be put at
             * the end.
             *
             * @ignore Exclude from docs
             * @param  {string}  a  Element 1
             * @param  {string}  b  Element 2
             * @return {Ordering}   Sorting number
             */
            BaseObject.prototype.configOrder = function (a, b) {
                if (a == b) {
                    return 0;
                }
                // Language must come first, so it's all set up when the rest of the
                // elements are being instantiated
                else if (a == "language") {
                    return -1;
                }
                else if (b == "language") {
                    return 1;
                }
                else {
                    return 0;
                }
            };
            /**
             * Checks if field should be just assigned as is, without any checking when
             * processing JSON config.
             *
             * Extending functions can override this function to do their own checks.
             *
             * @param  {string}   field  Field name
             * @return {boolean}         Assign as is?
             */
            BaseObject.prototype.asIs = function (field) {
                return _utils_Array__WEBPACK_IMPORTED_MODULE_10__["indexOf"](["locale"], field) != -1;
            };
            /**
             * Creates a relevant class instance if such class definition exists.
             *
             * @ignore Exclude from docs
             * @param  {string}  className  Class name
             * @return {Object}             Instance
             */
            BaseObject.prototype.createClassInstance = function (className) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses[className])) {
                    return new _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses[className]();
                }
                return;
            };
            /**
             * Creates a class instance for a config entry using it's type. (as set in
             * `type` property)
             *
             * @ignore Exclude from docs
             * @param  {any}  config  Config part
             * @return {any}          Instance
             */
            BaseObject.prototype.createEntryInstance = function (config) {
                var res;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config["type"])) {
                    res = this.createClassInstance(config["type"]);
                }
                if (!res) {
                    return config;
                }
                return res;
            };
            /**
             * Determines config object type.
             *
             * @ignore Exclude from docs
             * @param  {any}  config  Config part
             * @return {any}          Type
             */
            BaseObject.prototype.getConfigEntryType = function (config) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config["type"])) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses[config["type"]])) {
                        return _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses[config["type"]];
                    }
                    else {
                        throw Error("Invalid type: \"" + config["type"] + "\".");
                    }
                }
                return;
            };
            /**
             * Checks if this element has a property.
             *
             * @ignore Exclude from docs
             * @param  {string}   prop  Property name
             * @return {boolean}        Has property?
             */
            BaseObject.prototype.hasProperty = function (prop) {
                return prop in this ? true : false;
            };
            return BaseObject;
        }());
        ;
        /**
         * A version of [[BaseObject]] with events properties and methods.
         * Classes that use [[EventDispatcher]] should extend this instead of
         * [[BaseObject]] directly.
         */
        var BaseObjectEvents = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](BaseObjectEvents, _super);
            /**
             * Constructor
             */
            function BaseObjectEvents() {
                var _this = _super.call(this) || this;
                /**
                 * An [[EventDispatcher]] instance
                 */
                _this.events = new _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_4__["EventDispatcher"]();
                _this.className = "BaseObjectEvents";
                _this._disposers.push(_this.events);
                return _this;
            }
            /**
             * Dispatches an event using own event dispatcher. Will automatically
             * populate event data object with event type and target (this element).
             * It also checks if there are any handlers registered for this sepecific
             * event.
             *
             * @param {Key} eventType Event type (name)
             * @param {any}    data      Data to pass into event handler(s)
             */
            BaseObjectEvents.prototype.dispatch = function (eventType, data) {
                // @todo Implement proper type check
                if (this.events.isEnabled(eventType)) {
                    if (data) {
                        data.type = eventType;
                        data.target = data.target || this;
                        this.events.dispatch(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                    else {
                        this.events.dispatch(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                }
            };
            /**
             * Works like `dispatch`, except event is triggered immediately, without
             * waiting for the next frame cycle.
             *
             * @param {Key} eventType Event type (name)
             * @param {any}    data      Data to pass into event handler(s)
             */
            BaseObjectEvents.prototype.dispatchImmediately = function (eventType, data) {
                // @todo Implement proper type check
                if (this.events.isEnabled(eventType)) {
                    if (data) {
                        data.type = eventType;
                        data.target = data.target || this;
                        this.events.dispatchImmediately(eventType, data);
                    }
                    else {
                        this.events.dispatchImmediately(eventType, {
                            type: eventType,
                            target: this
                        });
                    }
                }
            };
            /**
             * Copies all parameters from another [[Sprite]].
             *
             * @param {BaseObjectEvents} source Source object
             */
            BaseObjectEvents.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.events.copyFrom(source.events);
            };
            return BaseObjectEvents;
        }(BaseObject));
        //# sourceMappingURL=Base.js.map
        /***/ 
    }),
    /* 769 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexedIterable", function () { return IndexedIterable; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListGrouper", function () { return ListGrouper; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDisposer", function () { return ListDisposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "List", function () { return List; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplate", function () { return ListTemplate; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Disposer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(754);
        /* harmony import */ var _EventDispatcher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(752);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(755);
        /* harmony import */ var _Iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(762);
        /**
         * @todo Description
         */
        var IndexedIterable = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {Array<A>}  array  List items
             * @param {number}    start  Start index
             * @param {number}    end    End index
             */
            function IndexedIterable(array, start, end) {
                this._array = array;
                this._start = start;
                this._end = end;
            }
            /**
             * Returns a list item iterator.
             *
             * @return {Iterator} Iterator
             */
            IndexedIterable.prototype.iterator = function () {
                var _this = this;
                return function (push) {
                    if (_this._start !== _this._end) {
                        if (_this._start < _this._end) {
                            for (var i = _this._start; i < _this._end; ++i) {
                                if (!push(_this._array[i])) {
                                    break;
                                }
                            }
                        }
                        else {
                            for (var i = _this._start - 1; i >= _this._end; --i) {
                                if (!push(_this._array[i])) {
                                    break;
                                }
                            }
                        }
                    }
                };
            };
            /**
             * Returns an interable list sorted backwards than current list.
             *
             * @return {IndexedIterable<A>} List
             */
            IndexedIterable.prototype.backwards = function () {
                return new IndexedIterable(this._array, this._end, this._start);
            };
            /**
             * Returns a new list consisting only of specific range of items between
             * `start` and `end` indexes.
             *
             * @param  {number}              start  Start index
             * @param  {number}              end    End index
             * @return {IndexedIterable<A>}         List
             */
            IndexedIterable.prototype.range = function (start, end) {
                if (start <= end) {
                    if (this._start === this._end) {
                        return this;
                    }
                    else if (this._start < this._end) {
                        var diff = end - start;
                        start = Math.max(this._start + start, this._start);
                        end = Math.min(start + diff, this._end);
                        return new IndexedIterable(this._array, start, end);
                    }
                    else {
                        var diff = end - start;
                        start = Math.max(this._start - start, this._end);
                        end = Math.max(start - diff, this._end);
                        return new IndexedIterable(this._array, start, end);
                    }
                }
                else {
                    throw new Error("Start index must be lower than end index");
                }
            };
            return IndexedIterable;
        }());
        /**
         * ListGrouper organizes [[List]] items into groups.
         *
         * @ignore Exclude from docs
         */
        var ListGrouper = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ListGrouper, _super);
            /**
             * Constructor.
             */
            function ListGrouper(list, getKey, sort) {
                var _this = _super.call(this, [
                    list.events.on("inserted", function (x) {
                        var value = x.newValue;
                        var key = _this._getKey(value);
                        var index = 0;
                        _Iterator__WEBPACK_IMPORTED_MODULE_4__["eachContinue"](list.iterator(), function (x) {
                            if (x === value) {
                                return false;
                            }
                            else if (_this._getKey(x) === key) {
                                ++index;
                            }
                            return true;
                        });
                        _this._insert(value, key, index);
                    }, undefined, false),
                    list.events.on("removed", function (x) {
                        _this._remove(x.oldValue);
                    }, undefined, false)
                ]) || this;
                /**
                 * Grouping keys.
                 *
                 * @type {Array<number>}
                 */
                _this._keys = [];
                /**
                 * List item groups.
                 */
                _this._groups = {};
                _this._getKey = getKey;
                _this._sort = sort;
                _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](list.iterator(), function (x) {
                    _this._insert(x, getKey(x));
                });
                return _this;
            }
            /**
             * Inserts an item (`x`) to a specific group (`key`) and specific `index`.
             *
             * @param {A}       x      Item
             * @param {number}  key    Group name
             * @param {number}  index  Index
             */
            ListGrouper.prototype._insert = function (x, key, index) {
                if (this._groups[key] == null) {
                    this._groups[key] = [];
                    // TODO code duplication with SortedList
                    var _a = _Array__WEBPACK_IMPORTED_MODULE_3__["getSortedIndex"](this._keys, this._sort, key), found = _a.found, index_1 = _a.index;
                    if (found) {
                        throw new Error("Key already exists: " + key);
                    }
                    else {
                        _Array__WEBPACK_IMPORTED_MODULE_3__["insertIndex"](this._keys, index_1, key);
                    }
                }
                if (index == null) {
                    this._groups[key].push(x);
                }
                else {
                    _Array__WEBPACK_IMPORTED_MODULE_3__["insertIndex"](this._groups[key], index, x);
                }
            };
            /**
             * Removes an item from the list.
             *
             * @param {A} x Item to remove
             */
            ListGrouper.prototype._remove = function (x) {
                var key = this._getKey(x);
                var values = this._groups[key];
                if (values != null) {
                    _Array__WEBPACK_IMPORTED_MODULE_3__["remove"](values, x);
                    if (values.length === 0) {
                        delete this._groups[key];
                        var _a = _Array__WEBPACK_IMPORTED_MODULE_3__["getSortedIndex"](this._keys, this._sort, key), found = _a.found, index = _a.index;
                        if (found) {
                            _Array__WEBPACK_IMPORTED_MODULE_3__["removeIndex"](this._keys, index);
                        }
                        else {
                            throw new Error("Key doesn't exist: " + key);
                        }
                    }
                }
            };
            /**
             * Returns an iterator for the list.
             *
             * The iterator will iterate through all items in all groups.
             *
             * @return {.Iterator<A>} Iterator
             */
            ListGrouper.prototype.iterator = function () {
                var _this = this;
                return _Iterator__WEBPACK_IMPORTED_MODULE_4__["flatten"](_Iterator__WEBPACK_IMPORTED_MODULE_4__["map"](_Iterator__WEBPACK_IMPORTED_MODULE_4__["fromArray"](this._keys), function (key) {
                    return _Iterator__WEBPACK_IMPORTED_MODULE_4__["fromArray"](_this._groups[key]);
                }));
            };
            return ListGrouper;
        }(_Disposer__WEBPACK_IMPORTED_MODULE_1__["MultiDisposer"]));
        /**
         * A disposable list, which when disposed itself will call `dispose()` method
         * on all its items.
         */
        var ListDisposer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ListDisposer, _super);
            function ListDisposer(list) {
                var _this = this;
                var disposer = list.events.on("removed", function (x) {
                    x.oldValue.dispose();
                }, undefined, false);
                _this = _super.call(this, function () {
                    disposer.dispose();
                    // TODO clear the list ?
                    _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](list.iterator(), function (x) {
                        x.dispose();
                    });
                }) || this;
                return _this;
            }
            return ListDisposer;
        }(_Disposer__WEBPACK_IMPORTED_MODULE_1__["Disposer"]));
        /**
         * Checks if specific index fits into length.
         *
         * @param {number}  index  Index
         * @param {number}  len    Length
         */
        function checkBounds(index, len) {
            if (!(index >= 0 && index < len)) {
                throw new Error("Index out of bounds: " + index);
            }
        }
        /**
         * A List class is used to hold a number of indexed items of the same type.
         */
        var List = /** @class */ (function () {
            /**
             * Constructor
             *
             * @param {Array<T>}  initial  Inital list of values to add to list
             */
            function List(initial) {
                if (initial === void 0) {
                    initial = [];
                }
                /**
                 * Event dispatcher.
                 *
                 * @type {EventDispatcher<AMEvent<this, IListEvents<T>>>}
                 */
                this.events = new _EventDispatcher__WEBPACK_IMPORTED_MODULE_2__["EventDispatcher"]();
                this._values = initial;
            }
            Object.defineProperty(List.prototype, "values", {
                /**
                 * An array of values in the list.
                 *
                 * Do not use this property to add values. Rather use dedicated methods, like
                 * `push()`, `removeIndex()`, etc.
                 *
                 * @readonly
                 * @return {Array<T>} List values
                 */
                get: function () {
                    return this._values;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if list contains specific item reference.
             *
             * @param  {T}        item  Item to search for
             * @return {boolean}        `true` if found, `false` if not found
             */
            List.prototype.contains = function (value) {
                return this._values.indexOf(value) !== -1;
            };
            /**
             * Removes specific item from the list.
             *
             * @param {T} item An item to remove
             */
            List.prototype.removeValue = function (value) {
                var i = 0;
                var length = this._values.length;
                while (i < length) {
                    // TODO handle NaN
                    if (this._values[i] === value) {
                        this.removeIndex(i);
                        --length;
                    }
                    else {
                        ++i;
                    }
                }
            };
            /**
             * Searches the list for specific item and returns its index.
             *
             * @param  {T}       item  An item to search for
             * @return {number}        Index or -1 if not found
             */
            List.prototype.indexOf = function (value) {
                return _Array__WEBPACK_IMPORTED_MODULE_3__["indexOf"](this._values, value);
            };
            Object.defineProperty(List.prototype, "length", {
                /**
                 * Number of items in list.
                 *
                 * @readonly
                 * @return {number} Number of items
                 */
                get: function () {
                    return this._values.length;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if there's a value at specific index.
             *
             * @param  {number}   index  Index
             * @return {boolean}         Value exists?
             */
            List.prototype.hasIndex = function (index) {
                return index >= 0 && index < this._values.length;
            };
            /**
             * Returns an item at specified index.
             *
             * @param  {number}  index  Index
             * @return {T}              List item
             */
            List.prototype.getIndex = function (index) {
                return this._values[index];
            };
            /**
             * Sets value at specific index.
             *
             * If there's already a value at the index, it is overwritten.
             *
             * @param  {number}  index  Index
             * @param  {T}       value  New value
             * @return {T}              New value
             */
            List.prototype.setIndex = function (index, value) {
                checkBounds(index, this._values.length);
                var oldValue = this._values[index];
                // Do nothing if the old value and the new value are the same
                if (oldValue !== value) {
                    this._values[index] = value;
                    if (this.events.isEnabled("setIndex")) {
                        this.events.dispatchImmediately("setIndex", {
                            type: "setIndex",
                            target: this,
                            index: index,
                            oldValue: oldValue,
                            newValue: value
                        });
                    }
                    if (this.events.isEnabled("removed")) {
                        this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: this,
                            oldValue: oldValue
                        });
                    }
                    if (this.events.isEnabled("inserted")) {
                        this.events.dispatchImmediately("inserted", {
                            type: "inserted",
                            target: this,
                            newValue: value
                        });
                    }
                }
                return oldValue;
            };
            /**
             * Adds an item to the list at a specific index, which pushes all the other
             * items further down the list.
             *
             * @param  {number} index Index
             * @param  {T}      item  An item to add
             */
            List.prototype.insertIndex = function (index, value) {
                checkBounds(index, this._values.length + 1);
                _Array__WEBPACK_IMPORTED_MODULE_3__["insertIndex"](this._values, index, value);
                if (this.events.isEnabled("insertIndex")) {
                    this.events.dispatchImmediately("insertIndex", {
                        type: "insertIndex",
                        target: this,
                        index: index,
                        newValue: value
                    });
                }
                if (this.events.isEnabled("inserted")) {
                    this.events.dispatchImmediately("inserted", {
                        type: "inserted",
                        target: this,
                        newValue: value
                    });
                }
            };
            /**
             * [_sortQuicksort description]
             *
             * @todo Description
             * @param {number}    low    [description]
             * @param {number}    high   [description]
             * @param {function}  order  [description]
             */
            List.prototype._sortQuicksort = function (low, high, order) {
                if (low < high) {
                    var p = this._sortPartition(low, high, order);
                    this._sortQuicksort(low, p, order);
                    this._sortQuicksort(p + 1, high, order);
                }
            };
            /**
             * [_sortPartition description]
             *
             * @todo Description
             * @param  {number}    low    [description]
             * @param  {number}    high   [description]
             * @param  {function}  order  [description]
             * @return {number}           [description]
             */
            List.prototype._sortPartition = function (low, high, order) {
                var values = this._values;
                var pivot = values[low];
                var i = low - 1;
                var j = high + 1;
                for (;;) {
                    do {
                        ++i;
                    } while (order(values[i], pivot) < 0);
                    do {
                        --j;
                    } while (order(values[j], pivot) > 0);
                    if (i >= j) {
                        return j;
                    }
                    else {
                        this.swap(i, j);
                    }
                }
            };
            /**
             * Reorders list items according to specific ordering function.
             *
             * @param {T) => Ordering}  order  Ordering function
             */
            List.prototype.sort = function (order) {
                // https://en.wikipedia.org/wiki/Quicksort#Hoare_partition_scheme
                // @todo faster implementation of this
                // @todo test this
                this._sortQuicksort(0, this._values.length - 1, order);
            };
            /**
             * Swaps indexes of two items in the list.
             *
             * @param {number}  a  Item 1
             * @param {number}  b  Item 2
             */
            List.prototype.swap = function (a, b) {
                var len = this._values.length;
                checkBounds(a, len);
                checkBounds(b, len);
                if (a !== b) {
                    var value_a = this._values[a];
                    var value_b = this._values[b];
                    this._values[a] = value_b;
                    if (this.events.isEnabled("setIndex")) {
                        this.events.dispatchImmediately("setIndex", {
                            type: "setIndex",
                            target: this,
                            index: a,
                            oldValue: value_a,
                            newValue: value_b
                        });
                    }
                    this._values[b] = value_a;
                    if (this.events.isEnabled("setIndex")) {
                        this.events.dispatchImmediately("setIndex", {
                            type: "setIndex",
                            target: this,
                            index: b,
                            oldValue: value_b,
                            newValue: value_a
                        });
                    }
                }
            };
            /**
             * Removes a value at specific index.
             *
             * @param  {number}  index  Index of value to remove
             * @return {T}              Removed value
             */
            List.prototype.removeIndex = function (index) {
                checkBounds(index, this._values.length);
                var oldValue = this._values[index];
                _Array__WEBPACK_IMPORTED_MODULE_3__["removeIndex"](this._values, index);
                if (this.events.isEnabled("removeIndex")) {
                    this.events.dispatchImmediately("removeIndex", {
                        type: "removeIndex",
                        target: this,
                        index: index,
                        oldValue: oldValue
                    });
                }
                if (this.events.isEnabled("removed")) {
                    this.events.dispatchImmediately("removed", {
                        type: "removed",
                        target: this,
                        oldValue: oldValue
                    });
                }
                return oldValue;
            };
            /**
             * Moves an item to a specific index within the list.
             *
             * If the index is not specified it will move the item to the end of the
             * list.
             *
             * @param {T}       value  Item to move
             * @param {number}  index  Index to place item at
             */
            List.prototype.moveValue = function (value, toIndex) {
                // TODO don't do anything if the desired index is the same as the current index
                var index = this.indexOf(value);
                // TODO remove all old values rather than only the first ?
                if (index !== -1) {
                    var oldValue = this._values[index];
                    _Array__WEBPACK_IMPORTED_MODULE_3__["removeIndex"](this._values, index);
                    if (this.events.isEnabled("removeIndex")) {
                        this.events.dispatchImmediately("removeIndex", {
                            type: "removeIndex",
                            target: this,
                            index: index,
                            oldValue: oldValue
                        });
                    }
                }
                if (toIndex == null) {
                    toIndex = this._values.length;
                    this._values.push(value);
                }
                else {
                    _Array__WEBPACK_IMPORTED_MODULE_3__["insertIndex"](this._values, toIndex, value);
                }
                if (this.events.isEnabled("insertIndex")) {
                    this.events.dispatchImmediately("insertIndex", {
                        type: "insertIndex",
                        target: this,
                        index: toIndex,
                        newValue: value
                    });
                }
                if (index === -1) {
                    if (this.events.isEnabled("inserted")) {
                        this.events.dispatchImmediately("inserted", {
                            type: "inserted",
                            target: this,
                            newValue: value
                        });
                    }
                }
            };
            /**
             * Adds an item to the end of the list.
             *
             * @param  {T}  item  An item to add
             */
            List.prototype.push = function (value) {
                var index = this._values.push(value) - 1;
                if (this.events.isEnabled("insertIndex")) {
                    this.events.dispatchImmediately("insertIndex", {
                        type: "insertIndex",
                        target: this,
                        index: index,
                        newValue: value
                    });
                }
                if (this.events.isEnabled("inserted")) {
                    this.events.dispatchImmediately("inserted", {
                        type: "inserted",
                        target: this,
                        newValue: value
                    });
                }
                return value;
            };
            /**
             * Adds an item as a first item in the list.
             *
             * @param  {T}  item  An item to add
             */
            List.prototype.unshift = function (value) {
                return this.insertIndex(0, value);
            };
            /**
             * Adds multiple items to the list.
             *
             * @param {Array<T>}  items  An Array of items to add
             */
            List.prototype.pushAll = function (values) {
                var _this = this;
                _Array__WEBPACK_IMPORTED_MODULE_3__["each"](values, function (value) {
                    _this.push(value);
                });
            };
            /**
             * Copies and adds items from abother list.
             *
             * @param {List<T>}  source  A list top copy items from
             */
            List.prototype.copyFrom = function (source) {
                this.pushAll(source._values);
            };
            /**
             * Returns the last item from the list, and removes it.
             *
             * @return {T} Item
             */
            List.prototype.pop = function () {
                var index = this._values.length - 1;
                return index < 0 ? undefined : this.removeIndex(this._values.length - 1);
            };
            /**
             * Returns the first item from the list, and removes it.
             *
             * @return {T} Item
             */
            List.prototype.shift = function () {
                return this._values.length ? this.removeIndex(0) : undefined;
            };
            /**
             * Sets multiple items to the list.
             *
             * All current items are removed.
             *
             * @param {Array<T>}  newArray  New items
             */
            List.prototype.setAll = function (newArray) {
                var _this = this;
                // @tod if a value exists in both the new and old arrays, don't send remove/insert events
                var oldArray = _Array__WEBPACK_IMPORTED_MODULE_3__["copy"](this._values);
                this._values.length = 0;
                _Array__WEBPACK_IMPORTED_MODULE_3__["each"](newArray, function (value) {
                    _this._values.push(value);
                });
                if (this.events.isEnabled("setAll")) {
                    this.events.dispatchImmediately("setAll", {
                        type: "setAll",
                        target: this,
                        oldArray: oldArray,
                        newArray: this._values // TODO make a copy ?
                    });
                }
                if (this.events.isEnabled("removed")) {
                    _Array__WEBPACK_IMPORTED_MODULE_3__["each"](oldArray, function (x) {
                        _this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: _this,
                            oldValue: x
                        });
                    });
                }
                if (this.events.isEnabled("inserted")) {
                    _Array__WEBPACK_IMPORTED_MODULE_3__["each"](this._values, function (x) {
                        _this.events.dispatchImmediately("inserted", {
                            type: "inserted",
                            target: _this,
                            newValue: x
                        });
                    });
                }
            };
            /**
             * Removes all items from the list.
             */
            List.prototype.clear = function () {
                this.setAll([]);
            };
            /**
             * Returns a list iterator.
             *
             * @return {Iterator} Iterator
             */
            List.prototype.iterator = function () {
                return _Iterator__WEBPACK_IMPORTED_MODULE_4__["fromArray"](this._values);
            };
            /**
             * Returns an ES6 iterator for the list.
             */
            List.prototype[Symbol.iterator] = function () {
                var length, i;
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            length = this._values.length;
                            i = 0;
                            _a.label = 1;
                        case 1:
                            if (!(i < length))
                                return [3 /*break*/, 4];
                            return [4 /*yield*/, this._values[i]];
                        case 2:
                            _a.sent();
                            _a.label = 3;
                        case 3:
                            ++i;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            };
            /**
             * Calls `f` for each element in the list.
             */
            List.prototype.each = function (f) {
                _Array__WEBPACK_IMPORTED_MODULE_3__["each"](this._values, f);
            };
            /**
             * Returns a specific range of list items, which can be iterated.
             *
             * @ignore Exclude from docs
             * @todo Code duplication with IndexedIterable
             * @param  {number}              start  Start index
             * @param  {number}              end    End index
             * @return {IndexedIterable<T>}         Range
             */
            List.prototype.range = function (start, end) {
                if (start <= end) {
                    var diff = end - start;
                    start = Math.max(start, 0);
                    end = Math.min(start + diff, this._values.length);
                    return new IndexedIterable(this._values, start, end);
                }
                else {
                    throw new Error("Start index must be lower than end index");
                }
            };
            /**
             * Returns an iterator that has list items sorted backwards.
             *
             * @ignore Exclude from docs
             * @return {IndexedIterable<T>} List
             */
            List.prototype.backwards = function () {
                return new IndexedIterable(this._values, this._values.length, 0);
            };
            return List;
        }());
        /**
         * A version of a [[List]] that has a "template".
         *
         * A template is an instance of an object, that can be used to create new
         * elements in the list without actually needing to create instances for those.
         *
         * When new element is created in the list, e.g. by calling its `create()`
         * method, an exact copy of the element is created (including properties and
         * other attributes), inserted into the list and returned.
         */
        var ListTemplate = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ListTemplate, _super);
            /**
             * Constructor
             *
             * @param {T} t Template object
             */
            function ListTemplate(t) {
                var _this = _super.call(this) || this;
                _this.template = t;
                return _this;
            }
            Object.defineProperty(ListTemplate.prototype, "template", {
                /**
                 * @return {T} Template object
                 */
                get: function () {
                    return this._template;
                },
                /**
                 * A "template" object to copy all properties from when creating new list
                 * items.
                 *
                 * @param {T}  v  Template object
                 */
                set: function (v) {
                    v.isTemplate = true;
                    this._template = v;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all elements from other list.
             *
             * @param {ListTemplate}  source  Source list
             */
            ListTemplate.prototype.copyFrom = function (source) {
                var _this = this;
                _Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](source.iterator(), function (value) {
                    _this.push(value.clone());
                });
            };
            ListTemplate.prototype.create = function (make) {
                var clone = (make != null
                    ? new make()
                    : this.template.clone());
                this.push(clone);
                return clone;
            };
            /**
             * Creates an exact clone of the list, including its items and template.
             *
             * @return {ListTemplate<T>} New list
             */
            ListTemplate.prototype.clone = function () {
                var out = new ListTemplate(this.template);
                var values = this.values;
                var length = values.length;
                for (var i = 0; i < length; ++i) {
                    out.push(values[i].clone());
                }
                return out;
            };
            return ListTemplate;
        }(List));
        //# sourceMappingURL=List.js.map
        /***/ 
    }),
    /* 770 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalAdapter", function () { return GlobalAdapter; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "globalAdapter", function () { return globalAdapter; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Adapter", function () { return Adapter; });
        /* harmony import */ var _SortedList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(771);
        /* harmony import */ var _Number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(772);
        /* harmony import */ var _Order__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(773);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(762);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(755);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * An Adapter can be used to apply chained synchronous transformations to any
         * value at runtime.
         *
         * Each type class using Adapters must have `adapters` property and adapter
         * interface defined.
         *
         * Adapters can be used to allow external code to apply transformations to any
         * value at any time.
         *
         * For example we have a Weather class which has a method `now()` which returns
         * current temperature.
         *
         * ```
         * function now() {
         *   // ... calculate temperature
         *   let temp = "Temperature now is " + degrees + "F";
         *   return temp;
         * }
         * ```
         *
         * Now, supposed we want to let other classes to modify the output of the
         * `now()`? We just apply an adapter to the `temp` before it is returned:
         *
         * ```
         * temp = this.adapters.apply("now", {
         *   temp: temp,
         *   degrees: degrees
         * }).temp;
         * ```
         *
         * Some other class might tap onto it by defining an Adapter that calculates
         * the temperature in Celsius:
         *
         * weather.adapters.add("now", (arg) => {
         *   arg.temp += "(" + farenheitToCelsius(arg.degrees) + "C)";
         *   return arh;
         * });
         *
         * Furthermore some time-related class could add time:
         *
         * weather.adapters.add("now", (arg) => {
         *   arg.temp += "; the time now is " + (new Date().toLocaleString());
         *   return arh;
         * });
         *
         * So without adapters we would get output like this:
         *
         * ```
         * Temperature now is 90F
         * ```
         *
         * With adapters applied we now have:
         *
         * ```
         * Temperature now is 90F (32C); the time now is 12/11/2012, 7:00:00 PM
         * ```
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * GLOBAL ADAPTER
         * ============================================================================
         * @hidden
         */
        /**
         * A global adapter is an adpater that is attached to a class type rather than
         * specific object instance.
         *
         * @ignore Exclude from docs
         */
        var GlobalAdapter = /** @class */ (function () {
            function GlobalAdapter() {
                /**
                 * Callback id iterator.
                 *
                 * @type {number}
                 */
                this._callbackId = 0;
                /**
                 * A list of if callbacks (adapters).
                 *
                 */
                this._callbacks = new _SortedList__WEBPACK_IMPORTED_MODULE_0__["SortedList"](function (left, right) {
                    return _Order__WEBPACK_IMPORTED_MODULE_2__["or"](_Number__WEBPACK_IMPORTED_MODULE_1__["order"](left.priority, right.priority), _Number__WEBPACK_IMPORTED_MODULE_1__["order"](left.id, right.id));
                });
            }
            /**
             * Adds a global callback which is not specific to any particular object.
             * Whenever an adapter in any object of the specific class type is invoked
             * global adapters will kick in.
             *
             * @param {any}         type      Class type
             * @param {any}         key       Adapter key
             * @param {any}         callback  Callback function
             * @param {number = 0}  priority  Priority (higher priority meaning adapter will be applied later)
             * @param {any}         scope     Callback function scaope
             */
            GlobalAdapter.prototype.addAll = function (type, key, callback, priority, scope) {
                if (priority === void 0) {
                    priority = 0;
                }
                this._callbacks.insert({
                    id: ++this._callbackId,
                    key: key,
                    callback: callback,
                    priority: priority,
                    scope: scope,
                    type: type
                });
            };
            /**
             * Returns if there are adapters for specific type available.
             *
             * @param  {Target}   type  Adapter type
             * @param  {Key}      key   Adapter key
             * @return {boolean}
             */
            GlobalAdapter.prototype.isEnabled = function (type, key) {
                // TODO check the type and key
                return this._callbacks.length > 0;
            };
            /**
             * Applies global adapters for the object of the specific type.
             *
             * @param {any}  type   Class type
             * @param {any}  key    Adapter key
             * @param {any}  value  Value
             */
            GlobalAdapter.prototype.applyAll = function (type, key, value) {
                // This is needed to improve the performance and reduce garbage collection
                var callbacks = this._callbacks.values;
                var length = callbacks.length;
                if (length == 0) {
                    return value;
                }
                // Cycle through all callbacks and find the ones we need to use
                for (var i = 0; i < length; ++i) {
                    var item = callbacks[i];
                    if (item.key === key && type instanceof item.type) {
                        value = item.callback.call(item.scope, value, type, key);
                    }
                }
                return value;
            };
            return GlobalAdapter;
        }());
        /**
         * A global Adapter for plugins that want to add specific
         * functionality for any chart, not just specific instance.
         *
         * If you want to add an adapter which applies to all instances of the same
         * object type, like, for instance all slices in PieSeries, you can use
         * global adapter.
         *
         * Global adapter is a system-wide instance, accessible via `globalAdapter`.
         *
         * ```TypeScript
         * am4core.globalAdapter.addAll<am4charts.IPieSeriesAdapters, am4charts.PieSeries, "fill">(am4charts.PieSeries, "fill", (value, target, key) => {
         *   return am4core.color("#005500");
         * });
         * ```
         * ```JavaScript
         * am4core.globalAdapter.addAll(am4charts.PieSeries, "fill", (value, target, key) => {
         *   return am4core.color("#005500");
         * });
         * ```
         *
         * @todo Description (improve)
         */
        var globalAdapter = new GlobalAdapter();
        /**
         * ============================================================================
         * REGULAR ADAPTER
         * ============================================================================
         * @hidden
         */
        /**
         * Adapter allows adding ordered callback functions and associating them with a
         * string-based key. An Adapter user can then easily invoke those callbacks to
         * apply custom functions on its input, output or intermediate values.
         *
         * Custom code and plugins can add their own callbacks to modify and enhance
         * core functionality.
         *
         * See the description of `add()` for an example.
         *
         * Almost any object in amCharts4 has own adapter, accessible with `adapter`
         * property.
         *
         * Any adapters added to it will be applied to that object only.
         *
         * ### Global Adapters
         *
         * If you want to add an adapter which applies to all instances of the same
         * object type, like, for instance all slices in PieSeries, you can use
         * global adapter.
         *
         * Global adapter is a system-wide instance, accessible via `globalAdapter`.
         *
         * ```TypeScript
         * am4core.globalAdapter.addAll<am4charts.IPieSeriesAdapters, am4charts.PieSeries, "fill">(am4charts.PieSeries. "fill", (value, target, key) => {
         *   return am4core.color("#005500");
         * });
         * ```
         * ```JavaScript
         * am4core.globalAdapter.addAll(am4charts.PieSeries. "fill", (value, target, key) => {
         *   return am4core.color("#005500");
         * });
         * ```
         *
         * {@link https://www.amcharts.com/docs/v4/reference/adapter_module/#globalAdapter_property More info}.
         *
         * @important
         */
        var Adapter = /** @class */ (function () {
            /**
             * Constructor, sets the object referece this Adapter should be used for.
             *
             * @param {T} c Object
             */
            function Adapter(c) {
                /**
                 * Internal counter for callback ids.
                 *
                 * @type {number}
                 */
                this._callbackId = 0;
                /**
                 * A list of adapter callbacks.
                 *
                 * @param {[type]} $number.order(left.priority, right.priority) [description]
                 * @param {[type]} $number.order(left.id,       right.id));	}  [description]
                 */
                this._callbacks = new _SortedList__WEBPACK_IMPORTED_MODULE_0__["SortedList"](function (left, right) {
                    return _Order__WEBPACK_IMPORTED_MODULE_2__["or"](_Number__WEBPACK_IMPORTED_MODULE_1__["order"](left.priority, right.priority), _Number__WEBPACK_IMPORTED_MODULE_1__["order"](left.id, right.id));
                });
                this.object = c;
                // TODO this exposes the internal events
                this.events = this._callbacks.events;
            }
            /**
             * Adds a callback for a specific key.
             *
             * ```TypeScript
             * // Override fill color value and make all slices green
             * chart.series.template.adapter.add("fill", (value, target, key) => {
             *   return am4core.color("#005500");
             * });
             * ```
             * ```JavaScript
             * // Override fill color value and make all slices green
             * chart.series.template.adapter.add("fill", function(value, target, key) {
             *   return am4core.color("#005500");
             * });
             * ```
             * ```JSON
             * {
             *   // ...
             *   "series": [{
             *     // ...
             *     "adapter": {
             *     	// Override fill color value and make all slices green
             *     	"fill": function(value, target, key) {
             *     	  return am4core.color("#005500");
             *     	}
             *     }
             *   }]
             * }
             * ```
             *
             * The above will call user-defined function (adapter) whenever `fill` value
             * is requested from the Pie series, allowing it to override the default
             * using custom code and any fuzzy logic.
             *
             * There can be any number of adapters set on one property key.
             *
             * In this case adapters will be applied in daisy-chain fashion. The first
             * adapter in queue will make its transformation. The next one will have
             * the output of the first adapter as a starting value, etc.
             *
             * The order of the adapters are determined either by the order they were
             * added in, or their `priority` value.
             *
             * The heigher the `priority`, the later in the game adapter will be applied.
             *
             * @param {string}         key       Key
             * @param {any[]) => any}  callback  A callback function
             * @param {number}         priority  The higher priority, the more chance the adapter will be applied last
             * @param {any}            scope     Scope for the callback function
             */
            Adapter.prototype.add = function (key, callback, priority, scope) {
                if (priority === void 0) {
                    priority = 0;
                }
                this._callbacks.insert({
                    id: ++this._callbackId,
                    key: key,
                    callback: callback,
                    priority: priority,
                    scope: scope
                });
            };
            /**
             * Checks whether specific adapter is already set.
             *
             * @param   {string}         key       Key
             * @param   {any[]) => any}  callback  A callback function
             * @param   {number}         priority  The higher priority, the more chance the adapter will be applied last
             * @param   {any}            scope     Scope for the callback function
             * @returns                            Adapter set?
             */
            Adapter.prototype.has = function (key, callback, priority, scope) {
                if (priority === void 0) {
                    priority = 0;
                }
                // @todo Implement actual check
                return false;
            };
            /**
             * Removes adapter callbacks for the specific `key`.
             *
             * If `priority` is specified, only callbacks for that priority are removed.
             *
             * @param {string} key      Key
             * @param {number} priority Priority
             * @todo Implement
             */
            Adapter.prototype.remove = function (key, priority) {
                var _this = this;
                // It has to make a copy because it removes the elements while iterating
                // TODO inefficient
                _utils_Array__WEBPACK_IMPORTED_MODULE_4__["each"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["toArray"](this._callbacks.iterator()), function (item) {
                    // TODO test this
                    if (item.key === key && (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](priority) || priority === item.priority)) {
                        _this._callbacks.remove(item);
                    }
                });
            };
            /**
             * Returns if there are any adapters set for the specific `key`.
             *
             * @returns {boolean} Are there any adapters for the key?
             */
            Adapter.prototype.isEnabled = function (key) {
                // TODO check the key
                return this._callbacks.length > 0 || globalAdapter.isEnabled(this.object, key);
            };
            /**
             * Passes the input value through all the callbacks for the defined `key`.
             *
             * @param  {string}  key      Key
             * @param  {any}     value    Input value
             * @param  {any[]}   ...rest  Rest of the parameters to be passed into callback
             * @return {any}              Output value
             */
            Adapter.prototype.apply = function (key, value) {
                // This is needed to improve the performance and reduce garbage collection
                var callbacks = this._callbacks.values;
                var length = callbacks.length;
                if (length > 0) {
                    for (var i = 0; i < length; ++i) {
                        var item = callbacks[i];
                        if (item.key === key) {
                            value = item.callback.call(item.scope, value, this.object, key);
                        }
                    }
                }
                // Apply global adapters
                value = globalAdapter.applyAll(this.object, key, value);
                return value;
            };
            /**
             * Returns all adapter keys that are currently in effect.
             *
             * @return {string[]} Adapter keys
             */
            Adapter.prototype.keys = function () {
                // TODO inefficient
                return _utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["toArray"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["map"](this._callbacks.iterator(), function (x) { return x.key; }));
            };
            /**
             * Copies all the adapter callbacks from `source`.
             *
             * @param {Adapter<Target, T>}  source  An Adapter to copy items from
             */
            Adapter.prototype.copyFrom = function (source) {
                var _this = this;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["each"](source._callbacks.iterator(), function (x) {
                    _this.add(x.key, x.callback, x.priority, x.scope);
                });
            };
            /**
             * Clears all callbacks from this Adapter.
             */
            Adapter.prototype.clear = function () {
                this._callbacks.clear();
            };
            return Adapter;
        }());
        //# sourceMappingURL=Adapter.js.map
        /***/ 
    }),
    /* 771 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderedList", function () { return OrderedList; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortedList", function () { return SortedList; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderedListTemplate", function () { return OrderedListTemplate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortedListTemplate", function () { return SortedListTemplate; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _EventDispatcher__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(752);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(755);
        /* harmony import */ var _Iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(762);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Ordered list contains values of any type in an indexed array.
         */
        var OrderedList = /** @class */ (function () {
            /**
             * Constructor
             *
             * @param {Array<T>}  initial  Inital list of values to add to list
             */
            function OrderedList(initial) {
                /**
                 * Holds list values.
                 *
                 * @type {Array<T>}
                 */
                this._values = [];
                /**
                 * Event dispatcher.
                 *
                 * @type {EventDispatcher<AMEvent<this, ISortedListEvents<T>>>}
                 */
                this.events = new _EventDispatcher__WEBPACK_IMPORTED_MODULE_1__["EventDispatcher"]();
                if (initial != null) {
                    this.setAll(initial);
                }
            }
            Object.defineProperty(OrderedList.prototype, "values", {
                /**
                 * All items of the list.
                 *
                 * Do not modify the list directly. Rather use `insert()` and `remove()`
                 * methods.
                 *
                 * @return {Array<T>} List values
                 */
                get: function () {
                    return this._values;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Inserts a value into list item array.
             *
             * @param {T}  value  Value
             */
            OrderedList.prototype._insert = function (value) {
                this._values.push(value);
            };
            Object.defineProperty(OrderedList.prototype, "length", {
                /**
                 * Number of items in the list.
                 *
                 * @readonly
                 * @return {number} Length
                 */
                get: function () {
                    return this._values.length;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns the index of the specific `value`.
             *
             * -1 if not found.
             *
             * @param  {T}       value  Value
             * @return {number}        Index
             */
            OrderedList.prototype.indexOf = function (value) {
                return _Array__WEBPACK_IMPORTED_MODULE_2__["indexOf"](this._values, value);
            };
            /**
             * Checks if list contains the `value`.
             *
             * @param  {T}        value  Value
             * @return {boolean}         In the list?
             */
            OrderedList.prototype.contains = function (value) {
                return this.indexOf(value) !== -1;
            };
            /**
             * Returns an item at specific `index`.
             *
             * @param  {number}  index  Index
             * @return {T}              Item
             */
            OrderedList.prototype.getIndex = function (index) {
                return this._values[index];
            };
            Object.defineProperty(OrderedList.prototype, "first", {
                /**
                 * First item in the list.
                 *
                 * @return {T} Item
                 */
                get: function () {
                    return this._values[0];
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(OrderedList.prototype, "last", {
                /**
                 * Last item in the list.
                 *
                 * @return {T} Item
                 */
                get: function () {
                    return this._values[this._values.length - 1];
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Inserts a value into list.
             *
             * @param {T}  value  Value
             */
            OrderedList.prototype.insert = function (value) {
                this._insert(value);
                if (this.events.isEnabled("inserted")) {
                    this.events.dispatchImmediately("inserted", {
                        type: "inserted",
                        target: this,
                        newValue: value
                    });
                }
            };
            /**
             * Removes an item with the `value` from the list.
             *
             * @param {T}  value  Value
             */
            OrderedList.prototype.remove = function (value) {
                var index = this.indexOf(value);
                if (index !== -1) {
                    var oldValue = this._values[index];
                    _Array__WEBPACK_IMPORTED_MODULE_2__["removeIndex"](this._values, index);
                    if (this.events.isEnabled("removed")) {
                        this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: this,
                            oldValue: oldValue
                        });
                    }
                }
            };
            /**
             * Sets multiple items to the list.
             *
             * All current items are removed.
             *
             * @param {Array<T>}  newArray  New items
             */
            OrderedList.prototype.setAll = function (newArray) {
                var _this = this;
                var oldArray = _Array__WEBPACK_IMPORTED_MODULE_2__["copy"](this._values);
                this._values.length = 0;
                _Array__WEBPACK_IMPORTED_MODULE_2__["each"](newArray, function (value) {
                    _this._insert(value);
                });
                if (this.events.isEnabled("removed")) {
                    _Array__WEBPACK_IMPORTED_MODULE_2__["each"](oldArray, function (x) {
                        _this.events.dispatchImmediately("removed", {
                            type: "removed",
                            target: _this,
                            oldValue: x
                        });
                    });
                }
                if (this.events.isEnabled("inserted")) {
                    _Array__WEBPACK_IMPORTED_MODULE_2__["each"](this._values, function (x) {
                        _this.events.dispatchImmediately("inserted", {
                            type: "inserted",
                            target: _this,
                            newValue: x
                        });
                    });
                }
            };
            /**
             * Removes all items from the list.
             */
            OrderedList.prototype.clear = function () {
                this.setAll([]);
            };
            /**
             * Returns part of the list between `start` and `end` indexes, as a new
             * [[OrderedList]].
             *
             * @param  {number}          start  Start index
             * @param  {number}          end    End index
             * @return {OrderedList<T>}         Items in range
             */
            OrderedList.prototype.slice = function (start, end) {
                var out = new OrderedList();
                out._values = this._values.slice(start, end);
                return out;
            };
            /**
             * Finds a closest available index to the `value` in specified direction.
             *
             * @ignore exclude from docs
             * @param  {number}                      value      value to search for
             * @param  {function}                    fn         A callback function that returns value of the item
             * @param  {"left" | "right" |  "any" }  direction  Direciton
             * @return {number}                                 Index
             */
            OrderedList.prototype.findClosestIndex = function (value, fn, direction) {
                if (direction === void 0) {
                    direction = "any";
                }
                // Init temporary values
                var closestIndex = -1;
                var closestValue;
                var closestDifference;
                var i = 0;
                _Iterator__WEBPACK_IMPORTED_MODULE_3__["eachContinue"](this.iterator(), function (element) {
                    var item = fn(element);
                    // Exact match?
                    if (item === value) {
                        // Found exact value - don't bother searching further
                        closestIndex = i;
                        return false;
                    }
                    // Calc difference
                    if (direction === "any") {
                        var difference = Math.abs(value - item);
                        if (!_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](closestDifference) || (closestDifference > difference)) {
                            closestIndex = i;
                            closestValue = item;
                            closestDifference = difference;
                        }
                    }
                    else if (direction === "left" && (item < value)) {
                        if (!_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](closestValue) || (closestValue < item)) {
                            closestIndex = i;
                            closestValue = item;
                        }
                    }
                    else if (direction === "right" && (item > value)) {
                        if (!_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](closestValue) || (closestValue > item)) {
                            closestIndex = i;
                            closestValue = item;
                        }
                    }
                    ++i;
                    return true;
                });
                // Found nothing?
                if (closestIndex === -1) {
                    if (direction === "left") {
                        // Use First one
                        closestIndex = 0;
                    }
                    else if (direction === "right") {
                        // Use last item
                        closestIndex = this.length - 1;
                    }
                }
                return closestIndex;
            };
            /**
             * Returns a list iterator.
             *
             * @return {Iterator} Iterator
             */
            OrderedList.prototype.iterator = function () {
                return _Iterator__WEBPACK_IMPORTED_MODULE_3__["fromArray"](this._values);
            };
            /**
             * Returns an ES6 iterator for the list.
             */
            OrderedList.prototype[Symbol.iterator] = function () {
                var length, i;
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            length = this._values.length;
                            i = 0;
                            _a.label = 1;
                        case 1:
                            if (!(i < length))
                                return [3 /*break*/, 4];
                            return [4 /*yield*/, this._values[i]];
                        case 2:
                            _a.sent();
                            _a.label = 3;
                        case 3:
                            ++i;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            };
            /**
             * Calls `f` for each element in the list.
             */
            OrderedList.prototype.each = function (f) {
                _Array__WEBPACK_IMPORTED_MODULE_2__["each"](this._values, f);
            };
            return OrderedList;
        }());
        /**
         * A list where all items are ordered according to specific ordering function,
         * which is passed in via constructor parameter, when creating an instance of
         * [[SortedList]].
         */
        var SortedList = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SortedList, _super);
            /**
             * Constructor.
             *
             * @param {T) => Ordering}  sort  Ordering function
             */
            function SortedList(sort) {
                var _this = _super.call(this) || this;
                _this._ordering = sort;
                return _this;
            }
            /**
             * Inserts item into the list.
             *
             * @param {T}  value  Item
             */
            SortedList.prototype._insert = function (value) {
                var index = _Array__WEBPACK_IMPORTED_MODULE_2__["getSortedIndex"](this._values, this._ordering, value).index;
                _Array__WEBPACK_IMPORTED_MODULE_2__["insertIndex"](this._values, index, value);
            };
            /**
             * Returns index of the item in list if found.
             *
             * -1 if item is not in the list.
             *
             * @param  {T}       value  Item to search for
             * @return {number}         Index
             */
            SortedList.prototype.indexOf = function (value) {
                var _a = _Array__WEBPACK_IMPORTED_MODULE_2__["getSortedIndex"](this._values, this._ordering, value), found = _a.found, index = _a.index;
                if (found) {
                    return index;
                }
                else {
                    return -1;
                }
            };
            /**
             * [udpate description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {T} value [description]
             */
            SortedList.prototype.update = function (value) {
                // @todo test this
                var index = _Array__WEBPACK_IMPORTED_MODULE_2__["indexOf"](this._values, value);
                // @todo throw an error if it doesn't exist ?
                if (index !== -1) {
                    var last = this._values.length - 1;
                    // Check if the current ordering is correct
                    if (!((index === 0 || this._ordering(this._values[index - 1], value) < 0) &&
                        (index === last || this._ordering(value, this._values[index + 1]) < 0))) {
                        _Array__WEBPACK_IMPORTED_MODULE_2__["removeIndex"](this._values, index);
                        this._insert(value);
                    }
                }
            };
            return SortedList;
        }(OrderedList));
        /**
         * A version of a [[OrderedList]] that has a "template".
         *
         * A template is an instance of an object, that can be used to create new
         * elements in the list without actually needing to create instances for those.
         *
         * When new element is created in the list, e.g. by calling its `create()`
         * method, an exact copy of the element is created (including properties and
         * other attributes), inserted into the list and returned.
         */
        var OrderedListTemplate = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OrderedListTemplate, _super);
            /**
             * Constructor
             *
             * @param {T} t Template object
             */
            function OrderedListTemplate(t) {
                var _this = _super.call(this) || this;
                _this.template = t;
                return _this;
            }
            Object.defineProperty(OrderedListTemplate.prototype, "template", {
                /**
                 * @return {T} Template object
                 */
                get: function () {
                    return this._template;
                },
                /**
                 * A "template" object to copy all properties from when creating new list
                 * items.
                 *
                 * @param {T}  v  Template object
                 */
                set: function (v) {
                    v.isTemplate = true;
                    this._template = v;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all elements from other list.
             *
             * @param {OrderedListTemplate}  source  Source list
             */
            OrderedListTemplate.prototype.copyFrom = function (source) {
                var _this = this;
                _Iterator__WEBPACK_IMPORTED_MODULE_3__["each"](source.iterator(), function (value) {
                    _this.insert(value.clone());
                });
            };
            /**
             * Returns part of the list, starting at `start` and ending at `end` indexes,
             * as a new [[OrderedListTemplate]].
             *
             * @param  {number}                  start  Start index
             * @param  {number}                  end    End index
             * @return {OrderedListTemplate<T>}         New list
             */
            OrderedListTemplate.prototype.slice = function (start, end) {
                var out = new OrderedListTemplate(this.template);
                out._values = this._values.slice(start, end);
                return out;
            };
            OrderedListTemplate.prototype.create = function (make) {
                var clone = (make != null
                    ? new make()
                    : this.template.clone());
                this.insert(clone);
                return clone;
            };
            return OrderedListTemplate;
        }(OrderedList));
        /**
         * A version of a [[SortedList]] that has a "template".
         *
         * A template is an instance of an object, that can be used to create new
         * elements in the list without actually needing to create instances for those.
         *
         * When new element is created in the list, e.g. by calling its `create()`
         * method, an exact copy of the element is created (including properties and
         * other attributes), inserted into the list and returned.
         */
        var SortedListTemplate = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SortedListTemplate, _super);
            /**
             * Constructor
             *
             * @param {T}         t     Template object
             * @param {function}  sort  Ordering function
             */
            function SortedListTemplate(t, sort) {
                var _this = _super.call(this, sort) || this;
                _this.template = t;
                return _this;
            }
            Object.defineProperty(SortedListTemplate.prototype, "template", {
                /**
                 * @return {T} Template object
                 */
                get: function () {
                    return this._template;
                },
                /**
                 * A "template" object to copy all properties from when creating new list
                 * items.
                 *
                 * @param {T}  v  Template object
                 */
                set: function (v) {
                    v.isTemplate = true;
                    this._template = v;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all elements from other list.
             *
             * @param {SortedListTemplate}  source  Source list
             */
            SortedListTemplate.prototype.copyFrom = function (source) {
                var _this = this;
                _Iterator__WEBPACK_IMPORTED_MODULE_3__["each"](source.iterator(), function (value) {
                    _this.insert(value.clone());
                });
            };
            SortedListTemplate.prototype.create = function (make) {
                var clone = (make != null
                    ? new make()
                    : this.template.clone());
                this.insert(clone);
                return clone;
            };
            return SortedListTemplate;
        }(SortedList));
        //# sourceMappingURL=SortedList.js.map
        /***/ 
    }),
    /* 772 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "order", function () { return order; });
        /**
         * ============================================================================
         * COMPARING FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Comparing function used for ordering.
         *
         * @ignore Exclude from docs
         * @param  {number}    a  Number 1
         * @param  {number}    b  Number 2
         * @return {Ordering}     Result
         */
        function order(a, b) {
            if (a === b) {
                return 0;
            }
            else if (a < b) {
                return -1;
            }
            else {
                return 1;
            }
        }
        //# sourceMappingURL=Number.js.map
        /***/ 
    }),
    /* 773 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reverse", function () { return reverse; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "or", function () { return or; });
        /**
         * A collection of functions for ordering.
         */
        /**
         * [reverse description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {Ordering}  a  [description]
         * @return {Ordering}     [description]
         */
        function reverse(a) {
            switch (a) {
                case 0:
                    return 0;
                case -1:
                    return 1;
                case 1:
                    return -1;
            }
        }
        /**
         * [or description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {Ordering}  a  Item 1
         * @param  {Ordering}  b  Item 2
         * @return {Ordering}     [description]
         */
        function or(a, b) {
            if (a === 0) {
                return b;
            }
            else {
                return a;
            }
        }
        //# sourceMappingURL=Order.js.map
        /***/ 
    }),
    /* 774 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function () { return Color; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "color", function () { return color; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isColor", function () { return isColor; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "castColor", function () { return castColor; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toColor", function () { return toColor; });
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(751);
        /* harmony import */ var _Colors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(775);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /**
         * This module contains Color object definition
         */
        /**
         * Represents a color.
         *
         * `Color` accepts value only in [[iRGB]] object format. To create `Color`
         * object by parsing it from any supported string-based formats, use helper
         * [[color]] function:
         *
         * ```TypeScript
         * am4core.color("#ff0000");
         * am4core.color("#f00");
         * am4core.color("rgb(255, 0, 0)");
         * am4core.color("rgba(255, 0, 0, 0.5)");
         * am4core.color({ r: 255, g: 0, b: 0 });
         * am4core.color("red");
         * ```
         * ```JavaScript
         * am4core.color("#ff0000");
         * am4core.color("#f00");
         * am4core.color("rgb(255, 0, 0)");
         * am4core.color("rgba(255, 0, 0, 0.5)");
         * am4core.color({ r: 255, g: 0, b: 0 });
         * am4core.color("red");
         * ```
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/colors/} for color-related info
         */
        var Color = /** @class */ (function () {
            /**
             * Constructor
             *
             * @param {iRGB} color Source color
             */
            function Color(color) {
                this._value = color;
            }
            Object.defineProperty(Color.prototype, "rgb", {
                /**
                 * Returns [[iRGB]] representation of the color.
                 *
                 * @return {iRGB} RGB object
                 */
                get: function () {
                    return this._value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Color.prototype, "hex", {
                /**
                 * Returns color hex value string, e.g. "#FF0000".
                 *
                 * @return {string} Hex color code
                 */
                get: function () {
                    return this._value ? _Colors__WEBPACK_IMPORTED_MODULE_1__["rgbToHex"](this._value) : "none";
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Color.prototype, "rgba", {
                /**
                 * Returns an `rgba()` representation of the color, e.g.:
                 * `rgba(255, 0, 0, 0.5)`.
                 *
                 * @return {string} rgba color string
                 */
                get: function () {
                    return this._value ? _Colors__WEBPACK_IMPORTED_MODULE_1__["rgbToRGBA"](this._value) : "none";
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Color.prototype, "alpha", {
                /**
                 * Returns current transparency.
                 *
                 * @return {number} Alpha (0-1)
                 */
                get: function () {
                    if (this._value != null && this._value.a != null) {
                        return this._value.a;
                    }
                    else {
                        return 1;
                    }
                },
                /**
                 * Set alpha (transparency) of the color.
                 *
                 * @param {number} value Alpha (0-1)
                 */
                set: function (value) {
                    if (this._value) {
                        this._value.a = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Color.prototype, "lightColor", {
                /**
                 * Returns current light color setting.
                 *
                 * @return {Color} Color
                 */
                get: function () {
                    if (!this._lightColor) {
                        this._lightColor = new Color({ r: 255, g: 255, b: 255 });
                    }
                    return this._lightColor;
                },
                /**
                 * Sets "light" color. Used when determining contrasting color.
                 *
                 * @param {Color} color Color
                 */
                set: function (color) {
                    this._lightColor = color;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Color.prototype, "darkColor", {
                /**
                 * Returns current dark color setting.
                 *
                 * @return {Color} Color
                 */
                get: function () {
                    if (!this._darkColor) {
                        this._darkColor = new Color({ r: 0, g: 0, b: 0 });
                    }
                    return this._darkColor;
                },
                /**
                 * Sets "dark" color. Used when determining contrasting color.
                 *
                 * @param {Color} color Color
                 */
                set: function (color) {
                    this._darkColor = color;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Overrides `toString` method so that [[Color]] object can be used as
             * string.
             *
             * @ignore Exclude from docs
             * @return {string} String represantion of color (usable in CSS)
             */
            Color.prototype.toString = function () {
                return this.alpha < 1 ? this.rgba : this.hex;
            };
            /**
             * Returns a new [[Color]] which is percent lighter (positive value),
             * or darker (negative value).
             *
             * Parameter is in the scale of -1 to 1.
             *
             * @param  {number}  percent  Increase/decrease lightness by X
             * @return {Color}            New Color
             */
            Color.prototype.lighten = function (percent) {
                return new Color(_Colors__WEBPACK_IMPORTED_MODULE_1__["lighten"](this.rgb, percent));
            };
            /**
             * Returns a new [[Color]] which is percent brighter (positive value),
             * or darker (negative value).
             *
             * Parameter is in the scale of -1 to 1.
             *
             * @param  {number}  percent  Increase/decrease brightness by X
             * @return {Color}            New Color
             */
            Color.prototype.brighten = function (percent) {
                return new Color(_Colors__WEBPACK_IMPORTED_MODULE_1__["brighten"](this.rgb, percent));
            };
            /**
             * Returns a new [[Color]] based on current color with specific saturation
             * applied.
             *
             * `saturation` can be in the range of 0 (fully desaturated) to 1 (fully
             * saturated).
             *
             * @param  {number}  saturation  Saturation (0-1)
             * @return {Color}               New (saturated) color
             */
            Color.prototype.saturate = function (saturation) {
                return new Color(_Colors__WEBPACK_IMPORTED_MODULE_1__["saturate"](this.rgb, saturation));
            };
            Object.defineProperty(Color.prototype, "alternative", {
                /**
                 * Returns a either light or dark color that contrasts specifically with
                 * this color.
                 *
                 * Uses properties `darkColor` (default black) and `lightColor` (default
                 * white).
                 *
                 * Useful when determining which color label should be on a colored
                 * background, so that it stands out.
                 *
                 * @return {Color} Contrasting color
                 */
                get: function () {
                    if (this.rgb != null) {
                        return _Colors__WEBPACK_IMPORTED_MODULE_1__["isLight"](this.rgb) ? this.darkColor : this.lightColor;
                    }
                    else {
                        throw new Error("Color does not exist");
                    }
                },
                enumerable: true,
                configurable: true
            });
            return Color;
        }());
        /**
         * Resolves an input variable to a normal [[iRGB]] color and creates [[Color]]
         * object for it.
         *
         * @param  {string | iRGB | Color}  value  Input value
         * @param  {number}                 alpha  Alpha (0-1)
         * @return {Color}                         Color object
         */
        function color(value, alpha) {
            if (!_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value)) {
                return new Color(undefined);
            }
            if (typeof value == "string") {
                var cacheId = "_color_" + value + "_" + (alpha || "1");
                var cached = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].getCache(cacheId);
                if (cached) {
                    return new Color({
                        r: cached.r,
                        g: cached.g,
                        b: cached.b,
                        a: cached.a
                    });
                }
                var rgb = _Colors__WEBPACK_IMPORTED_MODULE_1__["rgb"](value, alpha);
                _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].setCache(cacheId, rgb);
                return new Color(rgb);
            }
            // Check if it's already a Color object
            if (value instanceof Color) {
                if (_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](alpha)) {
                    value.alpha = alpha;
                }
                return value;
            }
            // Not a string or Color instance, it's the iRGB object then
            return new Color(value);
        }
        /**
         * Checks if supplied argument is instance of [[Color]].
         *
         * @param  {any}      value  Input value
         * @return {boolean}         Is Color?
         */
        function isColor(value) {
            return value instanceof Color;
        }
        /**
         * Converts any value to [[Color]].
         *
         * @param  {any}    value  Input value
         * @return {Color}         Color
         */
        function castColor(value) {
            return color(value);
        }
        /**
         * Converts any value into a [[Color]].
         *
         * @param  {any}    value  Source value
         * @return {Color}         Color object
         */
        function toColor(value) {
            if (_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value) && !isColor(value)) {
                return castColor(value);
            }
            return value;
        }
        //# sourceMappingURL=Color.js.map
        /***/ 
    }),
    /* 775 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function () { return rgb; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexToRgb", function () { return hexToRgb; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbaToRgb", function () { return rgbaToRgb; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHex", function () { return rgbToHex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToRGBA", function () { return rgbToRGBA; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pad2", function () { return pad2; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolate", function () { return interpolate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function () { return lighten; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLightnessStep", function () { return getLightnessStep; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brighten", function () { return brighten; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBrightnessStep", function () { return getBrightnessStep; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturate", function () { return saturate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslToRgb", function () { return hslToRgb; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHsl", function () { return rgbToHsl; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHsv", function () { return rgbToHsv; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsvToRgb", function () { return hsvToRgb; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLight", function () { return isLight; });
        /* harmony import */ var _Math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(756);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /**
         * A collection of color-related functions
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Define named colors for easy resolution to RGB.
         *
         * @type {Object}
         */
        var namedColors = {
            aliceblue: { r: 240, g: 248, b: 255 },
            antiquewhite: { r: 250, g: 235, b: 215 },
            aqua: { r: 0, g: 255, b: 255 },
            aquamarine: { r: 127, g: 255, b: 212 },
            azure: { r: 240, g: 255, b: 255 },
            beige: { r: 245, g: 245, b: 220 },
            bisque: { r: 255, g: 228, b: 196 },
            black: { r: 0, g: 0, b: 0 },
            blanchedalmond: { r: 255, g: 235, b: 205 },
            blue: { r: 0, g: 0, b: 255 },
            blueviolet: { r: 138, g: 43, b: 226 },
            brown: { r: 165, g: 42, b: 42 },
            burlywood: { r: 222, g: 184, b: 135 },
            cadetblue: { r: 95, g: 158, b: 160 },
            chartreuse: { r: 127, g: 255, b: 0 },
            chocolate: { r: 210, g: 105, b: 30 },
            coral: { r: 255, g: 127, b: 80 },
            cornflowerblue: { r: 100, g: 149, b: 237 },
            cornsilk: { r: 255, g: 248, b: 220 },
            crimson: { r: 220, g: 20, b: 60 },
            cyan: { r: 0, g: 255, b: 255 },
            darkblue: { r: 0, g: 0, b: 139 },
            darkcyan: { r: 0, g: 139, b: 139 },
            darkgoldenrod: { r: 184, g: 134, b: 11 },
            darkgray: { r: 169, g: 169, b: 169 },
            darkgrey: { r: 169, g: 169, b: 169 },
            darkgreen: { r: 0, g: 100, b: 0 },
            darkkhaki: { r: 189, g: 183, b: 107 },
            darkmagenta: { r: 139, g: 0, b: 139 },
            darkolivegreen: { r: 85, g: 107, b: 47 },
            darkorange: { r: 255, g: 140, b: 0 },
            darkorchid: { r: 153, g: 50, b: 204 },
            darkred: { r: 139, g: 0, b: 0 },
            darksalmon: { r: 233, g: 150, b: 122 },
            darkseagreen: { r: 143, g: 188, b: 143 },
            darkslateblue: { r: 72, g: 61, b: 139 },
            darkslategray: { r: 47, g: 79, b: 79 },
            darkslategrey: { r: 47, g: 79, b: 79 },
            darkturquoise: { r: 0, g: 206, b: 209 },
            darkviolet: { r: 148, g: 0, b: 211 },
            deeppink: { r: 255, g: 20, b: 147 },
            deepskyblue: { r: 0, g: 191, b: 255 },
            dimgray: { r: 105, g: 105, b: 105 },
            dimgrey: { r: 105, g: 105, b: 105 },
            dodgerblue: { r: 30, g: 144, b: 255 },
            firebrick: { r: 178, g: 34, b: 34 },
            floralwhite: { r: 255, g: 250, b: 240 },
            forestgreen: { r: 34, g: 139, b: 34 },
            fuchsia: { r: 255, g: 0, b: 255 },
            gainsboro: { r: 220, g: 220, b: 220 },
            ghostwhite: { r: 248, g: 248, b: 255 },
            gold: { r: 255, g: 215, b: 0 },
            goldenrod: { r: 218, g: 165, b: 32 },
            gray: { r: 128, g: 128, b: 128 },
            grey: { r: 128, g: 128, b: 128 },
            green: { r: 0, g: 128, b: 0 },
            greenyellow: { r: 173, g: 255, b: 47 },
            honeydew: { r: 240, g: 255, b: 240 },
            hotpink: { r: 255, g: 105, b: 180 },
            indianred: { r: 205, g: 92, b: 92 },
            indigo: { r: 75, g: 0, b: 130 },
            ivory: { r: 255, g: 255, b: 240 },
            khaki: { r: 240, g: 230, b: 140 },
            lavender: { r: 230, g: 230, b: 250 },
            lavenderblush: { r: 255, g: 240, b: 245 },
            lawngreen: { r: 124, g: 252, b: 0 },
            lemonchiffon: { r: 255, g: 250, b: 205 },
            lightblue: { r: 173, g: 216, b: 230 },
            lightcoral: { r: 240, g: 128, b: 128 },
            lightcyan: { r: 224, g: 255, b: 255 },
            lightgoldenrodyellow: { r: 250, g: 250, b: 210 },
            lightgray: { r: 211, g: 211, b: 211 },
            lightgrey: { r: 211, g: 211, b: 211 },
            lightgreen: { r: 144, g: 238, b: 144 },
            lightpink: { r: 255, g: 182, b: 193 },
            lightsalmon: { r: 255, g: 160, b: 122 },
            lightseagreen: { r: 32, g: 178, b: 170 },
            lightskyblue: { r: 135, g: 206, b: 250 },
            lightslategray: { r: 119, g: 136, b: 153 },
            lightslategrey: { r: 119, g: 136, b: 153 },
            lightsteelblue: { r: 176, g: 196, b: 222 },
            lightyellow: { r: 255, g: 255, b: 224 },
            lime: { r: 0, g: 255, b: 0 },
            limegreen: { r: 50, g: 205, b: 50 },
            linen: { r: 250, g: 240, b: 230 },
            magenta: { r: 255, g: 0, b: 255 },
            maroon: { r: 128, g: 0, b: 0 },
            mediumaquamarine: { r: 102, g: 205, b: 170 },
            mediumblue: { r: 0, g: 0, b: 205 },
            mediumorchid: { r: 186, g: 85, b: 211 },
            mediumpurple: { r: 147, g: 112, b: 219 },
            mediumseagreen: { r: 60, g: 179, b: 113 },
            mediumslateblue: { r: 123, g: 104, b: 238 },
            mediumspringgreen: { r: 0, g: 250, b: 154 },
            mediumturquoise: { r: 72, g: 209, b: 204 },
            mediumvioletred: { r: 199, g: 21, b: 133 },
            midnightblue: { r: 25, g: 25, b: 112 },
            mintcream: { r: 245, g: 255, b: 250 },
            mistyrose: { r: 255, g: 228, b: 225 },
            moccasin: { r: 255, g: 228, b: 181 },
            navajowhite: { r: 255, g: 222, b: 173 },
            navy: { r: 0, g: 0, b: 128 },
            oldlace: { r: 253, g: 245, b: 230 },
            olive: { r: 128, g: 128, b: 0 },
            olivedrab: { r: 107, g: 142, b: 35 },
            orange: { r: 255, g: 165, b: 0 },
            orangered: { r: 255, g: 69, b: 0 },
            orchid: { r: 218, g: 112, b: 214 },
            palegoldenrod: { r: 238, g: 232, b: 170 },
            palegreen: { r: 152, g: 251, b: 152 },
            paleturquoise: { r: 175, g: 238, b: 238 },
            palevioletred: { r: 219, g: 112, b: 147 },
            papayawhip: { r: 255, g: 239, b: 213 },
            peachpuff: { r: 255, g: 218, b: 185 },
            peru: { r: 205, g: 133, b: 63 },
            pink: { r: 255, g: 192, b: 203 },
            plum: { r: 221, g: 160, b: 221 },
            powderblue: { r: 176, g: 224, b: 230 },
            purple: { r: 128, g: 0, b: 128 },
            rebeccapurple: { r: 102, g: 51, b: 153 },
            red: { r: 255, g: 0, b: 0 },
            rosybrown: { r: 188, g: 143, b: 143 },
            royalblue: { r: 65, g: 105, b: 225 },
            saddlebrown: { r: 139, g: 69, b: 19 },
            salmon: { r: 250, g: 128, b: 114 },
            sandybrown: { r: 244, g: 164, b: 96 },
            seagreen: { r: 46, g: 139, b: 87 },
            seashell: { r: 255, g: 245, b: 238 },
            sienna: { r: 160, g: 82, b: 45 },
            silver: { r: 192, g: 192, b: 192 },
            skyblue: { r: 135, g: 206, b: 235 },
            slateblue: { r: 106, g: 90, b: 205 },
            slategray: { r: 112, g: 128, b: 144 },
            slategrey: { r: 112, g: 128, b: 144 },
            snow: { r: 255, g: 250, b: 250 },
            springgreen: { r: 0, g: 255, b: 127 },
            steelblue: { r: 70, g: 130, b: 180 },
            tan: { r: 210, g: 180, b: 140 },
            teal: { r: 0, g: 128, b: 128 },
            thistle: { r: 216, g: 191, b: 216 },
            tomato: { r: 255, g: 99, b: 71 },
            turquoise: { r: 64, g: 224, b: 208 },
            violet: { r: 238, g: 130, b: 238 },
            wheat: { r: 245, g: 222, b: 179 },
            white: { r: 255, g: 255, b: 255 },
            whitesmoke: { r: 245, g: 245, b: 245 },
            yellow: { r: 255, g: 255, b: 0 },
            yellowgreen: { r: 154, g: 205, b: 50 }
        };
        /**
         * Tries to resolve a named color into a hex color representation.
         *
         * @ignore Exclude from docs
         * @param  {string}  value  Color name
         * @return {string}         Color
         * @deprecated
         * @hidden
         */
        /*export function resolveNamedColor(value: string): Color {
            return (<any>namedColors)[value] ? (<any>namedColors)[value] : undefined;
        }*/
        /**
         * Converts a proper color hex code (i.e. "#FF5500") or named color (i.e. "red")
         * into an {iRGB} object. If the code is not correctly formatted, an RGB of
         * black is returned.
         *
         * @ignore Exclude from docs
         * @param  {string}  color  Color code
         * @param  {number}  alpha  Alpha (0-1)
         * @return {iRGB}           RGB
         */
        function rgb(color, alpha) {
            // Init return value
            var rgb;
            // Try resolving color format
            // Named color?
            if (namedColors[color]) {
                rgb = namedColors[color];
            }
            // Hex code?
            else if (color.charAt(0) === "#") {
                rgb = hexToRgb(color);
            }
            // rgb() format?
            else if (color.match(/^rgba?\(/)) {
                rgb = rgbaToRgb(color);
            }
            // Was not able to resolve?
            if (!rgb) {
                rgb = { r: 0, g: 0, b: 0, a: 1 };
            }
            // Set alpha
            if (_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](alpha)) {
                rgb.a = alpha;
            }
            return rgb;
        }
        /**
         * Converts a hex color code (i.e. "#FF5500") to an [[iRGB]] object.
         *
         * @ignore Exclude from docs
         * @param  {string}  hex  Hex color code
         * @return {iRGB}         RGB
         */
        function hexToRgb(hex) {
            // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
            var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
            hex = hex.replace(shorthandRegex, function (m, r, g, b) {
                return r + r + g + g + b + b;
            });
            var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
            return result ? {
                r: parseInt(result[1], 16),
                g: parseInt(result[2], 16),
                b: parseInt(result[3], 16)
            } : undefined;
        }
        /**
         * Converts color strings in format like `rgb()` and `rgba()` to [[iRGB]].
         *
         * @ignore Exclude from docs
         * @param  {string}  color  Color code
         * @return {iRGB}           RGB
         */
        function rgbaToRgb(color) {
            // Init
            var matches;
            color = color.replace(/[ ]/g, "");
            // Try rgb() format
            if (matches = color.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i)) {
                matches.push("1");
            }
            else if (matches = color.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)) {
                // nothing
            }
            else {
                return undefined;
            }
            return {
                r: parseInt(matches[1]),
                g: parseInt(matches[2]),
                b: parseInt(matches[3]),
                a: parseFloat(matches[4])
            };
        }
        /**
         * Converts an [[iRGB]] object into a hex color code.
         *
         * @ignore Exclude from docs
         * @param  {iRGB}    rgb  RGB
         * @return {string}       Hex color code
         */
        function rgbToHex(rgb) {
            return "#" + pad2(rgb.r.toString(16)) + pad2(rgb.g.toString(16)) + pad2(rgb.b.toString(16));
        }
        /**
         * Converts an [[iRGB]] object into its `rgb()` or `rgba()` representation.
         *
         * @ignore Exclude from docs
         * @param  {iRGB}    rgb  RGB
         * @return {string}       `rgba()` syntax
         */
        function rgbToRGBA(rgb) {
            if (_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](rgb.a) && rgb.a !== 1) {
                return "rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + "," + rgb.a + ")";
            }
            else {
                return "rgb(" + rgb.r + "," + rgb.g + "," + rgb.b + ")";
            }
        }
        /**
         * Pads a 1-digit string with a zero.
         *
         * @ignore Exclude from docs
         * @param  {string}  c  Input string
         * @return {string}     Padded string
         */
        function pad2(c) {
            return c.length == 1 ? "0" + c : "" + c;
        }
        /**
         * Returns an intermediate color between two colors based on the relative
         * position. Position needs to be in range between 0 and 1. Zero meaning the
         * resulting color will be closest to the first reference color.
         *
         * @ignore Exclude from docs
         * @param  {Optional<iRGB>}    color1   First reference color
         * @param  {Optional<iRGB>}    color2   Second reference color
         * @param  {number}            percent  Relative position (0-1)
         * @return {Optional<iRGB>}             Interpolated color
         */
        function interpolate(rgb1, rgb2, percent) {
            percent = _Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](percent, 0, 1);
            if (rgb1) {
                if (rgb2) {
                    return {
                        r: rgb1.r + Math.round((rgb2.r - rgb1.r) * percent),
                        g: rgb1.g + Math.round((rgb2.g - rgb1.g) * percent),
                        b: rgb1.b + Math.round((rgb2.b - rgb1.b) * percent),
                        a: (rgb1.a || 1) + Math.round(((rgb2.a || 1) - (rgb1.a || 1)) * percent)
                    };
                }
                else {
                    return rgb1;
                }
            }
            else if (rgb2) {
                return rgb2;
            }
            else {
                return rgb1;
            }
        }
        /**
         * Returns a color that is `percent` brighter than the reference color.
         *
         * @ignore Exclude from docs
         * @param  {iRGB}    color    Reference color
         * @param  {number}  percent  Brightness percent
         * @return {iRGB}             Hex code of the new color
         */
        function lighten(rgb, percent) {
            if (rgb) {
                return {
                    r: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent))),
                    g: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent))),
                    b: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent))),
                    a: rgb.a
                };
            }
            else {
                // TODO is this correct ?
                return rgb;
            }
        }
        ;
        /**
         * Gets lightness step.
         *
         * @ignore Exclude from docs
         * @param  {number}  value    Value
         * @param  {number}  percent  Percent
         * @return {number}           Step
         */
        function getLightnessStep(value, percent) {
            var base = percent > 0 ? 255 - value : value;
            return Math.round(base * percent);
        }
        /**
         * Returns a color that is `percent` brighter than the source `color`.
         *
         * @ignore Exclude from docs
         * @param  {iRGB}    color    Source color
         * @param  {number}  percent  Brightness percent
         * @return {iRGB}             New color
         */
        function brighten(rgb, percent) {
            if (rgb) {
                var base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230);
                //let base = Math.max(rgb.r, rgb.g, rgb.b);
                var step = getLightnessStep(base, percent);
                return {
                    r: Math.max(0, Math.min(255, Math.round(rgb.r + step))),
                    g: Math.max(0, Math.min(255, Math.round(rgb.g + step))),
                    b: Math.max(0, Math.min(255, Math.round(rgb.b + step))),
                    a: rgb.a
                };
            }
            else {
                // TODO is this correct ?
                return rgb;
            }
        }
        ;
        /**
         * Returns brightness step.
         *
         * @ignore Exclude from docs
         * @param  {number}  value    Value
         * @param  {number}  percent  Percent
         * @return {number}           Step
         */
        function getBrightnessStep(value, percent) {
            var base = 255; //percent > 0 ? 255 - value : value;
            return Math.round(base * percent);
        }
        /**
         * Returns a new [[iRGB]] object based on `rgb` parameter with specific
         * saturation applied.
         *
         * `saturation` can be in the range of 0 (fully desaturated) to 1 (fully
         * saturated).
         *
         * @ignore Exclude from docs
         * @param  {iRGB}    color       Base color
         * @param  {number}  saturation  Saturation (0-1)
         * @return {iRGB}                New color
         */
        function saturate(rgb, saturation) {
            if (rgb == null || saturation == 1) {
                return rgb;
            }
            var hsl = rgbToHsl(rgb);
            hsl.s = saturation;
            return hslToRgb(hsl);
        }
        /*
        // not used
        export function rgbToMatrix(rgb: iRGB): string {
            let r = $type.toText($math.round((rgb.r || 0) / 255, 10));
            let g = $type.toText($math.round((rgb.g || 0) / 255, 10));
            let b = $type.toText($math.round((rgb.b || 0) / 255, 10));
            let a = $type.toText(rgb.a || 1);
            return	      r + " 0 0 0 0" +
                            " 0 " + g + " 0 0 0" +
                            " 0 0 " + b + " 0 0" +
                            " 0 0 0 " + a + " 0";
        }
        */
        /**
         * The functions below are taken and adapted from Garry Tan's blog post:
         * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c
         *
         * The further attributions go mjijackson.com, which now seems to be defunct.
         */
        /**
         * Converts an HSL color value to RGB. Conversion formula
         * adapted from http://en.wikipedia.org/wiki/HSL_color_space.
         * Assumes h, s, and l are contained in the set [0, 1] and
         * returns r, g, and b in the set [0, 255].
         *
         * Function adapted from:
         * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c
         *
         * @ignore Exclude from docs
         * @param   {number}  h       The hue
         * @param   {number}  s       The saturation
         * @param   {number}  l       The lightness
         * @return  {Array}           The RGB representation
         */
        function hslToRgb(color) {
            var r, g, b;
            var h = color.h;
            var s = color.s;
            var l = color.l;
            if (s == 0) {
                r = g = b = l; // achromatic
            }
            else {
                var hue2rgb = 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 q = l < 0.5 ? l * (1 + s) : l + s - l * s;
                var p = 2 * l - q;
                r = hue2rgb(p, q, h + 1 / 3);
                g = hue2rgb(p, q, h);
                b = hue2rgb(p, q, h - 1 / 3);
            }
            return {
                r: Math.round(r * 255),
                g: Math.round(g * 255),
                b: Math.round(b * 255)
            };
        }
        /**
         * Converts an RGB color value to HSL. Conversion formula
         * adapted from http://en.wikipedia.org/wiki/HSL_color_space.
         * Assumes r, g, and b are contained in the set [0, 255] and
         * returns h, s, and l in the set [0, 1].
         *
         * Function adapted from:
         * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c
         *
         * @ignore Exclude from docs
         * @param   {number}  r       The red color value
         * @param   {number}  g       The green color value
         * @param   {number}  b       The blue color value
         * @return  {Array}           The HSL representation
         */
        function rgbToHsl(color) {
            var r = color.r / 255;
            var g = color.g / 255;
            var b = color.b / 255;
            var max = Math.max(r, g, b);
            var min = Math.min(r, g, b);
            var h = 0;
            var s = 0;
            var l = (max + min) / 2;
            if (max === min) {
                h = s = 0; // achromatic
            }
            else {
                var d = max - min;
                s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
                switch (max) {
                    case r:
                        h = (g - b) / d + (g < b ? 6 : 0);
                        break;
                    case g:
                        h = (b - r) / d + 2;
                        break;
                    case b:
                        h = (r - g) / d + 4;
                        break;
                }
                h /= 6;
            }
            return {
                h: h,
                s: s,
                l: l
            };
        }
        /**
         * Converts an RGB color value to HSV. Conversion formula
         * adapted from http://en.wikipedia.org/wiki/HSV_color_space.
         * Assumes r, g, and b are contained in the set [0, 255] and
         * returns h, s, and v in the set [0, 1].
         *
         * @ignore Exclude from docs
         * @param   Number  r       The red color value
         * @param   Number  g       The green color value
         * @param   Number  b       The blue color value
         * @return  Array           The HSV representation
         */
        function rgbToHsv(color) {
            var r = color.r / 255;
            var g = color.g / 255;
            var b = color.b / 255;
            var max = Math.max(r, g, b), min = Math.min(r, g, b);
            var h = 0;
            var s = 0;
            var v = max;
            var d = max - min;
            s = max == 0 ? 0 : d / max;
            if (max == min) {
                h = 0; // achromatic
            }
            else {
                switch (max) {
                    case r:
                        h = (g - b) / d + (g < b ? 6 : 0);
                        break;
                    case g:
                        h = (b - r) / d + 2;
                        break;
                    case b:
                        h = (r - g) / d + 4;
                        break;
                }
                h /= 6;
            }
            return {
                h: h,
                s: s,
                v: v
            };
        }
        /**
         * Converts an HSV color value to RGB. Conversion formula
         * adapted from http://en.wikipedia.org/wiki/HSV_color_space.
         * Assumes h, s, and v are contained in the set [0, 1] and
         * returns r, g, and b in the set [0, 255].
         *
         * @ignore Exclude from docs
         * @param   Number  h       The hue
         * @param   Number  s       The saturation
         * @param   Number  v       The value
         * @return  Array           The RGB representation
         */
        function hsvToRgb(color) {
            var r = 0;
            var g = 0;
            var b = 0;
            var h = color.h;
            var s = color.s;
            var v = color.v;
            var i = Math.floor(h * 6);
            var f = h * 6 - i;
            var p = v * (1 - s);
            var q = v * (1 - f * s);
            var t = v * (1 - (1 - f) * s);
            switch (i % 6) {
                case 0:
                    r = v, g = t, b = p;
                    break;
                case 1:
                    r = q, g = v, b = p;
                    break;
                case 2:
                    r = p, g = v, b = t;
                    break;
                case 3:
                    r = p, g = q, b = v;
                    break;
                case 4:
                    r = t, g = p, b = v;
                    break;
                case 5:
                    r = v, g = p, b = q;
                    break;
            }
            return {
                r: Math.round(r * 255),
                g: Math.round(g * 255),
                b: Math.round(b * 255)
            };
        }
        /**
         * Returns `true` if color is "light". Useful indetermining which contrasting
         * color to use for elements over this color. E.g.: you would want to use
         * black text over light background, and vice versa.
         *
         * @ignore Exclude from docs
         * @param  {iRGB}     color  Source color
         * @return {boolean}         Light?
         */
        function isLight(color) {
            return ((color.r * 299) + (color.g * 587) + (color.b * 114)) / 1000 >= 128;
        }
        //# sourceMappingURL=Colors.js.map
        /***/ 
    }),
    /* 776 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Filter", function () { return Filter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(777);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(785);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(761);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(762);
        /**
         * This module contains a base class for an SVG filter.
         *
         * Filters can be used to decorate, change and transform just about any DOM
         * element.
         *
         * A Filter works by applying one or more effects (primitives) to SVG element.
         *
         * For more information on how SVG filters work, refer to
         * [this MDN tutorial](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_Filters_Tutorial).
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base filter class.
         *
         * This class while can be instantiated will not do anything. It is just a base
         * functionality for any other "real" filters to extend.
         *
         * Filters can be used to decorate, change and transform just about any DOM
         * element.
         *
         * A Filter works by applying one or more effects (primitives) to SVG element.
         *
         * For more information on how SVG filters work, refer to
         * [this MDN tutorial](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_Filters_Tutorial).
         *
         * @todo Example
         */
        var Filter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Filter, _super);
            /**
             * Constructor
             */
            function Filter() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A storage for Filter property/value pairs.
                 *
                 * @ignore Exclude from docs
                 * @see {@link FilterProperties}
                 * @type {FilterProperties}
                 */
                _this.properties = {};
                /**
                 * Identifies if this object is a "template" and should not be treated as
                 * real object that is drawn or actually used in the chart.
                 *
                 * @type {boolean}
                 */
                _this.isTemplate = false;
                /**
                 * [_scale description]
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._scale = 1;
                /**
                 * [_nonScaling description]
                 *
                 * @todo Description
                 * @type {boolean}
                 */
                _this._nonScaling = true;
                _this.className = "Filter";
                // Create a list to hold primitives (effect elements)
                _this.filterPrimitives = new _utils_List__WEBPACK_IMPORTED_MODULE_4__["List"]();
                // Automatically add added primitives to `_disposers` so they are discarded
                // when Filter object is destroyed (disposed)
                _this.filterPrimitives.events.on("inserted", function (ev) {
                    _this._disposers.push(ev.newValue);
                });
                // Set default dimensions
                _this.width = 120;
                _this.height = 120;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Appends actual filter elements to the filter group.
             *
             * @ignore Exclude from docs
             * @param {Group} filterElement An SVG `<group>` element to add filter element to
             */
            Filter.prototype.appendPrimitives = function (filterElement) {
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["each"](this.filterPrimitives.iterator(), function (filterPrimitive) {
                    filterElement.add(filterPrimitive);
                });
            };
            /**
             * Uses Transitions filter's values from current to target. This is used to
             * smoothly appear filter, rather than it pop into effect.
             *
             * @ignore Exclude from docs
             * @param  {IAnimationOptions[] | IAnimationOptions}  animationOptions  Animation options
             * @param  {number}                                   duration          Duration in milliseconds
             * @param  {(number) => number}                       easing            Easing function
             * @return {Animation}                                                  Animation instance
             */
            Filter.prototype.animate = function (animationOptions, duration, easing) {
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["Animation"](this, animationOptions, duration, easing).start();
                return animation;
            };
            Object.defineProperty(Filter.prototype, "width", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.properties["width"];
                },
                /**
                 * Width of the filter element in pixels.
                 *
                 * @default 120
                 * @param {number} value Width (px)
                 */
                set: function (value) {
                    this.properties["width"] = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Filter.prototype, "height", {
                /**
                 * @return {number} Height
                 */
                get: function () {
                    return this.properties["height"];
                },
                /**
                 * Height of the filter element in pixels.
                 *
                 * @default 120
                 * @param {number} value Height (px)
                 */
                set: function (value) {
                    this.properties["height"] = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies properties from another [[Filter]] object.
             *
             * @param {Filter} filter Source [[Filter]] object
             */
            Filter.prototype.copyFrom = function (filter) {
                var _this = this;
                _super.prototype.copyFrom.call(this, filter);
                _utils_Object__WEBPACK_IMPORTED_MODULE_5__["each"](filter.properties, function (key, value) {
                    _this[key] = value;
                });
            };
            Object.defineProperty(Filter.prototype, "paper", {
                /**
                 * @return {Paper} Paper
                 */
                get: function () {
                    if (this._paper) {
                        return this._paper;
                    }
                    return Object(_Paper__WEBPACK_IMPORTED_MODULE_2__["getGhostPaper"])();
                },
                /**
                 * Sets [[Paper]] instance to create filter's elements in.
                 *
                 * @ignore Exclude from docs
                 * @param {Paper}  paper  Paper
                 */
                set: function (paper) {
                    if (this._paper != paper) {
                        this._paper = paper;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Filter.prototype, "animations", {
                /**
                 * All animations currently in play.
                 *
                 * @ignore Exclude from docs
                 * @return {Array<Animation>} List of animations
                 */
                get: function () {
                    if (!this._animations) {
                        this._animations = [];
                        this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["AnimationDisposer"](this._animations));
                    }
                    return this._animations;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Filter.prototype, "scale", {
                /**
                 * @ignore Exclude from docs
                 */
                get: function () {
                    return this._scale;
                },
                /**
                 * [[Sprite]] uses this method to inform filter about it's scale.
                 *
                 * @ignore Exclude from docs
                 */
                set: function (value) {
                    this._scale = value;
                    this.updateScale();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates filter properties which depend on scale.
             *
             * @ignore Exclude from docs
             */
            Filter.prototype.updateScale = function () {
                // Dummy method for extending classes to override.
            };
            Object.defineProperty(Filter.prototype, "nonScaling", {
                /**
                 * @return {boolean} Non scaling?
                 */
                get: function () {
                    return this._nonScaling;
                },
                /**
                 * If a filter is non scaling, it will look the same even if the sprite is
                 * scaled, otherwise filter will scale together with a [[Sprite]].
                 *
                 * @default false
                 * @param {boolean}  value  Non scaling?
                 */
                set: function (value) {
                    this._nonScaling = value;
                    if (!value) {
                        this._scale = 1;
                    }
                    this.updateScale();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Filter.prototype, "sprite", {
                /**
                 * A target element this filter is currently attached to.
                 *
                 * We need to keep track of it because one filter can be used for just one
                 * element, so we have to remove it from the old "parent" when attaching to
                 * the new one.
                 *
                 * @ignore Exclude from docs
                 * @param {Sprite}  value  Target element
                 */
                set: function (value) {
                    this.setSprite(value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets filter's target element.
             *
             * @ignore Exclude from docs
             * @param {Sprite}  value  Element filter is being attached to
             */
            Filter.prototype.setSprite = function (value) {
                if (this._sprite && this._sprite != value) {
                    this._sprite.filters.removeValue(this);
                }
                this._sprite = value;
            };
            return Filter;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=Filter.js.map
        /***/ 
    }),
    /* 777 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Paper", function () { return Paper; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getGhostPaper", function () { return getGhostPaper; });
        /* harmony import */ var _AMElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(778);
        /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(780);
        /* harmony import */ var _SVGContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(781);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(779);
        /**
         * Paper class just like the white sheet of pressed fiber it draws its name
         * inspiration from is used as a starting point to start a drawing.
         *
         * Before we can start adding elements (drawing) we need to take out a new sheet
         * of paper, or in this instance create a blank SVG element.
         *
         * This class creates such element, as well as implements methods needed to
         * start adding elements to it.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Paper class which when instantiated will create an SVG element as well as
         * some of the sub-elements like `<desc>`, `<defs>`.
         *
         * Use its methods like `addGroup` and `append` to add elements to the paper.
         */
        var Paper = /** @class */ (function () {
            /**
             * Creates main `<svg>` container and related elements.
             *
             * @param {HTMLElement} container A reference to HTML element to create `<svg>` in
             */
            function Paper(container, id) {
                // Store container reference
                this.container = container;
                this.id = id;
                // Create SVG element
                var svg = document.createElementNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["SVGNS"], "svg");
                svg.setAttribute("version", "1.1");
                svg.setAttributeNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["XMLNS"], "xmlns", _utils_DOM__WEBPACK_IMPORTED_MODULE_3__["SVGNS"]);
                svg.setAttributeNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["XMLNS"], "xmlns:xlink", _utils_DOM__WEBPACK_IMPORTED_MODULE_3__["XLINK"]);
                svg.setAttribute("role", "group");
                this.container.appendChild(svg);
                // Add description
                var desc = document.createElementNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["SVGNS"], "desc");
                desc.appendChild(document.createTextNode("JavaScript chart by amCharts"));
                svg.appendChild(desc);
                // Add defs
                this.defs = document.createElementNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["SVGNS"], "defs");
                svg.appendChild(this.defs);
                // Set width and height to fit container
                svg.style.width = "100%";
                svg.style.height = "100%";
                svg.style.overflow = "visible";
                // Store variable
                this.svg = svg;
            }
            /**
             * Creates and returns a new element. Does not attach it to Paper yet.
             *
             * @param  {SVGElementNames}  elementName  Element name
             * @return {AMElement}                     New element
             */
            Paper.prototype.add = function (elementName) {
                return new _AMElement__WEBPACK_IMPORTED_MODULE_0__["AMElement"](elementName);
            };
            /**
             * Creates and returns a new Group element. Does not attach it to Paper.
             *
             * @param  {SVGElementNames}  groupName  Element name
             * @return {Group}                       New Group
             */
            Paper.prototype.addGroup = function (groupName) {
                return new _Group__WEBPACK_IMPORTED_MODULE_1__["Group"](groupName);
            };
            /**
             * Appends an element to Paper.
             *
             * @param {AMElement} element Element to append
             */
            Paper.prototype.append = function (element) {
                if (element) {
                    this.svg.appendChild(element.node);
                }
            };
            /**
             * Appends an element to `<defs>` block of the Paper.
             *
             * @param {AMElement}  element  Element
             */
            Paper.prototype.appendDef = function (element) {
                if (element) {
                    this.defs.appendChild(element.node);
                }
            };
            /**
             * Creates and returns new `<foreignObject>` element. Does not append it to
             * Paper.
             *
             * @return {AMElement} A foreignObject element
             */
            Paper.prototype.foreignObject = function () {
                var element = new _AMElement__WEBPACK_IMPORTED_MODULE_0__["AMElement"]("foreignObject");
                //this.append(element);
                return element;
            };
            /**
             * Checks if browser supports `<foreignObject>` elements.
             *
             * @return {boolean} Supports `foreignObject`?
             */
            Paper.prototype.supportsForeignObject = function () {
                return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1");
            };
            return Paper;
        }());
        var ghostPaper = null;
        /**
         * A [[Paper]] instance to create elements, that are not yet ready to be
         * placed in visible DOM.
         *
         * @ignore Exclude from docs
         * @type {Paper}
         */
        function getGhostPaper() {
            if (ghostPaper === null) {
                // ghost is used to draw elements while real paper is not yet created or Sprite doesn't know parent yet
                var ghostDiv = document.createElement("div");
                ghostDiv.hidden = true;
                document.body.appendChild(ghostDiv);
                var ghostSvgContainer = new _SVGContainer__WEBPACK_IMPORTED_MODULE_2__["SVGContainer"](ghostDiv);
                ghostPaper = new Paper(ghostSvgContainer.SVGContainer, "ghost");
            }
            return ghostPaper;
        }
        //# sourceMappingURL=Paper.js.map
        /***/ 
    }),
    /* 778 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMElement", function () { return AMElement; });
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(779);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /**
         * [[AMElement]] represents any SVG element and related functionality.
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for all SVG elements. Provides low-level DOM functionality.
         *
         * All visual elements extend this class.
         */
        var AMElement = /** @class */ (function () {
            /**
             * Constructor creates a new element or uses the one that was passed in.
             *
             * @param {string | SVGSVGElement} element Element reference node type
             */
            function AMElement(element) {
                /**
                 * Indicates if the element was already disposed.
                 *
                 * @type {boolean}
                 */
                this._isDisposed = false;
                /**
                 * Current X coordinate.
                 *
                 * @type {number}
                 */
                this._x = 0;
                /**
                 * Current Y coordinate.
                 *
                 * @type {number}
                 */
                this._y = 0;
                /**
                 * Current rotation.
                 *
                 * @type {number}
                 */
                this._rotation = 0;
                /**
                 * Current scale.
                 *
                 * @type {number}
                 */
                this._scale = 1;
                if (typeof element === "string") {
                    this.node = document.createElementNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_0__["SVGNS"], element);
                }
                else {
                    this.node = element;
                }
            }
            /**
             * Removes element's node from DOM.
             */
            AMElement.prototype.removeNode = function () {
                if (this.node) {
                    if (this.node.parentNode) {
                        this.node.parentNode.removeChild(this.node);
                    }
                }
            };
            Object.defineProperty(AMElement.prototype, "transformString", {
                /**
                 * Returns `transform` attribute of the element.
                 *
                 * @ignore Exclude from docs
                 * @return {Optional<string>} Transform attribute value
                 */
                get: function () {
                    if (this.node) {
                        return this._transformString;
                        /*
                        const value = this.node.getAttribute("transform");
            
                        if (value !== null) {
                            return value;
                        }*/
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Appply position, rotation and scale properties via elemen's `transform`
             * property
             *
             * @ignore Exclude from docs
             */
            AMElement.prototype.transform = function () {
                var transfromString = "translate(" + this._x + "," + this._y + ")";
                if (this._scale != 1) {
                    transfromString += ((transfromString ? " " : "") + "scale(" + this._scale + ")");
                }
                if (this._rotation != 0) {
                    transfromString += ((transfromString ? " " : "") + "rotate(" + this._rotation + ")");
                }
                this._transformString = transfromString;
                this.node.setAttribute("transform", transfromString);
            };
            /**
             * Returns bounding box of the element.
             *
             * ATTENTION: Bounding box calculations are extremely costly so should be
             * used sparingly and cached whenever possible.
             *
             * @return {IRectangle} Bounding rectangle
             */
            AMElement.prototype.getBBox = function () {
                var bbox = {
                    width: 0,
                    height: 0,
                    x: 0,
                    y: 0
                };
                if (this.node) {
                    // FF would fail if getBBox() is called without node added to parent
                    if (this.node.parentNode) {
                        try { // again for ff. TODO: check if this doesn't slow down
                            var svgbbox = this.node.getBBox();
                            bbox.x = svgbbox.x;
                            bbox.y = svgbbox.y;
                            bbox.width = svgbbox.width;
                            bbox.height = svgbbox.height;
                        }
                        catch (err) {
                        }
                    }
                }
                return bbox;
            };
            /**
             * Moves the element to new coordinates.
             *
             * @param {number}  x  Target X
             * @param {number}  y  Target Y
             */
            AMElement.prototype.moveTo = function (point) {
                if (point) {
                    var x = point.x;
                    var y = point.y;
                    if (this._x != x || this._y != y) {
                        this._x = x;
                        this._y = y;
                        this.transform();
                    }
                }
            };
            Object.defineProperty(AMElement.prototype, "content", {
                /**
                 * Returns element's contents as SVG markup.
                 *
                 * @return {string} Contents
                 */
                get: function () {
                    // @todo Do not use `innerHTML` as this is not reliable and will not work on all browsers
                    return this.node.innerHTML || "";
                },
                /**
                 * Element's SVG contents.
                 *
                 * @param {string} value Contents
                 */
                set: function (value) {
                    // @todo Do not use `innerHTML` as this is not reliable and will not work on all browsers
                    this.node.innerHTML = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AMElement.prototype, "textContent", {
                /**
                 * @return {string} Text contents
                 */
                get: function () {
                    return this.node.textContent || "";
                },
                /**
                 * Text contents of the SVG element.
                 *
                 * @param {string} value Text contents
                 */
                set: function (value) {
                    this.node.textContent = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AMElement.prototype, "x", {
                /**
                 * @return {number} X coordinate (px)
                 */
                get: function () {
                    return this._x;
                },
                /**
                 * Element's X position in pixels.
                 *
                 * @param {number}  value  X coordinate (px)
                 */
                set: function (value) {
                    if (this._x != value) {
                        this._x = value;
                        this.transform();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AMElement.prototype, "y", {
                /**
                 * @return {number} Y coordinate (px)
                 */
                get: function () {
                    return this._y;
                },
                /**
                 * Element's Y position in pixels.
                 *
                 * @param {number} value Y coordinate (px)
                 */
                set: function (value) {
                    if (this._y != value) {
                        this._y = value;
                        this.transform();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AMElement.prototype, "rotation", {
                /**
                 * @return {number} Rotation
                 */
                get: function () {
                    return this._rotation;
                },
                /**
                 * Element's rotation in degrees.
                 *
                 * @param {number} value Rotation
                 */
                set: function (angle) {
                    if (this._rotation != angle) {
                        this._rotation = angle;
                        this.transform();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AMElement.prototype, "scale", {
                /**
                 * @return {number} Scale
                 */
                get: function () {
                    return this._scale;
                },
                /**
                 * Element's scale where 1 is original size.
                 *
                 * Setting to 0.5 will reduce element's size by 50%, 2 will make element
                 * twice as large, etc.
                 *
                 * @param {number} value Scale
                 */
                set: function (value) {
                    if (this._scale != value) {
                        this._scale = value;
                        this.transform();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Removes an attribute from element.
             *
             * @param {string}  attribute  Attribute to remove
             */
            AMElement.prototype.removeAttr = function (attribute) {
                this.node.removeAttribute(attribute);
            };
            /**
             * Sets a set of attributes on a element.
             *
             * @param  {ISVGAttribute}  attributes  An object with attribute names (key) and values
             * @return {AMElement}                  The same element
             */
            AMElement.prototype.attr = function (attributes) {
                for (var attributeName in attributes) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](attributes[attributeName])) {
                        this.node.removeAttribute(attributeName);
                    }
                    else {
                        // this is for performance testing
                        //if((<any>attributes)[attributeName] == this.node.getAttribute(attributeName)){
                        //	console.log(attributeName, (<any>attributes)[attributeName])
                        //}
                        this.node.setAttribute(attributeName, attributes[attributeName]);
                    }
                }
                return this;
            };
            /**
             * Returns a value of a node attribute.
             *
             * @param  {string}         attribute  Attribute name
             * @return {string | null}             Attribute value
             */
            AMElement.prototype.getAttr = function (attribute) {
                return this.node.getAttribute(attribute);
            };
            /**
             * Sets a single attribute of the element's node using namesspace.
             *
             * @param  {string}     ns         Namespace
             * @param  {string}     attribute  Attribute
             * @param  {string}     value      Value
             * @return {AMElement}             The same element
             */
            AMElement.prototype.attrNS = function (ns, attribute, value) {
                this.node.setAttributeNS(ns, attribute, value);
                return this;
            };
            /**
             * Returns a namespaced attribute value from node.
             *
             * @param  {string}  ns         Namespace
             * @param  {string}  attribute  Attribute
             * @return {string}             Attribute value
             */
            AMElement.prototype.getAttrNS = function (ns, attribute) {
                return this.node.getAttributeNS(ns, attribute);
            };
            /**
             * Removes `style` attribute from node.
             *
             * @param {string}  attribute  Attribute to remove
             */
            AMElement.prototype.removeStyle = function (attribute) {
                // @todo Review because it's a bit messy and maybe not needed (pratically not used)
                delete this.node.style[attribute];
            };
            /**
             * Returns style attribute value.
             *
             * @param  {string}  attribute  Style attribute value
             * @return {string}             Attribute value
             */
            AMElement.prototype.getStyle = function (attribute) {
                // @todo Review because it's a bit messy and maybe not needed (pratically not used)
                return this.node.style[attribute];
            };
            /**
             * Adds style attributes to element's node.
             *
             * @param  {Object}     attributes  Object containing attribute: value pairs
             * @return {AMElement}              The same element
             */
            AMElement.prototype.addStyle = function (attributes) {
                // @todo Review because it's a bit messy and maybe not needed (pratically not used)
                for (var attributeName in attributes) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["hasValue"](attributes[attributeName])) {
                        this.removeStyle(attributeName);
                    }
                    else {
                        this.node.style[attributeName] = attributes[attributeName];
                    }
                }
                return this;
            };
            /**
             * Adds a class to element.
             *
             * @param {string}  name  Class name
             */
            AMElement.prototype.addClass = function (name) {
                _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["addClass"](this.node, name);
            };
            /**
             * Removes a class from element.
             *
             * @param {string} name Class name
             */
            AMElement.prototype.removeClass = function (name) {
                _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["removeClass"](this.node, name);
            };
            /**
             * Sets a class name on element.
             *
             * @param {string}  name  Class name
             */
            AMElement.prototype.setClass = function (name) {
                this.node.setAttribute("class", name);
            };
            /**
             * Removes all element's child nodes, basically leaving it empty.
             */
            AMElement.prototype.removeChildNodes = function () {
                // remove all children
                while (this.node.childNodes.length > 0) {
                    this.node.removeChild(this.node.firstChild);
                }
            };
            /**
             * Was this element already been disposed?
             *
             * @return {boolean} Disposed?
             */
            AMElement.prototype.isDisposed = function () {
                return this._isDisposed;
            };
            /**
             * Disposes element.
             */
            AMElement.prototype.dispose = function () {
                this.removeNode();
            };
            return AMElement;
        }());
        //# sourceMappingURL=AMElement.js.map
        /***/ 
    }),
    /* 779 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SVGNS", function () { return SVGNS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XMLNS", function () { return XMLNS; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XLINK", function () { return XLINK; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function () { return addEventListener; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getElement", function () { return getElement; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function () { return addClass; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeClass", function () { return removeClass; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStyle", function () { return setStyle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blur", function () { return blur; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focus", function () { return focus; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "outerHTML", function () { return outerHTML; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isElement", function () { return isElement; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contains", function () { return contains; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyAttributes", function () { return copyAttributes; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixPixelPerfect", function () { return fixPixelPerfect; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleRule", function () { return StyleRule; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleClass", function () { return StyleClass; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ready", function () { return ready; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Disposer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(754);
        /* harmony import */ var _AsyncPending__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(759);
        /* harmony import */ var _Object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(761);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(755);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * A collection of DOM-related functions.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * SVG namespace.
         *
         * @ignore Exclude from docs
         * @type {string}
         */
        var SVGNS = "http://www.w3.org/2000/svg";
        /**
         * XML namespace.
         *
         * @ignore Exclude from docs
         * @type {string}
         */
        var XMLNS = "http://www.w3.org/2000/xmlns/";
        /**
         * XLINK namespace.
         *
         * @ignore Exclude from docs
         * @type {string}
         */
        var XLINK = "http://www.w3.org/1999/xlink";
        /**
         * Function that adds a disposable event listener directly to a DOM element.
         *
         * @ignore Exclude from docs
         * @param {EventTarget}   dom       A DOM element to add event to
         * @param {string}        type      Event type
         * @param {Function}      listener  Event listener
         * @returns {IDisposer}             Disposable event
         */
        function addEventListener(dom, type, listener, options) {
            //@todo proper type check for options: EventListenerOptions | boolean (TS for some reason gives error on passive parameter)
            //console.log(type, dom);
            dom.addEventListener(type, listener, options || false);
            return new _Disposer__WEBPACK_IMPORTED_MODULE_1__["Disposer"](function () {
                dom.removeEventListener(type, listener, options || false);
            });
        }
        /**
         * Finds and returns an element reference using following logic:
         * * If we pass in an element instance, we just return it back.
         * * If we pass in a string, the function looks for an element with such id.
         * * If no element with such id is found, we grab the first element with a tag name like this.
         *
         * @ignore Exclude from docs
         * @param  {Optional<HTMLElement | string>}  el  Element definition (reference, or id, or tag name)
         * @return {Optional<HTMLElement>}               Element reference
         * @todo Review this function as it seems pretty fuzzy and hacky
         */
        function getElement(el) {
            if (_Type__WEBPACK_IMPORTED_MODULE_5__["isString"](el)) {
                var e = document.getElementById(el);
                if (e == null) {
                    e = document.getElementsByClassName(el)[0];
                }
                if (e instanceof HTMLElement) {
                    return e;
                }
            }
            else if (el instanceof HTMLElement) {
                return el;
            }
        }
        /**
         * Adds a class name to an HTML or SVG element.
         *
         * @ignore Exclude from docs
         * @param {HTMLElement | SVGSVGElement}  element    Element
         * @param {string}                       className  Class name to add
         */
        function addClass(element, className) {
            if (element.classList) {
                element.classList.add(className);
            }
            else {
                var currentClassName = element.getAttribute("class");
                if (currentClassName) {
                    element.setAttribute("class", currentClassName.split(" ").filter(function (item) {
                        return item !== className;
                    }).join(" ") + " " + className);
                }
                else {
                    element.setAttribute("class", className);
                }
                //element.className = element.className.replace(new RegExp("^" + className + "| " + className), "") + " " + className;
            }
        }
        /**
         * Removes a class name from an HTML or SVG element.
         *
         * @ignore Exclude from docs
         * @param {HTMLElement | SVGSVGElement}  element    Element
         * @param {string}                       className  Class name to add
         */
        function removeClass(element, className) {
            if (element.classList) {
                element.classList.remove(className);
            }
            else {
                var currentClassName = element.getAttribute("class");
                if (currentClassName) {
                    element.setAttribute("class", currentClassName.split(" ").filter(function (item) {
                        return item !== className;
                    }).join(" "));
                }
                //element.className = element.className.replace(new RegExp("^" + className + "| " + className), "");
            }
        }
        /**
         * Sets style property on DOM element.
         *
         * @ignore Exclude from docs
         * @todo Still needed?
         */
        function setStyle(element, property, value) {
            element.style[property] = value;
        }
        /**
         * Removes focus from any element by shifting focus to body.
         *
         * @ignore Exclude from docs
         */
        function blur() {
            var input = document.createElement("input");
            input.style.position = "fixed";
            input.style.top = "0px";
            input.style.left = "-10000px";
            document.body.appendChild(input);
            input.focus();
            input.blur();
            document.body.removeChild(input);
        }
        /**
         * Tries to focus the element.
         *
         * @ignore Exlude from docs
         * @param {HTMLElement | SVGSVGElement}  element  Element to focus
         */
        function focus(element) {
            if (element instanceof HTMLElement) {
                element.focus();
            }
            else {
                var input = document.createElement("input");
                var fo = document.createElementNS(SVGNS, "foreignObject");
                fo.appendChild(input);
                element.appendChild(fo);
                input.focus();
                input.disabled = true;
                fo.remove();
            }
            /*if ((<any>element).focus != undefined) {
                (<any>element).focus();
            }
            else if (element instanceof SVGSVGElement) {
                // Not implemented
                // @todo implement focus fallback
            }*/
        }
        /**
         * Returns markup for the element including the element tag itself.
         * SVG elements do not support `outerHTML` so this functions applies of
         * a workaround which creates a new temporary wrapper, clones element and uses
         * wrapper's `innerHTML`.
         *
         * @ignore Exclude from docs
         * @param  {HTMLElement | SVGSVGElement}  element  Element to get full markup for
         * @return {string}                                Markup
         * @deprecated Not in use anywhere
         */
        function outerHTML(element) {
            if (element.outerHTML) {
                return element.outerHTML;
            }
            else {
                var twrap = document.createElement("div");
                var tnode = element.cloneNode(true);
                twrap.appendChild(tnode);
                var content = twrap.innerHTML;
                return content;
            }
        }
        /**
         * Checks if element is a valid DOM node.
         *
         * @ignore Exclude from docs
         * @param  {HTMLElement}  el  Element
         * @return {boolean}          `true` if element is a valid DOM node
         */
        function isElement(el) {
            return el instanceof Object && el && el.nodeType === 1;
        }
        /**
         * Checks of element `a` contains element `b`.
         *
         * @param  {HTMLElement | SVGSVGElement}  a  Aleged ascendant
         * @param  {HTMLElement | SVGSVGElement}  b  Aleged descendant
         * @return {boolean}                         Contains?
         */
        function contains(a, b) {
            return a !== b && (a.contains
                ? a.contains(b)
                : a.compareDocumentPosition
                    ? !!(a.compareDocumentPosition(b) & 16)
                    : true);
        }
        /**
         * Copies attributes from one element to another.
         *
         * @ignore Exclude from docs
         * @param {Element | HTMLElement |  SVGSVGElement}  source  Element to copy attributes from
         * @param {HTMLElement | SVGSVGElement}          target  Element to copy attributes to
         */
        function copyAttributes(source, target) {
            for (var attr in source.attributes) {
                var value = source.attributes[attr].nodeValue;
                // TODO what if it's null ?
                if (value != null) {
                    target.setAttribute(source.attributes[attr].nodeName, value);
                }
            }
        }
        /**
         * [fixPixelPerfect description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param {HTMLElement}  el  Element
         */
        function fixPixelPerfect(el) {
            Object(_AsyncPending__WEBPACK_IMPORTED_MODULE_2__["readFrame"])(function () {
                // sometimes IE doesn't like this
                // TODO figure out a way to remove this
                try {
                    var rect = el.getBoundingClientRect();
                    var left_1 = rect.left - Math.round(rect.left);
                    var top_1 = rect.top - Math.round(rect.top);
                    if (left_1 !== 0) {
                        Object(_AsyncPending__WEBPACK_IMPORTED_MODULE_2__["writeFrame"])(function () {
                            el.style.left = left_1 + "px";
                        });
                    }
                    if (top_1 !== 0) {
                        Object(_AsyncPending__WEBPACK_IMPORTED_MODULE_2__["writeFrame"])(function () {
                            el.style.top = top_1 + "px";
                        });
                    }
                }
                catch (e) { }
            });
        }
        /**
         * [rootStylesheet description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @type {Optional<CSSStyleSheet>}
         */
        var rootStylesheet;
        /**
         * [getStylesheet description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @return {CSSStyleSheet} [description]
         */
        function getStylesheet() {
            if (!_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](rootStylesheet)) {
                // TODO use createElementNS ?
                var e = document.createElement("style");
                e.type = "text/css";
                document.head.appendChild(e);
                rootStylesheet = e.sheet;
            }
            return rootStylesheet;
        }
        /**
         * [makeStylesheet description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {string}        selector  [description]
         * @return {CSSStyleRule}            [description]
         */
        function makeStylesheet(selector) {
            var root = getStylesheet();
            var index = root.cssRules.length;
            root.insertRule(selector + "{}", index);
            return root.cssRules[index];
        }
        /**
         * Defines a class for a CSS rule.
         *
         * Can be used to dynamically add CSS to the document.
         */
        var StyleRule = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](StyleRule, _super);
            /**
             * Constructor.
             *
             * @param {string}  selector  CSS selector
             * @param {object}  styles    An object of style attribute - value pairs
             */
            function StyleRule(selector, styles) {
                var _this = 
                // TODO test this
                _super.call(this, function () {
                    var root = getStylesheet();
                    // TODO a bit hacky
                    var index = _Array__WEBPACK_IMPORTED_MODULE_4__["indexOf"](root.cssRules, _this._rule);
                    if (index === -1) {
                        throw new Error("Could not dispose StyleRule");
                    }
                    else {
                        root.deleteRule(index);
                    }
                }) || this;
                _this._rule = makeStylesheet(selector);
                _Object__WEBPACK_IMPORTED_MODULE_3__["each"](styles, function (key, value) {
                    _this.setStyle(key, value);
                });
                return _this;
            }
            Object.defineProperty(StyleRule.prototype, "selector", {
                /**
                 * @return {string} CSS selector
                 */
                get: function () {
                    return this._rule.selectorText;
                },
                /**
                 * A CSS selector text.
                 *
                 * E.g.: `.myClass p`
                 *
                 * @param {string}  selector  CSS selector
                 */
                set: function (selector) {
                    this._rule.selectorText = selector;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets the same style properties with browser-speicifc prefixes.
             *
             * @param {string}  name   Attribute name
             * @param {string}  value  Attribute value
             */
            StyleRule.prototype._setVendorPrefixName = function (name, value) {
                var style = this._rule.style;
                style.setProperty("-webkit-" + name, value, "");
                style.setProperty("-moz-" + name, value, "");
                style.setProperty("-ms-" + name, value, "");
                style.setProperty("-o-" + name, value, "");
                style.setProperty(name, value, "");
            };
            /**
             * Sets a value for specific style attribute.
             *
             * @param {string}  name   Attribute
             * @param {string}  value  Value
             */
            StyleRule.prototype.setStyle = function (name, value) {
                if (name === "transition") {
                    this._setVendorPrefixName(name, value);
                }
                else {
                    this._rule.style.setProperty(name, value, "");
                }
            };
            return StyleRule;
        }(_Disposer__WEBPACK_IMPORTED_MODULE_1__["Disposer"]));
        /**
         * An internal counter for unique style ids.
         *
         * @ignore Exclude from docs
         * @type {number}
         */
        var styleId = 0;
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        var StyleClass = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](StyleClass, _super);
            /**
             * Constructor.
             *
             * @param {object}  styles  An object of style attribute - value pairs
             * @param {string}  name    Class name
             */
            function StyleClass(styles, name) {
                var _this = this;
                var className = (!_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](name)
                    // TODO generate the classname randomly
                    ? "__style_" + (++styleId) + "__"
                    : name);
                _this = _super.call(this, "." + className, styles) || this;
                _this._className = className;
                return _this;
            }
            Object.defineProperty(StyleClass.prototype, "className", {
                /**
                 * @return {string} Class name
                 */
                get: function () {
                    return this._className;
                },
                /**
                 * Class name.
                 *
                 * @param {string}  name  Class name
                 */
                set: function (name) {
                    this._className = name;
                    this.selector = "." + name;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts the whole class to
             * @ignore Exclude from docs
             */
            StyleClass.prototype.toString = function () {
                return this._className;
            };
            return StyleClass;
        }(StyleRule));
        function ready(f) {
            if (document.readyState !== "loading") {
                f();
            }
            else {
                var listener_1 = function () {
                    if (document.readyState !== "loading") {
                        document.removeEventListener("readystatechange", listener_1);
                        f();
                    }
                };
                document.addEventListener("readystatechange", listener_1);
            }
        }
        //# sourceMappingURL=DOM.js.map
        /***/ 
    }),
    /* 780 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Group", function () { return Group; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AMElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(778);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates an SVG `<g>` element.
         *
         * SVG groups are used for elements that need more elements just one.
         *
         * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g} About `<g>` element
         */
        var Group = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Group, _super);
            /**
             * Constructor.
             *
             * @param {string} elementName Element type (should be "g")
             */
            function Group(elementName) {
                return _super.call(this, elementName) || this;
            }
            /**
             * Adds an element to group.
             *
             * This will manipulate DOM. `element` will be physically moved into group.
             *
             * @param {AMElement}  element  Element
             */
            Group.prototype.add = function (element) {
                if (element) {
                    this.node.appendChild(element.node);
                }
            };
            /**
             * Adds an element to group.
             *
             * This will manipulate DOM. `element` will be physically moved into group.
             *
             * @param {AMElement}  element  Element
             */
            Group.prototype.addToBack = function (element) {
                if (element) {
                    var first = this.node.childNodes[0];
                    if (first) {
                        this.node.insertBefore(element.node, first);
                    }
                    else {
                        this.node.appendChild(element.node);
                    }
                }
            };
            /**
             * Removes the `element` from group.
             *
             * Please note that this will not dispose the element itself, it will just
             * remove it from the group.
             *
             * @param {AMElement}  element  Element
             */
            Group.prototype.removeElement = function (element) {
                // todo: not sure about the speed, need to investigate, maybe it's faster to check if node is a child
                if (element) {
                    try {
                        if (element.node && element.node.parentNode == this.node) {
                            this.node.removeChild(element.node);
                        }
                    }
                    catch (err) {
                    }
                }
            };
            Object.defineProperty(Group.prototype, "content", {
                /**
                 * @return {string} SVG markup
                 */
                get: function () {
                    return this.node.innerHTML;
                },
                /**
                 * Content of the group element.
                 *
                 * Can be used to add a lot of proprietary SVG markup into group.
                 *
                 * @param {string}  value  SVG markup
                 */
                set: function (value) {
                    this.node.innerHTML = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Removes all children from the group.
             */
            Group.prototype.removeChildren = function () {
                if (this.node.childNodes) {
                    while (this.node.childNodes.length > 0) {
                        var childNode = this.node.firstChild;
                        if (childNode && childNode.parentNode) {
                            childNode.parentNode.removeChild(childNode);
                        }
                    }
                }
            };
            return Group;
        }(_AMElement__WEBPACK_IMPORTED_MODULE_1__["AMElement"]));
        //# sourceMappingURL=Group.js.map
        /***/ 
    }),
    /* 781 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgContainers", function () { return svgContainers; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SVGContainer", function () { return SVGContainer; });
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(754);
        /* harmony import */ var _elements_Popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(782);
        /* harmony import */ var _elements_Modal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(794);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(779);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(755);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /* harmony import */ var css_element_queries_src_ResizeSensor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(797);
        /* harmony import */ var css_element_queries_src_ResizeSensor__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(css_element_queries_src_ResizeSensor__WEBPACK_IMPORTED_MODULE_8__);
        /**
         * This functionality is related to the HTML wrapper that houses `<svg>` tag.
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A array of all SVG Containers (one SVG container per chart instance).
         *
         * @ignore Exclude from docs
         * @type {Array<SVGContainer>}
         */
        var svgContainers = [];
        /**
         * A class used to create an HTML wrapper for the SVG contents.
         */
        var SVGContainer = /** @class */ (function () {
            /**
             * Constructor
             *
             * * Creates an HTML wrapper for SVG
             */
            function SVGContainer(htmlElement) {
                var _this = this;
                /**
                 * Indicates if this object has already been deleted. Any
                 * destruction/disposal code should take this into account when deciding
                 * wheter to run potentially costly disposal operations if they already have
                 * been run.
                 *
                 * @type {boolean}
                 */
                this._disposed = false;
                /**
                 * If this component is in a separate HTML container, `autoResize` means the
                 * module will constantly measure container's size and adopt contents to it.
                 *
                 * @type {Boolean}
                 */
                this.autoResize = true;
                /**
                 * Holds list of references to [[Sprite]] objects that should not be exported
                 * when exporting chart to an image.
                 *
                 * @ignore
                 * @type {Sprite[]}
                 */
                this.nonExportableSprites = [];
                /**
                 * List of objects that need to be disposed when this one is disposed.
                 *
                 * @type {Disposer[]}
                 */
                this._disposers = [];
                // Log parent HTML element
                this.htmlElement = htmlElement;
                var callback = function () { _this.measure(); };
                this.resizeSensor = new css_element_queries_src_ResizeSensor__WEBPACK_IMPORTED_MODULE_8___default.a(htmlElement, callback);
                this._disposers.push(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_0__["Disposer"](function () {
                    _this.resizeSensor.detach(callback);
                }));
                // Adds to containers array
                svgContainers.push(this);
                /**
                 * Create child div for the container - it will have svg node
                 * It might seem that this container is not necessay, however having it solves
                 * a problems with mouse position detection and some other.
                 */
                var svgContainer = document.createElement("div");
                var style = svgContainer.style;
                style.width = "100%";
                style.height = "100%";
                style.position = "relative";
                htmlElement.appendChild(svgContainer);
                this.SVGContainer = svgContainer;
            }
            /**
             * Measures size of parent HTML element.
             *
             * @ignore Exclude from docs
             */
            SVGContainer.prototype.measure = function () {
                var width = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["width"](this.htmlElement);
                var height = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["height"](this.htmlElement);
                var container = this.container;
                if (container) {
                    if (this.width != width || this.height != height) {
                        this.width = width;
                        this.height = height;
                        if (width > 0) {
                            container.maxWidth = width;
                        }
                        if (height > 0) {
                            container.maxHeight = height;
                        }
                        _utils_DOM__WEBPACK_IMPORTED_MODULE_5__["fixPixelPerfect"](this.SVGContainer);
                    }
                    if (!container.maxWidth) {
                        container.maxWidth = 0;
                    }
                    if (!container.maxHeight) {
                        container.maxHeight = 0;
                    }
                }
            };
            Object.defineProperty(SVGContainer.prototype, "container", {
                /**
                 * @return {Optional<Container>} Container
                 */
                get: function () {
                    return this._container;
                },
                /**
                 * A [[Container]] element which is placed into container.
                 *
                 * @param {Optional<Container>}  container  Container
                 */
                set: function (container) {
                    this._container = container;
                    this.measure();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns if this object has been already been disposed.
             *
             * @return {boolean} Is disposed?
             */
            SVGContainer.prototype.isDisposed = function () {
                return this._disposed;
            };
            /**
             * Removes this container from SVG container list in system, which
             * effectively disables size change monitoring for it.
             */
            SVGContainer.prototype.dispose = function () {
                if (!this._disposed) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_6__["remove"](svgContainers, this);
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_6__["each"](this._disposers, function (item) {
                    item.dispose();
                });
            };
            Object.defineProperty(SVGContainer.prototype, "hideOverflow", {
                /**
                 * Indicates if chart container should have its style set
                 * to `overflow: hidden`.
                 *
                 * Normally, we don't want that, so that certain elements, such as tooltips,
                 * would be able to go outside chart area.
                 *
                 * There is one issue though. Some browsers ignore SVG masks and would
                 * display scrollbars if chart elements, that go outside chart area extend
                 * outside window.
                 *
                 * This is especially true for [[MapChart]], which can have its elements
                 * extend very widely when zoomed in. Even if those parts are not visible
                 * because of SVG masks, some browsers might still display window scrollbars.
                 *
                 * This is why we set this setting to `true` in [[MapChart]].
                 *
                 * Other charts use default of `false`.
                 */
                set: function (value) {
                    if (value) {
                        this.SVGContainer.style.overflow = "hidden";
                    }
                    else {
                        this.SVGContainer.style.overflow = "";
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SVGContainer.prototype, "modal", {
                /**
                 * ==========================================================================
                 * MODAL/POPUP RELATED STUFF
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Returns a [[Modal]] instance, associated with this chart.
                 * (elements top parent)
                 *
                 * Accessing modal does not make it appear. To make a modal appear, use
                 * `showModal()` method.
                 *
                 * @see {@link Modal} for more information about using Modal windows
                 * @return {Modal} Modal instance
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this._modal)) {
                        // Create new modal
                        this._modal = new _elements_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"]();
                        this._modal.container = this.SVGContainer;
                        // Add to disposers
                        this._disposers.push(this._modal);
                    }
                    return this._modal;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Opens a modal window with specific content (`text` parameter) and,
             * optionally, `title`.
             *
             * The `text` parameter can contain HTML content.
             *
             * @see {@link Modal} for more information about using Modal windows
             * @param {string}  text   Modal contents
             * @param {string}  title  Title for the modal window
             */
            SVGContainer.prototype.openModal = function (text, title) {
                // Hide previous modal
                this.closeModal();
                // Create modal
                var modal = this.modal;
                modal.content = text;
                modal.readerTitle = title;
                modal.open();
                return modal;
            };
            /**
             * Hides modal window if there is one currently open.
             */
            SVGContainer.prototype.closeModal = function () {
                if (this._modal) {
                    this.modal.close();
                }
            };
            Object.defineProperty(SVGContainer.prototype, "popups", {
                /**
                 * A list of popups for this chart.
                 *
                 * @return {ListTemplate<Popup>} Popups
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this._popups)) {
                        // Create popup template
                        var popupTemplate = new _elements_Popup__WEBPACK_IMPORTED_MODULE_1__["Popup"]();
                        popupTemplate.container = this.SVGContainer;
                        // Create the list
                        this._popups = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](popupTemplate);
                        // Add to disposers
                        this._disposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](this._popups));
                        this._disposers.push(this._popups.template);
                    }
                    return this._popups;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates, opens, and returns a new [[Popup]] window.
             *
             * `text` can be any valid HTML.
             *
             * `title` is currently not supported.
             *
             * @param  {string}  text   Popup contents
             * @param  {string}  title  Popup title
             * @return {Popup}          Popup instance
             */
            SVGContainer.prototype.openPopup = function (text, title) {
                var popup = this.popups.create();
                popup.content = text;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](title)) {
                    popup.title = title;
                }
                popup.open();
                return popup;
            };
            /**
             * Closes all currently open popup windows
             */
            SVGContainer.prototype.closeAllPopups = function () {
                this.popups.each(function (popup) {
                    popup.close();
                });
            };
            return SVGContainer;
        }());
        //# sourceMappingURL=SVGContainer.js.map
        /***/ 
    }),
    /* 782 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function () { return Popup; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PopupCSS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(783);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(768);
        /* harmony import */ var _interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(784);
        /* harmony import */ var _utils_Keyboard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(792);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(754);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(761);
        /**
         * Popup class is used to display information over chart area.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Shows an HTML popup which covers window or a chart area.
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/popups-and-modals/} For examples and docs on Popups and Modals.
         * @todo Positioning over whole window
         */
        var Popup = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Popup, _super);
            /**
             * Constructor
             */
            function Popup() {
                var _this = _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<Popup, IPopupAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * Holds references to various HTML elements, Popup consists of.
                 */
                _this._elements = {};
                /**
                 * Holdes Interaction objects for various Popup's elements.
                 */
                _this._IOs = {};
                /**
                 * Contents of popup window.
                 *
                 * @type {string}
                 */
                _this._content = "";
                /**
                 * Title of the popup window.
                 *
                 * @type {string}
                 */
                _this._title = "";
                /**
                 * Prefix to apply to class names for popup elements.
                 *
                 * @type {string}
                 */
                _this._classPrefix = "ampopup";
                /**
                 * If set to `true` [[Popup]] will use default styles.
                 *
                 * @type {boolean}
                 */
                _this._defaultStyles = true;
                /**
                 * If set to `true` [[Popup]] will dim out all chart content behind it by
                 * showing a semi-transparent fill. (curtain)
                 *
                 * @type {boolean}
                 */
                _this._showCurtain = false;
                /**
                 * Indicates whether popup can be dragged.
                 *
                 * @type {boolean}
                 */
                _this._draggable = true;
                /**
                 * Horizontal position of the content window.
                 *
                 * @type {Align}
                 */
                _this._align = "center";
                /**
                 * Vertical position of the content window.
                 *
                 * @type {VerticalAlign}
                 */
                _this._verticalAlign = "middle";
                /**
                 * Shift in position of the element. (used for dragging)
                 *
                 * @type {number}
                 */
                _this._shift = {
                    x: 0,
                    y: 0
                };
                /**
                 * Temporary shift in position of the element. (used for dragging)
                 *
                 * @type {number}
                 */
                _this._tempShift = {
                    x: 0,
                    y: 0
                };
                /**
                 * A title for screen readers. It is very highly recommended to set that title
                 * so that people using screen reader tools can get an immediate summary of
                 * the information in the popup.
                 *
                 * @type {string}
                 */
                _this._readerTitle = "";
                /**
                 * Is popup closable?
                 *
                 * @type {boolean}
                 */
                _this._closable = true;
                /**
                 * Was CSS already loaded?
                 *
                 * @type {boolean}
                 */
                _this._cssLoaded = false;
                /**
                 * If set to other than "none" will try to re-adjust the position of the
                 * popop to fit within chart container or browser window.
                 *
                 * @ignore Feature not yet implemented
                 * @todo Implement
                 * @type {"none" | "container" | "window"}
                 */
                _this._fitTo = "window";
                /**
                 * Identifies if this object is a "template" and should not be treated as
                 * real object that is drawn or actually used in the chart.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this.isTemplate = false;
                /**
                 * Indicates if the element was already sized and should not be measured for
                 * sized again, saving some precious resources.
                 *
                 * @type {boolean}
                 */
                _this._sized = false;
                _this.className = "Popup";
                return _this;
            }
            /**
             * Shows popup window.
             */
            Popup.prototype.open = function () {
                if (this.container) {
                    if (this._elements.wrapper) {
                        this.container.appendChild(this._elements.wrapper);
                    }
                    if (this._elements.curtain) {
                        this.container.appendChild(this._elements.curtain);
                        this.showCurtain = this.showCurtain;
                    }
                    this.positionElement();
                    this.dispatchImmediately("opened");
                }
            };
            /**
             * Hides popup window.
             */
            Popup.prototype.close = function () {
                if (this._elements.wrapper) {
                    if (this._elements.wrapper.parentElement) {
                        this._elements.wrapper.parentElement.removeChild(this._elements.wrapper);
                    }
                }
                if (this._elements.curtain) {
                    if (this._elements.curtain.parentElement) {
                        this._elements.curtain.parentElement.removeChild(this._elements.curtain);
                    }
                }
                this.dispatchImmediately("closed");
                this.releasePointers();
            };
            /**
             * Destroy (dispose) popup.
             */
            Popup.prototype.dispose = function () {
                this.close();
                _super.prototype.dispose.call(this);
            };
            /**
             * Positions content element in the center of popup based on its actual size.
             *
             * @ignore Exclude from docs
             */
            Popup.prototype.positionElement = function (forceResize) {
                var _this = this;
                if (forceResize === void 0) {
                    forceResize = true;
                }
                if (!this._elements.wrapper) {
                    return;
                }
                setTimeout(function () {
                    if (!_this._elements.wrapper) {
                        return;
                    }
                    if (forceResize || !_this._sized) {
                        _this._elements.wrapper.style.opacity = "0.01";
                        _this._elements.wrapper.style.left = "0";
                        _this._elements.wrapper.style.top = "0";
                        _this._elements.wrapper.style.margin = "0 0 0 0";
                        // Size the element, but only for the first time
                        if (!_this._elements.wrapper.style.width) {
                            var bbox = _this._elements.wrapper.getBoundingClientRect();
                            _this._elements.wrapper.style.width = bbox.width + "px";
                            _this._elements.wrapper.style.height = bbox.height + "px";
                        }
                        _this._sized = true;
                    }
                    setTimeout(function () {
                        if (!_this._elements.wrapper) {
                            return;
                        }
                        var bbox;
                        if ((forceResize || !_this._sized) && _this._bbox) {
                            bbox = _this._bbox;
                        }
                        else {
                            bbox = _this._elements.wrapper.getBoundingClientRect();
                            _this._elements.wrapper.style.opacity = "";
                        }
                        // Set horizontal positioning
                        switch (_this.align) {
                            case "left":
                                _this._elements.wrapper.style.left = "0";
                                _this._elements.wrapper.style.right = "auto";
                                _this._elements.wrapper.style.marginLeft = _this.toStyle(_this._shift.x + _this._tempShift.x);
                                break;
                            case "center":
                                _this._elements.wrapper.style.left = "50%";
                                _this._elements.wrapper.style.right = "auto";
                                _this._elements.wrapper.style.marginLeft = _this.toStyle(Math.round(-bbox.width / 2) + (_this._shift.x + _this._tempShift.x));
                                break;
                            case "right":
                                _this._elements.wrapper.style.left = "auto";
                                _this._elements.wrapper.style.right = "0";
                                _this._elements.wrapper.style.marginLeft = _this.toStyle(_this._shift.x + _this._tempShift.x);
                                break;
                            default:
                                _this._elements.wrapper.style.left = _this.toStyle(_this.left) || "auto";
                                _this._elements.wrapper.style.right = _this.toStyle(_this.right) || "auto";
                                _this._elements.wrapper.style.marginLeft = _this.toStyle(_this._shift.x + _this._tempShift.x);
                                break;
                        }
                        // Set vertical positioning
                        switch (_this.verticalAlign) {
                            case "top":
                                _this._elements.wrapper.style.top = "0";
                                _this._elements.wrapper.style.bottom = "auto";
                                _this._elements.wrapper.style.marginTop = _this.toStyle(_this._shift.y + _this._tempShift.y);
                                break;
                            case "middle":
                                _this._elements.wrapper.style.top = "50%";
                                _this._elements.wrapper.style.bottom = "auto";
                                _this._elements.wrapper.style.marginTop = _this.toStyle(Math.round(-bbox.height / 2) + (_this._shift.y + _this._tempShift.y));
                                break;
                            case "bottom":
                                _this._elements.wrapper.style.top = "auto";
                                _this._elements.wrapper.style.bottom = "0";
                                _this._elements.wrapper.style.marginTop = _this.toStyle(_this._shift.y + _this._tempShift.y);
                                break;
                            default:
                                _this._elements.wrapper.style.top = _this.toStyle(_this.top) || "auto";
                                _this._elements.wrapper.style.bottom = _this.toStyle(_this.bottom) || "auto";
                                _this._elements.wrapper.style.marginTop = _this.toStyle(_this._shift.y + _this._tempShift.y);
                                break;
                        }
                    }, 1);
                }, 1);
            };
            Popup.prototype.setupDragging = function () {
                var _this = this;
                if (this.draggable) {
                    if (!this._IOs.wrapper.events.has("drag")) {
                        this._IOs.wrapper.events.on("drag", function (ev) {
                            _this._tempShift.x = ev.shift.x;
                            _this._tempShift.y = ev.shift.y;
                            _this.positionElement(false);
                        });
                    }
                    if (!this._IOs.wrapper.events.has("dragstop")) {
                        this._IOs.wrapper.events.on("dragstop", function (ev) {
                            _this._shift.x += _this._tempShift.x;
                            _this._shift.y += _this._tempShift.y;
                            _this._tempShift.x = 0;
                            _this._tempShift.y = 0;
                            _this.positionElement(false);
                        });
                    }
                }
                else {
                    // @todo Remove events
                }
            };
            Popup.prototype.toStyle = function (value) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](value)) {
                    return null;
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](value)) {
                    return "" + value + "px";
                }
                else {
                    return value.toString();
                }
            };
            Object.defineProperty(Popup.prototype, "classPrefix", {
                /**
                 * A prefix that is applied to class names of various popup elements.
                 *
                 * @return {string} Class name prefix
                 */
                get: function () {
                    return this.adapter.apply("classPrefix", this._classPrefix);
                },
                /**
                 * @param {string} value Class name prefix
                 */
                set: function (value) {
                    this._classPrefix = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "classPrefixRaw", {
                /**
                 * Returns raw prefix (without adapters applied).
                 *
                 * @ignore Exclude from docs
                 * @return {string} Class name prefix
                 */
                get: function () {
                    return this._classPrefix;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "content", {
                /**
                 * @return {string} Popup content
                 */
                get: function () {
                    return this.adapter.apply("content", this._content);
                },
                /**
                 * Popup content.
                 *
                 * Popup content can be any valid HTML, including CSS.
                 *
                 * @param {string} value Popup content
                 */
                set: function (value) {
                    if (this._content != value) {
                        this._content = value;
                        if (!this._elements.content) {
                            this.createContentElement();
                        }
                        this._elements.content.innerHTML = value;
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Popup.prototype.getClassNames = function () {
                return this.adapter.apply("classNames", {
                    wrapperClass: this.classPrefix + "",
                    titleClass: this.classPrefix + "-title",
                    contentClass: this.classPrefix + "-content",
                    curtainClass: this.classPrefix + "-curtain",
                    closeClass: this.classPrefix + "-close"
                });
            };
            /**
             * Creates content element.
             */
            Popup.prototype.createContentElement = function () {
                // Check if it's created already
                if (this._elements.wrapper) {
                    return;
                }
                // Get class names for popup elements
                var classNames = this.getClassNames();
                // Create content element
                var wrapper = document.createElement("div");
                wrapper.className = classNames.contentClass;
                wrapper.style.opacity = "0.01";
                // Create close button
                var close = document.createElement("a");
                close.className = classNames.closeClass;
                // Content title
                var title = document.createElement("div");
                title.innerHTML = this.title;
                title.className = classNames.titleClass;
                if (!this.title) {
                    title.style.display = "none";
                }
                // Content div
                var content = document.createElement("div");
                content.innerHTML = this.content;
                // Set up events for content
                this._IOs.wrapper = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().getInteraction(wrapper);
                this._disposers.push(this._IOs.wrapper);
                // Set hover/out events
                this._IOs.wrapper.events.on("over", this.disablePointers, this);
                this._IOs.wrapper.events.on("out", this.releasePointers, this);
                // Create an InteractionObject for close
                this._IOs.close = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().getInteraction(close);
                this._disposers.push(this._IOs.close);
                // Hide close for now
                close.style.visibility = "hidden";
                // Add accessible stuff
                wrapper.setAttribute("role", "dialog");
                // Add to wrapper
                wrapper.appendChild(close);
                wrapper.appendChild(title);
                wrapper.appendChild(content);
                this.container.appendChild(wrapper);
                // Save for later access
                this._elements.wrapper = wrapper;
                this._elements.content = content;
                this._elements.title = title;
                this._elements.close = close;
                // Load CSS
                if (this.defaultStyles) {
                    this.loadDefaultCSS();
                }
                // Create curtain as well
                this.createCurtainElement();
                // Apply events
                this.applyEvents();
                this.applyReaderSettings();
                // Draggable?
                this.setupDragging();
            };
            Object.defineProperty(Popup.prototype, "title", {
                /**
                 * @return {string} Popup title
                 */
                get: function () {
                    return this.adapter.apply("title", this._title);
                },
                /**
                 * Popup title.
                 *
                 * Popup title can be any valid HTML, including CSS.
                 *
                 * @param {string}  value  Popup title
                 */
                set: function (value) {
                    if (this._title != value) {
                        this._title = value;
                        if (!this._elements.content) {
                            this.createContentElement();
                        }
                        this._elements.title.innerHTML = value;
                        this.positionElement();
                        this.applyReaderSettings();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "readerTitle", {
                /**
                 * @return {string} Popup content
                 */
                get: function () {
                    return this.adapter.apply("readerTitle", this._readerTitle != "" ? this._readerTitle : this.title);
                },
                /**
                 * A title for screen readers. It is very highly recommended to set that title
                 * so that people using screen reader tools can get an immediate summary of
                 * the information in the popup.
                 *
                 * @param {string}  value  Reader title
                 */
                set: function (value) {
                    if (this._readerTitle != value) {
                        this._readerTitle = value;
                        this.applyReaderSettings();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "closable", {
                /**
                 * @return {boolean} Closable?
                 */
                get: function () {
                    return this.adapter.apply("closable", this._closable);
                },
                /**
                 * Is popup closable?
                 *
                 * If it is, it can be closed in a number of ways, e.g. by hitting ESC key,
                 * clicking curtain, or clicking the close button.
                 *
                 * If it is not closable, the only way to close it is via `close()` call.
                 *
                 * @param {boolean} value Closable?
                 */
                set: function (value) {
                    if (value !== this._closable) {
                        this._closable = value;
                        this.applyEvents();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "fitTo", {
                /**
                 * @ignore
                 * @todo Implement
                 * @return {"none" | "container" | "window"} Fit option
                 */
                get: function () {
                    return this.adapter.apply("fitTo", this._fitTo);
                },
                /**
                 * If set to other than "none" will try to re-adjust the position of the
                 * popop to fit within chart container or browser window.
                 *
                 * @ignore
                 * @todo Implement
                 * @default "window"
                 * @param {"none" | "container" | "window"}  value  Fit option
                 */
                set: function (value) {
                    if (value != this._fitTo) {
                        this._fitTo = value;
                        this.positionElement;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "defaultStyles", {
                /**
                 * @return {boolean} Use default CSS?
                 */
                get: function () {
                    return this.adapter.apply("defaultStyles", this._defaultStyles);
                },
                /**
                 * Should popup use default CSS?
                 *
                 * If default CSS is disabled, an external CSS should handle the look of the
                 * popup, since it will look quite out of place otherwise.
                 *
                 * @default true
                 * @param {string} Use default CSS?
                 */
                set: function (value) {
                    if (this._defaultStyles != value) {
                        this._defaultStyles = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "showCurtain", {
                /**
                 * @return {boolean} Show curtain?
                 */
                get: function () {
                    return this.adapter.apply("showCurtain", this._showCurtain);
                },
                /**
                 * Should popup use dim out all content behind it?
                 *
                 * @default false
                 * @param {boolean} Show curtain?
                 */
                set: function (value) {
                    if (this._showCurtain != value) {
                        this._showCurtain = value;
                        if (this._elements.curtain) {
                            this._elements.curtain.style.display = value ? "block" : "none";
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates curtain element.
             */
            Popup.prototype.createCurtainElement = function () {
                // Get class names for popup elements
                var classNames = this.getClassNames();
                // Create the curtain
                var curtain = document.createElement("div");
                curtain.className = classNames.curtainClass;
                // Append curtain to wrapper
                this.container.appendChild(curtain);
                // Create an InteractionObject for curtain because we might need to
                // set interactions on it
                this._IOs.curtain = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().getInteraction(curtain);
                // Add Curtain IO to disposers
                this._disposers.push(this._IOs.curtain);
                // Set events to disable underlying interactivity
                this._IOs.curtain.events.on("over", this.disablePointers, this);
                this._IOs.curtain.events.on("out", this.releasePointers, this);
                // Hide it?
                curtain.style.display = this.showCurtain ? "block" : "none";
                // Save for later
                this._elements.curtain = curtain;
            };
            Object.defineProperty(Popup.prototype, "draggable", {
                /**
                 * @return {boolean} Show curtain?
                 */
                get: function () {
                    return this.adapter.apply("draggable", this._draggable);
                },
                /**
                 * Can the popup be dragged with a pointer?
                 *
                 * @default false
                 * @param {boolean} Show curtain?
                 */
                set: function (value) {
                    if (this._draggable != value) {
                        this._draggable = value;
                        this.setupDragging();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "align", {
                /**
                 * @return {boolean} Horizontal position
                 */
                get: function () {
                    return this.adapter.apply("align", this._align);
                },
                /**
                 * Horizontal positioning of the content window.
                 *
                 * Available options: "left", "center" (default), "right", and "none".
                 *
                 * @default "center"
                 * @param {Align} Horizontal position
                 */
                set: function (value) {
                    if (this._align != value) {
                        this._align = value;
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "verticalAlign", {
                /**
                 * @return {boolean} Vertical position
                 */
                get: function () {
                    return this.adapter.apply("verticalAlign", this._verticalAlign);
                },
                /**
                 * Vertical positioning of the content window.
                 *
                 * Available options: "top", "middle" (default), "bottom", and "none".
                 *
                 * @default "middle"
                 * @param {VerticalAlign} Vertical position
                 */
                set: function (value) {
                    if (this._verticalAlign != value) {
                        this._verticalAlign = value;
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "left", {
                /**
                 * @return {boolean} Left
                 */
                get: function () {
                    return this.adapter.apply("left", this._left);
                },
                /**
                 * "left" coordinate of a non-aligned (`align = "none"`) popup.
                 *
                 * Can be either absolute pixel value, or relative (`Percent`).
                 *
                 * Setting this property will automatically set `align` to "none".
                 *
                 * NOTE: The position is relative to the chart container.
                 *
                 * @param {number | Percent} Left
                 */
                set: function (value) {
                    if (this.left != value) {
                        this._left = value;
                        this._align = "none";
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "right", {
                /**
                 * @return {boolean} Right
                 */
                get: function () {
                    return this.adapter.apply("right", this._right);
                },
                /**
                 * "right" coordinate of a non-aligned (`align = "none"`) popup.
                 *
                 * Can be either absolute pixel value, or relative (`Percent`).
                 *
                 * Setting this property will automatically set `align` to "none".
                 *
                 * NOTE: The position is relative to the chart container.
                 *
                 * @param {number | Percent} Right
                 */
                set: function (value) {
                    if (this.right != value) {
                        this._right = value;
                        this._align = "none";
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "top", {
                /**
                 * @return {boolean} Top
                 */
                get: function () {
                    return this.adapter.apply("top", this._top);
                },
                /**
                 * "top" coordinate of a non-aligned (`verticalAlign = "none"`) popup.
                 *
                 * Can be either absolute pixel value, or relative (`Percent`).
                 *
                 * Setting this property will automatically set `verticalAlign` to "none".
                 *
                 * NOTE: The position is relative to the chart container.
                 *
                 * @param {number | Percent} Top
                 */
                set: function (value) {
                    if (this.top != value) {
                        this._top = value;
                        this._verticalAlign = "none";
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "bottom", {
                /**
                 * @return {boolean} Bottom
                 */
                get: function () {
                    return this.adapter.apply("bottom", this._bottom);
                },
                /**
                 * "bottom" coordinate of a non-aligned (`verticalAlign = "none"`) popup.
                 *
                 * Can be either absolute pixel value, or relative (`Percent`).
                 *
                 * Setting this property will automatically set `verticalAlign` to "none".
                 *
                 * NOTE: The position is relative to the chart container.
                 *
                 * @param {number | Percent} Bottom
                 */
                set: function (value) {
                    if (this.bottom != value) {
                        this._bottom = value;
                        this._verticalAlign = "none";
                        this.positionElement();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Popup.prototype, "elements", {
                /**
                 * Returns an object with references to various elements of the Popup.
                 *
                 * * `wrapper`
                 * * `title`
                 * * `content`
                 * * `close`
                 * * `curtain`
                 */
                get: function () {
                    return this._elements;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Loads popup CSS.
             *
             * @ignore Exclude from docs
             */
            Popup.prototype.loadDefaultCSS = function () {
                if (!this._cssLoaded) {
                    this._disposers.push(Object(_PopupCSS__WEBPACK_IMPORTED_MODULE_1__["default"])(this.classPrefix));
                    _utils_Object__WEBPACK_IMPORTED_MODULE_8__["each"](this._elements, function (key, el) {
                        el.style.display = "";
                    });
                    this._cssLoaded = true;
                }
            };
            /**
             * If popup is closable, this method adds various events to popup elements.
             */
            Popup.prototype.applyEvents = function () {
                var _this = this;
                if (this._IOs.close) {
                    if (this.closable) {
                        this._IOs.close.element.style.visibility = "visible";
                        var disposers = [
                            Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().body.events.on("keyup", function (ev) {
                                if (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_5__["keyboard"].isKey(ev.event, "esc") && _this.closable) {
                                    _this.close();
                                }
                            }),
                            this._IOs.close.events.on("hit", function (ev) {
                                _this.close();
                            })
                        ];
                        disposers.push(this._IOs.curtain.events.on("hit", function (ev) {
                            if (_this.showCurtain) {
                                _this.close();
                            }
                        }));
                        this._disposers.push(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_6__["MultiDisposer"](disposers));
                    }
                    else {
                        this._IOs.close.element.style.visibility = "hidden";
                    }
                }
            };
            /**
             * Disables interactivity on parent chart.
             */
            Popup.prototype.disablePointers = function () {
                if (this.sprite) {
                    this._spriteInteractionsEnabled = this.sprite.interactionsEnabled;
                    this.sprite.interactionsEnabled = false;
                }
            };
            /**
             * Releases temporarily disabled pointers on parent chart.
             */
            Popup.prototype.releasePointers = function () {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this._spriteInteractionsEnabled)) {
                    this.sprite.interactionsEnabled = this._spriteInteractionsEnabled;
                    this._spriteInteractionsEnabled = undefined;
                }
            };
            /**
             * Sets screen reader related settings.
             */
            Popup.prototype.applyReaderSettings = function () {
                this.elements.wrapper.setAttribute("aria-label", this.readerTitle);
            };
            /**
             * Copies all properties and related data from different element.
             *
             * @param {this} object Source element
             */
            Popup.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.container = source.container;
                this.sprite = source.sprite;
                this.classPrefix = source.classPrefixRaw;
                this.content = source.content;
                this.title = source.title;
                this.readerTitle = source.readerTitle;
                this.defaultStyles = source.defaultStyles;
                this.showCurtain = source.showCurtain;
                this.align = source.align;
                this.verticalAlign = source.verticalAlign;
                this.left = source.left;
                this.right = source.right;
                this.top = source.top;
                this.bottom = source.bottom;
                this.adapter.copyFrom(source.adapter);
            };
            return Popup;
        }(_Base__WEBPACK_IMPORTED_MODULE_3__["BaseObjectEvents"]));
        //# sourceMappingURL=Popup.js.map
        /***/ 
    }),
    /* 783 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(779);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(760);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        var rules = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__["Dictionary"]();
        /**
         * Default CSS for Popup.
         *
         * @ignore Exclude from docs
         * @param  {string}     prefix  Prefix for CSS classes
         * @return {IDisposer}          Disposer for the CSS definition
         */
        /* harmony default export */ __webpack_exports__["default"] = (function (prefix) {
            if (!prefix) {
                prefix = "ampopup";
            }
            var counter = rules.insertKeyIfEmpty(prefix, function () {
                var disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MultiDisposer"]([
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + prefix, {
                        //"width": "100%",
                        //"height": "100%",
                        "overflow": "visible",
                        "position": "absolute",
                        "top": "0",
                        "left": "0",
                        "z-index": "2000"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + prefix + "-curtain", {
                        "width": "100%",
                        "height": "100%",
                        "position": "absolute",
                        "top": "0",
                        "left": "0",
                        "z-index": "2001",
                        "background": "#fff",
                        "opacity": "0.5"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + prefix + "-title", {
                        "font-weight": "bold",
                        "font-size": "120%"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + prefix + "-content", {
                        /*"width": "100%",
                        "height": "100%",*/
                        "padding": "1em 2em",
                        "background": "rgb(255, 255, 255);",
                        "background-color": "rgba(255, 255, 255, 0.8)",
                        "display": "inline-block",
                        "position": "absolute",
                        "top": "0",
                        "left": "0",
                        "max-width": "90%",
                        "max-height": "90%",
                        "overflow": "auto",
                        "z-index": "2002"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + prefix + "-close", {
                        "display": "block",
                        "position": "absolute",
                        "top": "0.3em",
                        "right": "0.3em",
                        "background-color": "rgb(100, 100, 100)",
                        "background": "rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center",
                        "background-size": "80%",
                        "width": "1.2em",
                        "height": "1.2em",
                        "cursor": "pointer"
                    }),
                ]);
                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["CounterDisposer"](function () {
                    rules.removeKey(prefix);
                    disposer.dispose();
                });
            });
            return counter.increment();
        });
        //# sourceMappingURL=PopupCSS.js.map
        /***/ 
    }),
    /* 784 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Interaction", function () { return Interaction; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInteraction", function () { return getInteraction; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(785);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _InteractionObject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(788);
        /* harmony import */ var _InteractionKeyboardObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(790);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(760);
        /* harmony import */ var _Inertia__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(791);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(779);
        /* harmony import */ var _utils_Keyboard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(792);
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(750);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(787);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(756);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(762);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(757);
        /* harmony import */ var _utils_Time__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(793);
        /**
         * Interaction manages all aspects of user interaction - mouse move,
         * click, hover, drag events, touch gestures.
         *
         * [[InteractionObject]] elements that want to use certain events, must attach event
         * listeners to Interaction instance.
         *
         * Interaction itself will not modify [[InteractionObject]] elements, it will be up to
         * those elements to handle interaction information received via event triggers.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
        * Interaction manages all aspects of user interaction - mouse move,
        * click, hover, drag events, touch gestures.
        *
        * [[InteractionObject]] elements that want to use certain events, must attach event
        * listeners to Interaction instance.
        *
        * Interaction itself will not modify [[InteractionObject]] elements, it will be up to
        * those elements to handle interaction information received via event triggers.
        *
        * @see {@link IInteractionEvents} for a list of available events
        */
        var Interaction = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Interaction, _super);
            /**
             * Constructor. Sets up universal document-wide move events to handle stuff
             * outside particular chart container.
             */
            function Interaction() {
                var _this = 
                // Call super
                _super.call(this) || this;
                /**
                 * An indicator of global events were already initialized.
                 *
                 * @type {boolean}
                 */
                _this._globalEventsAdded = false;
                /**
                 * Holds which mouse event listeners to use.
                 *
                 * @type {Object}
                 */
                _this._pointerEvents = {
                    "pointerdown": "mousedown",
                    "pointerup": "mouseup",
                    "pointermove": "mousemove",
                    "pointercancel": "mouseup",
                    "pointerover": "mouseover",
                    "pointerout": "mouseout",
                    "wheel": "wheel"
                };
                /**
                 * Indicates if Interaction should use only "pointer" type events, like
                 * "pointermove", available in all modern browsers, ignoring "legacy"
                 * events, like "touchmove".
                 *
                 * @type {boolean}
                 */
                _this._usePointerEventsOnly = false;
                /**
                 * Indicates if passive mode options is supported by this browser.
                 *
                 * @type {boolean}
                 */
                _this._passiveSupported = false;
                /**
                 * Holds list of delayed events
                 *
                 * @type {IDelayedEvent[]}
                 */
                _this._delayedEvents = { out: [] };
                /**
                 * List of objects that current have a pointer hovered over them.
                 *
                 * @type {List<InteractionObject>}
                 */
                _this.overObjects = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * List of objects that currently has a pressed pointer.
                 *
                 * @type {List<InteractionObject>}
                 */
                _this.downObjects = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * List of objects that need mouse position to be reported to them.
                 *
                 * @type {List<InteractionObject>}
                 */
                _this.trackedObjects = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * List of objects that are currently being dragged.
                 *
                 * @type {List<InteractionObject>}
                 */
                _this.transformedObjects = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * Holds all known pointers.
                 *
                 * @type {Dictionary<string, IPointer>}
                 */
                _this.pointers = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_7__["Dictionary"]();
                /**
                 * Inertia options that need to be applied to after element drag, if it's
                 * `inert = true`.
                 *
                 * This is just a default, which can and probably will be overridden by
                 * actual elements.
                 *
                 * @type {Dictionary}
                 */
                _this.inertiaOptions = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_7__["Dictionary"]();
                /**
                 * Default options for click events. These can be overridden in
                 * [[InteractionObject]].
                 *
                 * @type {IHitOptions}
                 */
                _this.hitOptions = {
                    //"holdTime": 1000,
                    "doubleHitTime": 300,
                    //"delayFirstHit": false,
                    "hitTolerance": 10,
                    "noFocus": true
                };
                /**
                 * Default options for hover events. These can be overridden in
                 * [[InteractionObject]].
                 *
                 * @type {IHoverOptions}
                 */
                _this.hoverOptions = {
                    "touchOutBehavior": "leave",
                    "touchOutDelay": 1000
                };
                /**
                 * Default options for detecting a swipe gesture. These can be overridden in
                 * [[InteractionObject]].
                 *
                 * @type {ISwipeOptions}
                 */
                _this.swipeOptions = {
                    "time": 500,
                    "verticalThreshold": 75,
                    "horizontalThreshold": 30
                };
                /**
                 * Default options for keyboard operations. These can be overridden in
                 * [[InteractionObject]].
                 *
                 * @type {IKeyboarOptions}
                 */
                _this.keyboardOptions = {
                    "speed": 0.1,
                    "accelleration": 1.2,
                    "accellerationDelay": 2000
                };
                // Set class name
                _this.className = "Interaction";
                // Create InteractionObject for <body>
                _this.body = _this.getInteraction(document.body);
                _this._disposers.push(_this.body);
                // Detect browser capabilities and determine what event listeners to use
                if (window.hasOwnProperty("PointerEvent")) {
                    // IE10+/Edge without touch controls enabled
                    _this._pointerEvents.pointerdown = "pointerdown";
                    _this._pointerEvents.pointerup = "pointerup";
                    _this._pointerEvents.pointermove = "pointermove";
                    _this._pointerEvents.pointercancel = "pointercancel";
                    _this._pointerEvents.pointerover = "pointerover";
                    _this._pointerEvents.pointerout = "pointerout";
                    //this._usePointerEventsOnly = true;
                }
                else if (window.hasOwnProperty("MSPointerEvent")) {
                    // IE9
                    _this._pointerEvents.pointerdown = "MSPointerDown";
                    _this._pointerEvents.pointerup = "MSPointerUp";
                    _this._pointerEvents.pointermove = "MSPointerMove";
                    _this._pointerEvents.pointercancel = "MSPointerUp";
                    _this._pointerEvents.pointerover = "MSPointerOver";
                    _this._pointerEvents.pointerout = "MSPointerOut";
                    //this._usePointerEventsOnly = true;
                }
                else {
                    // uses defaults for normal browsers
                }
                // Detect proper mouse wheel events
                if ("onwheel" in document.createElement("div")) {
                    // Modern browsers
                    _this._pointerEvents.wheel = "wheel";
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](document.onmousewheel)) {
                    // Webkit and IE support at least "mousewheel"
                    _this._pointerEvents.wheel = "mousewheel";
                }
                else {
                    // The rest of the legacy browsers
                    _this._pointerEvents.wheel = "DOMMouseScroll";
                }
                // Set up default inertia options
                _this.inertiaOptions.setKey("move", {
                    "time": 100,
                    "duration": 500,
                    "factor": 1,
                    "easing": _utils_Ease__WEBPACK_IMPORTED_MODULE_12__["polyOut3"]
                });
                _this.inertiaOptions.setKey("resize", {
                    "time": 100,
                    "duration": 500,
                    "factor": 1,
                    "easing": _utils_Ease__WEBPACK_IMPORTED_MODULE_12__["polyOut3"]
                });
                // Check for passive mode support
                try {
                    var target_1 = _this;
                    var options = Object.defineProperty({}, "passive", {
                        get: function () {
                            target_1._passiveSupported = true;
                        }
                    });
                    window.addEventListener("test", options, options);
                    window.removeEventListener("test", options, options);
                }
                catch (err) {
                    _this._passiveSupported = false;
                }
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Interaction.prototype.debug = function () { };
            /**
             * ==========================================================================
             * Processing
             * ==========================================================================
             * @hidden
             */
            /**
             * Sets up global events.
             *
             * We need this so that we can track drag movement beyond chart's container.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.addGlobalEvents = function () {
                var _this = this;
                if (!this._globalEventsAdded) {
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, this._pointerEvents.pointerdown, function (ev) { _this.handleGlobalPointerDown(ev); }));
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, this._pointerEvents.pointermove, function (ev) { _this.handleGlobalPointerMove(ev); }));
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, this._pointerEvents.pointerup, function (ev) { _this.handleGlobalPointerUp(ev); }));
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, this._pointerEvents.pointercancel, function (ev) { _this.handleGlobalPointerUp(ev, true); }));
                    // No need to duplicate events for hubrid systems that support both
                    // pointer events and touch events. Touch events are need only for
                    // some touch-only systems, like Mobile Safari.
                    if (!this._usePointerEventsOnly) {
                        this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, "touchstart", function (ev) { _this.handleGlobalTouchStart(ev); }));
                        this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, "touchmove", function (ev) { _this.handleGlobalTouchMove(ev); }));
                        this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, "touchend", function (ev) { _this.handleGlobalTouchEnd(ev); }));
                    }
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, "keydown", function (ev) { _this.handleGlobalKeyDown(ev); }));
                    this._disposers.push(Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(document, "keyup", function (ev) { _this.handleGlobalKeyUp(ev); }));
                    this._globalEventsAdded = true;
                }
            };
            /**
             * Sets if [[InteractionObject]] is clickable.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject} io [[InteractionObject]] instance
             */
            Interaction.prototype.processClickable = function (io) {
                // Add or remove touch events
                this.processTouchable(io);
            };
            /**
             * Sets if [[InteractionObject]] is hoverable.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject} io [[InteractionObject]] instance
             */
            Interaction.prototype.processHoverable = function (io) {
                var _this = this;
                if (io.hoverable || io.trackable) {
                    // Add global events
                    this.addGlobalEvents();
                    // Add hover styles
                    this.applyCursorOverStyle(io);
                    // Add local events
                    if (!io.eventDisposers.hasKey("hoverable")) {
                        io.eventDisposers.setKey("hoverable", new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, this._pointerEvents.pointerout, function (e) { return _this.handlePointerOut(io, e); }),
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, this._pointerEvents.pointerover, function (e) { return _this.handlePointerOver(io, e); })
                        ]));
                    }
                    if (io.trackable) {
                        //sprite.addEventListener("touchmove", this.handleTouchMove, false, this);
                    }
                }
                else {
                    var disposer = io.eventDisposers.getKey("hoverable");
                    if (disposer != null) {
                        disposer.dispose();
                        io.eventDisposers.removeKey("hoverable");
                    }
                }
                // Add or remove touch events
                this.processTouchable(io);
            };
            /**
             * Sets up [[InteractionObject]] as movable. Movable can be any
             * transformation, e.g. drag, swipe, resize, track.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processMovable = function (io) {
                // Add unified events
                if (io.draggable || io.swipeable || io.trackable || io.resizable) {
                    // Prep the element
                    if (!this.isGlobalElement(io)) {
                        this.prepElement(io);
                    }
                    // Add hover styles
                    this.applyCursorOverStyle(io);
                }
                // Add or remove touch events
                this.processTouchable(io);
            };
            /**
             * Checks if [[InteractionObject]] is trackable and sets relative events.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processTrackable = function (io) {
                this.processHoverable(io);
                this.processMovable(io);
                if (io.trackable) {
                    this.trackedObjects.moveValue(io);
                }
                else {
                    this.trackedObjects.removeValue(io);
                }
            };
            /**
             * Checks if [[InteractionObject]] is draggable.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processDraggable = function (io) {
                this.processMovable(io);
            };
            /**
             * Checks if [[InteractionObject]] is swipeable and sets relative events.
             *
             * A swipe event is triggered when a horizontal drag of 75px or more (and
             * less than 30px vertically) occurs within 700 milliseconds. This can be
             * overridden in sprites [[swipeOptions]].
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processSwipeable = function (io) {
                this.processMovable(io);
            };
            /**
             * Checks if [[InteractionObject]] is resizable and attaches required events
             * to it.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processResizable = function (io) {
                this.processMovable(io);
            };
            /**
             * Checks if [[InteractionObject]] is supposed to capture mouse wheel events
             * and prepares it to catch those events.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processWheelable = function (io) {
                var _this = this;
                if (io.wheelable) {
                    //io.hoverable = true;
                    if (!io.eventDisposers.hasKey("wheelable")) {
                        io.eventDisposers.setKey("wheelable", new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, this._pointerEvents.wheel, function (e) { return _this.handleMouseWheel(io, e); }),
                            io.events.on("out", function (e) {
                                if (io.wheelable) {
                                    _this.unlockWheel();
                                }
                            }),
                            io.events.on("over", function (e) {
                                if (io.wheelable) {
                                    _this.lockWheel();
                                }
                            })
                        ]));
                    }
                }
                else {
                    var disposer = io.eventDisposers.getKey("wheelable");
                    if (disposer != null) {
                        disposer.dispose();
                        io.eventDisposers.removeKey("wheelable");
                    }
                }
            };
            /**
             * Checks if [[InteractionObject]] is focusable. A focusable element is an
             * element that will be highlighted when users presses TAB key. If the
             * element is focusable, this function will attach relative focus/blur
             * events to it.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processFocusable = function (io) {
                var _this = this;
                if (io.focusable === true && (io.tabindex > -1)) {
                    if (!io.eventDisposers.hasKey("focusable")) {
                        io.eventDisposers.setKey("focusable", new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, "focus", function (e) { return _this.handleFocus(io, e); }),
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, "blur", function (e) { return _this.handleBlur(io, e); }),
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, this._pointerEvents.pointerdown, function (e) { return _this.handleFocusBlur(io, e); }),
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, "touchstart", function (e) { return _this.handleFocusBlur(io, e); }, this._passiveSupported ? { passive: false } : false)
                        ]));
                    }
                }
                else {
                    var disposer = io.eventDisposers.getKey("focusable");
                    if (disposer != null) {
                        disposer.dispose();
                        io.eventDisposers.removeKey("focusable");
                    }
                }
            };
            /**
             * Checks if [[InteractionObject]] is "touchable". It means any interaction
             * whatsoever: mouse click, touch screen tap, swipe, drag, resize, etc.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             */
            Interaction.prototype.processTouchable = function (io) {
                var _this = this;
                // Add unified events
                if (io.clickable || io.hoverable || io.trackable || io.draggable || io.swipeable || io.resizable) {
                    // Add global events
                    this.addGlobalEvents();
                    // Add local events
                    if (!io.eventDisposers.hasKey("touchable")) {
                        io.eventDisposers.setKey("touchable", new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, this._pointerEvents.pointerdown, function (e) { return _this.handlePointerDown(io, e); }),
                            Object(_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["addEventListener"])(io.element, "touchstart", function (e) { return _this.handleTouchDown(io, e); }, this._passiveSupported ? { passive: false } : false)
                        ]));
                    }
                }
                else {
                    var disposer = io.eventDisposers.getKey("touchable");
                    if (disposer != null) {
                        disposer.dispose();
                        io.eventDisposers.removeKey("touchable");
                    }
                }
            };
            /**
             * ==========================================================================
             * Non-pointer events
             * ==========================================================================
             * @hidden
             */
            /**
             * Dispatches "focus" event when element gains focus.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             * @param {FocusEvent}         ev  Original event
             */
            Interaction.prototype.handleFocus = function (io, ev) {
                if (!io.focusable) {
                    ev.preventDefault();
                    return;
                }
                io.isFocused = true;
                if (io.events.isEnabled("focus") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "focus",
                        target: io,
                        event: ev
                    };
                    io.events.dispatchImmediately("focus", imev);
                }
            };
            /**
             * Used by regular click events to prevent focus if "noFocus" is set.
             *
             * This should not be called by "focus" handlers.
             *
             * @param {InteractionObject}  io  Element
             * @param {MouseEvent | TouchEvent}         ev  Original event
             */
            Interaction.prototype.handleFocusBlur = function (io, ev) {
                if (io.focusable !== false && this.getHitOption(io, "noFocus")) {
                    /*if (ev.cancelable) {
                        ev.preventDefault();
                    }*/
                    //this.setTimeout($dom.blur, 1);
                    io.events.once("focus", _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["blur"]);
                }
            };
            /**
             * Dispatches "blur" event when element loses focus.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             * @param {FocusEvent}         ev  Original event
             */
            Interaction.prototype.handleBlur = function (io, ev) {
                if (!io.focusable) {
                    ev.preventDefault();
                    return;
                }
                io.isFocused = false;
                if (io.events.isEnabled("blur") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "blur",
                        target: io,
                        event: ev
                    };
                    io.events.dispatchImmediately("blur", imev);
                }
            };
            /**
             * ==========================================================================
             * Global keyboard-related even handlers
             * ==========================================================================
             * @hidden
             */
            /**
             * Checks if there is an item that has currently focus and that they key is
             * one of the directional keys. If both of the conditions are true, it
             * creates an object to simulate movement of dragable element with keyboard.
             *
             * @ignore Exclude from docs
             * @param {KeyboardEvent} ev An original keyboard event
             */
            Interaction.prototype.handleGlobalKeyDown = function (ev) {
                if (this.focusedObject) {
                    if (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_10__["keyboard"].isKey(ev, "esc")) {
                        // ESC removes focus
                        _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["blur"]();
                    }
                    else if (this.focusedObject.draggable && _utils_Keyboard__WEBPACK_IMPORTED_MODULE_10__["keyboard"].isKey(ev, ["up", "down", "left", "right"])) {
                        // Prevent scrolling of the document
                        ev.preventDefault();
                        // Get focused object
                        var io = this.focusedObject;
                        // Get particular key
                        var disposerKey = "interactionKeyboardObject";
                        // If such disposer already exists we know the event is going on so we
                        // just move on
                        if (io.eventDisposers.hasKey(disposerKey)) {
                            return;
                        }
                        // Create a keyboard mover
                        var ko = new _InteractionKeyboardObject__WEBPACK_IMPORTED_MODULE_6__["InteractionKeyboardObject"](io, ev);
                        io.eventDisposers.setKey(disposerKey, ko);
                        switch (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_10__["keyboard"].getEventKey(ev)) {
                            case "up":
                                ko.directionY = -1;
                                break;
                            case "down":
                                ko.directionY = 1;
                                break;
                            case "left":
                                ko.directionX = -1;
                                break;
                            case "right":
                                ko.directionX = 1;
                                break;
                        }
                    }
                }
            };
            /**
             * Dispatches related events when the keyboard key is realeasd.
             *
             * @ignore Exclude from docs
             * @param {KeyboardEvent} ev An original keyboard event
             */
            Interaction.prototype.handleGlobalKeyUp = function (ev) {
                var disposerKey = "interactionKeyboardObject";
                if (this.focusedObject) {
                    var disposer = this.focusedObject.eventDisposers.getKey(disposerKey);
                    if (disposer != null) {
                        // Prevent scrolling of the document
                        ev.preventDefault();
                        // Dispose stuff
                        disposer.dispose();
                        this.focusedObject.eventDisposers.removeKey(disposerKey);
                    }
                }
            };
            /**
             * ==========================================================================
             * Global pointer-related even handlers
             * ==========================================================================
             * @hidden
             */
            /**
             * Handler for a global "pointermove" event.
             *
             * @ignore Exclude from docs
             * @param {MouseEvent} ev Event object
             */
            Interaction.prototype.handleGlobalPointerMove = function (ev) {
                //this.log("[RAW] (global)", ev);
                // Get pointer
                var pointer = this.getPointer(ev);
                // Update current point position
                pointer.point = this.getPointerPoint(ev);
                // Prepare and fire global event
                if (this.events.isEnabled("track") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "track",
                        target: this,
                        event: ev,
                        pointer: pointer
                    };
                    this.events.dispatchImmediately("track", imev);
                }
                // Track
                this.addBreadCrumb(pointer, pointer.point);
                // Process further
                this.handleGlobalMove(pointer, ev);
            };
            /**
             * Handler for a global "pointerdown" event.
             *
             * @ignore Exclude from docs
             * @param {MouseEvent} ev Event object
             */
            Interaction.prototype.handleGlobalPointerDown = function (ev) {
                //this.log("[RAW] (global)", ev);
                // Remove delayed hovers
                //console.log("Running processDelayed fom handleGlobalPointerDown")
                this.processDelayed();
                // Get pointer
                var pointer = this.getPointer(ev);
                // Prepare and fire global event
                if (this.events.isEnabled("down") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "down",
                        target: this,
                        event: ev,
                        pointer: pointer
                    };
                    this.events.dispatchImmediately("down", imev);
                }
            };
            /**
             * Prevents touch action from firing.
             *
             * @ignore Exclude from docs
             * @param {MouseEvent} ev Event
             */
            Interaction.prototype.preventTouchAction = function (ev) {
                if (!ev.defaultPrevented) {
                    ev.preventDefault();
                }
            };
            /**
             * Handler for a global "pointerup" event.
             *
             * @ignore Exclude from docs
             * @param {MouseEvent} ev Event object
             */
            Interaction.prototype.handleGlobalPointerUp = function (ev, cancelled) {
                //this.log("[RAW] (global)", ev);
                if (cancelled === void 0) {
                    cancelled = false;
                }
                // Get pointer
                var pointer = this.getPointer(ev);
                // Prepare and fire global event
                if (this.events.isEnabled("up") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "up",
                        target: this,
                        event: ev,
                        pointer: pointer
                    };
                    this.events.dispatchImmediately("up", imev);
                }
                // Process further
                this.handleGlobalUp(pointer, ev, cancelled);
            };
            /**
         * ==========================================================================
         * Global touch-related even handlers
         * ==========================================================================
         */
            /**
             * Handler for a global "touchmove" event.
             *
             * @ignore Exclude from docs
             * @param {TouchEvent} ev Event object
             */
            Interaction.prototype.handleGlobalTouchMove = function (ev) {
                //this.log("[RAW] (global)", ev);
                // Stop further propagation so we don't get multiple triggers on hybrid
                // devices (both mouse and touch capabilities)
                /*ev.stopPropagation();
                if (ev.defaultPrevented) {
                    ev.preventDefault();
                }*/
                // Process each changed touch point
                for (var i = 0; i < ev.changedTouches.length; i++) {
                    // Get pointer
                    var pointer = this.getPointer(ev.changedTouches[i]);
                    // Update current point position
                    pointer.point = this.getPointerPoint(ev.changedTouches[i]);
                    // Prepare and fire global event
                    if (this.events.isEnabled("track") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "track",
                            target: this,
                            event: ev,
                            pointer: pointer
                        };
                        this.events.dispatchImmediately("track", imev);
                    }
                    // Track
                    this.addBreadCrumb(pointer, pointer.point);
                    // Process further
                    this.handleGlobalMove(pointer, ev);
                }
            };
            /**
             * Handler for a global "touchstart" event.
             *
             * @ignore Exclude from docs
             * @param {TouchEvent} ev Event object
             */
            Interaction.prototype.handleGlobalTouchStart = function (ev) {
                //this.log("[RAW] (global)", ev);
                // Remove delayed hovers
                //console.log("Running processDelayed fom handleGlobalTouchStart")
                this.processDelayed();
                // Process each changed touch point
                for (var i = 0; i < ev.changedTouches.length; i++) {
                    // Get pointer
                    var pointer = this.getPointer(ev.changedTouches[i]);
                    // Prepare and fire global event
                    if (!this._usePointerEventsOnly && this.events.isEnabled("down") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "down",
                            target: this,
                            event: ev,
                            pointer: pointer
                        };
                        this.events.dispatchImmediately("down", imev);
                    }
                }
            };
            /**
             * Handler for a global "touchend" event.
             *
             * @ignore Exclude from docs
             * @param {TouchEvent} ev Event object
             */
            Interaction.prototype.handleGlobalTouchEnd = function (ev) {
                //this.log("[RAW] (global)", ev);
                // Stop further propagation so we don't get multiple triggers on hybrid
                // devices (both mouse and touch capabilities)
                /*ev.stopPropagation();
                if (ev.defaultPrevented) {
                    ev.preventDefault();
                }*/
                // Process each changed touch point
                for (var i = 0; i < ev.changedTouches.length; i++) {
                    // Get pointer
                    var pointer = this.getPointer(ev.changedTouches[i]);
                    // Prepare and fire global event
                    if (this.events.isEnabled("up") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "up",
                            target: this,
                            event: ev,
                            pointer: pointer
                        };
                        this.events.dispatchImmediately("up", imev);
                    }
                    // Handle element-related events
                    this.handleGlobalUp(pointer, ev);
                }
            };
            /**
             * ==========================================================================
             * Element-specific pointer-related even handlers
             * ==========================================================================
             * @hidden
             */
            /**
             * Handles event when pointer is over [[InteractionObject]] and button is
             * pressed.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}          io  Element
             * @param {MouseEvent | PointerEvent}  ev  Original event
             */
            Interaction.prototype.handlePointerDown = function (io, ev) {
                //this.log("[RAW]", ev);
                // Stop further propagation so we don't get multiple triggers on hybrid
                // devices (both mouse and touch capabilities)
                //ev.preventDefault();
                //ev.stopPropagation();
                //if (ev.defaultPrevented) {
                //}
                // Get pointer
                var pointer = this.getPointer(ev);
                // Ignore if it's anything but mouse's primary button
                if (!pointer.touch && (ev.which > 1)) {
                    return;
                }
                // Set mouse button
                pointer.button = ev.which;
                // Reset pointer
                this.resetPointer(pointer, ev);
                // Process down
                this.handleDown(io, pointer, ev);
            };
            /**
             * Handles event when [[InteractionObject]] is hovered by a mouse pointer.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             * @param {MouseEvent}         ev  Original event
             */
            Interaction.prototype.handlePointerOver = function (io, ev) {
                //this.log("[RAW]", ev);
                // Get pointer
                var pointer = this.getPointer(ev);
                // Process down
                this.handleOver(io, pointer, ev);
            };
            /**
             * Handles event when [[InteractionObject]] loses hover from a mouse pointer.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             * @param {MouseEvent}         ev  Original event
             */
            Interaction.prototype.handlePointerOut = function (io, ev) {
                //this.log("[RAW]", ev);
                // Get pointer
                var pointer = this.getPointer(ev);
                // Process down
                this.handleOut(io, pointer, ev);
            };
            /**
             * Handles event when mouse wheel is crolled over the [[InteractionObject]].
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io  Element
             * @param {WheelEvent}         ev  Original event
             * @todo Investigate more-cross browser stuff https://developer.mozilla.org/en-US/docs/Web/Events/wheel
             */
            Interaction.prototype.handleMouseWheel = function (io, ev) {
                //this.log("[RAW]", ev);
                // Get pointer
                var pointer = this.getPointer(ev);
                // Update current point position
                pointer.point = this.getPointerPoint(ev);
                // Init delta values
                var deltaX = 0, deltaY = 0;
                // Set up modifier
                // This is needed because FireFox reports wheel deltas in "lines" instead
                // of pixels so we have to approximate pixel value
                var mod = 1;
                if (ev.deltaMode == 1) {
                    mod = 50;
                }
                // Calculate deltas
                if (ev instanceof WheelEvent) {
                    deltaX = Math.round(ev.deltaX) * mod;
                    deltaY = Math.round(ev.deltaY) * mod;
                }
                else {
                    throw new Error("Invalid event type");
                }
                // Handle the event
                this.handleWheel(io, pointer, deltaX, deltaY, ev);
            };
            /**
             * ==========================================================================
             * Element-specific touch-related even handlers
             * ==========================================================================
             * @hidden
             */
            /**
              * Handles an event when an [[InteractionObject]] is touched on a touch
              * device.
              *
              * @ignore Exclude from docs
              * @param {InteractionObject}  io  Element
              * @param {TouchEvent}         ev  Original event
              */
            Interaction.prototype.handleTouchDown = function (io, ev) {
                //this.log("[RAW]", ev);
                // Stop further propagation so we don't get multiple triggers on hybrid
                // devices (both mouse and touch capabilities)
                this.maybePreventDefault(io, ev);
                // Process each changed touch point
                for (var i = 0; i < ev.changedTouches.length; i++) {
                    // Get pointer
                    var pointer = this.getPointer(ev.changedTouches[i]);
                    // Reset pointer
                    this.resetPointer(pointer, ev.changedTouches[i]);
                    // Process down
                    this.handleDown(io, pointer, ev);
                }
            };
            /**
             * ==========================================================================
             * Universal handlers
             * ==========================================================================
             * @hidden
             */
            /**
             * Handles click/tap. Checks for doublehit.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Interaction object
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleHit = function (io, pointer, ev) {
                // Check if this is a double-hit
                var now = _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]();
                if (io.lastHit && (io.lastHit >= (now - this.getHitOption(io, "doubleHitTime")))) {
                    // Yup - it's a double-hit
                    // Cancel the hit
                    //clearTimeout(io.lastHitPointer.hitTimeout);
                    // If it happened too fast it probably means that hybrid device just
                    // generated two events for the same tap
                    if ((now - io.lastHit) < 100) {
                        // Ignore
                        return;
                    }
                    // Clear last hit
                    io.lastHit = undefined;
                    io.lastHitPointer = undefined;
                    // Dispatch event
                    if (io.events.isEnabled("doublehit") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "doublehit",
                            target: io,
                            point: pointer.point,
                            event: ev
                        };
                        io.events.dispatchImmediately("doublehit", imev);
                    }
                }
                else {
                    // Log last hit
                    io.lastHit = now;
                    io.lastHitPointer = pointer;
                    if (pointer.button === 3) {
                        // Execute HIT now
                        if (io.events.isEnabled("rightclick") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                            var imev = {
                                type: "rightclick",
                                target: io,
                                event: ev
                            };
                            io.events.dispatchImmediately("rightclick", imev);
                        }
                    }
                    else {
                        if (io.events.isEnabled("hit") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                            var imev = {
                                type: "hit",
                                target: io,
                                event: ev,
                                point: pointer.point
                            };
                            io.events.dispatchImmediately("hit", imev);
                        }
                    }
                }
            };
            /**
             * Handles pointer hovering over [[InteractionObject]].
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Interaction object
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             * @param {boolean}                  soft     Invoked by helper function
             */
            Interaction.prototype.handleOver = function (io, pointer, ev, soft) {
                if (soft === void 0) {
                    soft = false;
                }
                if (!io.hoverable) {
                    return;
                }
                // Remove any delayed outs
                this.processDelayed();
                //this.log("[HANDLER] OVER", ev, io);
                // Add pointer
                io.overPointers.moveValue(pointer);
                // Check if object is not yet hovered
                if (!io.isHover) {
                    // Set element as hovered
                    io.isHover = true;
                    this.overObjects.moveValue(io);
                    // Generate body track event. This is needed so that if element loads
                    // under unmoved mouse cursor, we still need all the actions that are
                    // required to happen to kick in.
                    this.handleTrack(this.body, pointer, ev, true);
                    // Event
                    if (io.events.isEnabled("over") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "over",
                            target: io,
                            event: ev,
                            pointer: pointer
                        };
                        io.events.dispatchImmediately("over", imev);
                    }
                }
            };
            /**
             * Handles when [[InteractionObject]] is no longer hovered.
             *
             * If `soft = true`, this means that method is being invoked by some other
             * code, not hard "out" function, like `handleUp` which implies we need to
             * run additional checks before unhovering the object.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Interaction object
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             * @param {boolean}                  soft     Invoked by helper function
             * @param {boolean}                  force    Force imediate out
             */
            Interaction.prototype.handleOut = function (io, pointer, ev, soft, force) {
                var _this = this;
                if (soft === void 0) {
                    soft = false;
                }
                if (force === void 0) {
                    force = false;
                }
                if (!io.hoverable) {
                    return;
                }
                //this.log("[HANDLER] OUT", ev, io);
                // Remove pointer
                io.overPointers.removeValue(pointer);
                // Check if element is still hovered
                if (io.isHover && (!io.hasDelayedOut || force)) {
                    // Should we run additional checks?
                    if (soft && io.overPointers.length) {
                        //this.log("[HANDLER] failed soft test " + io.overPointers.length, ev, io);
                        // There are still pointers hovering - don't do anything else and
                        // wait until either no over pointers are there or we get a hard out
                        // event.
                        return;
                    }
                    // Should we delay "out" if this is happening on a touch device?
                    if (pointer.touch && !force && !this.old(pointer)) {
                        //this.log("[HANDLER] OUT delaying", ev, io);
                        // This is a touch pointer, and it hasn't moved, let's pretend
                        // the object is still hovered, and act as per "behavior" setting
                        var behavior = this.getHoverOption(io, "touchOutBehavior");
                        if (behavior == "leave") {
                            // Set to "leave", so we do not execute any "out" event.
                            // It will be handled by any other interaction that happens
                            // afterwards.
                            this._delayedEvents.out.push({
                                type: "out",
                                io: io,
                                pointer: pointer,
                                event: ev,
                                keepUntil: _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]() + 500
                            });
                            io.hasDelayedOut = true;
                            return;
                        }
                        else if (behavior == "delay" && this.getHoverOption(io, "touchOutDelay")) {
                            this._delayedEvents.out.push({
                                type: "out",
                                io: io,
                                pointer: pointer,
                                event: ev,
                                keepUntil: _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]() + 500,
                                timeout: this.setTimeout(function () {
                                    _this.handleOut(io, pointer, ev, true);
                                }, this.getHoverOption(io, "touchOutDelay"))
                            });
                            return;
                        }
                        else {
                            // Nothing for "remove" - that's how it works "out-of-the-box"
                        }
                    }
                    //this.log("[HANDLER] OUT unhovering", ev, io);
                    // Set element as not hovered
                    io.isHover = false;
                    this.overObjects.removeValue(io);
                    // Invoke event
                    if (io.events.isEnabled("out") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "out",
                            target: io,
                            event: ev,
                            pointer: pointer
                        };
                        io.events.dispatchImmediately("out", imev);
                    }
                    // Reset object from lefover delayed outs, pointers
                    io.overPointers.clear();
                    io.hasDelayedOut = false;
                    // @todo (clean delayed)
                }
            };
            /**
             * Processes dalyed events, such as "out" event that was initiated for
             * elements by touch.
             */
            Interaction.prototype.processDelayed = function () {
                var delayedEvent;
                while (delayedEvent = this._delayedEvents.out.pop()) {
                    if (delayedEvent.timeout) {
                        delayedEvent.timeout.dispose();
                    }
                    this.handleOut(delayedEvent.io, delayedEvent.pointer, delayedEvent.event, false, true);
                }
            };
            /**
             * Performs tasks on pointer down.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleDown = function (io, pointer, ev) {
                //this.log("[HANDLER] DOWN", ev, io);
                // Need to prevent default event from happening on transformable objects
                this.maybePreventDefault(io, ev);
                // Stop inertia animations if they're currently being played out
                if (io.inert) {
                    this.stopInertia(io);
                }
                // Trigger hover because some touch devices won't trigger over events
                // on their own
                this.handleOver(io, pointer, ev, true);
                // Add pointer to list
                io.downPointers.moveValue(pointer);
                // Apply styles if necessary
                this.applyCursorDownStyle(io, pointer);
                // Check if object is already down
                if (!io.isDown) {
                    // Lose focus if needed
                    if (io.focusable !== false && this.getHitOption(io, "noFocus") && this.focusedObject) {
                        _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["blur"]();
                    }
                    // Set object as hovered
                    io.isDown = true;
                    this.downObjects.moveValue(io);
                    // Prep object for dragging and/or resizing
                    if (io.draggable) {
                        //this.log("[HANDLER] starting drag " + io.draggable, ev, io);
                        this.processDragStart(io, pointer, ev);
                    }
                    if (io.resizable) {
                        this.processResizeStart(io, pointer, ev);
                    }
                }
                // Dispatch "down" event
                if (io.events.isEnabled("down") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "down",
                        target: io,
                        event: ev,
                        pointer: pointer
                    };
                    io.events.dispatchImmediately("down", imev);
                }
            };
            /**
             * Performs tasks on pointer up.
             *
             * @ignore Exclude from docs
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleGlobalUp = function (pointer, ev, cancelled) {
                //this.log("[HANDLER] GLOBAL UP", ev);
                var _this = this;
                if (cancelled === void 0) {
                    cancelled = false;
                }
                // Process all down objects
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.downObjects.backwards().iterator(), function (io) {
                    // Check if this particular pointer is pressing down
                    // on object
                    if (io.downPointers.contains(pointer)) {
                        _this.handleUp(io, pointer, ev, cancelled);
                    }
                });
            };
            /**
             * Handles when [[InteractionObject]] is no longer hovered.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Interaction object
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleUp = function (io, pointer, ev, cancelled) {
                //this.log("[HANDLER] UP", ev, io);
                if (cancelled === void 0) {
                    cancelled = false;
                }
                // Restore cursor style
                this.restoreCursorDownStyle(io, pointer);
                // Remove pointer from the list
                io.downPointers.removeValue(pointer);
                // Trigger out because some touch devices won't trigger out events
                // on their own
                this.handleOut(io, pointer, ev, true);
                // Check if object still down
                if (io.isDown) {
                    // Check if there are no other pointers hovering this element
                    if (io.downPointers.length == 0) {
                        // Set element as no longer down
                        io.isDown = false;
                        this.downObjects.removeValue(io);
                    }
                    // Dispatch "up" event
                    if (io.events.isEnabled("up") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "up",
                            target: io,
                            event: ev,
                            pointer: pointer
                        };
                        io.events.dispatchImmediately("up", imev);
                    }
                    // Check if this was not a cancelled event.
                    // If event was canelled (which might happen if gesture resulted in
                    // navigation or page scroll) there's no point in triggering hit and
                    // other actions.
                    if (!cancelled) {
                        ////this.log("[HANDLER] UP (event triggered)", ev, io);
                        // Handle swiping-related stuff
                        if (io.swipeable && this.swiped(io, pointer)) {
                            // Swiped - nothing else should happen
                            this.handleSwipe(io, pointer, ev);
                            ////this.log("[HANDLER] UP (swipe?)", ev, io);
                        }
                        else {
                            ////this.log("[HANDLER] UP (proceeding) " + io.draggable, ev, io);
                            // Check if it maybe a click
                            if (io.clickable && !this.moved(pointer, this.getHitOption(io, "hitTolerance"))) {
                                this.handleHit(io, pointer, ev);
                            }
                            // Handle inertia
                            if (io.inert && this.moved(pointer, this.getHitOption(io, "hitTolerance"))) {
                                ////this.log("[HANDLER] UP (tarting inertia)", ev, io);
                                this.handleInertia(io, pointer);
                            }
                            else if (io.draggable) {
                                ////this.log("[HANDLER] UP (stopping drag)", ev, io);
                                this.processDragStop(io, pointer, ev);
                            }
                            if (io.resizable) {
                                this.processResizeStop(io, pointer, ev);
                            }
                        }
                    }
                }
            };
            /**
             * Checks if event needs to be prevented on draggable and such items, so that
             * touch gestures like navigation and scroll do not kick in.
             *
             * @param {InteractionObject}        io  Object
             * @param {MouseEvent | TouchEvent}  ev  Event
             */
            Interaction.prototype.maybePreventDefault = function (io, ev) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev) && (io.draggable || io.swipeable || io.trackable || io.resizable) && !this.isGlobalElement(io)) {
                    //this.log("[PREVENT]", ev);
                    ev.preventDefault();
                }
            };
            /**
             * Handles pointer move.
             *
             * @ignore Exclude from docs
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleGlobalMove = function (pointer, ev) {
                var _this = this;
                // Process hovered elements
                // We check if the element became unhovered without reporting the mouseout
                // event. (it happens in some cases)
                if (!pointer.touch) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.overObjects.backwards().iterator(), function (io) {
                        // Is this pointer relevant to element?
                        if (io.overPointers.contains(pointer) && io.hoverable) {
                            // Check if the element is still hovered
                            var reset = false;
                            if (io.element && pointer.lastEvent) {
                                if (!_utils_DOM__WEBPACK_IMPORTED_MODULE_9__["contains"](io.element, pointer.lastEvent.target)) {
                                    reset = true;
                                }
                            }
                            else {
                                reset = true;
                            }
                            if (reset) {
                                _this.handleOut(io, pointer, ev, true);
                            }
                        }
                    });
                }
                // Process down elements
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.transformedObjects.backwards().iterator(), function (io) {
                    // Is this pointer relevant to element?
                    if (io.downPointers.contains(pointer) &&
                        // Swipe still happening?
                        !(io.swipeable && _this.swiping(io, pointer)) &&
                        (io.draggable || io.resizable)) {
                        _this.handleTransform(io, ev);
                    }
                });
                // Process tracked elements
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.trackedObjects.backwards().iterator(), function (io) {
                    // Is this pointer relevant to element?
                    if (!io.overPointers.contains(pointer)) {
                        _this.handleTrack(io, pointer, ev);
                    }
                });
            };
            /**
             * Handles reporting of pointer movement.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io        Element
             * @param {IPointer}                 pointer    Pointer
             * @param {MouseEvent | TouchEvent}  ev         Original event
             * @param {boolean}                  skipCheck  Sould we skip check if cursor actually moved
             */
            Interaction.prototype.handleTrack = function (io, pointer, ev, skipCheck) {
                if (skipCheck === void 0) {
                    skipCheck = false;
                }
                // Do nothing if the cursor did not actually move
                if (!skipCheck && !this.moved(pointer, 0)) {
                    return;
                }
                // Initiate TRACK event
                if (io.events.isEnabled("track") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "track",
                        target: io,
                        event: ev,
                        point: pointer.point,
                        pointer: pointer
                    };
                    io.events.dispatchImmediately("track", imev);
                }
            };
            /**
             * Handles swipe action.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.handleSwipe = function (io, pointer, ev) {
                // We pass in InteractionEvent with shift in mouse coordinates
                // between when the drag started and ended
                if (io.events.isEnabled("swipe") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "swipe",
                        target: io,
                        event: ev
                    };
                    io.events.dispatchImmediately("swipe", imev);
                }
                if (pointer.startPoint.x < pointer.point.x) {
                    if (io.events.isEnabled("swiperight") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "swiperight",
                            target: io,
                            event: ev
                        };
                        io.events.dispatchImmediately("swiperight", imev);
                    }
                }
                else {
                    if (io.events.isEnabled("swipeleft") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "swipeleft",
                            target: io,
                            event: ev
                        };
                        io.events.dispatchImmediately("swipeleft", imev);
                    }
                }
            };
            /**
             * Handles event triggering for wheel rotation.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             * @param {number}             deltaX   Horizontal shift
             * @param {number}             deltaY   Vertical shift
             * @param {WheelEvent}         ev       Original event
             */
            Interaction.prototype.handleWheel = function (io, pointer, deltaX, deltaY, ev) {
                var shift = {
                    x: deltaX,
                    y: deltaY
                };
                // Trigger generic WHEEL event
                if (io.events.isEnabled("wheel") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    io.events.dispatchImmediately("wheel", {
                        type: "wheel",
                        target: io,
                        event: ev,
                        point: pointer.point,
                        shift: shift
                    });
                }
                // Trigger direction-specific events
                // Horizontal
                if (deltaX < 0) {
                    if (io.events.isEnabled("wheelleft") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.events.dispatchImmediately("wheelleft", {
                            type: "wheelleft",
                            target: io,
                            event: ev,
                            point: pointer.point,
                            shift: shift
                        });
                    }
                }
                else if (deltaX > 0) {
                    if (io.events.isEnabled("swiperight") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.events.dispatchImmediately("wheelright", {
                            type: "wheelright",
                            target: io,
                            event: ev,
                            point: pointer.point,
                            shift: shift
                        });
                    }
                    // Vertical
                }
                else if (deltaY < 0) {
                    if (io.events.isEnabled("wheelup") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.events.dispatchImmediately("wheelup", {
                            type: "wheelup",
                            target: io,
                            event: ev,
                            point: pointer.point,
                            shift: shift
                        });
                    }
                }
                else if (deltaY > 0) {
                    if (io.events.isEnabled("wheeldown") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.events.dispatchImmediately("wheeldown", {
                            type: "wheeldown",
                            target: io,
                            event: ev,
                            point: pointer.point,
                            shift: shift
                        });
                    }
                }
            };
            /**
             * Initiates inertia checking sub-routines for different movement types:
             * drag, resize.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}   sprite
             * @param {IPointer}            pointer
             */
            Interaction.prototype.handleInertia = function (io, pointer) {
                if (io.draggable && io.downPointers.length === 0) {
                    this.handleMoveInertia(io, pointer);
                }
                if (io.resizable && io.downPointers.length > 1) {
                    this.handleResizeInertia(io, pointer);
                }
            };
            /**
             * Continues moving the element to simulate the effect of inertia. Happens
             * when `inert` and `draggable` object is dragged and then released.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.handleMoveInertia = function (io, pointer) {
                var interaction = io;
                var type = "move";
                var point = {
                    "x": pointer.point.x,
                    "y": pointer.point.y
                };
                var startPoint = {
                    "x": pointer.startPoint.x,
                    "y": pointer.startPoint.y
                };
                // Init inertia object
                var inertia = new _Inertia__WEBPACK_IMPORTED_MODULE_8__["Inertia"](interaction, type, point, startPoint);
                // Get inertia data
                var ref = this.getTrailPoint(pointer, _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]() - this.getInertiaOption(io, "move", "time"));
                if (typeof ref === "undefined") {
                    this.processDragStop(io, pointer, pointer.lastUpEvent);
                    return;
                }
                // Init animation options
                var factor = this.getInertiaOption(io, "move", "factor");
                var animationOptions = [{
                        "to": pointer.point.x + (pointer.point.x - ref.point.x) * factor,
                        "property": "x"
                    }, {
                        "to": pointer.point.y + (pointer.point.y - ref.point.y) * factor,
                        "property": "y"
                    }];
                // Start animation
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["Animation"](inertia, animationOptions, this.getInertiaOption(io, "move", "duration"), this.getInertiaOption(io, "move", "easing")).start();
                this._disposers.push(animation.events.on("animationended", function (ev) {
                    inertia.done();
                }));
                // Add inertia object
                io.inertias.setKey("move", inertia);
            };
            /**
             * Continues resizing of a `resizable` element after it is resized and
             * released.
             *
             * **NOTE:** this is is just a placeholder function. No actual fucntionality
             * is implemented, yet.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.handleResizeInertia = function (io, pointer) {
                // Some day, folks. Some day...
            };
            /**
             * Recalculates element's position and size based on position of
             * all its related pointers.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io  Element
             * @param {MouseEvent | TouchEvent}  ev  Original event
             */
            Interaction.prototype.handleTransform = function (io, ev) {
                // Get primary pointer and its respective points
                var pointer1 = io.downPointers.getIndex(0);
                var point1 = null;
                var startPoint1 = null;
                if (pointer1) {
                    point1 = pointer1.point;
                    startPoint1 = pointer1.startPoint;
                }
                // Init secondary pointer
                var pointer2;
                var point2;
                var startPoint2;
                // Use center of the sprite to simulate "second" point of touch
                point2 = {
                    "x": io.originalPosition.x,
                    "y": io.originalPosition.y
                };
                startPoint2 = point2;
                // Determine if it's a sinngle pointer or multi
                var singlePoint = true;
                for (var i = 1; i < io.downPointers.length; i++) {
                    // Get pointer
                    var nextPointer = io.downPointers.getIndex(i);
                    // Doublecheck if it's not the same pointer by comparing original position
                    if (startPoint1.x != nextPointer.startPoint.x || startPoint1.y != nextPointer.startPoint.y) {
                        // Several pointers down
                        singlePoint = false;
                        // Get second pointer
                        pointer2 = nextPointer;
                        point2 = pointer2.point;
                        startPoint2 = pointer2.startPoint;
                        // Stop looking
                        break;
                    }
                }
                // Primary touch point moved?
                var pointer1Moved = pointer1 && this.moved(pointer1, 0);
                // Report DRAG_START if necessary
                if (io.draggable && pointer1 && pointer1.dragStartEvents && pointer1.dragStartEvents.length && pointer1Moved) {
                    if (io.events.isEnabled("dragstart") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.events.dispatchImmediately("dragstart", pointer1.dragStartEvents.shift());
                    }
                    //delete pointer1.dragStartEvents;
                }
                // Determine what we do in order of superiority
                if (singlePoint && io.draggable) {
                    // We have only one pointer and the Sprite is draggable
                    // There's nothing else to be done - just move it
                    this.handleTransformMove(io, point1, startPoint1, ev, pointer1Moved);
                }
                else {
                    // Check if second touch point moved
                    var pointer2Moved = pointer2 && this.moved(pointer2, 0);
                    if (io.draggable && io.resizable) {
                        //this.handleTransformAll(io, point1, startPoint1, point2, startPoint2, ev, pointer1Moved && pointer2Moved);
                        this.handleTransformMove(io, point1, startPoint1, ev, pointer1Moved && pointer2Moved);
                        this.handleTransformResize(io, point1, startPoint1, point2, startPoint2, ev, pointer1Moved && pointer2Moved);
                    }
                    else {
                        if (io.draggable) {
                            this.handleTransformMove(io, point1, startPoint1, ev, pointer1Moved);
                        }
                        if (io.resizable) {
                            this.handleTransformResize(io, point1, startPoint1, point2, startPoint2, ev, pointer1Moved && pointer2Moved);
                        }
                    }
                }
            };
            /**
             * Handles movement of the dragged element.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}                        io            Element
             * @param {IPoint}                                   point         Current point of the pointer
             * @param {IPoint}                                   startPoint    Starting point of the pointer
             * @param {MouseEvent | TouchEvent | KeyboardEvent}  ev            Original event
             * @param {boolean}                                  pointerMoved  Did pointer move?
             */
            Interaction.prototype.handleTransformMove = function (io, point, startPoint, ev, pointerMoved) {
                if (pointerMoved) {
                    if (io.events.isEnabled("drag") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "drag",
                            target: io,
                            event: ev,
                            shift: {
                                "x": point.x - startPoint.x,
                                "y": point.y - startPoint.y
                            },
                            startPoint: startPoint,
                            point: point
                        };
                        io.events.dispatchImmediately("drag", imev);
                    }
                }
            };
            /**
             * Handles resizing of the element.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io            Element
             * @param {IPoint}                   point1        Current position of reference point #1
             * @param {IPoint}                   startPoint1   Original position of reference point #1
             * @param {IPoint}                   point2        Current position of reference point #2
             * @param {IPoint}                   startPoint2   Original position of reference point #2
             * @param {MouseEvent | TouchEvent}  ev            Original event
             * @param {boolean}                  pointerMoved  Did pointer move?
             */
            Interaction.prototype.handleTransformResize = function (io, point1, startPoint1, point2, startPoint2, ev, pointerMoved) {
                if (io.events.isEnabled("resize") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                    var imev = {
                        type: "resize",
                        target: io,
                        event: ev,
                        scale: _utils_Math__WEBPACK_IMPORTED_MODULE_13__["getScale"](point1, startPoint1, point2, startPoint2),
                        startPoint1: startPoint1,
                        point1: point1,
                        startPoint2: startPoint2,
                        point2: point2
                    };
                    io.events.dispatchImmediately("resize", imev);
                }
            };
            /**
             * Handles all the preparations of the element when it starts to be dragged.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.processDragStart = function (io, pointer, ev) {
                // Add to draggedObjects
                this.transformedObjects.moveValue(io);
                // Report "dragstart"
                var imev = {
                    type: "dragstart",
                    target: io,
                    event: ev
                };
                // Log object that we are starting to drag, so we can check against and
                // avoid hovers on other objects that might be in the path of movement.
                if (pointer) {
                    pointer.dragTarget = io;
                    //pointer.startPoint = pointer.point;
                }
                /**
                 * If pointer is set we will not fire the event until the pointer has
                 * actually moved. If it's not set we don't have to wait for anything, so we
                 * just fire off the event right away.
                 */
                if (pointer && pointer.dragStartEvents) {
                    pointer.dragStartEvents.push(imev);
                }
                else {
                    if (!_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        io.dispatchImmediately("dragstart", imev);
                    }
                }
            };
            /**
             * Finishes up element drag operation.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.processDragStop = function (io, pointer, ev) {
                // Pointer set?
                if (!pointer) {
                    pointer = this.getDragPointer(io);
                }
                // Unset drag object
                if (pointer) {
                    pointer.dragTarget = undefined;
                }
                // Removed from transformedObjects
                this.transformedObjects.removeValue(io);
                // Unlock document
                //this.unlockDocument();
                // Report dragstop
                if (!pointer || this.moved(pointer, 0)) {
                    if (io.events.isEnabled("dragstop") && !_System__WEBPACK_IMPORTED_MODULE_11__["system"].isPaused) {
                        var imev = {
                            type: "dragstop",
                            target: io
                        };
                        io.events.dispatchImmediately("dragstop", imev);
                    }
                }
            };
            /**
             * Handles all the preparations of the element when it starts to be resized.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.processResizeStart = function (io, pointer, ev) {
                // Add to draggedObjects
                this.transformedObjects.moveValue(io);
            };
            /**
             * Finishes up element drag operation.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}        io       Element
             * @param {IPointer}                 pointer  Pointer
             * @param {MouseEvent | TouchEvent}  ev       Original event
             */
            Interaction.prototype.processResizeStop = function (io, pointer, ev) {
                // Removed from transformedObjects
                this.transformedObjects.removeValue(io);
            };
            /**
             * ==========================================================================
             * Controls for InteractionObjects initiating directly
             * ==========================================================================
             * @hidden
             */
            /**
             * Manually triggers drag start on the element. Could be useful in cases
             * where tracking or dragging one element can also influence dragging another
             * element.
             *
             * Passing in `pointer` reference is advisable. If not passed in it will try
             * to determine which pointer to attach to. However, it's better to specify
             * it explicitly.
             *
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.dragStart = function (io, pointer) {
                if (pointer || (pointer = this.getDragPointer(io))) {
                    this.handleDown(io, pointer, pointer.lastDownEvent);
                }
            };
            /**
             * Manually ends drag on the element.
             *
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.dragStop = function (io, pointer) {
                if (pointer || (pointer = this.getDragPointer(io))) {
                    this.handleGlobalUp(pointer, pointer.lastUpEvent);
                }
            };
            /**
             * This method uses a fuzzy logic to find the pointer to be used for dragging.
             * Beware that this is not a rock-solid solution. If there are a few objects
             * being dragged at the same time, you may get unexepected results.
             *
             * @param  {InteractionObject}   io  InteractionObject to get pointers from
             * @return {Optional<IPointer>}      Pointer currently being used for dragging
             */
            Interaction.prototype.getDragPointer = function (io) {
                if (io) {
                    // InteractionObject is supplied
                    // Use it's first down pointer
                    return io.downPointers.getIndex(0);
                }
                else if (this.transformedObjects.length) {
                    // Use first dragged object
                    return this.getDragPointer(this.transformedObjects.getIndex(0));
                }
                else {
                    return undefined;
                }
            };
            /**
             * ==========================================================================
             * Utils
             * ==========================================================================
             * @hidden
             */
            /**
             * Returns pointer id for the given event object.
             *
             * @param  {any}     ev  Event
             * @return {string}      Pointer ID
             */
            Interaction.prototype.getPointerId = function (ev) {
                var id = "";
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.identifier)) {
                    id = "" + ev.identifier;
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.pointerId)) {
                    id = "" + ev.pointerId;
                }
                else {
                    id = "m";
                }
                return id.replace("-", "");
            };
            /**
             * Returns a cursor position of the event.
             *
             * @param  {MouseEvent | Touch}  ev  Original event
             * @return {IPoint}                  Event point
             */
            Interaction.prototype.getPointerPoint = function (ev) {
                return {
                    "x": ev.clientX,
                    "y": ev.clientY
                };
            };
            /**
             * Returns [[Pointer]] object that is associated with the Event.
             *
             * If no such [[Pointer]] object exists, it is created.
             *
             * @param  {MouseEvent | Touch}  ev  Event
             * @return {IPointer}                Pointer
             */
            Interaction.prototype.getPointer = function (ev) {
                // Get pointer id
                var id = this.getPointerId(ev);
                // Get current coordinates
                var point = this.getPointerPoint(ev);
                // Look for the pointer in the Dictionary if it maybe already exists
                var pointer;
                if (this.pointers.hasKey(id)) {
                    // We already have such pointer
                    pointer = this.pointers.getKey(id);
                    // We need this, because Edge reuses pointer ids across touch and mouse
                    pointer.touch = this.isPointerTouch(ev);
                    // Reset pointer
                    //pointer.point = point;
                }
                else {
                    // Init pointer
                    pointer = {
                        "id": id,
                        //"touch": !(ev instanceof MouseEvent) || ((<any>ev).pointerType && (<any>ev).pointerType != "pointer"),
                        //"touch": !(ev instanceof MouseEvent) || ((<any>ev).pointerType && (<any>ev).pointerType != "mouse"),
                        "touch": this.isPointerTouch(ev),
                        "startPoint": point,
                        "startTime": _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"](),
                        "point": point,
                        "track": [],
                        "swipeCanceled": false,
                        "dragStartEvents": []
                    };
                    // Add first breadcrumb
                    this.addBreadCrumb(pointer, point);
                    // Add for re-use later
                    this.pointers.setKey(id, pointer);
                }
                // Log last event
                pointer.lastEvent = ev;
                return pointer;
            };
            /**
             * Determines if pointer event originated from a touch pointer or mouse.
             *
             * @param  {MouseEvent | Touch}  ev  Original event
             * @return {boolean}                 Touch pointer?
             */
            Interaction.prototype.isPointerTouch = function (ev) {
                if (typeof Touch !== "undefined" && ev instanceof Touch) {
                    return true;
                }
                else if (typeof PointerEvent !== "undefined" && ev instanceof PointerEvent && _utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.pointerType)) {
                    switch (ev.pointerType) {
                        case "touch":
                        case "pen":
                        case 2:
                            return true;
                        case "mouse":
                        case 4:
                            return false;
                        default:
                            return !(ev instanceof MouseEvent);
                    }
                }
                else if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.type)) {
                    if (ev.type.match(/^mouse/)) {
                        return false;
                    }
                }
                return true;
            };
            /**
             * Resets the poiner to original state, i.e. cleans movement information,
             * starting point, etc.
             *
             * @param {IPointer} pointer Pointer
             */
            Interaction.prototype.resetPointer = function (pointer, ev) {
                // Get current coordinates
                var point = this.getPointerPoint(ev);
                ;
                pointer.startTime = _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]();
                pointer.startPoint = { x: point.x, y: point.y };
                pointer.point = { x: point.x, y: point.y };
                pointer.track = [];
                pointer.swipeCanceled = false;
                //clearTimeout(pointer.swipeTimeout);
                //clearTimeout(pointer.holdTimeout);
            };
            /**
             * Adds a "breadcrumb" point to the [[Pointer]] to log its movement path.
             *
             * @param {IPointer}  pointer  Pointer
             * @param {IPoint}    point    Point coordinates
             */
            Interaction.prototype.addBreadCrumb = function (pointer, point) {
                pointer.track.push({
                    "timestamp": _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"](),
                    "point": point
                });
            };
            /**
             * Prepares the document for various touch-related operations.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.lockDocument = function () {
                this.prepElement(this.body);
            };
            /**
             * Restores document functionality.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.unlockDocument = function () {
                if (this.transformedObjects.length == 0) {
                    this.restoreAllStyles(this.body);
                }
            };
            /**
             * Lock element (disable all touch)
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.lockElement = function (io) {
                this.prepElement(io);
            };
            /**
             * Restores element's functionality.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.unlockElement = function (io) {
                this.restoreAllStyles(io);
            };
            /**
             * Locks document's wheel scroll.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.lockWheel = function () {
                window.addEventListener(this._pointerEvents.wheel, this.wheelLockEvent);
            };
            /**
             * Unlocks document's wheel scroll.
             *
             * @ignore Exclude from docs
             */
            Interaction.prototype.unlockWheel = function () {
                window.removeEventListener(this._pointerEvents.wheel, this.wheelLockEvent);
            };
            /**
             * Checks if top element at pointer's position belongs to the SVG.
             *
             * @ignore Exlude from docs
             * @param  {IPointer}       pointer  Pointer
             * @param  {SVGSVGElement}  svg      The <svg> element
             * @param  {id}             id       A unique identifier of the object that is checking for locality
             * @return {boolean}                 Belongs to SVG
             */
            Interaction.prototype.isLocalElement = function (pointer, svg, id) {
                var cached = this.getCache("local_pointer_" + pointer.id);
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](cached)) {
                    return cached;
                }
                var target = document.elementFromPoint(pointer.point.x, pointer.point.y);
                var local = target && (svg === target || _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["contains"](svg, target));
                this.setCache("local_pointer_" + pointer.id + "_" + id, local, 100);
                return local;
            };
            /**
             * A function that cancels mouse wheel scroll.
             *
             * @ignore Exclude from docs
             * @param  {MouseEvent}  ev  Event object
             * @return {boolean}         Returns `false` to cancel
             */
            Interaction.prototype.wheelLockEvent = function (ev) {
                ev.preventDefault();
                return false;
            };
            /**
             * Applies a set of styles to an element. Stores the original styles so they
             * can be restored later.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}           io      Element
             * @param {Dictionary<string, string>}  styles  A Dictionary of style property and values
             */
            Interaction.prototype.prepElement = function (io, permanent) {
                var el = io.element;
                if (el) {
                    // Define possible props
                    var props = [
                        "touchAction", "webkitTouchAction", "MozTouchAction", "MSTouchAction", "msTouchAction", "oTouchAction",
                        "userSelect", "webkitUserSelect", "MozUserSelect", "MSUserSelect", "msUserSelect", "oUserSelect",
                        "touchSelect", "webkitTouchSelect", "MozTouchSelect", "MSTouchSelect", "msTouchSelect", "oTouchSelect",
                        "touchCallout", "webkitTouchCallout", "MozTouchCallout", "MSTouchCallout", "msTouchCallout", "oTouchCallout",
                        "contentZooming", "webkitContentZooming", "MozContentZooming", "MSContentZooming", "msContentZooming", "oContentZooming",
                        "userDrag", "webkitUserDrag", "MozUserDrag", "MSUserDrag", "msUserDrag", "oUserDrag"
                    ];
                    for (var i = 0; i < props.length; i++) {
                        if (props[i] in el.style) {
                            this.setTemporaryStyle(io, props[i], "none");
                        }
                    }
                    // Remove iOS-specific selection;
                    this.setTemporaryStyle(io, "tapHighlightColor", "rgba(0, 0, 0, 0)");
                    //this.setTemporaryStyle(io, "webkitOverflowScrolling", "none");
                }
            };
            /**
             * Returns an option associated with hit events.
             *
             * @ignore Exclude from docs
             * @param  {InteractionObject}  io      Element
             * @param  {string}             option  Option key
             * @return {any}                        Option value
             */
            Interaction.prototype.getHitOption = function (io, option) {
                var res = io.hitOptions[option];
                if (typeof res === "undefined") {
                    res = this.hitOptions[option];
                }
                return res;
            };
            /**
             * Returns an option associated with hover events.
             *
             * @ignore Exclude from docs
             * @param  {InteractionObject}  io      Element
             * @param  {string}             option  Option key
             * @return {any}                        Option value
             */
            Interaction.prototype.getHoverOption = function (io, option) {
                var res = io.hoverOptions[option];
                if (typeof res === "undefined") {
                    res = this.hoverOptions[option];
                }
                return res;
            };
            /**
             * Returns an option associated with swipe events.
             *
             * @ignore Exclude from docs
             * @param  {InteractionObject}  io      Element
             * @param  {string}             option  Option key
             * @return {any}                        Option value
             */
            Interaction.prototype.getSwipeOption = function (io, option) {
                var res = io.swipeOptions[option];
                if (typeof res === "undefined") {
                    res = this.swipeOptions[option];
                }
                return res;
            };
            /**
             * Returns an option for keyboard.
             *
             * @ignore Exclude from docs
             * @param  {InteractionObject}  io      Element
             * @param  {string}             option  Option key
             * @return {any}                        Option value
             */
            Interaction.prototype.getKeyboardOption = function (io, option) {
                var res = io.keyboardOptions[option];
                if (typeof res === "undefined") {
                    res = this.keyboardOptions[option];
                }
                return res;
            };
            /**
             * Returns an option associated with inertia.
             *
             * @ignore Exclude from docs
             * @param  {InteractionObject}  io      Element
             * @param  {InertiaTypes}       type    Inertia type
             * @param  {string}             option  Option key
             * @return {any}                        Option value
             */
            Interaction.prototype.getInertiaOption = function (io, type, option) {
                var options = io.inertiaOptions.getKey(type);
                var res;
                if (options && _utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](options[type])) {
                    res = options[type];
                }
                else {
                    res = this.inertiaOptions.getKey(type)[option];
                }
                return res;
            };
            /**
             * Stops currently going on inertia. Useful if inertia is currently being
             * animated and the object is being interacted with.
             *
             * @param {InteractionObject} io Element
             */
            Interaction.prototype.stopInertia = function (io) {
                var x;
                var inertias = ["move", "resize"];
                for (var i = 0; i < inertias.length; i++) {
                    x = inertias[i];
                    if (io.inertias.hasKey(x)) {
                        var inertia = io.inertias.getKey(x);
                        if (inertia) {
                            inertia.dispose();
                            //io.inertiaAnimations.removeKey(x);
                            //this.processDragStop(io);
                            continue;
                        }
                    }
                }
            };
            /**
             * Check if swiping is currently being performed on an object.
             *
             * @param  {InteractionObject}  io       Element
             * @param  {IPointer}           pointer  Pointer to check
             * @return {boolean}                     `true` if swiping
             */
            Interaction.prototype.swiping = function (io, pointer) {
                var now = _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]();
                if (pointer.swipeCanceled || !io.swipeable) {
                    return false;
                }
                else if ((Math.abs(pointer.startPoint.y - pointer.point.y) < this.getSwipeOption(io, "verticalThreshold")) &&
                    (pointer.startTime > (now - this.getSwipeOption(io, "time")))) {
                    return true;
                }
                else {
                    return false;
                }
            };
            /**
             * Returns `true` if a successfull swipe action was performed on an element.
             *
             * @param  {InteractionObject}  io       Element
             * @param  {IPointer}           pointer  Pointer
             * @return {boolean}                     Swiped?
             */
            Interaction.prototype.swiped = function (io, pointer) {
                var now = _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]();
                if (pointer.swipeCanceled) {
                    return false;
                }
                else if ((Math.abs(pointer.startPoint.x - pointer.point.x) > this.getSwipeOption(io, "horizontalThreshold")) &&
                    (Math.abs(pointer.startPoint.y - pointer.point.y) < this.getSwipeOption(io, "verticalThreshold")) &&
                    (pointer.startTime > (now - this.getSwipeOption(io, "time")))) {
                    return true;
                }
                else {
                    return false;
                }
            };
            /**
             * Applies style to mouse cursor based on its stage in relation to
             * [[InteractionObject]].
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}   Element
             */
            Interaction.prototype.applyCursorOverStyle = function (io) {
                // Get sprite's cursor ooptions
                var options = io.cursorOptions;
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](options.overStyle)) {
                    return;
                }
                // Apply cursor down styles
                for (var i = 0; i < options.overStyle.length; i++) {
                    _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["setStyle"](io.element, options.overStyle[i].property, options.overStyle[i].value);
                }
            };
            /**
             * Applies style to mouse cursor based on its stage in relation to
             * [[InteractionObject]].
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.applyCursorDownStyle = function (io, pointer) {
                // Not applicable for touch pointers since they don't display a cursor
                if (pointer.touch) {
                    return;
                }
                var downStyle = io.cursorOptions.downStyle;
                // Is down?
                if (io.downPointers.contains(pointer) && _utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](downStyle)) {
                    // Apply cursor down styles
                    for (var i = 0; i < downStyle.length; i++) {
                        this.setTemporaryStyle(this.body, downStyle[i].property, downStyle[i].value);
                        this.setTemporaryStyle(io, downStyle[i].property, downStyle[i].value);
                    }
                }
            };
            /**
             * Restores original cursor style for the element.
             *
             * @ignore Exclude from docs
             * @param {InteractionObject}  io       Element
             * @param {IPointer}           pointer  Pointer
             */
            Interaction.prototype.restoreCursorDownStyle = function (io, pointer) {
                // Not applicable for touch pointers since they don't display a cursor
                if (pointer.touch) {
                    return;
                }
                var downStyle = io.cursorOptions.downStyle;
                // Is down?
                if (io.downPointers.contains(pointer) && _utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](downStyle)) {
                    // Apply cursor down styles
                    for (var i = 0; i < downStyle.length; i++) {
                        this.restoreStyle(this.body, downStyle[i].property);
                        this.restoreStyle(io, downStyle[i].property);
                    }
                }
            };
            /**
             * Sets style on the body of the document.
             *
             * @ignore Exclude from docs
             * @param {Array<IStyleProperty> | IStyleProperty}  style  Style definitions
             */
            Interaction.prototype.setGlobalStyle = function (style) {
                var body = getInteraction().body;
                var styles = (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["isArray"](style) ? style : [style]);
                for (var i = 0; i < styles.length; i++) {
                    this.setTemporaryStyle(body, styles[i].property, styles[i].value);
                }
            };
            /**
             * Restores style on the body of the document.
             *
             * @ignore Exclude from docs
             * @param {Array<IStyleProperty> | IStyleProperty}  style  Style definitions
             */
            Interaction.prototype.restoreGlobalStyle = function (style) {
                var body = getInteraction().body;
                var styles = (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["isArray"](style) ? style : [style]);
                for (var i = 0; i < styles.length; i++) {
                    this.restoreStyle(body, styles[i].property);
                }
            };
            /**
             * Checks if element is a non-cahrt element.
             *
             * @param  {InteractionObject}  io  InteractionObject
             * @return {boolean}                Global element?
             */
            Interaction.prototype.isGlobalElement = function (io) {
                return document.body === io.element;
            };
            /**
             * Checks if pointer has moved since it was created.
             *
             * @param  {IPointer}  pointer    Pointer
             * @param  {number}    tolerance  Tolerance in pixels
             * @param  {number}    minTime    Minimum time required for the pointer to be down to be considered moved
             * @return {boolean}              `true` if the pointer has moved
             */
            Interaction.prototype.moved = function (pointer, tolerance, minTime) {
                /*// If there was more time, we don't care if cursor actually moved
                let duration = $time.getTime() - pointer.startTime;
                if ($type.hasValue(minTime) && (minTime > duration)) {
                    return false;
                }*/
                if (minTime === void 0) {
                    minTime = 300;
                }
                // That was quick measure shift
                var shift = this.getShift(pointer);
                return (Math.abs(shift.x) > tolerance) || (Math.abs(shift.y) > tolerance);
            };
            /**
             * Returns if pointer is "old", meaning it has been pressing for more than
             * X milliseconds.
             *
             * @ignore
             * @param  {IPointer}  pointer  Pointer
             * @param  {number}    minTime  Minimum time to consider pointer old
             * @return {boolean}
             */
            Interaction.prototype.old = function (pointer, minTime) {
                if (minTime === void 0) {
                    minTime = 300;
                }
                return _utils_Time__WEBPACK_IMPORTED_MODULE_16__["getTime"]() - pointer.startTime > minTime;
            };
            /**
             * Returns total a shift in pointers coordinates between its original
             * position and now.
             *
             * @param  {IPointer}  pointer  Pointer
             * @return {IPoint}             Shift in coordinates (x/y)
             */
            Interaction.prototype.getShift = function (pointer) {
                return {
                    "x": pointer.startPoint.x - pointer.point.x,
                    "y": pointer.startPoint.y - pointer.point.y
                };
            };
            /**
             * Returns a point from [[Pointer]]'s move history at a certain timetamp.
             *
             * @param  {IPointer}               pointer    Pointer
             * @param  {number}                 timestamp  Timestamp
             * @return {Optional<IBreadcrumb>}             Point
             */
            Interaction.prototype.getTrailPoint = function (pointer, timestamp) {
                var res;
                for (var i = 0; i < pointer.track.length; i++) {
                    if (pointer.track[i].timestamp >= timestamp) {
                        res = pointer.track[i];
                        break;
                    }
                }
                return res;
            };
            /**
             * Checks if same pointer already exists in the list.
             *
             * @param  {List<IPointer>}  list     List to check agains
             * @param  {IPointer}        pointer  Pointer
             * @return {boolean}                  Exists?
             */
            Interaction.prototype.pointerExists = function (list, pointer) {
                var exists = false;
                list.each(function (item) {
                    if (item == pointer) {
                        return;
                    }
                    exists = item.point.x == pointer.point.x && item.point.y == pointer.point.y;
                });
                return exists;
            };
            /**
             * Returns an [[InteractionObject]] representation of a DOM element.
             *
             * You can use this on any HTML or SVG element, to add interactive features
             * to it.
             *
             * @param  {HTMLElement | SVGSVGElement}  element  Element
             * @return {InteractionObject}                     InteractionObject
             */
            Interaction.prototype.getInteraction = function (element) {
                return new _InteractionObject__WEBPACK_IMPORTED_MODULE_5__["InteractionObject"](element);
            };
            /**
             * Sets a style property on an element. Stores original value to be restored
             * later with [[restoreStyle]].
             *
             * @see {@link restoreStyle}
             * @param {InteractionObject}  io        Element
             * @param {string}             property  Property
             * @param {string}             value     Value
             */
            Interaction.prototype.setTemporaryStyle = function (io, property, value) {
                // Get element
                //let el = io.element.tagName == "g" ? <SVGSVGElement>io.element.parentNode : io.element;
                var el = io.element;
                // Save original property if it is set and hasn't been saved before already
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](el.style[property]) && !io.replacedStyles.hasKey(property)) {
                    io.replacedStyles.setKey(property, el.style[property]);
                }
                // Replace with the new one
                _utils_DOM__WEBPACK_IMPORTED_MODULE_9__["setStyle"](el, property, value);
            };
            /**
             * Restores specific style on an element.
             *
             * @param {InteractionObject}  io        Element
             * @param {string}             property  Style property
             */
            Interaction.prototype.restoreStyle = function (io, property) {
                // Reset style
                if (io.replacedStyles.hasKey(property)) {
                    io.element.style[property] = io.replacedStyles.getKey(property);
                    io.replacedStyles.removeKey(property);
                }
                else {
                    delete io.element.style[property];
                }
            };
            /**
             * Restore temporarily reset styles on an element.
             *
             * @param {InteractionObject} io Element
             */
            Interaction.prototype.restoreAllStyles = function (io) {
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](io.replacedStyles.iterator(), function (a) {
                    var key = a[0];
                    var value = a[1];
                    io.element.style[key] = value;
                    io.replacedStyles.removeKey(key);
                });
            };
            /**
             * Disposes this object and cleans up after itself.
             */
            Interaction.prototype.dispose = function () {
                if (!this.isDisposed) {
                    _super.prototype.dispose.call(this);
                    this.restoreAllStyles(this.body);
                    this.unlockWheel();
                }
            };
            Interaction.prototype.log = function (text, ev, io) {
                var show = true;
                if (show) {
                    // Touchlist?
                    if (ev.changedTouches) {
                        for (var i = 0; i < ev.changedTouches.length; i++) {
                            this.logTouch(text, ev.type, ev.changedTouches[i]);
                        }
                        return;
                    }
                    // Get type
                    var type = "";
                    if (ev.pointerType) {
                        switch (ev.pointerType) {
                            case 2:
                                type = "touch";
                                break;
                            case 4:
                                type = "mouse";
                                break;
                            default:
                                type = ev.pointerType;
                                break;
                        }
                    }
                    else if (typeof TouchEvent != "undefined" && ev instanceof TouchEvent) {
                        type = "touch";
                    }
                    else if (ev.type.match(/^mouse/)) {
                        type = "mouse";
                    }
                    else {
                        type = "???";
                    }
                    // Get ID
                    var id = "";
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.identifier)) {
                        id = ev.identifier;
                    }
                    else if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](ev.pointerId)) {
                        id = ev.pointerId;
                    }
                    else {
                        id = "???";
                    }
                    if (io) {
                        console.log(text + " (" + io.uid + ")  " + ev.type + "  " + type + "  " + id);
                    }
                    else {
                        console.log(text + "  " + ev.type + "  " + type + "  " + id);
                    }
                }
            };
            Interaction.prototype.logTouch = function (text, type, ev) {
                console.log(text + "  " + type + "  " + "touch" + "  " + ev.identifier);
            };
            return Interaction;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        var interaction = null;
        /**
         * Returns a single unified global instance of [[Interaction]].
         *
         * All code should use this function, rather than create their own instances
         * of [[Interaction]].
         */
        function getInteraction() {
            if (interaction == null) {
                interaction = new Interaction();
            }
            return interaction;
        }
        //# sourceMappingURL=Interaction.js.map
        /***/ 
    }),
    /* 785 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animate", function () { return animate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animations", function () { return animations; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationDisposer", function () { return AnimationDisposer; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Animation", function () { return Animation; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _defs_SVGDefaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(786);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(774);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _utils_AsyncPending__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(759);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(787);
        /* harmony import */ var _utils_Colors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(775);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(756);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(755);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(757);
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(750);
        /**
         * Animation module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Calls a `callback` function for the `duration` of milliseconds.
         *
         * @todo Needed?
         * @deprecated Not used anywhere
         * @ignore Exclude from docs
         * @param  {number}     duration  Duration (ms)
         * @param  {function}   callback  Callback function
         * @return {IDisposer}            Disposer
         */
        function animate(duration, callback) {
            var disposed = false;
            // TODO use performance.now() ?
            var startTime = Date.now();
            function loop(now) {
                if (!disposed) {
                    var diff = now - startTime;
                    if (diff >= duration) {
                        callback(1);
                    }
                    else {
                        _utils_AsyncPending__WEBPACK_IMPORTED_MODULE_6__["nextFrame"](loop);
                        callback(diff / duration);
                    }
                }
            }
            _utils_AsyncPending__WEBPACK_IMPORTED_MODULE_6__["nextFrame"](loop);
            return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["Disposer"](function () {
                disposed = true;
            });
        }
        /**
         * Holds the list of currently playing animations.
         *
         * @ignore Exclude from docs
         * @type {Array<IAnimationObject>}
         */
        var animations = [];
        /**
         * Returns numeric value accoring to progress between start and end values.
         *
         * @param  {number}  progress  Progress (0-1)
         * @param  {number}  from
         * @param  {number}  to
         * @return {number}            Value according to progress
         */
        function getProgressNumber(progress, from, to) {
            return from + ((to - from) * progress);
        }
        /**
         * Returns [[Percent]] value accoring to progress between start and end
         * values.
         *
         * @param  {number}   progress  Progress (0-1)
         * @param  {Percent}  from
         * @param  {Percent}  to
         * @return {number}             Value according to progress
         */
        function getProgressPercent(progress, from, to) {
            return new _utils_Percent__WEBPACK_IMPORTED_MODULE_5__["Percent"](getProgressNumber(progress, from.percent, to.percent));
        }
        /**
         * Returns color value accoring to progress between start and end values.
         *
         * @param  {number}  progress  Progress (0-1)
         * @param  {Color}   from
         * @param  {Color}   to
         * @return {string}            Color according to progress
         */
        function getProgressColor(progress, from, to) {
            return new _utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"](_utils_Colors__WEBPACK_IMPORTED_MODULE_8__["interpolate"](from.rgb, to.rgb, progress));
        }
        /**
         * [getHybridProperty description]
         *
         * @todo Description
         * @param  {string}     property [description]
         * @param  {"pixel" |        "relative"}  type [description]
         * @return {string}              [description]
         */
        function getHybridProperty(property, type) {
            return type + property.charAt(0).toUpperCase() + property.substr(1);
        }
        function processAnimationOptions(object, animationOptions) {
            var processed = [];
            _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](_utils_Array__WEBPACK_IMPORTED_MODULE_10__["toArray"](animationOptions), function (options) {
                var childObject = (options.childObject ? options.childObject : object);
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](options.from)) {
                    options.from = childObject[options.property];
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](options.from)) {
                        options.from = _defs_SVGDefaults__WEBPACK_IMPORTED_MODULE_2__["SVGDefaults"][options.property];
                    }
                    /*if (!$type.hasValue(options.from)) {
                        throw Error("Could not get initial transition value.");
                    }*/
                }
                if (options.from !== options.to) { // || options.to == (<any>object)[options.property]){ this is not good, as dataItem.value is set to final at once, and we animate workingValue
                    // Use different update methods for different value types
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](options.to)) {
                        // Check if initial value is not Percent
                        if (options.from instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_5__["Percent"]) {
                            // It is. Let's convert it to pixel value
                            // @todo Check if we can do this in a less hacky way
                            var convertedFrom = childObject[getHybridProperty(options.property, "pixel")];
                            // TODO better check
                            if (!isNaN(convertedFrom)) {
                                options.from = convertedFrom;
                            }
                        }
                        processed.push({
                            childObject: childObject,
                            property: options.property,
                            update: function (time) {
                                childObject[options.property] = getProgressNumber(time, options.from, options.to);
                            }
                        });
                        // Check if maybe we have a color or percent value
                    }
                    else if (options.to instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"]) {
                        // Yup - set resolved named color
                        //options.from = $colors.stringToColor(<string>options.from);
                        if (options.from) {
                            processed.push({
                                childObject: childObject,
                                property: options.property,
                                update: function (time) {
                                    childObject[options.property] = getProgressColor(time, options.from, options.to);
                                }
                            });
                        }
                        else {
                            processed.push({
                                childObject: childObject,
                                property: options.property,
                                update: function (time) {
                                    childObject[options.property] = (time < 0.5 ? options.from : options.to);
                                }
                            });
                        }
                    }
                    else if (options.to instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_5__["Percent"]) {
                        // Check if the initial value is maybe in pixels
                        // TODO better check
                        if (!isNaN(options.from)) {
                            // It is. Let's convert it
                            // @todo Check if we can do this in a less hacky way
                            var convertedFrom = childObject[getHybridProperty(options.property, "relative")];
                            // TODO better check
                            if (!isNaN(convertedFrom)) {
                                options.from = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(convertedFrom * 100);
                            }
                        }
                        processed.push({
                            childObject: childObject,
                            property: options.property,
                            update: function (time) {
                                childObject[options.property] = getProgressPercent(time, options.from, options.to);
                            }
                        });
                    }
                    else {
                        processed.push({
                            childObject: childObject,
                            property: options.property,
                            update: function (time) {
                                childObject[options.property] = (time < 0.5 ? options.from : options.to);
                            }
                        });
                    }
                }
            });
            return processed;
        }
        var AnimationDisposer = /** @class */ (function () {
            function AnimationDisposer(array) {
                this._disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["Disposer"](function () {
                    while (array.length !== 0) {
                        array[0].dispose();
                    }
                });
            }
            AnimationDisposer.prototype.isDisposed = function () {
                return this._disposer.isDisposed();
            };
            AnimationDisposer.prototype.dispose = function () {
                this._disposer.dispose();
            };
            return AnimationDisposer;
        }());
        /**
         * Animation can be used to transition certain properties on an object that
         * implements [[IAnimatable]] interface.
         *
         * @see {@link IAnimationEvents} for a list of available events
         */
        var Animation = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Animation, _super);
            /**
             * Constructor
             *
             * @param {IAnimatable}                              object            An object animation should run on
             * @param {IAnimationOptions[] | IAnimationOptions}  animationOptions  One or several (array) of animation options
             * @param {number}                                   duration          Duration (ms)
             * @param {(number) => number}                       easing            Easing function
             */
            function Animation(object, animationOptions, duration, easing) {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Duration of the animation in milliseconds.
                 *
                 * @type {number}
                 */
                _this.duration = 0;
                /**
                 * Easing function to use.
                 *
                 * @see {@link Ease}
                 * @type {(value: number) => number}
                 */
                _this.easing = _utils_Ease__WEBPACK_IMPORTED_MODULE_7__["linear"];
                /**
                 * Contains progress of the current animation: 0 (start) to 1 (end).
                 *
                 * @type {number}
                 */
                _this.progress = 0;
                /**
                 * Indicated how many times animation should loop.
                 *
                 * @type {number}
                 */
                _this._loop = 0;
                /**
                 * Animation is paused.
                 *
                 * @type {boolean}
                 */
                _this._pause = false;
                /**
                 * Holds reference to timeout for delayed play.
                 *
                 * @type {IDisposer}
                 */
                _this._delayTimeout = null;
                /**
                 * Elapsed time in currently playing animation.
                 *
                 * @type {number}
                 */
                _this._time = 0;
                _this._isFinished = false;
                _this.className = "Animation";
                // Set parameters
                _this.object = object;
                _this.animationOptions = _utils_Array__WEBPACK_IMPORTED_MODULE_10__["toArray"](animationOptions);
                _this.duration = duration;
                if (easing) {
                    _this.easing = easing;
                }
                // Run check if there are already animations playing on the same properties
                // and stop them - the last animation takes precedence
                //this.stopSameAnimations();
                /*if ($type.hasValue(callback)) {
                    // TODO don't use .call
                    this.events.on("animationended", callback, object);
                }*/
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            // TODO verify that this is correct
            Animation.prototype.debug = function () { };
            /**
             * Disposes this object, clears up after itself.
             */
            Animation.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                this.pause();
            };
            /**
             * Delays animation start by X milliseconds.
             *
             * @param  {number}     delay  Delay (ms)
             * @return {Animation}         Animation
             */
            Animation.prototype.delay = function (delay) {
                var _this = this;
                //@todo Maybe not use `bind()`
                if (delay > 0) {
                    this.pause();
                    // This is so that it will get disposed if `this.object` is disposed
                    // TODO hacky, figure out a better way
                    _utils_Array__WEBPACK_IMPORTED_MODULE_10__["move"](this.object.animations, this);
                    var id_1 = setTimeout(function () {
                        _this._delayTimeout = null;
                        _this.start();
                    }, delay);
                    this._delayTimeout = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["Disposer"](function () {
                        clearTimeout(id_1);
                    });
                }
                return this;
            };
            Animation.prototype._start = function () {
                this._isFinished = false;
                // Clear delay timeout if there was one
                if (this._delayTimeout) {
                    this.removeDispose(this._delayTimeout);
                    this._delayTimeout = null;
                }
                // Run check if there are already animations playing on the same properties
                // and stop them - the last animation takes precedence
                this.stopSameAnimations();
                // Reset counters
                this._pause = false;
                // Register animation
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["move"](animations, this);
                // Register this animation in object's `animations` list
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["move"](this.object.animations, this);
                _System__WEBPACK_IMPORTED_MODULE_12__["system"].requestFrame();
            };
            /**
             * Starts animation.
             *
             * @return {Animation} Animation
             */
            Animation.prototype.start = function () {
                this._start();
                this._startTime = Date.now();
                this._time = 0;
                this.staticOptions = [];
                // Process initial property values
                for (var i = this.animationOptions.length - 1; i >= 0; i--) {
                    var options = this.animationOptions[i];
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](options.from)) {
                        if (options.childObject) {
                            options.from = options.childObject[options.property];
                        }
                        else {
                            options.from = this.object[options.property];
                            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](options.from)) {
                                options.from = _defs_SVGDefaults__WEBPACK_IMPORTED_MODULE_2__["SVGDefaults"][options.property];
                            }
                        }
                        /*if (!$type.hasValue(options.from)) {
                            throw Error("Could not get initial transition value.");
                        }*/
                    }
                    if (options.from == options.to) { // || options.to == (<any>this.object)[options.property]){ this is not good, as dataItem.value is set to final at once, and we animate workingValue
                        _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](this.animationOptions, options);
                    }
                    else {
                        // Use different update methods for different value types
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](options.to)) {
                            // Numeric value
                            options.updateMethod = getProgressNumber;
                            // Check if initial value is not Percent
                            if (options.from instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_5__["Percent"]) {
                                // It is. Let's convert it to pixel value
                                // @todo Check if we can do this in a less hacky way
                                var convertedFrom = this.object[getHybridProperty(options.property, "pixel")];
                                if (!isNaN(convertedFrom)) {
                                    options.from = convertedFrom;
                                }
                            }
                        }
                        else {
                            // Check if maybe we have a color or percent value
                            if (options.to instanceof _utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"]) {
                                // Yup - set resolved named color
                                //options.from = $colors.stringToColor(<string>options.from);
                                if (options.from) {
                                    options.updateMethod = getProgressColor;
                                }
                                else {
                                    // Static value
                                    this.staticOptions.push(options);
                                    _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](this.animationOptions, options);
                                }
                            }
                            else if (options.to instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_5__["Percent"]) {
                                // Percent
                                options.updateMethod = getProgressPercent;
                                // Check if the initial value is maybe in pixels
                                if (!isNaN(options.from)) {
                                    // It is. Let's convert it
                                    // @todo Check if we can do this in a less hacky way
                                    var convertedFrom = this.object[getHybridProperty(options.property, "relative")];
                                    if (!isNaN(convertedFrom)) {
                                        options.from = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(convertedFrom * 100);
                                    }
                                }
                            }
                            else {
                                // Static value
                                this.staticOptions.push(options);
                                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](this.animationOptions, options);
                            }
                        }
                    }
                }
                // Apply static options (just in case they were reset by previous
                // animation loop)
                this.applyStaticOptions();
                if (this.events.isEnabled("animationstarted")) {
                    var event_1 = {
                        type: "animationstarted",
                        target: this,
                        progress: this.progress
                    };
                    this.events.dispatchImmediately("animationstarted", event_1);
                }
                this.update();
                // If duration is 0, just end animation
                if (this.duration === 0) {
                    this.end();
                }
                return this;
            };
            /**
             * Sets loop count for the animation. If parameter is not a valid number the
             * animation will keep on looping indefinitely.
             *
             * @param  {number}     count  Number of times to loop animation
             * @return {Animation}         Animation
             */
            Animation.prototype.loop = function (count) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](count)) {
                    count = Infinity;
                }
                this._loop = count;
                return this;
            };
            /**
             * Pauses animation.
             *
             * @return {Animation} Animation
             */
            Animation.prototype.pause = function () {
                this._pause = true;
                if (this._delayTimeout) {
                    this.removeDispose(this._delayTimeout);
                    this._delayTimeout = null;
                }
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](animations, this);
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](this.object.animations, this);
                return this;
            };
            /**
             * Resumes paused animation.
             *
             * @return {Animation} Animation
             */
            Animation.prototype.resume = function () {
                this._start();
                this._startTime = Date.now() - this._time;
                return this;
            };
            /**
             * Jumps to animation end. If animation is set to loop, this will start
             * another round of animation from start.
             *
             * @return {Animation} Animation
             */
            Animation.prototype.end = function () {
                // Pause and complete the progress
                if (this._loop == 0) {
                    this.pause();
                }
                this.setProgress(1);
                // Apply static options
                this.applyStaticOptions();
                if (this.events.isEnabled("animationended")) {
                    var event_2 = {
                        type: "animationended",
                        target: this,
                        progress: this.progress
                    };
                    this.events.dispatchImmediately("animationended", event_2);
                }
                // Check if we should loop
                if (this._loop > 0) {
                    this._loop--;
                    this.start();
                }
                else {
                    this.stop();
                    this._isFinished = true;
                }
                return this;
            };
            Animation.prototype.kill = function () {
                this.pause();
                this._isFinished = true;
            };
            /**
             * Returns indicator if this animation is finished or not
             *
             * @return {boolean} Is finished?
             */
            Animation.prototype.isFinished = function () {
                return this._isFinished;
            };
            /**
             * Applies static options that can't be animated.
             */
            Animation.prototype.applyStaticOptions = function () {
                var _this = this;
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](this.staticOptions, function (options) {
                    if (options.childObject) {
                        options.childObject[options.property] = _this.progress == 1 ? options.to : options.from;
                    }
                    else {
                        _this.object[options.property] = _this.progress == 1 ? options.to : options.from;
                    }
                });
            };
            /**
             * Stops animation.
             *
             * When animation is stopped, the properties of the target object will remain
             * where they were at the moment when `stop()` was called.
             *
             * @param  {boolean}    skipEvent  Do not trigger `animationstopped` event
             * @return {Animation}             Animation
             */
            Animation.prototype.stop = function (skipEvent) {
                this.pause();
                if (!skipEvent) {
                    if (this.events.isEnabled("animationstopped")) {
                        var event_3 = {
                            type: "animationstopped",
                            target: this,
                            progress: this.progress
                        };
                        this.events.dispatchImmediately("animationstopped", event_3);
                    }
                }
                return this;
            };
            /**
             * Sets current progress and updates object's numeric and color values.
             *
             * @param {number} progress Progress (0-1)
             */
            Animation.prototype.setProgress = function (progress) {
                var _this = this;
                this._time = this.duration * progress; // just in case we call this from outside
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](this.animationOptions, function (options) {
                    if (options.updateMethod && _utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](options.from)) {
                        var value = options.updateMethod(progress, options.from, options.to);
                        if (options.childObject) {
                            options.childObject[options.property] = value;
                        }
                        else {
                            _this.object[options.property] = value;
                        }
                    }
                });
                this.progress = progress;
                if (this.events.isEnabled("animationprogress")) {
                    var event_4 = {
                        type: "animationprogress",
                        target: this,
                        progress: this.progress
                    };
                    this.events.dispatchImmediately("animationprogress", event_4);
                }
                _System__WEBPACK_IMPORTED_MODULE_12__["system"].requestFrame();
            };
            /**
             * Tracks and sets progress according to time or frames.
             *
             * @ignore Exclude from docs
             * @return {Animation} Animation
             */
            Animation.prototype.update = function () {
                if (!this._pause) {
                    var progress = void 0;
                    this._time = _utils_Math__WEBPACK_IMPORTED_MODULE_9__["fitToRange"](Date.now() - this._startTime, 0, this.duration);
                    var timeProgress = this._time / this.duration;
                    progress = this.easing(timeProgress);
                    if (this.duration == 0 || !_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](progress) || timeProgress >= 1) {
                        progress = 1;
                    }
                    this.setProgress(progress);
                    if (_utils_Math__WEBPACK_IMPORTED_MODULE_9__["round"](this._time / this.duration, 6) == 1) {
                        this.end();
                    }
                }
                return this;
            };
            Object.defineProperty(Animation.prototype, "delayed", {
                /**
                 * Returns `true` if this animation is delayed.
                 *
                 * @readonly
                 * @return {boolean} [description]
                 */
                get: function () {
                    return this._delayTimeout ? true : false;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks other animations currently running on the same object and removes
             * overlapping options from those other animations that are contained in
             * this animation.
             *
             * This is needed to ensure that no two confurent animations step on each
             * other's toes by trying to animate the same property.
             */
            Animation.prototype.stopSameAnimations = function () {
                var _this = this;
                // stop animation of the same property
                // TODO make this more efficient
                // TODO don't copy the array
                _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](_utils_Array__WEBPACK_IMPORTED_MODULE_10__["copy"](this.object.animations), function (animation) {
                    if (animation !== _this && !animation.delayed) {
                        var killed_1 = [];
                        _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](_this.animationOptions, function (newOptions) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](animation.animationOptions, function (oldOptions) {
                                if (newOptions.property == oldOptions.property && newOptions.childObject == oldOptions.childObject) {
                                    killed_1.push(oldOptions);
                                    if (animation.animationOptions.length == 0) {
                                        animation.kill();
                                    }
                                }
                            });
                        });
                        _utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](killed_1, function (oldOptions) {
                            _utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](animation.animationOptions, oldOptions);
                        });
                    }
                });
            };
            return Animation;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        //# sourceMappingURL=Animation.js.map
        /***/ 
    }),
    /* 786 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SVGDefaults", function () { return SVGDefaults; });
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(774);
        /**
         *
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a class that holds default properties for new SVG elements
         */
        var SVGDefaults = /** @class */ (function () {
            function SVGDefaults() {
            }
            SVGDefaults.opacity = 1;
            SVGDefaults.strokeOpacity = 1;
            SVGDefaults.strokeWidth = 1;
            SVGDefaults.fillOpacity = 1;
            SVGDefaults.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#000000");
            SVGDefaults.stroke = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#000000");
            SVGDefaults.focusable = undefined;
            SVGDefaults.tabindex = 0;
            return SVGDefaults;
        }());
        //# sourceMappingURL=SVGDefaults.js.map
        /***/ 
    }),
    /* 787 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function () { return linear; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadIn", function () { return quadIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadOut", function () { return quadOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadInOut", function () { return quadInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn", function () { return polyIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut", function () { return polyOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut", function () { return polyInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn3", function () { return polyIn3; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut3", function () { return polyOut3; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut3", function () { return polyInOut3; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expIn", function () { return expIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expOut", function () { return expOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expInOut", function () { return expInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinIn", function () { return sinIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinOut", function () { return sinOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinInOut", function () { return sinInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicIn", function () { return cubicIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicOut", function () { return cubicOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicInOut", function () { return cubicInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleIn", function () { return circleIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleOut", function () { return circleOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleInOut", function () { return circleInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceIn", function () { return bounceIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceOut", function () { return bounceOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceInOut", function () { return bounceInOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticIn", function () { return elasticIn; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticOut", function () { return elasticOut; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticInOut", function () { return elasticInOut; });
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(756);
        /**
         * A collection of easing functions
         *
         * Parts of this collection are taken from D3.js library (https://d3js.org/)
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * The functions below are from D3.js library (https://d3js.org/)
         *
         * ----------------------------------------------------------------------------
         * Copyright 2017 Mike Bostock
         *
         * 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.
         * ----------------------------------------------------------------------------
         * @hidden
         */
        /**
         * ============================================================================
         * LINEAR FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Easing function: "linear".
         */
        function linear(t) {
            return +t;
        }
        /**
         * Easing function: "quadIn".
         */
        function quadIn(t) {
            return t * t;
        }
        /**
         * Easing function: "quadOut".
         */
        function quadOut(t) {
            return t * (2 - t);
        }
        /**
         * Easing function: "quadInOut".
         */
        function quadInOut(t) {
            return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
        }
        /**
         * Easing function: "polyIn".
         */
        function polyIn(t, e) {
            return Math.pow(t, e);
        }
        /**
         * Easing function: "polyOut".
         */
        function polyOut(t, e) {
            return 1 - Math.pow(1 - t, e);
        }
        /**
         * Easing function: "polyInOut".
         */
        function polyInOut(t, e) {
            return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
        }
        /**
         * Easing function: "polyIn3".
         */
        function polyIn3(t) {
            return polyIn(t, 3);
        }
        /**
         * Easing function: "polyOut3".
         */
        function polyOut3(t) {
            return polyOut(t, 3);
        }
        /**
         * Easing function: "polyInOut3".
         */
        function polyInOut3(t) {
            return polyInOut(t, 3);
        }
        /**
         * ============================================================================
         * EXPONENTIAL FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Easing function: "expIn".
         */
        function expIn(t) {
            return Math.pow(2, 10 * t - 10);
        }
        /**
         * Easing function: "expOut".
         */
        function expOut(t) {
            return 1 - Math.pow(2, -10 * t);
        }
        /**
         * Easing function: "expInOut".
         */
        function expInOut(t) {
            return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
        }
        /**
         * ============================================================================
         * SINE FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Easing function: "sinIn".
         */
        function sinIn(t) {
            return 1 - Math.cos(t * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["HALFPI"]);
        }
        /**
         * Easing function: "sinOut".
         */
        function sinOut(t) {
            return Math.sin(t * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["HALFPI"]);
        }
        /**
         * Easing function: "sinInOut".
         */
        function sinInOut(t) {
            return (1 - Math.cos(_utils_Math__WEBPACK_IMPORTED_MODULE_0__["PI"] * t)) / 2;
        }
        /**
         * ============================================================================
         * CUBIC FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Easing function: "cubicIn".
         */
        function cubicIn(t) {
            return t * t * t;
        }
        /**
         * Easing function: "cubicOut".
         */
        function cubicOut(t) {
            return --t * t * t + 1;
        }
        /**
         * Easing function: "cubicInOut".
         */
        function cubicInOut(t) {
            return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
        }
        /**
         * ============================================================================
         * CIRCLE FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Easing function: "circleIn".
         */
        function circleIn(t) {
            return 1 - Math.sqrt(1 - t * t);
        }
        /**
         * Easing function: "circleOut".
         */
        function circleOut(t) {
            return Math.sqrt(1 - --t * t);
        }
        /**
         * Easing function: "circleInOut".
         */
        function circleInOut(t) {
            return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
        }
        /**
         * ============================================================================
         * BOUNCE FUNCTIONS
         * ============================================================================
         * @hidden
         */
        var b1 = 4 / 11, b2 = 6 / 11, b3 = 8 / 11, b4 = 3 / 4, b5 = 9 / 11, b6 = 10 / 11, b7 = 15 / 16, b8 = 21 / 22, b9 = 63 / 64, b0 = 1 / b1 / b1;
        /**
         * Easing function: "bounceIn".
         */
        function bounceIn(t) {
            return 1 - bounceOut(1 - t);
        }
        /**
         * Easing function: "bounceOut".
         */
        function bounceOut(t) {
            return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
        }
        /**
         * Easing function: "bounceInOut".
         */
        function bounceInOut(t) {
            return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
        }
        /**
         * ============================================================================
         * ELASTIC FUNCTIONS
         * ============================================================================
         * @hidden
         */
        var tau = 2 * Math.PI;
        var amplitude = 1;
        var period = 0.3 / tau;
        var s = Math.asin(1 / amplitude) * period;
        /**
         * Easing function: "elasticIn".
         *
         * @function elasticIn
         * @param {number}  a  Amplitude
         * @param {number}  p  period
         */
        function elasticIn(t) {
            return amplitude * Math.pow(2, 10 * --t) * Math.sin((s - t) / period);
        }
        /**
         * Easing function: "elasticOut".
         *
         * @function elasticOut
         * @param {number}  a  Amplitude
         * @param {number}  p  period
         */
        function elasticOut(t) {
            return 1 - amplitude * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / period);
        }
        /**
         * Easing function: "elasticInOut".
         *
         * @function elasticInOut
         * @param {number}  a  Amplitude
         * @param {number}  p  period
         */
        function elasticInOut(t) {
            return ((t = t * 2 - 1) < 0
                ? amplitude * Math.pow(2, 10 * t) * Math.sin((s - t) / period)
                : 2 - amplitude * Math.pow(2, -10 * t) * Math.sin((s + t) / period)) / 2;
        }
        //# sourceMappingURL=Ease.js.map
        /***/ 
    }),
    /* 788 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionObject", function () { return InteractionObject; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _InteractionObjectEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(789);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionObjectEventDispatcher", function () { return _InteractionObjectEvents__WEBPACK_IMPORTED_MODULE_1__["InteractionObjectEventDispatcher"]; });
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(768);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(760);
        /* harmony import */ var _Interaction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(784);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /**
         * Interaction Object module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Re-exports
         */
        /**
         * Interaction object represents an object that is subject for any kind of
         * interaction with it with any input devices: mouse, touch or keyboard.
         *
         * Any DOM element can be wrapped into an Internaction object which in turn
         * enables attaching various interaction events to it, such as: hit, drag,
         * swipe, etc.
         *
         * To create an [[InteractionObject]] out of a [[Sprite]], use:
         * `interaction.getInteractionFromSprite(sprite: Sprite)`
         *
         * To create an [[InteractionObject]] out of a a regular element:
         * `interaction.getInteraction(element: HTMLElement)`
         */
        var InteractionObject = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InteractionObject, _super);
            /**
             * Constructor
             */
            function InteractionObject(element) {
                var _this = _super.call(this) || this;
                /**
                 * An [[EventDispatcher]] instance which holds events for this object
                 */
                _this.events = new _InteractionObjectEvents__WEBPACK_IMPORTED_MODULE_1__["InteractionObjectEventDispatcher"](_this);
                /**
                 * Collection of Disposers for various events. (so that those get disposed
                 * when the whole InteractionObject is disposed)
                 *
                 * @ignore Exclude from docs
                 * @type {Dictionary<string, IDisposer>}
                 */
                _this.eventDisposers = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * A [[Dictionary]] that holds temporarily replaced original style values for
                 * HTML element, so that they can be restored when the functionality that
                 * replaced them is done.
                 *
                 * @ignore Exclude from docs
                 * @type {Dictionary<string, string>}
                 */
                _this.replacedStyles = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                _this._clickable = false;
                _this._hoverable = false;
                _this._trackable = false;
                _this._draggable = false;
                _this._swipeable = false;
                _this._resizable = false;
                _this._wheelable = false;
                _this._inert = false;
                /**
                 * Is element currently hovered?
                 *
                 * @type {boolean}
                 */
                _this._isHover = false;
                /**
                 * Is the element hovered by touch pointer?
                 *
                 * @type {boolean}
                 */
                _this._isHoverByTouch = false;
                /**
                 * Has element got any pointers currently pressing down on it?
                 * @type {boolean}
                 */
                _this._isDown = false;
                /**
                 * Does element have focus?
                 *
                 * @type {boolean}
                 */
                _this._isFocused = false;
                /**
                 * Options used for inertia functionality.
                 *
                 * @type {Dictionary<InertiaTypes, IInertiaOptions>}
                 */
                _this.inertiaOptions = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * A collection of different inertia types, currently playing out.
                 *
                 * @ignore Exclude from docs
                 * @type {Dictionary<InertiaTypes, Inertia>}
                 */
                _this.inertias = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * Click/tap options.
                 *
                 * @type {IHitOptions}
                 */
                _this.hitOptions = {};
                /**
                 * Hover options.
                 *
                 * @type {IHoverOptions}
                 */
                _this.hoverOptions = {};
                /**
                 * Swipe gesture options.
                 *
                 * @type {ISwipeOptions}
                 */
                _this.swipeOptions = {};
                /**
                 * Keyboard options.
                 *
                 * @type {IKeyboarOptions}
                 */
                _this.keyboardOptions = {};
                /**
                 * Cursor options.
                 *
                 * @type {ICursorOptions}
                 */
                _this.cursorOptions = {
                    "defaultStyle": [{
                            "property": "cursor",
                            "value": "default"
                        }]
                };
                _this._element = element;
                _this.className = "InteractionObject";
                _this._disposers.push(new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["DictionaryDisposer"](_this.inertias));
                _this._disposers.push(new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["DictionaryDisposer"](_this.eventDisposers));
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(InteractionObject.prototype, "isHover", {
                /**
                 * Returns if this element is currently hovered.
                 *
                 * @return {boolean} Hovered?
                 */
                get: function () {
                    return this._isHover;
                },
                /**
                 * Sets if this element is currently hovered.
                 *
                 * @param {boolean} value Hovered?
                 */
                set: function (value) {
                    if (this.isHover != value) {
                        this._isHover = value;
                        if (value) {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().overObjects.moveValue(this);
                        }
                        else {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().overObjects.removeValue(this);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "isHoverByTouch", {
                /**
                 * Returns if this element is currently hovered.
                 *
                 * @return {boolean} Hovered?
                 */
                get: function () {
                    return this._isHoverByTouch;
                },
                /**
                 * Sets if this element is currently hovered.
                 *
                 * @param {boolean} value Hovered?
                 */
                set: function (value) {
                    if (this.isHoverByTouch != value) {
                        this._isHoverByTouch = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "overPointers", {
                /**
                 * Returns a list of pointers currently over the element.
                 *
                 * @see {@link Pointer}
                 * @return {List<IPointer>} List if pointers currently hovering the element
                 */
                get: function () {
                    if (!this._overPointers) {
                        this._overPointers = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                    }
                    return this._overPointers;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "isDown", {
                /**
                 * Returns if this element has currently any pointers pressing on it.
                 *
                 * @return {boolean} Has down pointers?
                 */
                get: function () {
                    return this._isDown;
                },
                /**
                 * Sets if this element has currently any pointers pressing on it.
                 *
                 * @param {boolean} value Has down pointers?
                 */
                set: function (value) {
                    if (this.isDown != value) {
                        this._isDown = value;
                        if (value) {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().downObjects.moveValue(this);
                        }
                        else {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().downObjects.removeValue(this);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "downPointers", {
                /**
                 * Returns a list of pointers currently pressing down on this element.
                 *
                 * @see {@link Pointer}
                 * @return {List<IPointer>} List of down pointers
                 */
                get: function () {
                    if (!this._downPointers) {
                        this._downPointers = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                    }
                    return this._downPointers;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "isFocused", {
                /**
                 * Returns if this element is currently focused.
                 *
                 * @return {boolean} Focused?
                 */
                get: function () {
                    return this._isFocused;
                },
                /**
                 * Sets if this element is currently focused.
                 *
                 * @param {boolean} value Focused?
                 */
                set: function (value) {
                    if (this.isFocused != value) {
                        this._isFocused = value;
                        if (value) {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().focusedObject = this;
                        }
                        else {
                            Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().focusedObject = undefined;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "clickable", {
                /**
                 * Returns if element is currently set as clickable.
                 *
                 * @return {boolean} Clickable?
                 */
                get: function () {
                    return this._clickable;
                },
                /**
                 * Is element clickable? Clickable elements will generate "hit" events when
                 * clicked or tapped.
                 *
                 * @param {boolean} value Clickable?
                 */
                set: function (value) {
                    if (this._clickable !== value) {
                        this._clickable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processClickable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "hoverable", {
                /**
                 * Returns if element is currently set to generate hover events.
                 *
                 * @return {boolean} Hoverable?
                 */
                get: function () {
                    return this._hoverable;
                },
                /**
                 * Sets if element should generate hover events.
                 *
                 * @param {boolean} value Hoverable?
                 */
                set: function (value) {
                    if (this._hoverable !== value) {
                        this._hoverable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processHoverable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "trackable", {
                /**
                 * Returns if element is set to track pointer movement over it.
                 *
                 * @return {boolean} Track pointer?
                 */
                get: function () {
                    return this._trackable;
                },
                /**
                 * Sets if pointer movement over element should be tracked.
                 *
                 * @param {boolean} value Track pointer?
                 */
                set: function (value) {
                    if (this._trackable !== value) {
                        this._trackable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processTrackable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "draggable", {
                /**
                 * Returns if element is currently set as draggable.
                 *
                 * @return {boolean} Draggable?
                 */
                get: function () {
                    return this._draggable;
                },
                /**
                 * Sets if element can be dragged. (moved)
                 *
                 * @param {boolean} value Draggable?
                 */
                set: function (value) {
                    if (this._draggable !== value) {
                        this._draggable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processDraggable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "swipeable", {
                /**
                 * Returns if element is currently set to track swipe gesture.
                 *
                 * @return {boolean} Track swipe?
                 */
                get: function () {
                    return this._swipeable;
                },
                /**
                 * Sets whether element should react to swipe gesture.
                 *
                 * @param {boolean} value Track swipe?
                 */
                set: function (value) {
                    if (this._swipeable !== value) {
                        this._swipeable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processSwipeable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "resizable", {
                /**
                 * Returns if element is currently set as resizeable.
                 *
                 * @return {boolean} Resizeble?
                 */
                get: function () {
                    return this._resizable;
                },
                /**
                 * Sets if element can be resized.
                 *
                 * @param {boolean} value Resizeable?
                 */
                set: function (value) {
                    if (this._resizable !== value) {
                        this._resizable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processResizable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "wheelable", {
                /**
                 * @return {boolean} Track wheel?
                 */
                get: function () {
                    return this._wheelable;
                },
                /**
                 * Indicates whether track moouse wheel rotation over element.
                 *
                 * @param {boolean} value Track wheel?
                 */
                set: function (value) {
                    if (this._wheelable !== value) {
                        this._wheelable = value;
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processWheelable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "inert", {
                /**
                 * Returns if element is currently set as inert.
                 *
                 * @return {boolean} Inert?
                 */
                get: function () {
                    return this._inert;
                },
                /**
                 * Sets if element is inert, i.e. if it should carry movement momentum after
                 * it is dragged and released.
                 *
                 * @param {boolean} value Inert?
                 */
                set: function (value) {
                    if (this._inert !== value) {
                        this._inert = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "focusable", {
                /**
                 * Returns if element is currently set as focusable.
                 *
                 * @return {Optional<boolean>} Focusable?
                 */
                get: function () {
                    return this._focusable;
                },
                /**
                 * Sets if element can gain focus.
                 *
                 * @param {Optional<boolean>} value Focusable?
                 */
                set: function (value) {
                    if (this._focusable !== value) {
                        this._focusable = value;
                        if (this._focusable && this.tabindex == -1) {
                            this._tabindex = 1;
                        }
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processFocusable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "tabindex", {
                /**
                 * Returns element's current tab index.
                 *
                 * @return {number} Tab index
                 */
                get: function () {
                    return _utils_Type__WEBPACK_IMPORTED_MODULE_6__["getValueDefault"](this._tabindex, -1);
                },
                /**
                 * Sets element's tab index.
                 *
                 * @param {number} value Tab index
                 */
                set: function (value) {
                    if (this._tabindex !== value) {
                        this._tabindex = value;
                        if (value > -1) {
                            this.focusable = true;
                        }
                        Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().processFocusable(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "element", {
                /**
                 * Returns DOM element associated with this element
                 * @return {HTMLElement | SVGSVGElement} Element
                 */
                get: function () {
                    return this._element;
                },
                /**
                 * Sets DOM element associated with this element
                 * @param {HTMLElement | SVGSVGElement} element Element
                 */
                set: function (element) {
                    this._element = element;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "originalPosition", {
                /**
                 * Returns element's original position.
                 *
                 * @ignore Exclude from docs
                 * @return {Optional<IPoint>} Position.
                 */
                get: function () {
                    return this._originalPosition || { x: 0, y: 0 };
                },
                /**
                 * Sets element's original position.
                 *
                 * @ignore Exclude from docs
                 * @param {Optional<IPoint>} value Position
                 */
                set: function (value) {
                    this._originalPosition = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "originalScale", {
                /**
                 * Returns element's original scale.
                 *
                 * @return {number} Scale
                 */
                get: function () {
                    return _utils_Type__WEBPACK_IMPORTED_MODULE_6__["getValueDefault"](this._originalScale, 1);
                },
                /**
                 * Sets element's original scale.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Scale
                 */
                set: function (value) {
                    if (this._originalScale !== value) {
                        this._originalScale = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(InteractionObject.prototype, "originalAngle", {
                /**
                 * Returns element's original angle.
                 *
                 * @return {number} Angle
                 */
                get: function () {
                    return _utils_Type__WEBPACK_IMPORTED_MODULE_6__["getValueDefault"](this._originalAngle, 0);
                },
                /**
                 * Sets element's original angle.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Angle
                 */
                set: function (value) {
                    if (this._originalAngle !== value) {
                        this._originalAngle = value;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all properties and related assets from another object of the same
             * type.
             *
             * @param {this} source Source object
             */
            InteractionObject.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.inertiaOptions = source.inertiaOptions;
                this.hitOptions = source.hitOptions;
                this.hoverOptions = source.hoverOptions;
                this.swipeOptions = source.swipeOptions;
                this.keyboardOptions = source.keyboardOptions;
                this.cursorOptions = source.cursorOptions;
                Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])().applyCursorOverStyle(this);
            };
            /**
             * @ignore Exclude from docs
             */
            InteractionObject.prototype.setEventDisposer = function (key, value, f) {
                var disposer = this.eventDisposers.getKey(key);
                if (value) {
                    if (disposer == null) {
                        this.eventDisposers.setKey(key, f());
                    }
                }
                else {
                    if (disposer != null) {
                        disposer.dispose();
                        this.eventDisposers.removeKey(key);
                    }
                }
            };
            /**
             * Disposes object.
             */
            InteractionObject.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                // Remove from all interaction registries
                var interaction = Object(_Interaction__WEBPACK_IMPORTED_MODULE_5__["getInteraction"])();
                interaction.overObjects.removeValue(this);
                interaction.downObjects.removeValue(this);
                interaction.trackedObjects.removeValue(this);
                interaction.transformedObjects.removeValue(this);
                if (interaction.focusedObject === this) {
                    interaction.focusedObject = undefined;
                }
            };
            return InteractionObject;
        }(_Base__WEBPACK_IMPORTED_MODULE_2__["BaseObjectEvents"]));
        //# sourceMappingURL=InteractionObject.js.map
        /***/ 
    }),
    /* 789 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionObjectEventDispatcher", function () { return InteractionObjectEventDispatcher; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(752);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /**
         * Represents an Event Dispatcher for [[InteractionObject]].
         *
         * Besides regular [[EventDispatcher]] functionality it adds new events with
         * direct application to DOM nodes. Primarily used to handle keyboard events,
         * but can turn into something else moving forward.
         */
        var InteractionObjectEventDispatcher = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InteractionObjectEventDispatcher, _super);
            function InteractionObjectEventDispatcher() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * Holds a list of Disposers for DOM events added.
                 */
                _this._domEvents = {};
                return _this;
            }
            /**
             * Adds a DOM event and returns Disposer.
             *
             * @return {IDisposer} Disposer
             */
            InteractionObjectEventDispatcher.prototype._addDOMEvent = function (type, key, listener, context) {
                var _this = this;
                if (!this._domEvents[type]) {
                    var callback_1 = function (e) {
                        listener.call(context, key, e);
                    };
                    this.target.element.addEventListener(type, callback_1, false);
                    this._domEvents[type] = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["CounterDisposer"](function () {
                        delete _this._domEvents[type];
                        _this.target.element.removeEventListener(type, callback_1, false);
                    });
                }
                return this._domEvents[type].increment();
            };
            InteractionObjectEventDispatcher.prototype._dispatchKeyboardEvent = function (key, ev) {
                // TODO use this.dispatchImmediately ?
                if (this.target.events.isEnabled(key)) {
                    this.target.events.dispatchImmediately(key, {
                        type: key,
                        target: this.target,
                        event: ev
                    });
                }
            };
            InteractionObjectEventDispatcher.prototype._on = function (once, type, callback, context, shouldClone, dispatch) {
                var info = _super.prototype._on.call(this, once, type, callback, context, shouldClone, dispatch);
                var disposers = [info.disposer];
                switch (type) {
                    case "hit":
                    case "doublehit":
                    case "rightclick":
                    case "down":
                    case "up":
                        this.target.clickable = true;
                        break;
                    case "drag":
                    case "dragstart":
                    case "dragstop":
                        this.target.draggable = true;
                        break;
                    case "track":
                        this.target.trackable = true;
                        break;
                    case "resize":
                        this.target.resizable = true;
                        break;
                    case "swipe":
                    case "swipeleft":
                    case "swiperight":
                        this.target.swipeable = true;
                        break;
                    case "wheel":
                    case "wheelup":
                    case "wheeldown":
                    case "wheelleft":
                    case "wheelright":
                        this.target.wheelable = true;
                        break;
                    case "over":
                    case "out":
                        this.target.hoverable = true;
                        break;
                    case "focus":
                    case "blur":
                    case "focusin":
                    case "focusout":
                        this.target.focusable = true;
                        break;
                    case "keydown":
                        disposers.push(this._addDOMEvent(type, type, this._dispatchKeyboardEvent, this));
                        break;
                    case "keyup":
                        disposers.push(this._addDOMEvent(type, type, this._dispatchKeyboardEvent, this));
                        break;
                    case "keypress":
                        disposers.push(this._addDOMEvent(type, type, this._dispatchKeyboardEvent, this));
                        break;
                    case "input":
                        disposers.push(this._addDOMEvent(type, type, this._dispatchKeyboardEvent, this));
                        break;
                }
                info.disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MultiDisposer"](disposers);
                return info;
            };
            return InteractionObjectEventDispatcher;
        }(_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_1__["TargetedEventDispatcher"]));
        //# sourceMappingURL=InteractionObjectEvents.js.map
        /***/ 
    }),
    /* 790 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionKeyboardObject", function () { return InteractionKeyboardObject; });
        /* harmony import */ var _Interaction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(784);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(785);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(755);
        /**
         * Functionality related simulating of dragging of elements using keyboard.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * [[InteractionKeyboardObject]] is used to simulate dragging of the `draggable`
         * element using keyboard arrows.
         *
         * @ignore Exclude from docs
         */
        var InteractionKeyboardObject = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {InteractionObject} io An InteractionObject
             */
            function InteractionKeyboardObject(io, ev) {
                /**
                 * Indicates if this object has already been deleted. Any
                 * destruction/disposal code should take this into account when deciding
                 * wheter to run potentially costly disposal operations if they already have
                 * been run.
                 *
                 * @type {boolean}
                 */
                this._disposed = false;
                /**
                 * Indicates direction of current horizontal movement.
                 *
                 * 0 - not moving horizontally
                 * 1 - moving right
                 * -1 - moving left
                 * @type {number}
                 */
                this.directionX = 0;
                /**
                 * Indicates direction of current vertical movement.
                 *
                 * 0 - not moving vertically
                 * 1 - moving down
                 * -1 - moving up
                 * @type {number}
                 */
                this.directionY = 0;
                this.interaction = io;
                this.keyboardEvent = ev;
                this._startedOn = new Date().getTime();
                Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().processDragStart(io);
                _utils_Animation__WEBPACK_IMPORTED_MODULE_1__["animations"].push(this);
                this.update();
            }
            /**
             * It's an update method which is called by the system if
             * [[InteractionObject]] is used as animation.
             *
             * This will update coordinates of the element based on the movement
             * directions.
             */
            InteractionKeyboardObject.prototype.update = function () {
                // Init and get settings
                var io = this.interaction;
                var speed = Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().getKeyboardOption(io, "speed"), accelleration = Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().getKeyboardOption(io, "accelleration"), accellerationDelay = Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().getKeyboardOption(io, "accellerationDelay"), shift = {
                    x: 0,
                    y: 0
                };
                // If SHIFT key is pressed we slash speed by half and disable accelleration
                if (this.keyboardEvent.shiftKey) {
                    speed *= 0.5;
                    accelleration = 1;
                }
                // If CTRL is pressed we increase speed by x2
                else if (this.keyboardEvent.ctrlKey) {
                    speed *= 2;
                }
                // Get elapsed time
                var ms = new Date().getTime() - this._startedOn;
                var accelleratedMs = ms - accellerationDelay;
                // Add accellerated movement
                if ((accelleration > 0) && (accelleratedMs > 0)) {
                    var accellerationFactor = ms / accellerationDelay;
                    ms = accellerationDelay;
                    shift.x += this.directionX * (speed * accelleration * accellerationFactor * accelleratedMs);
                    shift.y += this.directionY * (speed * accelleration * accellerationFactor * accelleratedMs);
                }
                // Calculate position
                shift.x += this.directionX * (speed * ms);
                shift.y += this.directionY * (speed * ms);
                // Simulate move on Interaction
                Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().handleTransformMove(io, shift, { x: 0, y: 0 }, this.keyboardEvent, true);
            };
            /**
             * Returns if this object has been already been disposed.
             *
             * @return {boolean} Is disposed?
             */
            InteractionKeyboardObject.prototype.isDisposed = function () {
                return this._disposed;
            };
            /**
             * Disposes this object. Removes from system animations.
             */
            InteractionKeyboardObject.prototype.dispose = function () {
                if (!this._disposed) {
                    Object(_Interaction__WEBPACK_IMPORTED_MODULE_0__["getInteraction"])().processDragStop(this.interaction);
                    _utils_Array__WEBPACK_IMPORTED_MODULE_2__["remove"](_utils_Animation__WEBPACK_IMPORTED_MODULE_1__["animations"], this);
                }
            };
            return InteractionKeyboardObject;
        }());
        //# sourceMappingURL=InteractionKeyboardObject.js.map
        /***/ 
    }),
    /* 791 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Inertia", function () { return Inertia; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Interaction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(784);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(785);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Functionality related to inertia
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * A point of inertia is to simulate gradually drecreasing motion even after
         * actual interaction by user, that caused it, has already ended.
         *
         * [[Inertia]] object will continue triggering the same [[Sprite]] handlers
         * as if the interaction was still happening, gradually reducing
         * shift/angle/scale values until full stop.
         *
         * Basically, from the target element's point of view, while inertia is
         * playing, it is still being interacted with by user, albeit with a
         * decreasing speed.
         */
        var Inertia = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Inertia, _super);
            /**
             * Constructor
             */
            function Inertia(interaction, type, point, startPoint) {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * List of animations currently playing.
                 *
                 * @type {List<Animation>}
                 */
                _this.animations = [];
                _this.className = "Inertia";
                _this.interaction = interaction;
                _this.type = type;
                _this.point = point;
                _this.startPoint = startPoint;
                // Make animations disposable
                _this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["AnimationDisposer"](_this.animations));
                return _this;
            }
            Object.defineProperty(Inertia.prototype, "x", {
                /**
                 * Returns current X coordinate.
                 *
                 * @return {number} X
                 */
                get: function () {
                    return this.point.x;
                },
                /**
                 * Sets current X coordinate.
                 *
                 * Will trigger "drag" event for the target element.
                 *
                 * @param {number} value X
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](value)) {
                        this.point.x = value;
                        this.handleMove();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Inertia.prototype, "y", {
                /**
                 * Returns current Y coordinate.
                 *
                 * @return {number} Y
                 */
                get: function () {
                    return this.point.y;
                },
                /**
                 * Sets current Y coordinate.
                 *
                 * Will trigger "drag" event for the target element.
                 *
                 * @param {number} value Y
                 */
                set: function (value) {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](value)) {
                        this.point.y = value;
                        this.handleMove();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Simulates dragging of element.
             */
            Inertia.prototype.handleMove = function () {
                // Prepare {InteractionEvent} object
                if (this.interaction.events.isEnabled("drag")) {
                    var imev = {
                        type: "drag",
                        target: this.interaction,
                        shift: {
                            x: this.x - this.startPoint.x,
                            y: this.y - this.startPoint.y
                        },
                        startPoint: this.startPoint,
                        point: {
                            x: this.x,
                            y: this.y
                        }
                    };
                    // Call handler
                    this.interaction.events.dispatchImmediately("drag", imev);
                }
            };
            /**
             * Finishes up the inertia animation. (removes reference to this animation
             * object)
             */
            Inertia.prototype.done = function () {
                // Remove inertia animation from the object
                this.interaction.inertias.removeKey(this.type);
                // Move ended
                if (this.type === "move") {
                    Object(_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().processDragStop(this.interaction);
                }
                // Destroy
                this.dispose();
            };
            return Inertia;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=Inertia.js.map
        /***/ 
    }),
    /* 792 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Keyboard", function () { return Keyboard; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyboard", function () { return keyboard; });
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(757);
        /**
         * A collection of keyboard-related utilities accessible via `keyboard`
         * instance.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * A class that represents collection of keyboard-related utilities.
         *
         * Do not instantiate this class directly, but rather use `keyboard` variable.
         */
        var Keyboard = /** @class */ (function () {
            function Keyboard() {
            }
            /**
             * Returns a named key based on information contained in the event or
             * "other".
             *
             * @param  {KeyboardEvent}  ev  A keyboard event
             * @return {KeyboardKeys}       Keyboard named key
             */
            Keyboard.prototype.getEventKey = function (ev) {
                // Get the key code
                var code = ev.keyCode || ev.which, key;
                // Map to internal key
                switch (code) {
                    case 38:
                        key = "up";
                        break;
                    case 40:
                        key = "down";
                        break;
                    case 37:
                        key = "left";
                        break;
                    case 39:
                        key = "right";
                        break;
                    case 13:
                        key = "enter";
                        break;
                    case 27:
                        key = "esc";
                        break;
                    case 36:
                        key = "home";
                        break;
                    case 35:
                        key = "end";
                        break;
                    case 9:
                        key = "tab";
                        break;
                    case 17:
                        key = "ctrl";
                        break;
                    case 18:
                        key = "alt";
                        break;
                    case 16:
                        key = "shift";
                        break;
                    case 32:
                        key = "space";
                        break;
                    case 36:
                        key = "home";
                        break;
                    case 35:
                        key = "end";
                        break;
                    case 33:
                        key = "pgup";
                        break;
                    case 34:
                        key = "pgdn";
                        break;
                    case 45:
                        key = "ins";
                        break;
                    case 46:
                        key = "del";
                        break;
                    case 107:
                        key = "plus";
                        break;
                    case 109:
                        key = "minus";
                        break;
                    default:
                        key = "other";
                        break;
                }
                return key;
            };
            /**
             * Checks if event key is one or more of the selected named keys.
             *
             * @param  {KeyboardEvent}      ev   Keyboard event
             * @param  {string | string[]}  key  Named key or array of keys
             * @return {boolean}                 Is event key one of the list?
             */
            Keyboard.prototype.isKey = function (ev, key) {
                var eventKey = this.getEventKey(ev);
                if (_Type__WEBPACK_IMPORTED_MODULE_0__["isString"](key)) {
                    key = [key];
                }
                return key.indexOf(eventKey) !== -1;
            };
            /**
             * Returns `true` if shift key was presset at the moment of the event.
             *
             * @param  {KeyboardEvent | MouseEvent}  ev  Event object
             * @return {boolean}                         Was shift pressed?
             */
            Keyboard.prototype.shiftKey = function (ev) {
                return ev.shiftKey;
            };
            /**
             * Returns `true` if ctrl key was presset at the moment of the event.
             *
             * @param  {KeyboardEvent | MouseEvent}  ev  Event object
             * @return {boolean}                         Was ctrl pressed?
             */
            Keyboard.prototype.ctrlKey = function (ev) {
                return ev.ctrlKey;
            };
            /**
             * Returns `true` if alt key was presset at the moment of the event
             * @param  {KeyboardEvent | MouseEvent}  ev  Event object
             * @return {boolean}                         Was alt pressed?
             */
            Keyboard.prototype.altKey = function (ev) {
                return ev.altKey;
            };
            /**
             * Returns `true` if meta key was presset at the moment of the event
             * @param  {KeyboardEvent | MouseEvent}  ev  Event object
             * @return {boolean}                         Was meta pressed?
             */
            Keyboard.prototype.metaKey = function (ev) {
                return ev.metaKey;
            };
            return Keyboard;
        }());
        /**
         * A single [[Keyboard]] instance to be reused across all elements so that
         * they don't need to instantiate their own.
         *
         * @ignore Exclude from docs
         */
        var keyboard = new Keyboard();
        //# sourceMappingURL=Keyboard.js.map
        /***/ 
    }),
    /* 793 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeUnitDurations", function () { return timeUnitDurations; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextUnit", function () { return getNextUnit; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDuration", function () { return getDuration; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "now", function () { return now; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTime", function () { return getTime; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function () { return copy; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkChange", function () { return checkChange; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "add", function () { return add; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "round", function () { return round; });
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(757);
        /**
         * Maps time period names to their numeric representations in milliseconds.
         *
         * @ignore Exclude from docs
         */
        var timeUnitDurations = {
            millisecond: 1,
            second: 1000,
            minute: 60000,
            hour: 3600000,
            day: 86400000,
            week: 604800000,
            month: 2592000000,
            year: 31536000000
        };
        /**
         * Returns the next time unit that goes after source `unit`.
         *
         * E.g. "hour" is the next unit after "minute", etc.
         *
         * @ignore Exclude from docs
         * @param  {TimeUnit}            unit  Source time unit
         * @return {Optional<TimeUnit>}        Next time unit
         */
        function getNextUnit(unit) {
            switch (unit) {
                case "year":
                    return;
                case "month":
                    return "year";
                case "week":
                    return "month";
                case "day":
                    return "month"; // not a mistake
                case "hour":
                    return "day";
                case "minute":
                    return "hour";
                case "second":
                    return "minute";
                case "millisecond":
                    return "second";
            }
        }
        /**
         * Returns number of milliseconds in the `count` of time `unit`.
         *
         * Available units: "millisecond", "second", "minute", "hour", "day", "week",
         * "month", and "year".
         *
         * @ignore Exclude from docs
         * @param  {TimeUnit}  unit   Time unit
         * @param  {number}    count  Number of units
         * @return {number}           Milliseconds
         */
        function getDuration(unit, count) {
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](count)) {
                count = 1;
            }
            return timeUnitDurations[unit] * count;
        }
        /**
         * Returns current `Date` object.
         *
         * @return {Date} Current date
         */
        function now() {
            return new Date();
        }
        /**
         * Returns current timestamp.
         *
         * @return {Date} Current timestamp
         */
        function getTime() {
            return now().getTime();
        }
        /**
         * Returns a copy of the `Date` object.
         *
         * @ignore Exclude from docs
         * @param  {Date}  date  Source date
         * @return {Date}        Copy
         */
        function copy(date) {
            return new Date(date.getTime()); // todo: check if this is ok. new Date(date) used to strip milliseconds on FF in v3
        }
        /**
         * Checks if the `unit` part of two `Date` objects do not match. Two dates
         * represent a "range" of time, rather the same time date.
         *
         * @ignore Exclude from docs
         * @param  {Date}      dateOne  Date 1
         * @param  {Date}      dateTwo  Date 2
         * @param  {TimeUnit}  unit     Time unit to check
         * @return {boolean}            Range?
         */
        function checkChange(dateOne, dateTwo, unit) {
            switch (unit) {
                case "year":
                    if (dateOne.getFullYear() != dateTwo.getFullYear()) {
                        return true;
                    }
                    break;
                case "month":
                    if (dateOne.getMonth() != dateTwo.getMonth()) {
                        return true;
                    }
                    break;
                case "day":
                    if (dateOne.getDate() != dateTwo.getDate()) {
                        return true;
                    }
                    break;
                case "hour":
                    if (dateOne.getHours() != dateTwo.getHours()) {
                        return true;
                    }
                    break;
                case "minute":
                    if (dateOne.getMinutes() != dateTwo.getMinutes()) {
                        return true;
                    }
                    break;
                case "second":
                    if (dateOne.getSeconds() != dateTwo.getSeconds()) {
                        return true;
                    }
                    break;
                case "millisecond":
                    if (dateOne.getTime() != dateTwo.getTime()) {
                        return true;
                    }
                    break;
            }
            var nextUnit = getNextUnit(unit);
            if (nextUnit) {
                return checkChange(dateOne, dateTwo, nextUnit);
            }
            else {
                return false;
            }
        }
        /**
         * Adds `count` of time `unit` to the source date. Returns a modified `Date` object.
         *
         * @ignore Exclude from docs
         * @param  {Date}      date   Source date
         * @param  {TimeUnit}  unit   Time unit
         * @param  {number}    count  Number of units to add
         * @return {Date}             Modified date
         */
        function add(date, unit, count) {
            var year = date.getFullYear();
            var month = date.getMonth();
            var day = date.getDate();
            var hours = date.getHours();
            var minutes = date.getMinutes();
            var seconds = date.getSeconds();
            var milliseconds = date.getMilliseconds();
            //let weekDay: number = date.getDay();
            switch (unit) {
                case "year":
                    date.setFullYear(year + count);
                    break;
                case "month":
                    date.setMonth(month + count);
                    break;
                case "week":
                    date.setDate(day + count * 7);
                    break;
                case "day":
                    date.setDate(day + count);
                    break;
                case "hour":
                    date.setHours(hours + count);
                    break;
                case "minute":
                    date.setMinutes(minutes + count);
                    break;
                case "second":
                    date.setSeconds(seconds + count);
                    break;
                case "millisecond":
                    date.setMilliseconds(milliseconds + count);
                    break;
            }
            return date;
        }
        /**
         * "Rounds" the date to specific time unit.
         *
         * @ignore Exclude from docs
         * @param  {Date}      date             Source date
         * @param  {TimeUnit}  unit             Time unit
         * @param  {number}    count            Number of units to round to
         * @param  {number}    firstDateOfWeek  First day of week
         * @return {Date}                       New date
         */
        function round(date, unit, count, firstDateOfWeek) {
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](count)) {
                count = 1;
            }
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_0__["isNumber"](firstDateOfWeek)) {
                firstDateOfWeek = 1;
            }
            var year = date.getFullYear();
            var month = date.getMonth();
            var day = date.getDate();
            var hours = date.getHours();
            var minutes = date.getMinutes();
            var seconds = date.getSeconds();
            var milliseconds = date.getMilliseconds();
            var weekDay = date.getDay();
            switch (unit) {
                case "year":
                    year = Math.floor(year / count) * count;
                    month = 0;
                    day = 1;
                    hours = 0;
                    minutes = 0;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "month":
                    month = Math.floor(month / count) * count;
                    day = 1;
                    hours = 0;
                    minutes = 0;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "week":
                    // todo: rounding when count is not 1
                    if (weekDay >= firstDateOfWeek) {
                        day = day - weekDay + firstDateOfWeek;
                    }
                    else {
                        day = day - (7 + weekDay) + firstDateOfWeek;
                    }
                    hours = 0;
                    minutes = 0;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "day":
                    day = Math.floor(day / count) * count;
                    day = day;
                    hours = 0;
                    minutes = 0;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "hour":
                    hours = Math.floor(hours / count) * count;
                    minutes = 0;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "minute":
                    minutes = Math.floor(minutes / count) * count;
                    seconds = 0;
                    milliseconds = 0;
                    break;
                case "second":
                    seconds = Math.floor(seconds / count) * count;
                    milliseconds = 0;
                    break;
                case "millisecond":
                    milliseconds = Math.floor(milliseconds / count) * count;
                    break;
            }
            date.setFullYear(year, month, day);
            date.setHours(hours, minutes, seconds, milliseconds);
            return date;
        }
        //# sourceMappingURL=Time.js.map
        /***/ 
    }),
    /* 794 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Modal", function () { return Modal; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(782);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /**
         * Modal class is used to display information over chart area.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Shows an HTML modal which covers window or a chart area.
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/popups-and-modals/} For examples and docs on Popups and Modals.
         */
        var Modal = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Modal, _super);
            /**
             * Constructor
             */
            function Modal() {
                var _this = _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<Modal, IModalAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                _this.className = "Modal";
                _this.showCurtain = true;
                _this.draggable = false;
                return _this;
            }
            return Modal;
        }(_Popup__WEBPACK_IMPORTED_MODULE_1__["Popup"]));
        //# sourceMappingURL=Modal.js.map
        /***/ 
    }),
    /* 795 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyProperties", function () { return copyProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "softCopyProperties", function () { return softCopyProperties; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function () { return copy; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNotEmpty", function () { return isNotEmpty; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relativeToValue", function () { return relativeToValue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relativeRadiusToValue", function () { return relativeRadiusToValue; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valueToRelative", function () { return valueToRelative; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPixelRatio", function () { return getPixelRatio; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camelToDashed", function () { return camelToDashed; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function () { return capitalize; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringify", function () { return stringify; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeForRgex", function () { return escapeForRgex; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitTextByCharCount", function () { return splitTextByCharCount; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "truncateWithEllipsis", function () { return truncateWithEllipsis; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trim", function () { return trim; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rtrim", function () { return rtrim; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ltrim", function () { return ltrim; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reverseString", function () { return reverseString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unquote", function () { return unquote; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "padString", function () { return padString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFormat", function () { return getFormat; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanFormat", function () { return cleanFormat; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stripTags", function () { return stripTags; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "plainText", function () { return plainText; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numberToString", function () { return numberToString; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "anyToDate", function () { return anyToDate; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "anyToNumber", function () { return anyToNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getYearDay", function () { return getYearDay; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeek", function () { return getWeek; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthWeek", function () { return getMonthWeek; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDayFromWeek", function () { return getDayFromWeek; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get12Hours", function () { return get12Hours; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeZone", function () { return getTimeZone; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "random", function () { return random; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitNumber", function () { return fitNumber; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitNumberRelative", function () { return fitNumberRelative; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgPointToSprite", function () { return svgPointToSprite; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spritePointToSvg", function () { return spritePointToSvg; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spritePointToSprite", function () { return spritePointToSprite; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgRectToSprite", function () { return svgRectToSprite; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spriteRectToSvg", function () { return spriteRectToSvg; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "documentPointToSvg", function () { return documentPointToSvg; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgPointToDocument", function () { return svgPointToDocument; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "documentPointToSprite", function () { return documentPointToSprite; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spritePointToDocument", function () { return spritePointToDocument; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "width", function () { return width; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "height", function () { return height; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decimalPlaces", function () { return decimalPlaces; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function () { return parseUrl; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeUrl", function () { return serializeUrl; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "joinUrl", function () { return joinUrl; });
        /* harmony import */ var _Percent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(758);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /* harmony import */ var _String__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(763);
        /* harmony import */ var _Strings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(796);
        /* harmony import */ var _Object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(761);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(755);
        /**
         * A collection of universal utility functions.
         */
        /**
         * ============================================================================
         * MISC FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Copies all properties of one object to the other, omitting undefined.
         *
         * @param  {Object}   fromObject  Source object
         * @param  {Object}   toObject    Target object
         * @return {Object}               Updated target object
         * @todo Maybe consolidate with utils.copy?
         */
        function copyProperties(source, target) {
            _Object__WEBPACK_IMPORTED_MODULE_5__["each"](source, function (key, value) {
                // only if value is set
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value)) {
                    target[key] = value;
                }
            });
            return target;
        }
        /**
         * Copies all properties of one object to the other, omitting undefined, but only if property in target object doesn't have a value set.
         *
         * @param  {Object}   fromObject  Source object
         * @param  {Object}   toObject    Target object
         * @return {Object}               Updated target object
         * @todo Maybe consolidate with utils.copy?
         */
        function softCopyProperties(source, target) {
            _Object__WEBPACK_IMPORTED_MODULE_5__["each"](source, function (key, value) {
                // only if value is set
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value) && !(_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](target[key]))) {
                    target[key] = value;
                }
            });
            return target;
        }
        /**
         * Copies all properties of one object to the other.
         *
         * @param  {Object}  source     Source object
         * @param  {Object}  recipient  Target object
         * @return {Object}             Updated target object
         */
        function copy(source, target) {
            _Object__WEBPACK_IMPORTED_MODULE_5__["each"](source, function (key, value) {
                target[key] = value;
            });
            return target;
        }
        /**
         * Checks if value is not empty (undefined or zero-length string).
         *
         * @param  {Optional<string>}  value  Value to check
         * @return {boolean}                  `true` if value is not "empty"
         */
        function isNotEmpty(value) {
            return _utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value) && (value.toString() !== "");
        }
        /**
         * [relativeToValue description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {$type.Optional<number | Percent>}  percent  [description]
         * @param  {number}                            full     [description]
         * @return {number}                                     [description]
         */
        function relativeToValue(percent, full) {
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](percent)) {
                return percent;
            }
            else if (percent != null && _utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](percent.value) && _utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](full)) {
                return full * percent.value;
            }
            else {
                return 0;
            }
        }
        /**
         * [relativeRadiusToValue description]
         *
         * Differs from relativeToValue so that if a value is negative, it subtracts
         * it from full value.
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {$type.Optional<number | Percent>}  percent             [description]
         * @param  {number}                            full                [description]
         * @param  {boolean}                           subtractIfNegative  [description]
         * @return {number}                                                [description]
         */
        function relativeRadiusToValue(percent, full, subtractIfNegative) {
            var value;
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](percent)) {
                value = percent;
                if (value < 0) {
                    if (subtractIfNegative) {
                        value = full + value;
                    }
                    else {
                        value = full - value;
                    }
                }
            }
            else if (percent != null && _utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](percent.value)) {
                value = full * percent.value;
            }
            return value;
        }
        /**
         * [valueToRelative description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number | Percent}  value  [description]
         * @param  {number}            full   [description]
         * @return {number}                   [description]
         */
        function valueToRelative(value, full) {
            if (value instanceof _Percent__WEBPACK_IMPORTED_MODULE_0__["Percent"]) {
                return value.value;
            }
            else {
                return value / full;
            }
        }
        /**
         * Returns pixel ratio of the current screen (used on retina displays).
         *
         * @return {number} Pixel ratio
         */
        function getPixelRatio() {
            var ratio = window.devicePixelRatio || 1;
            return ratio;
        }
        /**
         * ============================================================================
         * STRING FORMATTING FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Converts camelCased text to dashed version:
         * ("thisIsString" > "this-is-string")
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function camelToDashed(str) {
            return str.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase();
        }
        /**
         * Converts tring to uppercase.
         *
         * @param  {string}  str  String to convert
         * @return {string}       uppercased string
         * @todo Maybe make it better
         */
        function capitalize(str) {
            var arr = str.split("");
            arr[0] = arr[0].toUpperCase();
            return arr.join("");
        }
        /**
         * Converts any value into its string representation.
         *
         * @param  {any}     value  Value
         * @return {string}         String represantation of the value
         */
        function stringify(value) {
            return JSON.stringify(value);
        }
        /**
         * Escapes string so it can safely be used in a Regex.
         *
         * @param  {string}  value  Unsescaped string
         * @return {string}         Escaped string
         */
        function escapeForRgex(value) {
            return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
        }
        /**
         * Splits the text into multiple lines, respecting maximum character count.
         * Prioretizes splitting on spaces and punctuation. Falls back on splitting
         * mid-word if there's no other option.
         *
         * @param  {string}    text      Text
         * @param  {number}    maxChars  Maximum number of characters per line
         * @return {string[]}            An array of split text
         */
        function splitTextByCharCount(text, maxChars, fullWords, rtl) {
            // Maybe the text fits?
            if (text.length <= maxChars) {
                return [text];
            }
            // Init result
            var res = [];
            // Split by words or by charts
            if (fullWords) {
                // Split by words first
                // Split by spacing
                var currentIndex = -1;
                var tmpText = text.replace(/([,;:!?\\\/\.\s]+)/g, _Strings__WEBPACK_IMPORTED_MODULE_4__["PLACEHOLDER"] + "$1" + _Strings__WEBPACK_IMPORTED_MODULE_4__["PLACEHOLDER"]);
                var words = tmpText.split(_Strings__WEBPACK_IMPORTED_MODULE_4__["PLACEHOLDER"]);
                // Process each word
                for (var i = 0; i < words.length; i++) {
                    // Get word and symbol count
                    var word = words[i];
                    var wordLength = word.length;
                    // Ignore empty words
                    if (wordLength === 0) {
                        continue;
                    }
                    // Check word length
                    //if ((wordLength > maxChars) && fullWords !== true) {
                    if (wordLength > maxChars) {
                        // A single word is longer than allowed symbol count
                        // Break it up
                        if (rtl) {
                            word = reverseString(word);
                        }
                        var parts = word.match(new RegExp(".{1," + maxChars + "}", "g"));
                        // TODO is this correct ?
                        if (parts) {
                            if (rtl) {
                                for (var x = 0; x < parts.length; x++) {
                                    parts[x] = reverseString(parts[x]);
                                }
                                //parts.reverse();
                            }
                            res = res.concat(parts);
                        }
                    }
                    else {
                        // Init current line
                        if (currentIndex === -1) {
                            res.push("");
                            currentIndex = 0;
                        }
                        // Check if we need to break into another line
                        if (((res[currentIndex].length + wordLength + 1) > maxChars) && res[currentIndex] !== "") {
                            res.push("");
                            currentIndex++;
                        }
                        // Add word
                        res[currentIndex] += word;
                    }
                    // Update index
                    currentIndex = res.length - 1;
                }
            }
            else {
                // Splitting by anywhere (living la vida facil)
                var parts = text.match(new RegExp(".{1," + maxChars + "}", "g"));
                if (parts) {
                    if (rtl) {
                        for (var x = 0; x < parts.length; x++) {
                            parts[x] = reverseString(parts[x]);
                        }
                    }
                    res = parts;
                }
            }
            // Do we have only one word that does not fit?
            // Since fullWords is set and we can't split the word, we end up with empty
            // set.
            if (res.length == 1 && fullWords && (res[0].length > maxChars)) {
                res = [];
            }
            return res;
        }
        /**
         * Truncates the text to certain character count.
         *
         * Will add ellipsis if the string is truncated. Optionally, can truncate on
         * full words only.
         *
         * For RTL support, pass in the fifth parameter as `true`.
         *
         * @param  {string}   text       Input text
         * @param  {number}   maxChars   Maximum character count of output
         * @param  {string}   ellipsis   Ellipsis string, i.e. "..."
         * @param  {boolean}  fullWords  If `true`, will not break mid-word, unless there's a single word and it does not with into `maxChars`
         * @param  {boolean}  rtl        Is this an RTL text?
         * @return {string}              Truncated text
         */
        function truncateWithEllipsis(text, maxChars, ellipsis, fullWords, rtl) {
            if (text.length <= maxChars) {
                return text;
            }
            // Calc max chars
            maxChars -= ellipsis.length;
            if (maxChars < 1) {
                maxChars = 1;
                //ellipsis = "";
            }
            // Get lines
            var lines = splitTextByCharCount(text, maxChars, fullWords, rtl);
            // Use first line
            return (lines[0] || "") + ellipsis;
        }
        /**
         * Removes whitespace from beginning and end of the string.
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function trim(str) {
            return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
        }
        ;
        /**
         * Removes whitespace from end of the string.
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function rtrim(str) {
            return str.replace(/[\s\uFEFF\xA0]+$/g, "");
        }
        ;
        /**
         * Removes whitespace from beginning of the string.
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function ltrim(str) {
            return str.replace(/^[\s\uFEFF\xA0]+/g, "");
        }
        ;
        /**
         * Reverses string.
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function reverseString(str) {
            return str.split("").reverse().join("");
        }
        /**
         * Removes quotes from the string.
         *
         * @param  {string}  str  Input
         * @return {string}       Output
         */
        function unquote(str) {
            var res = str.trim();
            res = str.replace(/^'(.*)'$/, "$1");
            if (res == str) {
                res = str.replace(/^"(.*)"$/, "$1");
            }
            return res;
        }
        /**
         * Pads a string with additional characters to certain length.
         *
         * @param  {any}            value  A numeric value
         * @param  {number = 0}     len    Result string length in characters
         * @param  {string = "0"}   char   A character to use for padding
         * @return {string}                Padded value as string
         */
        function padString(value, len, char) {
            if (len === void 0) {
                len = 0;
            }
            if (char === void 0) {
                char = "0";
            }
            if (typeof value !== "string")
                value = value.toString();
            return len > value.length ? Array(len - value.length + 1).join(char) + value : value;
        }
        /**
         * Tries to determine format type.
         *
         * @ignore Exclude from docs
         * @param {string}   format  Format string
         * @return {string}          Format type ("string" | "number" | "date" | "duration")
         */
        function getFormat(format) {
            // Undefined?
            if (typeof format === "undefined")
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["STRING"];
            // Cleanup and lowercase format
            format = format.toLowerCase().replace(/^\[[^\]]*\]/, "");
            // Remove style tags
            format = format.replace(/\[[^\]]+\]/, "");
            // Trim
            format = format.trim();
            // Check for any explicit format hints (i.e. /Date)
            var hints = format.match(/\/(date|number|duration)$/);
            if (hints) {
                return hints[1];
            }
            // Check for explicit hints
            if (format === _Strings__WEBPACK_IMPORTED_MODULE_4__["NUMBER"]) {
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["NUMBER"];
            }
            if (format === _Strings__WEBPACK_IMPORTED_MODULE_4__["DATE"]) {
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["DATE"];
            }
            if (format === _Strings__WEBPACK_IMPORTED_MODULE_4__["DURATION"]) {
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["DURATION"];
            }
            // Detect number formatting symbols
            if (format.match(/[#0]/)) {
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["NUMBER"];
            }
            // Detect date formatting symbols
            if (format.match(/[ymwdhnsqaxkzgtei]/)) {
                return _Strings__WEBPACK_IMPORTED_MODULE_4__["DATE"];
            }
            // Nothing? Let's display as string
            return _Strings__WEBPACK_IMPORTED_MODULE_4__["STRING"];
        }
        /**
         * Cleans up format:
         * * Strips out formatter hints
         *
         * @ignore Exclude from docs
         * @param  {string}  format  Format
         * @return {string}          Cleaned format
         */
        function cleanFormat(format) {
            return format.replace(/\/(date|number|duration)$/i, "");
        }
        /**
         * Strips all tags from the string.
         *
         * @param  {string}  text  Source string
         * @return {string}        String without tags
         */
        function stripTags(text) {
            return text ? text.replace(/<[^>]*>/g, "") : text;
        }
        /**
         * Removes new lines and tags from a string.
         *
         * @param  {string}  text  String to conver
         * @return {string}        Converted string
         */
        function plainText(text) {
            return text ? stripTags(text.replace(/[\n\r]+/g, ". ")) : text;
        }
        /**
         * ============================================================================
         * TYPE CONVERSION FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Converts numeric value into string. Deals with large or small numbers that
         * would otherwise use exponents.
         *
         * @param  {number}  value  Numeric value
         * @return {string}         Numeric value as string
         */
        function numberToString(value) {
            // TODO handle Infinity and -Infinity
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNaN"](value)) {
                return "NaN";
            }
            if (value === Infinity) {
                return "Infinity";
            }
            if (value === -Infinity) {
                return "-Infinity";
            }
            // Negative 0
            if ((value === 0) && (1 / value === -Infinity)) {
                return "-0";
            }
            // Preserve negative and deal with absoute values
            var negative = value < 0;
            value = Math.abs(value);
            // TODO test this
            var parsed = _utils_Type__WEBPACK_IMPORTED_MODULE_2__["getValue"](/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + value));
            var digits = parsed[1];
            var decimals = parsed[2] || "";
            var res;
            // Leave the nummber as it is if it does not use exponents
            if (parsed[3] == null) {
                res = (decimals === "" ? digits : digits + "." + decimals);
            }
            else {
                var exponent = +parsed[3];
                // Deal with decimals
                if (value < 1) {
                    var zeros = exponent - 1;
                    res = "0." + _String__WEBPACK_IMPORTED_MODULE_3__["repeat"]("0", zeros) + digits + decimals;
                    // Deal with integers
                }
                else {
                    var zeros = exponent - decimals.length;
                    if (zeros === 0) {
                        res = digits + decimals;
                    }
                    else if (zeros < 0) {
                        res = digits + decimals.slice(0, zeros) + "." + decimals.slice(zeros);
                    }
                    else {
                        res = digits + decimals + _String__WEBPACK_IMPORTED_MODULE_3__["repeat"]("0", zeros);
                    }
                }
            }
            return negative ? "-" + res : res;
        }
        /**
         * Converts anything to Date object.
         *
         * @param  {Date | number | string}  value  A value of any type
         * @return {Date}                           Date object representing a value
         */
        function anyToDate(value) {
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isDate"](value)) {
                // TODO maybe don't create a new Date ?
                return new Date(value);
            }
            else if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](value)) {
                return new Date(value);
            }
            else {
                // Try converting to number (assuming timestamp)
                var num = Number(value);
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](num)) {
                    return new Date(value);
                }
                else {
                    return new Date(num);
                }
            }
        }
        /**
         * Tries converting any value to a number.
         *
         * @param  {any}     value  Source value
         * @return {number}         Number
         */
        function anyToNumber(value) {
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isDate"](value)) {
                return value.getTime();
            }
            else if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](value)) {
                return value;
            }
            else if (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isString"](value)) {
                // Try converting to number (assuming timestamp)
                var num = Number(value);
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](num)) {
                    // Failing
                    return undefined;
                }
                else {
                    return num;
                }
            }
        }
        /**
         * ============================================================================
         * DATE-RELATED FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Returns a year day.
         *
         * @param  {Date}     date  Date
         * @param  {boolean}  utc   Assume UTC dates?
         * @return {number}         Year day
         * @todo Account for UTC
         */
        function getYearDay(date, utc) {
            if (utc === void 0) {
                utc = false;
            }
            var first = new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0);
            return Math.floor((date.getTime() - first.getTime()) / 86400000) + 1;
        }
        /**
         * Returns week number for a given date.
         *
         * @param  {Date}     date  Date
         * @param  {boolean}  utc   Assume UTC dates?
         * @return {number}         Week number
         * @todo Account for UTC
         */
        function getWeek(date, utc) {
            if (utc === void 0) {
                utc = false;
            }
            var day = getYearDay(date, utc) - 1;
            var week = Math.floor((day - (date.getDay() || 7) + 10) / 7);
            if (week === 0) {
                week = 53;
            }
            else if (week === 53) {
                week = 1;
            }
            return week;
        }
        /**
         * Returns a week number in the month.
         *
         * @param  {Date}     date  Source Date
         * @param  {boolean}  utc   Assume UTC dates?
         * @return {number}         Week number in month
         */
        function getMonthWeek(date, utc) {
            if (utc === void 0) {
                utc = false;
            }
            var firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc);
            var currentWeek = getWeek(date, utc);
            if (currentWeek == 1) {
                currentWeek = 53;
            }
            return currentWeek - firstWeek + 1;
        }
        /**
         * Returns a year day out of the given week number.
         *
         * @param  {number}   week     Week
         * @param  {number}   year     Year
         * @param  {number}   weekday  Weekday
         * @param  {boolean}  utc      Assume UTC dates
         * @return {number}            Day in a year
         */
        function getDayFromWeek(week, year, weekday, utc) {
            if (weekday === void 0) {
                weekday = 1;
            }
            if (utc === void 0) {
                utc = false;
            }
            var date = new Date(year, 0, 4, 0, 0, 0, 0);
            if (utc) {
                date.setUTCFullYear(year);
            }
            var day = week * 7 + weekday - ((date.getDay() || 7) + 3);
            return day;
        }
        /**
         * Returns 12-hour representation out of the 24-hour hours.
         *
         * @param  {number}  hours  24-hour number
         * @return {number}         12-hour number
         */
        function get12Hours(hours, base) {
            if (hours > 12) {
                hours -= 12;
            }
            else if (hours === 0) {
                hours = 12;
            }
            return _utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](base) ? hours + (base - 1) : hours;
        }
        /**
         * Returns a string name of the tome zone.
         *
         * @param  {Date}     date     Date object
         * @param  {boolean}  long     Should return long ("Pacific Standard Time") or short abbreviation ("PST")
         * @param  {boolean}  savings  Include information if it's in daylight savings mode
         * @param  {boolean}  utc      Assume UTC dates
         * @return {string}            Time zone name
         */
        function getTimeZone(date, long, savings, utc) {
            if (long === void 0) {
                long = false;
            }
            if (savings === void 0) {
                savings = false;
            }
            if (utc === void 0) {
                utc = false;
            }
            if (utc) {
                return long ? "Coordinated Universal Time" : "UTC";
            }
            var wotz = date.toLocaleString("UTC");
            var wtz = date.toLocaleString("UTC", { timeZoneName: long ? "long" : "short" }).substr(wotz.length);
            //wtz = wtz.replace(/[+-]+[0-9]+$/, "");
            if (savings === false) {
                wtz = wtz.replace(/ (standard|daylight|summer|winter) /i, " ");
            }
            return wtz;
        }
        /**
         * ============================================================================
         * NUMBER-RELATED FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Returns a random number between `from` and `to`.
         *
         * @param  {number}  from  From number
         * @param  {number}  to    To number
         * @return {number}        Random number
         */
        function random(from, to) {
            return Math.floor(Math.random() * to) + from;
        }
        /**
         * Fits the number into specific `min` and `max` bounds.
         *
         * @param  {number}  value  Input value
         * @param  {number}  min    Minimum value
         * @param  {number}  max    Maximum value
         * @return {number}         Possibly adjusted value
         */
        function fitNumber(value, min, max) {
            if (value > max) {
                return max;
            }
            else if (value < min) {
                return min;
            }
            return value;
        }
        /**
         * Fits the number into specific `min` and `max` bounds.
         *
         * If the value is does not fit withing specified range, it "wraps" around the
         * values.
         *
         * For example, if we have input value 10 with min set at 1 and max set at 8,
         * the value will not fit. The remainder that does not fit (2) will be added
         * to `min`, resulting in 3.
         *
         * The output of regular `fitNumber()` would return 8 instead.
         *
         * @param  {number}  value  Input value
         * @param  {number}  min    Minimum value
         * @param  {number}  max    Maximum value
         * @return {number}         Possibly adjusted value
         */
        function fitNumberRelative(value, min, max) {
            var gap = max - min;
            if (value > max) {
                value = min + (value - gap * Math.floor(value / gap));
            }
            else if (value < min) {
                value = min + (value - gap * Math.floor(value / gap));
            }
            return value;
        }
        /**
         * ============================================================================
         * SPRITE-RELATED FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Converts SVG element coordinates to coordinates within specific [[Sprite]].
         *
         * @param  {IPoint}  point   SVG coordinates
         * @param  {Sprite}  sprite  Sprite
         * @return {IPoint}         Sprite coordinates
         */
        function svgPointToSprite(point, sprite) {
            var x = point.x;
            var y = point.y;
            var sprites = [];
            if (sprite) {
                while (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](sprite.parent)) {
                    sprites.push(sprite);
                    sprite = sprite.parent;
                }
                sprites.reverse();
                for (var i = 0; i < sprites.length; i++) {
                    var sprite_1 = sprites[i];
                    var angle = sprite_1.rotation;
                    var relativeX = x - sprite_1.pixelX - sprite_1.ex;
                    var relativeY = y - sprite_1.pixelY - sprite_1.ey;
                    if (sprite_1.dx) {
                        x -= sprite_1.dx;
                    }
                    if (sprite_1.dy) {
                        y -= sprite_1.dy;
                    }
                    x = (_utils_Math__WEBPACK_IMPORTED_MODULE_1__["cos"](-angle) * relativeX - _utils_Math__WEBPACK_IMPORTED_MODULE_1__["sin"](-angle) * relativeY) / sprite_1.scale - sprite_1.pixelPaddingLeft;
                    y = (_utils_Math__WEBPACK_IMPORTED_MODULE_1__["cos"](-angle) * relativeY + _utils_Math__WEBPACK_IMPORTED_MODULE_1__["sin"](-angle) * relativeX) / sprite_1.scale - sprite_1.pixelPaddingTop;
                }
            }
            return { x: x, y: y };
        }
        /**
         * Converts coordinates within [[Sprite]] to coordinates relative to the whole
         * SVG element.
         *
         * @param  {IPoint}  point   Sprite coordinates
         * @param  {Sprite}  sprite  Sprite
         * @return {IPoint}          SVG coordinates
         */
        function spritePointToSvg(point, sprite) {
            var x = point.x;
            var y = point.y;
            if (sprite) {
                while (_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](sprite.parent)) {
                    var angle = sprite.rotation;
                    x += sprite.pixelPaddingLeft + sprite.ex;
                    y += sprite.pixelPaddingTop + sprite.ey;
                    if (sprite.dx) {
                        x += sprite.dx;
                    }
                    if (sprite.dy) {
                        y += sprite.dy;
                    }
                    var relativeX = sprite.pixelX + ((x * _utils_Math__WEBPACK_IMPORTED_MODULE_1__["cos"](angle) - y * _utils_Math__WEBPACK_IMPORTED_MODULE_1__["sin"](angle))) * sprite.scale;
                    var relativeY = sprite.pixelY + ((x * _utils_Math__WEBPACK_IMPORTED_MODULE_1__["sin"](angle) + y * _utils_Math__WEBPACK_IMPORTED_MODULE_1__["cos"](angle))) * sprite.scale;
                    x = relativeX;
                    y = relativeY;
                    sprite = sprite.parent;
                }
            }
            return { x: x, y: y };
        }
        /**
         * Converts coordinates of one sprite to another.
         *
         * @param  {IPoint}  point   Sprite coordinates
         * @param  {Sprite}  sprite  Sprite
         * @param  {Sprite}  toSprite  Sprite
         * @return {IPoint}  converted coordinates
         */
        function spritePointToSprite(point, sprite, toSprite) {
            return svgPointToSprite(spritePointToSvg(point, sprite), toSprite);
        }
        /**
         * Converts a rectangle expressed in SVG element coordinates to coordinates
         * within specific [[Sprite]].
         *
         * @param  {IRectangle}  rect    SVG rectangle
         * @param  {Sprite}      sprite  Sprite
         * @return {IRectangle}          Sprite rectangle
         */
        function svgRectToSprite(rect, sprite) {
            var p1 = svgPointToSprite(rect, sprite);
            var p2 = svgPointToSprite({ x: rect.x + rect.width, y: rect.y + rect.height }, sprite);
            return { x: p1.x, y: p1.y, width: p2.x - p1.x, height: p2.y - p1.y };
        }
        /**
         * Converts a rectangle expressed in [[Sprite]] coordinates to SVG coordinates.
         *
         * @param  {IRectangle}  rect    Sprite rectangle
         * @param  {Sprite}      sprite  Sprite
         * @return {IRectangle}          SVG rectangle
         */
        function spriteRectToSvg(rect, sprite) {
            var p1 = spritePointToSvg(rect, sprite);
            var p2 = spritePointToSvg({ x: rect.x + rect.width, y: rect.y + rect.height }, sprite);
            return { x: p1.x, y: p1.y, width: p2.x - p1.x, height: p2.y - p1.y };
        }
        /**
         * Converts global document-wide coordinates to coordinates within SVG element.
         *
         * @param  {IPoint}       point         Global coordinates
         * @param  {HTMLElement}  svgContainer  SVG element
         * @return {IPoint}                     SVG coordinates
         */
        function documentPointToSvg(point, svgContainer) {
            var bbox = svgContainer.getBoundingClientRect();
            return {
                "x": point.x - bbox.left,
                "y": point.y - bbox.top
            };
        }
        /**
         * Converts SVG coordinates to global document-wide coordinates.
         *
         * @param  {IPoint}       point         SVG coordinates
         * @param  {HTMLElement}  svgContainer  SVG element
         * @return {IPoint}                     Global coordinates
         */
        function svgPointToDocument(point, svgContainer) {
            var bbox = svgContainer.getBoundingClientRect();
            return {
                "x": point.x + bbox.left,
                "y": point.y + bbox.top
            };
        }
        /**
         * Converts document-wide global coordinates to coordinates within specific
         * [[Sprite]].
         *
         * @param  {IPoint}  point   Global coordinates
         * @param  {Sprite}  sprite  Sprite
         * @return {IPoint}          Sprite coordinates
         */
        function documentPointToSprite(point, sprite) {
            if (sprite) {
                var svgPoint = documentPointToSvg(point, _utils_Type__WEBPACK_IMPORTED_MODULE_2__["getValue"](sprite.htmlContainer));
                return svgPointToSprite(svgPoint, sprite);
            }
            else {
                return point;
            }
        }
        /**
         * Converts coordinates within [[Sprite]] to global document coordinates.
         *
         * @param  {IPoint}  point   Sprite coordinates
         * @param  {Sprite}  sprite  Sprite
         * @return {IPoint}          Global coordinates
         */
        function spritePointToDocument(point, sprite) {
            if (sprite) {
                var svgPoint = spritePointToSvg(point, sprite);
                return svgPointToDocument(svgPoint, _utils_Type__WEBPACK_IMPORTED_MODULE_2__["getValue"](sprite.htmlContainer));
            }
            else {
                return point;
            }
        }
        /**
         * ============================================================================
         * DEPRECATED FUNCTIONS
         * @todo Review and remove
         * ============================================================================
         * @hidden
         */
        /**
         * Returns element's width.
         *
         * @ignore Exclude from docs
         * @param  {HTMLElement}  element  Element
         * @return {number}                Width (px)
         * @deprecated Not used anywhere
         */
        function width(element) {
            return element.clientWidth;
        }
        /**
         * Returns element's height.
         *
         * @ignore Exclude from docs
         * @param  {HTMLElement}  element  Element
         * @return {number}                Height (px)
         * @deprecated Not used anywhere
         */
        function height(element) {
            return element.clientHeight;
        }
        /**
         * Returns number of decimals
         *
         * @ignore Exclude from docs
         * @param  {number}  number  Input number
         * @return {number}          Number of decimals
         */
        function decimalPlaces(number) {
            var match = ('' + number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
            if (!match) {
                return 0;
            }
            return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));
        }
        var urlRegexp = /^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;
        /**
         * Parses a URL
         *
         * @ignore Exclude from docs
         */
        // TODO test this
        function parseUrl(url) {
            var match = urlRegexp.exec(url);
            return {
                protocol: (match && match[1]) || "",
                separator: (match && match[2]) || "",
                authority: (match && match[3]) || "",
                domain: (match && match[4]) || "",
                port: (match && match[5]) || "",
                path: (match && match[6]) || "",
                query: (match && match[7]) || "",
                hash: (match && match[8]) || ""
            };
        }
        /**
         * Serializes a Url into a string
         *
         * @ignore Exclude from docs
         */
        function serializeUrl(url) {
            return url.protocol + url.separator + url.authority + url.domain + url.port + url.path + url.query + url.hash;
        }
        /**
         * Checks whether a Url is relative or not
         *
         * @ignore Exclude from docs
         */
        // TODO is this correct ?
        function isRelativeUrl(url) {
            return url.protocol === "" &&
                url.separator === "" &&
                url.authority === "" &&
                url.domain === "" &&
                url.port === "";
        }
        /**
         * Joins together two URLs, resolving relative URLs correctly
         *
         * @ignore Exclude from docs
         */
        // TODO test this
        function joinUrl(left, right) {
            var parsedLeft = parseUrl(left);
            var parsedRight = parseUrl(right);
            if (isRelativeUrl(parsedLeft)) {
                throw new Error("Left URL is not absolute");
            }
            if (isRelativeUrl(parsedRight)) {
                // TODO is this correct ?
                if (parsedRight.path !== "") {
                    if (parsedRight.path[0] === "/") {
                        parsedLeft.path = parsedRight.path;
                        // TODO is this correct ?
                    }
                    else {
                        var leftPath = parsedLeft.path.split(/\//);
                        var rightPath = parsedRight.path.split(/\//);
                        // TODO is this correct ?
                        if (leftPath.length === 0) {
                            if (rightPath.length !== 0) {
                                leftPath.push("");
                            }
                        }
                        else if (leftPath.length > 1) {
                            leftPath.pop();
                        }
                        _Array__WEBPACK_IMPORTED_MODULE_6__["pushAll"](leftPath, rightPath);
                        parsedLeft.path = leftPath.join("/");
                        if (parsedLeft.path !== "" && parsedLeft.path[0] !== "/") {
                            throw new Error("URL path must start with /");
                        }
                    }
                }
                // TODO is this correct ?
                parsedLeft.query = parsedRight.query;
                parsedLeft.hash = parsedRight.hash;
                return serializeUrl(parsedLeft);
            }
            else {
                return serializeUrl(parsedRight);
            }
        }
        //# sourceMappingURL=Utils.js.map
        /***/ 
    }),
    /* 796 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PX", function () { return PX; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STRING", function () { return STRING; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMBER", function () { return NUMBER; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATE", function () { return DATE; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DURATION", function () { return DURATION; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLACEHOLDER", function () { return PLACEHOLDER; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLACEHOLDER2", function () { return PLACEHOLDER2; });
        /**
         * A collection of String-based constants.
         * @hidden
         * @ignore Exclude from docs
         */
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var PX = "px";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var STRING = "string";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var NUMBER = "number";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var DATE = "date";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var DURATION = "duration";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var PLACEHOLDER = "__§§§__";
        /**
         * @ignore Exclude from docs
         * @type {string}
         */
        var PLACEHOLDER2 = "__§§§§__";
        //# sourceMappingURL=Strings.js.map
        /***/ 
    }),
    /* 797 */
    /***/ (function (module, exports, __webpack_require__) {
        "use strict";
        var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
        /**
         * Copyright Marc J. Schmidt. See the LICENSE file at the top-level
         * directory of this distribution and at
         * https://github.com/marcj/css-element-queries/blob/master/LICENSE.
         */
        (function (root, factory) {
            if (true) {
                !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
                    __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
                        (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
                        __WEBPACK_AMD_DEFINE_FACTORY__),
                    __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
            }
            else { }
        }(typeof window !== 'undefined' ? window : this, function () {
            // Make sure it does not throw in a SSR (Server Side Rendering) situation
            if (typeof window === "undefined") {
                return null;
            }
            // Only used for the dirty checking, so the event callback count is limited to max 1 call per fps per sensor.
            // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and
            // would generate too many unnecessary events.
            var requestAnimationFrame = window.requestAnimationFrame ||
                window.mozRequestAnimationFrame ||
                window.webkitRequestAnimationFrame ||
                function (fn) {
                    return window.setTimeout(fn, 20);
                };
            /**
             * Iterate over each of the provided element(s).
             *
             * @param {HTMLElement|HTMLElement[]} elements
             * @param {Function}                  callback
             */
            function forEachElement(elements, callback) {
                var elementsType = Object.prototype.toString.call(elements);
                var isCollectionTyped = ('[object Array]' === elementsType
                    || ('[object NodeList]' === elementsType)
                    || ('[object HTMLCollection]' === elementsType)
                    || ('[object Object]' === elementsType)
                    || ('undefined' !== typeof jQuery && elements instanceof jQuery) //jquery
                    || ('undefined' !== typeof Elements && elements instanceof Elements) //mootools
                );
                var i = 0, j = elements.length;
                if (isCollectionTyped) {
                    for (; i < j; i++) {
                        callback(elements[i]);
                    }
                }
                else {
                    callback(elements);
                }
            }
            /**
            * Get element size
            * @param {HTMLElement} element
            * @returns {Object} {width, height}
            */
            function getElementSize(element) {
                if (!element.getBoundingClientRect) {
                    return {
                        width: element.offsetWidth,
                        height: element.offsetHeight
                    };
                }
                var rect = element.getBoundingClientRect();
                return {
                    width: Math.round(rect.width),
                    height: Math.round(rect.height)
                };
            }
            /**
             * Class for dimension change detection.
             *
             * @param {Element|Element[]|Elements|jQuery} element
             * @param {Function} callback
             *
             * @constructor
             */
            var ResizeSensor = function (element, callback) {
                /**
                 *
                 * @constructor
                 */
                function EventQueue() {
                    var q = [];
                    this.add = function (ev) {
                        q.push(ev);
                    };
                    var i, j;
                    this.call = function (sizeInfo) {
                        for (i = 0, j = q.length; i < j; i++) {
                            q[i].call(this, sizeInfo);
                        }
                    };
                    this.remove = function (ev) {
                        var newQueue = [];
                        for (i = 0, j = q.length; i < j; i++) {
                            if (q[i] !== ev)
                                newQueue.push(q[i]);
                        }
                        q = newQueue;
                    };
                    this.length = function () {
                        return q.length;
                    };
                }
                /**
                 *
                 * @param {HTMLElement} element
                 * @param {Function}    resized
                 */
                function attachResizeEvent(element, resized) {
                    if (!element)
                        return;
                    if (element.resizedAttached) {
                        element.resizedAttached.add(resized);
                        return;
                    }
                    element.resizedAttached = new EventQueue();
                    element.resizedAttached.add(resized);
                    element.resizeSensor = document.createElement('div');
                    element.resizeSensor.dir = 'ltr';
                    element.resizeSensor.className = 'resize-sensor';
                    var style = 'pointer-events: none; position: absolute; left: 0px; top: 0px; right: 0; bottom: 0; ' +
                        'overflow: hidden; z-index: -1; visibility: hidden; max-width: 100%;';
                    var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
                    element.resizeSensor.style.cssText = style;
                    element.resizeSensor.innerHTML =
                        '<div class="resize-sensor-expand" style="' + style + '">' +
                            '<div style="' + styleChild + '"></div>' +
                            '</div>' +
                            '<div class="resize-sensor-shrink" style="' + style + '">' +
                            '<div style="' + styleChild + ' width: 200%; height: 200%"></div>' +
                            '</div>';
                    element.appendChild(element.resizeSensor);
                    var computedStyle = window.getComputedStyle(element);
                    var position = computedStyle ? computedStyle.getPropertyValue('position') : null;
                    if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) {
                        element.style.position = 'relative';
                    }
                    var expand = element.resizeSensor.childNodes[0];
                    var expandChild = expand.childNodes[0];
                    var shrink = element.resizeSensor.childNodes[1];
                    var dirty, rafId;
                    var size = getElementSize(element);
                    var lastWidth = size.width;
                    var lastHeight = size.height;
                    var initialHiddenCheck = true;
                    var lastAnimationFrame = 0;
                    var resetExpandShrink = function () {
                        var width = element.offsetWidth;
                        var height = element.offsetHeight;
                        expandChild.style.width = (width + 10) + 'px';
                        expandChild.style.height = (height + 10) + 'px';
                        expand.scrollLeft = width + 10;
                        expand.scrollTop = height + 10;
                        shrink.scrollLeft = width + 10;
                        shrink.scrollTop = height + 10;
                    };
                    var reset = function () {
                        // Check if element is hidden
                        if (initialHiddenCheck) {
                            var invisible = element.offsetWidth === 0 && element.offsetHeight === 0;
                            if (invisible) {
                                // Check in next frame
                                if (!lastAnimationFrame) {
                                    lastAnimationFrame = requestAnimationFrame(function () {
                                        lastAnimationFrame = 0;
                                        reset();
                                    });
                                }
                                return;
                            }
                            else {
                                // Stop checking
                                initialHiddenCheck = false;
                            }
                        }
                        resetExpandShrink();
                    };
                    element.resizeSensor.resetSensor = reset;
                    var onResized = function () {
                        rafId = 0;
                        if (!dirty)
                            return;
                        lastWidth = size.width;
                        lastHeight = size.height;
                        if (element.resizedAttached) {
                            element.resizedAttached.call(size);
                        }
                    };
                    var onScroll = function () {
                        size = getElementSize(element);
                        dirty = size.width !== lastWidth || size.height !== lastHeight;
                        if (dirty && !rafId) {
                            rafId = requestAnimationFrame(onResized);
                        }
                        reset();
                    };
                    var addEvent = function (el, name, cb) {
                        if (el.attachEvent) {
                            el.attachEvent('on' + name, cb);
                        }
                        else {
                            el.addEventListener(name, cb);
                        }
                    };
                    addEvent(expand, 'scroll', onScroll);
                    addEvent(shrink, 'scroll', onScroll);
                    // Fix for custom Elements
                    requestAnimationFrame(reset);
                }
                forEachElement(element, function (elem) {
                    attachResizeEvent(elem, callback);
                });
                this.detach = function (ev) {
                    ResizeSensor.detach(element, ev);
                };
                this.reset = function () {
                    element.resizeSensor.resetSensor();
                };
            };
            ResizeSensor.reset = function (element) {
                forEachElement(element, function (elem) {
                    elem.resizeSensor.resetSensor();
                });
            };
            ResizeSensor.detach = function (element, ev) {
                forEachElement(element, function (elem) {
                    if (!elem)
                        return;
                    if (elem.resizedAttached && typeof ev === "function") {
                        elem.resizedAttached.remove(ev);
                        if (elem.resizedAttached.length())
                            return;
                    }
                    if (elem.resizeSensor) {
                        if (elem.contains(elem.resizeSensor)) {
                            elem.removeChild(elem.resizeSensor);
                        }
                        delete elem.resizeSensor;
                        delete elem.resizedAttached;
                    }
                });
            };
            if (typeof MutationObserver !== "undefined") {
                var observer = new MutationObserver(function (mutations) {
                    for (var i in mutations) {
                        if (mutations.hasOwnProperty(i)) {
                            var items = mutations[i].addedNodes;
                            for (var j = 0; j < items.length; j++) {
                                if (items[j].resizeSensor) {
                                    ResizeSensor.reset(items[j]);
                                }
                            }
                        }
                    }
                });
                document.addEventListener("DOMContentLoaded", function (event) {
                    observer.observe(document.body, {
                        childList: true,
                        subtree: true,
                    });
                });
            }
            return ResizeSensor;
        }));
        /***/ 
    }),
    /* 798 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpriteEventDispatcher", function () { return SpriteEventDispatcher; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(760);
        /* harmony import */ var _utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(752);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(761);
        /**
         * An [[EventDispatcher]] for [[Sprite]].
         *
         * @type {TargetedEventDispatcher}
         * @important
         */
        var SpriteEventDispatcher = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SpriteEventDispatcher, _super);
            function SpriteEventDispatcher() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * [_interactionEvents description]
                 *
                 * @todo Description
                 * @type {Dictionary}
                 */
                _this._interactionEvents = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_1__["Dictionary"]();
                return _this;
            }
            /**
             * [_dispatchSpriteEvent description]
             *
             * @todo Description
             * @type {[type]}
             */
            SpriteEventDispatcher.prototype._dispatchSpriteEvent = function (ev) {
                if (this.target.disabled || this.target.isTemplate) {
                    return;
                }
                // TODO remove this <any> later
                if (this.target.events.isEnabled(ev.type)) {
                    var imev = _utils_Object__WEBPACK_IMPORTED_MODULE_5__["merge"](ev, {
                        target: this.target
                    });
                    this.target.events.dispatchImmediately(imev.type, imev);
                }
            };
            /**
             * [_dispatchSpritePointEvent description]
             *
             * @todo Description
             * @type {[type]}
             */
            SpriteEventDispatcher.prototype._dispatchSpritePointEvent = function (ev) {
                if (this.target.disabled || this.target.isTemplate) {
                    return;
                }
                // TODO remove this <any> later
                if (this.target.events.isEnabled(ev.type)) {
                    var imev = _utils_Object__WEBPACK_IMPORTED_MODULE_5__["merge"](ev, {
                        target: this.target,
                        spritePoint: _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["documentPointToSprite"](ev.point, this.target),
                        svgPoint: this.target.getSvgPoint(ev.point)
                    });
                    this.target.events.dispatchImmediately(imev.type, imev);
                }
            };
            /**
             * [_addInteractionObjectEvent description]
             *
             * @todo Description
             * @type {[type]}
             */
            SpriteEventDispatcher.prototype._addInteractionObjectEvent = function (type, callback, context) {
                var _this = this;
                var counter = this._interactionEvents.insertKeyIfEmpty(type, function () {
                    var disposer = _this.target.interactions.events.on(type, callback, context);
                    return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["CounterDisposer"](function () {
                        _this._interactionEvents.removeKey(type);
                        disposer.dispose();
                    });
                });
                return counter.increment();
            };
            /**
             * [_on description]
             *
             * @todo Description
             * @type {[type]}
             */
            SpriteEventDispatcher.prototype._on = function (once, type, callback, context, shouldClone, dispatch) {
                var info = _super.prototype._on.call(this, once, type, callback, context, shouldClone, dispatch);
                var disposers = [info.disposer];
                /**
                 * Catching Sprite-related events, converting them to [[SpriteEvent]] and
                 * triggering them on sprite
                 */
                switch (type) {
                    case "hit":
                    case "track":
                    case "doublehit":
                    case "wheel":
                    case "wheelup":
                    case "wheeldown":
                    case "wheelleft":
                    case "wheelright":
                        disposers.push(this._addInteractionObjectEvent(type, this._dispatchSpritePointEvent, this));
                        break;
                    case "rightclick":
                    case "down":
                    //case "hold":
                    case "up":
                    case "drag":
                    case "dragstart":
                    case "dragstop":
                    case "over":
                    case "out":
                    case "swipe":
                    case "swipeleft":
                    case "swiperight":
                    case "resize":
                    //case "rotate":
                    case "focus":
                    case "blur":
                    case "toggled":
                        disposers.push(this._addInteractionObjectEvent(type, this._dispatchSpriteEvent, this));
                        break;
                }
                /**
                 * Set functional properties based on events. For example if we add a
                 * "drag" event handler, we want to make the Sprite draggable, even if we
                 * don't explicitly set "draggable"
                 */
                switch (type) {
                    case "hit":
                    case "doublehit":
                    case "rightclick":
                    case "down":
                    case "up":
                        this.target.clickable = true;
                        break;
                    case "toggled":
                        this.target.togglable = true;
                        break;
                    case "drag":
                    case "dragstart":
                    case "dragstop":
                        this.target.draggable = true;
                        break;
                    case "track":
                        this.target.trackable = true;
                        break;
                    case "resize":
                        this.target.resizable = true;
                        break;
                    case "swipe":
                    case "swipeleft":
                    case "swiperight":
                        this.target.swipeable = true;
                        break;
                    case "wheel":
                    case "wheelup":
                    case "wheeldown":
                    case "wheelleft":
                    case "wheelright":
                        this.target.wheelable = true;
                        break;
                    case "over":
                        this.target.hoverable = true;
                    case "out":
                        this.target.hoverable = true;
                        break;
                    case "focus":
                    case "blur":
                        this.target.focusable = true;
                        break;
                }
                info.disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MultiDisposer"](disposers);
                return info;
            };
            return SpriteEventDispatcher;
        }(_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_2__["TargetedEventDispatcher"]));
        //# sourceMappingURL=SpriteEvents.js.map
        /***/ 
    }),
    /* 799 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pattern", function () { return Pattern; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(777);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(785);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(800);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Pattern module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base class to define patterns.
         */
        var Pattern = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Pattern, _super);
            //public propertyValues = new Dictionary<PatternProperties, any>();
            /**
             * Constructor
             */
            function Pattern() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * List of elements the pattern consists of.
                 *
                 * @type {List<AMElement>}
                 */
                _this._elements = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                /**
                 * A storage for Filter property/value pairs.
                 *
                 * @ignore Exclude from docs
                 * @see {@link PatternProperties}
                 * @type {PatternProperties}
                 */
                _this.properties = {};
                _this.className = "Pattern";
                // Set defaults
                _this.width = 10;
                _this.height = 10;
                _this.x = 0;
                _this.y = 0;
                _this.patternUnits = "userSpaceOnUse";
                var interfaceColors = new _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_6__["InterfaceColorSet"]();
                _this.backgroundFill = interfaceColors.getFor("background");
                _this.backgroundOpacity = 0;
                _this.fillOpacity = 1;
                _this.fill = interfaceColors.getFor("alternativeBackground");
                _this.stroke = interfaceColors.getFor("alternativeBackground");
                _this.strokeOpacity = 1;
                _this.strokeWidth = 1;
                _this.shapeRendering = "crispEdges";
                _this.rotation = 0;
                // Create main group to store pattern elements inelements
                _this.element = _this.paper.addGroup("pattern");
                _this.id = "pattern-" + _Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].getUniqueId();
                _this.element.attr({ "id": _this.id });
                _this._disposers.push(_this.element);
                // Make elements disposable
                _this._disposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this._elements));
                // Request again to trigger getter/setter code
                _this.patternUnits = _this.patternUnits;
                _this.width = _this.width;
                _this.height = _this.height;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the pattern.
             */
            Pattern.prototype.draw = function () {
                var _this = this;
                var patternElement = this.element;
                if (patternElement) {
                    patternElement.removeChildNodes();
                    var background = this.paper.add("rect");
                    background.attr({ "width": this.width, "height": this.height, "shape-rendering": "crispEdges", "fill": this.backgroundFill.hex, "fill-opacity": this.backgroundOpacity, "stroke": this.backgroundFill.hex, "stroke-opacity": this.backgroundOpacity });
                    patternElement.add(background);
                    patternElement.attr({ "x": this.x, "y": this.y, "width": this.width, "height": this.height, "stroke": this.stroke.hex, "fill": this.fill.hex, "fill-opacity": this.fillOpacity, "stroke-opacity": this.strokeOpacity, "stroke-width": this.strokeWidth, "shape-rendering": this.shapeRendering, "patternUnits": this.patternUnits });
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._elements.iterator(), function (element) {
                        element.rotation = _this.rotation;
                        _this.element.add(element);
                    });
                }
            };
            /**
             * Animate pattern properties.
             *
             * @see {@link Animation}
             * @param  {IAnimationOptions[] | IAnimationOptions}  animationOptions  Animation options
             * @param  {number}                                   duration          Duration (ms)
             * @param  {(number) => number}                       easing            Easing function
             * @return {Animation}                                                  Animation instance
             */
            Pattern.prototype.animate = function (animationOptions, duration, easing) {
                return new _utils_Animation__WEBPACK_IMPORTED_MODULE_4__["Animation"](this, animationOptions, duration, easing).start();
            };
            /**
             * Adds an element to the pattern.
             *
             * @param {AMElement}  element  Element
             */
            Pattern.prototype.addElement = function (element) {
                this._elements.push(element);
                this._disposers.push(element);
            };
            /**
             * Remove an element from the pattern.
             *
             * @param {AMElement}  element  Element
             */
            Pattern.prototype.removeElement = function (element) {
                this._elements.removeValue(element);
                this.removeDispose(element);
            };
            Object.defineProperty(Pattern.prototype, "elements", {
                /**
                 * Returns the list of SVG elements comprising the pattern.
                 *
                 * @return {List<AMElement>} Pattern elements
                 */
                get: function () {
                    return this._elements;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "fillOpacity", {
                /**
                 * @return {number} Opacity (0-1)
                 */
                get: function () {
                    return this.properties["fillOpacity"];
                },
                /**
                 * Pattern fill opacity. (0-1)
                 *
                 * @param {number}  value  Opacity (0-1)
                 */
                set: function (value) {
                    this.properties["fillOpacity"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "fill", {
                /**
                 * @return {Color} Fill color
                 */
                get: function () {
                    return this.properties["fill"];
                },
                /**
                 * Fill color of the pattern.
                 *
                 * @param {Color}  value  Fill color
                 */
                set: function (value) {
                    this.properties["fill"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "backgroundFill", {
                /**
                 * @return {Color} Background color
                 */
                get: function () {
                    return this.properties["backgroundFill"];
                },
                /**
                 * Pattern background fill color.
                 *
                 * @param {Color}  value  Background color
                 */
                set: function (value) {
                    this.properties["backgroundFill"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "backgroundOpacity", {
                /**
                 * @return {number} Background opacity (0-1)
                 */
                get: function () {
                    return this.properties["backgroundOpacity"];
                },
                /**
                 * Pattern backgorund opacity. (0-1)
                 *
                 * @param {number}  value  Background opacity (0-1)
                 */
                set: function (value) {
                    this.properties["backgroundOpacity"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "stroke", {
                /**
                 * @return {Color} Color
                 */
                get: function () {
                    return this.properties["stroke"];
                },
                /**
                 * Pattern stroke (border) color.
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.properties["stroke"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "strokeOpacity", {
                /**
                 * @return {number} Opacity (0-1)
                 */
                get: function () {
                    return this.properties["strokeOpacity"];
                },
                /**
                 * Pattern stroke opacity. (0-1)
                 *
                 * @param {number}  value  Opacity (0-1)
                 */
                set: function (value) {
                    this.properties["strokeOpacity"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "strokeWidth", {
                /**
                 * @return {number} Stroke thickness (px)
                 */
                get: function () {
                    return this.properties["strokeWidth"];
                },
                /**
                 * Pattern stroke thickness in pixels.
                 *
                 * @param {number}  value  Stroke thickness (px)
                 */
                set: function (value) {
                    this.properties["strokeWidth"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "shapeRendering", {
                get: function () {
                    return this.properties["shapeRendering"];
                },
                /**
                 * Shape rendering
                 * @param {ShapeRendering} value [description]
                 */
                set: function (value) {
                    this.properties["shapeRendering"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "rotation", {
                /**
                 * @return {number} Rotation
                 */
                get: function () {
                    return this.properties["rotation"];
                },
                /**
                 * Pattern rotation in degrees.
                 *
                 * @param {number}  value  Rotation
                 */
                set: function (value) {
                    this.properties["rotation"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "patternUnits", {
                /**
                 * @return {"userSpaceOnUse" | "objectBoundingBox"} Units
                 */
                get: function () {
                    return this.properties["patternUnits"];
                },
                /**
                 * Pattern measuring units.
                 *
                 * Available options: "userSpaceOnUse" | "objectBoundingBox".
                 *
                 * @param {"userSpaceOnUse" | "objectBoundingBox"}  value  Units
                 */
                set: function (value) {
                    this.properties["patternUnits"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "width", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.properties["width"];
                },
                /**
                 * Pattern width in pixels.
                 *
                 * @param {number}  value  Width (px)
                 */
                set: function (value) {
                    this.properties["width"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "height", {
                /**
                 * @return {number} Height (px)
                 */
                get: function () {
                    return this.properties["height"];
                },
                /**
                 * Pattern height in pixels.
                 *
                 * @param {number} value Height (px)
                 */
                set: function (value) {
                    this.properties["height"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "x", {
                /**
                 * @return {number} X (px)
                 */
                get: function () {
                    return this.properties["x"];
                },
                /**
                 * X position. (pixels)
                 *
                 * @param {number} value X (px)
                 */
                set: function (value) {
                    this.properties["x"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "y", {
                /**
                 * @return {number} Y (px)
                 */
                get: function () {
                    return this.properties["y"];
                },
                /**
                 * Y position (px).
                 *
                 * @param {number} value Y (px)
                 */
                set: function (value) {
                    this.properties["y"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Pattern.prototype, "paper", {
                /**
                 * @ignore Exclude from docs
                 * @return {Paper} Paper
                 */
                get: function () {
                    if (this._paper) {
                        return this._paper;
                    }
                    return Object(_Paper__WEBPACK_IMPORTED_MODULE_2__["getGhostPaper"])();
                },
                /**
                 * [[Paper]] instance to draw pattern in.
                 *
                 * @ignore Exclude from docs
                 * @param {Paper}  paper  Paper
                 */
                set: function (paper) {
                    if (this._paper != paper) {
                        this._paper = paper;
                        this.draw();
                        paper.appendDef(this.element);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies properties from another Pattern instance.
             *
             * @param {this}  source  Source pattern
             */
            Pattern.prototype.copyFrom = function (source) {
                var _this = this;
                _super.prototype.copyFrom.call(this, source);
                _utils_Object__WEBPACK_IMPORTED_MODULE_8__["each"](source.properties, function (key, value) {
                    _this[key] = value;
                });
            };
            Object.defineProperty(Pattern.prototype, "animations", {
                /**
                 * A list of animations currently running on the patter.
                 *
                 * @ignore Exclude from docs
                 * @return {Array<Animation>} Animation list
                 */
                get: function () {
                    if (!this._animations) {
                        this._animations = [];
                        this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_4__["AnimationDisposer"](this._animations));
                    }
                    return this._animations;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            Pattern.prototype.processConfig = function (config) {
                if (config) {
                    // Set up series
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.elements) && _utils_Type__WEBPACK_IMPORTED_MODULE_9__["isArray"](config.elements)) {
                        for (var i = 0, len = config.elements.length; i < len; i++) {
                            var element = config.elements[i];
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](element["type"])) {
                                var sprite = this.createEntryInstance(element);
                                if (sprite instanceof _Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]) {
                                    sprite.config = element;
                                }
                                this.addElement(_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](element["typeProperty"])
                                    ? sprite[element["typeProperty"]]
                                    : sprite.element);
                            }
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return Pattern;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["Pattern"] = Pattern;
        //# sourceMappingURL=Pattern.js.map
        /***/ 
    }),
    /* 800 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterfaceColorSet", function () { return InterfaceColorSet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /**
         * This module contains a version of ColorSet that can (and should) be used for
         * coloring UI elements.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This module contains a version of ColorSet that can (and should) be used for
         * coloring UI elements.
         *
         * The main difference from the basic [[ColorSet]] is that instead of sequenced
         * colors, it uses a concept of named colors.
         *
         * This way, every element in the UI can extract an exact color theme author
         * meant for the specific purpose, like strokes, backgrounds, etc.
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/colors/} for color-related info
         */
        var InterfaceColorSet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InterfaceColorSet, _super);
            /**
             * Constructor
             */
            function InterfaceColorSet() {
                var _this = _super.call(this) || this;
                /**
                 * Maps the list of purposes (like "stroke") to an index of color of the
                 * color set.
                 */
                _this._purposes = {
                    stroke: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#e5e5e5"),
                    fill: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#f3f3f3"),
                    primaryButton: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#6794dc"),
                    primaryButtonHover: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#6771dc"),
                    primaryButtonDown: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#68dc75"),
                    primaryButtonActive: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#68dc75"),
                    primaryButtonText: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#FFFFFF"),
                    primaryButtonStroke: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#FFFFFF"),
                    secondaryButton: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#d9d9d9"),
                    secondaryButtonHover: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#d9d9d9").brighten(-0.25),
                    secondaryButtonDown: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#d9d9d9").brighten(-0.35),
                    secondaryButtonActive: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#d9d9d9").brighten(0.35),
                    secondaryButtonText: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#000000"),
                    secondaryButtonStroke: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#FFFFFF"),
                    grid: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#000000"),
                    background: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#ffffff"),
                    alternativeBackground: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#000000"),
                    text: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#000000"),
                    alternativeText: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#FFFFFF"),
                    disabledBackground: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#999999"),
                    positive: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#67dc75"),
                    negative: Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#dc6788")
                };
                _this.className = "InterfaceColorSet";
                _this.applyTheme();
                return _this;
            }
            InterfaceColorSet.prototype.debug = function () { };
            /**
             * Returns a color to be used for the specific purpose.
             *
             * ```TypeScript
             * let uicolors = new am4core.InterfaceColorSet();
             * console.log(uicolors.getFor("stroke"));
             * ```
             * ```JavaScript
             * var uicolors = new am4core.InterfaceColorSet();
             * console.log(uicolors.getFor("stroke"));
             * ```
             *
             * @param  {keyof IColorPurpose}  purpose  Color use purpuse
             * @return {Color}                        Color
             */
            InterfaceColorSet.prototype.getFor = function (purpose) {
                return this._purposes[purpose];
            };
            /**
             * Sets color to be used for the specific purpose.
             *
             * @param {keyof IColorPurpose}  purpose  Color use purpose
             * @param {Color}               color    Color
             */
            InterfaceColorSet.prototype.setFor = function (purpose, color) {
                this._purposes[purpose] = color;
            };
            return InterfaceColorSet;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=InterfaceColorSet.js.map
        /***/ 
    }),
    /* 801 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinearGradient", function () { return LinearGradient; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(777);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(762);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * Contains code and logic for generating linear gradients.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Linear gradient class.
         */
        var LinearGradient = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LinearGradient, _super);
            /**
             * Constructor.
             */
            function LinearGradient() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * List of colors switch definitions in a gradient.
                 *
                 * @type {List<IGradientStop>}
                 */
                _this._stops = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * Gradient direction.
                 *
                 * @type {number}
                 */
                _this._rotation = 0;
                _this.className = "LinearGradient";
                _this._stops.events.on("setIndex", _this.validate, _this);
                _this._stops.events.on("inserted", _this.validate, _this);
                // Create element
                _this.element = _this.paper.addGroup("linearGradient");
                _this.id = "gradient-" + _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getUniqueId();
                _this.element.attr({ "id": _this.id });
                _this._disposers.push(_this.element);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws gradient.
             *
             * @ignore Exclude from docs
             */
            LinearGradient.prototype.validate = function () {
                var _this = this;
                var rotation = (this._rotation + 90) * _utils_Math__WEBPACK_IMPORTED_MODULE_6__["RADIANS"];
                var x1 = Math.round(50 + Math.sin(rotation + Math.PI) * 50) + '%';
                var y1 = Math.round(50 + Math.cos(rotation) * 50) + '%';
                var x2 = Math.round(50 + Math.sin(rotation) * 50) + '%';
                var y2 = Math.round(50 + Math.cos(rotation + Math.PI) * 50) + '%';
                var gradientElement = this.element;
                gradientElement.removeChildNodes();
                gradientElement.attr({ "x1": x1, "x2": x2, "y1": y1, "y2": y2 });
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["indexed"](this._stops.iterator()), function (a) {
                    var i = a[0];
                    var stop = a[1];
                    var offset = stop.offset;
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](offset)) {
                        offset = i / (_this._stops.length - 1);
                    }
                    var gradientStop = _this.paper.add("stop");
                    gradientStop.attr({ "stop-color": stop.color });
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](stop.opacity)) {
                        gradientStop.attr({ "stop-opacity": stop.opacity });
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](offset)) {
                        gradientStop.attr({ "offset": offset });
                    }
                    gradientElement.add(gradientStop);
                });
            };
            /**
             * Clears the gradient.
             *
             * @ignore Exclude from docs
             */
            LinearGradient.prototype.clear = function () {
                this._stops.clear();
            };
            /**
             * Adds a color step to the gradient.
             *
             * @param {Color}   color    Color (hex code or named color)
             * @param {number}  opacity  Opacity (value from 0 to 1; 0 completely transaprent, 1 fully opaque)
             * @param {number}  offset   Position of color in the gradient (value 0 to 1; 0 meaning start of the gradient and 1 end)
             */
            LinearGradient.prototype.addColor = function (color, opacity, offset) {
                this._stops.push({ color: color, opacity: opacity, offset: offset });
            };
            Object.defineProperty(LinearGradient.prototype, "stops", {
                /**
                 * A list of color stops in the gradient.
                 *
                 * @return {List<IGradientStop>} Stops
                 */
                get: function () {
                    return this._stops;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LinearGradient.prototype, "paper", {
                /**
                 * @ignore Exclude from docs
                 * @return {Paper} Paper
                 */
                get: function () {
                    if (this._paper) {
                        return this._paper;
                    }
                    return Object(_Paper__WEBPACK_IMPORTED_MODULE_3__["getGhostPaper"])();
                },
                /**
                 * [[Paper]] instace to use for the gradient.
                 *
                 * @ignore Exclude from docs
                 * @param {Paper}  paper  Paper
                 */
                set: function (paper) {
                    if (this._paper != paper) {
                        this._paper = paper;
                        this.validate();
                        paper.appendDef(this.element);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LinearGradient.prototype, "rotation", {
                /**
                 * @return {number} Rotation
                 */
                get: function () {
                    return this._rotation;
                },
                /**
                 * Rotation (direction) of the gradient in degrees.
                 *
                 * @param {number}  value  Rotation
                 */
                set: function (value) {
                    //this.element.attr({ "gradientTransform": "rotate(" + value + " 10 100)" });
                    this._rotation = value;
                    this.validate();
                },
                enumerable: true,
                configurable: true
            });
            LinearGradient.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.stops.copyFrom(source.stops);
                this._rotation = source.rotation;
            };
            return LinearGradient;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["LinearGradient"] = LinearGradient;
        //# sourceMappingURL=LinearGradient.js.map
        /***/ 
    }),
    /* 802 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadialGradient", function () { return RadialGradient; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(777);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(762);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(758);
        /**
         * Contains code and logic for generating radial gradients.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Radial gradient class.
         */
        var RadialGradient = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadialGradient, _super);
            /**
             * Constructor
             */
            function RadialGradient() {
                var _this = _super.call(this) || this;
                /**
                 * List of colors switch definitions in a gradient.
                 *
                 * @type {List<IGradientStop>}
                 */
                _this._stops = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                _this.element = _this.paper.addGroup("radialGradient");
                _this.id = "gradient-" + _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getUniqueId();
                _this.element.attr({ "id": _this.id });
                _this._disposers.push(_this.element);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws gradient.
             */
            RadialGradient.prototype.draw = function () {
                var _this = this;
                var gradientElement = this.element;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](this.cx)) {
                    var value = this.cx;
                    if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"]) {
                        value = value.percent + "%";
                    }
                    gradientElement.attr({ "cx": value });
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](this.cy)) {
                    var value = this.cy;
                    if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"]) {
                        value = value.percent + "%";
                    }
                    gradientElement.attr({ "cy": value });
                }
                if (this.fx) {
                    var value = this.fx;
                    if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"]) {
                        value = value.percent + "%";
                    }
                    gradientElement.attr({ "fx": value });
                }
                if (this.fy) {
                    var value = this.fy;
                    if (value instanceof _utils_Percent__WEBPACK_IMPORTED_MODULE_7__["Percent"]) {
                        value = value.percent + "%";
                    }
                    gradientElement.attr({ "fy": value });
                }
                gradientElement.removeChildNodes();
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["indexed"](this._stops.iterator()), function (a) {
                    var i = a[0];
                    var stop = a[1];
                    var offset = stop.offset;
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](offset)) {
                        offset = i / (_this._stops.length - 1);
                    }
                    var gradientStop = _this.paper.add("stop");
                    gradientStop.attr({ "stop-color": stop.color });
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](stop.opacity)) {
                        gradientStop.attr({ "stop-opacity": stop.opacity });
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](offset)) {
                        gradientStop.attr({ "offset": offset });
                    }
                    gradientElement.add(gradientStop);
                });
            };
            /**
             * Adds a color step to the gradient.
             *
             * @param {Color}   color    Color (hex code or named color)
             * @param {number}  opacity  Opacity (value from 0 to 1; 0 completely transaprent, 1 fully opaque)
             * @param {number}  offset   Position of color in the gradient (value 0 to 1; 0 meaning start of the gradient and 1 end)
             */
            RadialGradient.prototype.addColor = function (color, opacity, offset) {
                this._stops.push({ color: color, opacity: opacity, offset: offset });
                this.draw();
            };
            Object.defineProperty(RadialGradient.prototype, "paper", {
                /**
                 * @ignore Exclude from docs
                 * @return {Paper} Paper
                 */
                get: function () {
                    if (this._paper) {
                        return this._paper;
                    }
                    return Object(_Paper__WEBPACK_IMPORTED_MODULE_3__["getGhostPaper"])();
                },
                /**
                 * A [[Paper]] instace to use for the gradient.
                 *
                 * @ignore Exclude from docs
                 * @param {Paper}  paper  Paper
                 */
                set: function (paper) {
                    if (this._paper != paper) {
                        this._paper = paper;
                        this.draw();
                        paper.appendDef(this.element);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadialGradient.prototype, "cx", {
                get: function () {
                    return this._cx;
                },
                /**
                 * Center x coordinate of the gradient, can be set as number or Percent
                 *
                 * @param {Optional<number | Percent>}  point  Center point
                 */
                set: function (value) {
                    this._cx = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadialGradient.prototype, "cy", {
                get: function () {
                    return this._cy;
                },
                /**
                 * Center y coordinate of the gradient, can be set as number or Percent
                 *
                 * @param {Optional<number | Percent>}  point  Center point
                 */
                set: function (value) {
                    this._cy = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadialGradient.prototype, "fx", {
                get: function () {
                    return this._fx;
                },
                /**
                 * y coordinate of the focal point of a gradient, can be set in pixels or as Percent
                 *
                 * @param {Optional<number | Percent>}  point  Center point
                 */
                set: function (value) {
                    this._fx = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadialGradient.prototype, "fy", {
                get: function () {
                    return this._fy;
                },
                /**
                 * y coordinate of the focal point of a gradient, can be set in pixels or as Percent
                 *
                 * @param {Optional<number | Percent>}  point  Center point
                 */
                set: function (value) {
                    this._fy = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            RadialGradient.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.stops.copyFrom(source.stops);
                this.cx = source.cx;
                this.cy = source.cy;
                this.fx = source.fx;
                this.fy = source.fy;
            };
            Object.defineProperty(RadialGradient.prototype, "stops", {
                /**
                 * A list of color stops in the gradient.
                 *
                 * @return {List<IGradientStop>} Stops
                 */
                get: function () {
                    return this._stops;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Clears the gradient.
             *
             * @ignore Exclude from docs
             */
            RadialGradient.prototype.clear = function () {
                this._stops.clear();
            };
            return RadialGradient;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["RadialGradient"] = RadialGradient;
        //# sourceMappingURL=RadialGradient.js.map
        /***/ 
    }),
    /* 803 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MouseCursorStyle", function () { return MouseCursorStyle; });
        /**
         * Mouse-related functionality
         */
        /**
         * Defines static methods that hold style list for various mouse cursor styles,
         * maintaining browser compatibility.
         */
        var MouseCursorStyle = /** @class */ (function () {
            function MouseCursorStyle() {
            }
            /**
             * Styles for "grab" mouse cursor.
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.grab = [{
                    "property": "cursor",
                    "value": "move"
                }, {
                    "property": "cursor",
                    "value": "grab"
                }, {
                    "property": "cursor",
                    "value": "-moz-grab"
                }, {
                    "property": "cursor",
                    "value": "-webkit-grab"
                }];
            /**
             * Styles for "grabbing" mouse cursor.
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.grabbing = [{
                    "property": "cursor",
                    "value": "move"
                }, {
                    "property": "cursor",
                    "value": "grabbing"
                }, {
                    "property": "cursor",
                    "value": "-moz-grabbing"
                }, {
                    "property": "cursor",
                    "value": "-webkit-grabbing"
                }];
            /**
             * Styles for "pointer" mouse cursor. (usually used for links)
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.pointer = [{
                    "property": "cursor",
                    "value": "pointer"
                }];
            /**
             * Styles for default mouse cursor. (browser determines style)
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.default = [{
                    "property": "cursor",
                    "value": "default"
                }];
            /**
             * Styles for horizontal bi-directional resize mouse cursor.
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.horizontalResize = [{
                    "property": "cursor",
                    "value": "ew-resize"
                }];
            /**
             * Styles for vertical bi-directional mouse cursor.
             *
             * @type {Array<IStyleProperty>}
             */
            MouseCursorStyle.verticalResize = [{
                    "property": "cursor",
                    "value": "ns-resize"
                }];
            return MouseCursorStyle;
        }());
        //# sourceMappingURL=Mouse.js.map
        /***/ 
    }),
    /* 804 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "options", function () { return options; });
        var options = {
            verbose: true,
            commercialLicense: false,
            classNamePrefix: "amcharts-",
            autoSetClassName: false
        };
        //# sourceMappingURL=Options.js.map
        /***/ 
    }),
    /* 805 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberFormatter", function () { return NumberFormatter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(806);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(768);
        /* harmony import */ var _formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(808);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Strings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(796);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(761);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /**
         * Number formatting-related functionality.
         */
        /**
         * NumberFormatter class. Formats numbers according to specified formats.
         *
         * @todo Apply translations to suffixes/prefixes
         */
        var NumberFormatter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumberFormatter, _super);
            /**
             * Constructor
             */
            function NumberFormatter() {
                var _this = _super.call(this) || this;
                /**
                 * A base value for negative numbers. Will treat all numbers below this value
                 * as negative numbers.
                 *
                 * @type {number}
                 */
                _this._negativeBase = 0;
                /**
                 * Holds number format.
                 *
                 * @type {string}
                 * @default #,###.#####
                 */
                _this._numberFormat = "#,###.#####";
                /**
                 * Output format to produce. If the format calls for applying color to the
                 * formatted value, this setting will determine what markup to use: SVG or
                 * HTML.
                 *
                 * Available options: svg, html.
                 *
                 * @default "svg"
                 * @type {string}
                 */
                _this._outputFormat = "svg";
                _this.className = "NumberFormatter";
                _this.applyTheme();
                return _this;
            }
            NumberFormatter.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                if (this.language) {
                    this.language.dispose();
                }
            };
            Object.defineProperty(NumberFormatter.prototype, "language", {
                /**
                 * @return {Language} Language
                 */
                get: function () {
                    if (!this._language) {
                        if (this.sprite) {
                            this._language = this.sprite.language;
                        }
                        else {
                            this._language = new _utils_Language__WEBPACK_IMPORTED_MODULE_1__["Language"];
                        }
                    }
                    return this._language;
                },
                /**
                 * A reference to [[Language]] instance.
                 *
                 * Formatter will use language to translate various items, like number
                 * suffixes, etc.
                 *
                 * @param {Language}  value  Language
                 */
                set: function (value) {
                    this._language = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Formats the number according to specific format.
             *
             * @param  {number | string}  value   Value to format
             * @param  {string}           format  Format to apply
             * @return {string}                   Formatted number
             */
            NumberFormatter.prototype.format = function (value, format) {
                // no format passed in or "Number"
                if (typeof format === "undefined" || format.toLowerCase() === "number") {
                    format = this._numberFormat;
                }
                // Clean format
                format = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["cleanFormat"](format);
                // Get format info (it will also deal with parser caching)
                var info = this.parseFormat(format, this.language);
                // cast to number just in case
                // TODO: maybe use better casting
                var source = Number(value);
                // format and replace the number
                var details;
                if (source > this._negativeBase) {
                    details = info.positive;
                }
                else if (source < this._negativeBase) {
                    details = info.negative;
                }
                else {
                    details = info.zero;
                }
                // Format
                var formatted = details.template.split(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"]).join(this.applyFormat(source, details));
                return formatted;
            };
            /**
             * Parses supplied format into structured object which can be used to format
             * the number.
             *
             * @param {string} format Format string, i.e. "#,###.00"
             * @param {Language} language Language
             */
            NumberFormatter.prototype.parseFormat = function (format, language) {
                var _this = this;
                // Check cache
                var cached = this.getCache(format);
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](cached)) {
                    return cached;
                }
                // init format parse info holder
                var info = {
                    "positive": {
                        "thousands": {
                            "active": -1,
                            "passive": -1,
                            "interval": -1,
                            "separator": language.translateEmpty("_thousandSeparator")
                        },
                        "decimals": {
                            "active": -1,
                            "passive": -1,
                            "separator": language.translateEmpty("_decimalSeparator")
                        },
                        "template": "",
                        "source": "",
                        "parsed": false
                    },
                    "negative": {
                        "thousands": {
                            "active": -1,
                            "passive": -1,
                            "interval": -1,
                            "separator": language.translateEmpty("_thousandSeparator")
                        },
                        "decimals": {
                            "active": -1,
                            "passive": -1,
                            "separator": language.translateEmpty("_decimalSeparator")
                        },
                        "template": "",
                        "source": "",
                        "parsed": false
                    },
                    "zero": {
                        "thousands": {
                            "active": -1,
                            "passive": -1,
                            "interval": -1,
                            "separator": language.translateEmpty("_thousandSeparator")
                        },
                        "decimals": {
                            "active": -1,
                            "passive": -1,
                            "separator": language.translateEmpty("_decimalSeparator")
                        },
                        "template": "",
                        "source": "",
                        "parsed": false
                    }
                };
                // Escape double vertical bars (that mean display one vertical bar)
                format = format.replace("||", _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"]);
                // Split it up and deal with different formats
                var parts = format.split("|");
                info.positive.source = parts[0];
                if (typeof parts[2] === "undefined") {
                    info.zero = info.positive;
                }
                else {
                    info.zero.source = parts[2];
                }
                if (typeof parts[1] === "undefined") {
                    info.negative = info.positive;
                }
                else {
                    info.negative.source = parts[1];
                }
                // Parse each
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["each"](info, function (part, item) {
                    // Already parsed
                    if (item.parsed) {
                        return;
                    }
                    // Check cached
                    if (typeof _this.getCache(item.source) !== "undefined") {
                        info[part] = _this.getCache(item.source);
                        return;
                    }
                    // Begin parsing
                    var partFormat = item.source;
                    // Just "Number"?
                    if (partFormat.toLowerCase() === "number") {
                        partFormat = _this._numberFormat;
                    }
                    // Let TextFormatter split into chunks
                    var chunks = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().chunk(partFormat, true);
                    for (var i = 0; i < chunks.length; i++) {
                        var chunk = chunks[i];
                        // replace back double vertical bar
                        chunk.text = chunk.text.replace(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"], "|");
                        if (chunk.type === "value") {
                            // Parse format
                            // Look for codes
                            var matches = [];
                            if (matches = chunk.text.match(/[#0.,]+[ ]?[abesABES%]?[abesABES‰]?/)) {
                                if (matches === null || matches[0] === "") {
                                    // no codes here - assume string
                                    // nothing to do here
                                    item.template += chunk.text;
                                }
                                else {
                                    // look for the format modifiers at the end
                                    var mods = [];
                                    if (mods = matches[0].match(/[abesABES%‰]{2}|[abesABES%‰]{1}$/)) {
                                        item.mod = mods[0].toLowerCase();
                                        item.modSpacing = matches[0].match(/[ ]{1}[abesABES%‰]{1}$/) ? true : false;
                                    }
                                    // break the format up
                                    var a = matches[0].split(".");
                                    // Deal with thousands
                                    if (a[0] === "") {
                                        // No directives for thousands
                                        // Leave default settings (no formatting)
                                    }
                                    else {
                                        // Counts
                                        item.thousands.active = (a[0].match(/0/g) || []).length;
                                        item.thousands.passive = (a[0].match(/\#/g) || []).length + item.thousands.active;
                                        // Separator interval
                                        var b = a[0].split(",");
                                        if (b.length === 1) {
                                            // No thousands separators
                                            // Do nothing
                                        }
                                        else {
                                            // Use length fo the last chunk as thousands length
                                            item.thousands.interval = _utils_Type__WEBPACK_IMPORTED_MODULE_8__["getValue"](b.pop()).length;
                                            if (item.thousands.interval === 0)
                                                item.thousands.interval = -1;
                                        }
                                    }
                                    // Deal with decimals
                                    if (typeof (a[1]) === "undefined") {
                                        // No directives for decimals
                                        // Leave at defaults (no formatting)
                                    }
                                    else {
                                        // Counts
                                        item.decimals.active = (a[1].match(/0/g) || []).length;
                                        item.decimals.passive = (a[1].match(/\#/g) || []).length + item.decimals.active;
                                    }
                                    // Add special code to template
                                    item.template += chunk.text.split(matches[0]).join(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"]);
                                }
                            }
                        }
                        else {
                            // Quoted string - take it as it is
                            item.template += chunk.text;
                        }
                    }
                    // Apply style formatting
                    //item.template = getTextFormatter().format(item.template, this.outputFormat);
                    // Save cache
                    _this.setCache(item.source, item);
                    // Mark this as parsed
                    item.parsed = true;
                });
                // Save cache (the whole thing)
                this.setCache(format, info);
                return info;
            };
            /**
             * Applies parsed format to a numeric value.
             *
             * @param  {number}  value    Value
             * @param  {any}     details  Parsed format as returned by {parseFormat}
             * @return {string}          Formatted number
             */
            NumberFormatter.prototype.applyFormat = function (value, details) {
                // Use absolute values
                var negative = value < 0;
                value = Math.abs(value);
                // Recalculate according to modifier
                var prefix = "", suffix = "";
                var mods = details.mod ? details.mod.split("") : [];
                if (mods.indexOf("b") !== -1) {
                    var a_1 = this.applyPrefix(value, this.bytePrefixes);
                    value = a_1[0];
                    prefix = a_1[1];
                    suffix = a_1[2];
                    if (details.modSpacing) {
                        suffix = " " + suffix;
                    }
                }
                else if (mods.indexOf("a") !== -1) {
                    var a_2 = this.applyPrefix(value, value < 1.00 ? this.smallNumberPrefixes : this.bigNumberPrefixes);
                    value = a_2[0];
                    prefix = a_2[1];
                    suffix = a_2[2];
                    if (details.modSpacing) {
                        suffix = " " + suffix;
                    }
                }
                else if (mods.indexOf("%") !== -1) {
                    value *= 100;
                    suffix = "%";
                }
                else if (mods.indexOf("‰") !== -1) {
                    value *= 1000;
                    suffix = "‰";
                }
                // Round to passive
                if (mods.indexOf("e") !== -1) {
                    // convert the value to exponential
                    var exp = void 0;
                    if (details.decimals.passive >= 0) {
                        exp = value.toExponential(details.decimals.passive).split("e");
                    }
                    else {
                        exp = value.toExponential().split("e");
                    }
                    value = Number(exp[0]);
                    suffix = "e" + exp[1];
                    if (details.modSpacing) {
                        suffix = " " + suffix;
                    }
                }
                else if (details.decimals.passive === 0) {
                    value = Math.round(value);
                }
                else if (details.decimals.passive > 0) {
                    var d = Math.pow(10, details.decimals.passive);
                    value = Math.round(value * d) / d;
                }
                // Init return value
                var res = "";
                // Calc integer and decimal parts
                var a = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["numberToString"](value).split(".");
                // Format integers
                var ints = a[0];
                // Pad integers to active length
                if (ints.length < details.thousands.active) {
                    ints = Array(details.thousands.active - ints.length + 1).join("0") + ints;
                }
                // Insert thousands separators
                if (details.thousands.interval > 0) {
                    var ip = [];
                    var intsr = ints.split("").reverse().join("");
                    for (var i = 0, len = ints.length; i <= len; i += details.thousands.interval) {
                        var c = intsr.substr(i, details.thousands.interval).split("").reverse().join("");
                        if (c !== "") {
                            ip.unshift(c);
                        }
                    }
                    ints = ip.join(details.thousands.separator);
                }
                // Add integers
                res += ints;
                // Add decimals
                if (a.length === 1) {
                    a.push("");
                }
                var decs = a[1];
                // Fill zeros?
                if (decs.length < details.decimals.active) {
                    decs += Array(details.decimals.active - decs.length + 1).join("0");
                }
                if (decs !== "") {
                    res += details.decimals.separator + decs;
                }
                // Can't have empty return value
                if (res === "") {
                    res = "0";
                }
                // Add minus sign back
                if (value !== 0 && negative && (mods.indexOf("s") === -1)) {
                    res = "-" + res;
                }
                // Add suffixes/prefixes
                if (prefix) {
                    res = prefix + res;
                }
                if (suffix) {
                    res += suffix;
                }
                return res;
            };
            /**
             * Chooses appropriate prefix and suffix based on the passed in rules.
             *
             * @param  {number}  value     Value
             * @param  {any[]}   prefixes  Prefix array
             * @return {any}               Result
             */
            NumberFormatter.prototype.applyPrefix = function (value, prefixes) {
                var newvalue = value, prefix = "", suffix = "";
                for (var i = 0, len = prefixes.length; i < len; i++) {
                    if (prefixes[i].number <= value) {
                        if (prefixes[i].number === 0) {
                            newvalue = 0;
                        }
                        else {
                            newvalue = value / prefixes[i].number;
                        }
                        prefix = prefixes[i].prefix;
                        suffix = prefixes[i].suffix;
                    }
                }
                return [newvalue, prefix, suffix];
            };
            /**
             * Invalidates the parent [[Sprite]] object.
             */
            NumberFormatter.prototype.invalidateSprite = function () {
                if (this.sprite) {
                    this.sprite.invalidate();
                }
            };
            Object.defineProperty(NumberFormatter.prototype, "numberFormat", {
                /**
                 * @return {string} A format to use for number formatting
                 */
                get: function () {
                    return this._numberFormat;
                },
                /**
                 * Number format.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-numbers/} Tutorial on number formatting
                 * @param {string}  format  A format to use for number formatting
                 */
                set: function (format) {
                    this._numberFormat = format;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(NumberFormatter.prototype, "bigNumberPrefixes", {
                /**
                 * @return {INumberSuffix[]} Prefixes for big numbers
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this._bigNumberPrefixes)) {
                        this._bigNumberPrefixes = [
                            { "number": 1e+3, "suffix": this.language.translate("_big_number_suffix_3") },
                            { "number": 1e+6, "suffix": this.language.translate("_big_number_suffix_6") },
                            { "number": 1e+9, "suffix": this.language.translate("_big_number_suffix_9") },
                            { "number": 1e+12, "suffix": this.language.translate("_big_number_suffix_12") },
                            { "number": 1e+15, "suffix": this.language.translate("_big_number_suffix_15") },
                            { "number": 1e+18, "suffix": this.language.translate("_big_number_suffix_18") },
                            { "number": 1e+21, "suffix": this.language.translate("_big_number_suffix_21") },
                            { "number": 1e+24, "suffix": this.language.translate("_big_number_suffix_24") }
                        ];
                    }
                    return this._bigNumberPrefixes;
                },
                /**
                 * Prefixes for big numbers.
                 *
                 * It's an array of objects of number/prefix pairs.
                 *
                 * ```JSON
                 * [
                 *   { "number": 1e+3, "suffix": "K" },
                 *   { "number": 1e+6, "suffix": "M" },
                 *   { "number": 1e+9, "suffix": "G" },
                 *   { "number": 1e+12, "suffix": "T" },
                 *   { "number": 1e+15, "suffix": "P" },
                 *   { "number": 1e+18, "suffix": "E" },
                 *   { "number": 1e+21, "suffix": "Z" },
                 *   { "number": 1e+24, "suffix": "Y" }
                 * ]
                 * ```
                 *
                 * If the number is bigger than the `number` ir will be converted to the
                 * appropriate bigger number with prefix.
                 *
                 * E.g. as per above `1500` will be converted to `1.5K`.
                 *
                 * Please note that for this transformation to be enabled, you need to
                 * enable it specific modifier in your format setting.
                 *
                 * The modifier for big/small number modification is "a":
                 *
                 * ```Text
                 * {myfield.formatNumber("#,###.00a")}
                 * ```
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-numbers/} Tutorial on number formatting
                 * @param {INumberSuffix[]}  prefixes  Prefixes for big numbers
                 */
                set: function (prefixes) {
                    this._bigNumberPrefixes = prefixes;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(NumberFormatter.prototype, "smallNumberPrefixes", {
                /**
                 * @return {INumberSuffix[]} Prefixes for small numbers
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this._smallNumberPrefixes)) {
                        this._smallNumberPrefixes = [
                            { "number": 1e-24, "suffix": this.language.translate("_small_number_suffix_24") },
                            { "number": 1e-21, "suffix": this.language.translate("_small_number_suffix_21") },
                            { "number": 1e-18, "suffix": this.language.translate("_small_number_suffix_18") },
                            { "number": 1e-15, "suffix": this.language.translate("_small_number_suffix_15") },
                            { "number": 1e-12, "suffix": this.language.translate("_small_number_suffix_12") },
                            { "number": 1e-9, "suffix": this.language.translate("_small_number_suffix_9") },
                            { "number": 1e-6, "suffix": this.language.translate("_small_number_suffix_6") },
                            { "number": 1e-3, "suffix": this.language.translate("_small_number_suffix_3") }
                        ];
                    }
                    return this._smallNumberPrefixes;
                },
                /**
                 * Prefixes for big numbers.
                 *
                 * It's an array of objects of number/prefix pairs.
                 *
                 * ```JSON
                 * [
                 *   { "number": 1e-24, "suffix": "y" },
                 *   { "number": 1e-21, "suffix": "z" },
                 *   { "number": 1e-18, "suffix": "a" },
                 *   { "number": 1e-15, "suffix": "f" },
                 *   { "number": 1e-12, "suffix": "p" },
                 *   { "number": 1e-9, "suffix": "n" },
                 *   { "number": 1e-6, "suffix": "μ" },
                 *   { "number": 1e-3, "suffix": "m" }
                 * ]
                 * ```
                 *
                 * If the number is smaller than the `number` ir will be converted to the
                 * appropriate smaller number with prefix.
                 *
                 * E.g. as per above `0.0015` will be converted to `1.5m`.
                 *
                 * Please note that for this transformation to be enabled, you need to
                 * enable it specific modifier in your format setting.
                 *
                 * The modifier for big/small number modification is "a":
                 *
                 * ```Text
                 * {myfield.formatNumber("#,###.00a")}
                 * ```
                 *
                 * IMPORTANT: The order of the suffixes is important. The list must start
                 * from the smallest number and work towards bigger ones.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-numbers/} Tutorial on number formatting
                 * @param {INumberSuffix[]}  prefixes  Prefixes for small numbers
                 */
                set: function (prefixes) {
                    this._smallNumberPrefixes = prefixes;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(NumberFormatter.prototype, "bytePrefixes", {
                /**
                 * @return {INumberSuffix[]} Prefixes for byte-size formatting
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this._bytePrefixes)) {
                        this._bytePrefixes = [
                            { "number": 0, suffix: this.language.translate("_byte_suffix_B") },
                            { "number": 1024, suffix: this.language.translate("_byte_suffix_KB") },
                            { "number": 1048576, suffix: this.language.translate("_byte_suffix_MB") },
                            { "number": 1073741824, suffix: this.language.translate("_byte_suffix_GB") },
                            { "number": 1099511627776, suffix: this.language.translate("_byte_suffix_TB") },
                            { "number": 1125899906842624, suffix: this.language.translate("_byte_suffix_PB") }
                        ];
                    }
                    return this._bytePrefixes;
                },
                /**
                 * Basically the same as `bigNumberPrefixes`, except base for calculation
                 * is not thousand but byte (1024).
                 *
                 * The modifier is "b".
                 *
                 *  ```Text
                 * {myfield.formatNumber("#,###.00b")}
                 * ```
                 *
                 * The above `2048` will change to `2K`.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-numbers/} Tutorial on number formatting
                 * @param {INumberSuffix[]}  prefixes  Prefixes for byte-size formatting
                 */
                set: function (prefixes) {
                    this._bytePrefixes = prefixes;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(NumberFormatter.prototype, "outputFormat", {
                /**
                 * @ignore Exclude from docs
                 * @return {string} Output format
                 */
                get: function () {
                    return this._outputFormat;
                },
                /**
                 * Ooutput format: "svg" or "html".
                 *
                 * @ignore Exclude from docs
                 * @param {string}  value  Output format
                 */
                set: function (outputFormat) {
                    this._outputFormat = outputFormat.toLowerCase();
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Replaces brackets with temporary placeholders.
             *
             * @ignore Exclude from docs
             * @param  {string}  text  Input text
             * @return {string}        Escaped text
             */
            NumberFormatter.prototype.escape = function (text) {
                return text.replace("||", _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"]);
            };
            /**
             * Replaces placeholders back to brackets.
             *
             * @ignore Exclude from docs
             * @param  {string}  text  Escaped text
             * @return {string}        Unescaped text
             */
            NumberFormatter.prototype.unescape = function (text) {
                return text.replace(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"], "|");
            };
            return NumberFormatter;
        }(_Base__WEBPACK_IMPORTED_MODULE_2__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["NumberFormatter"] = NumberFormatter;
        //# sourceMappingURL=NumberFormatter.js.map
        /***/ 
    }),
    /* 806 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Language", function () { return Language; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(755);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /* harmony import */ var _lang_en__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(807);
        /**
         * Language module contains everything related to language-specific operations:
         * * Translating prompts
         * * Translating functions
         * * Date format localizations
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        ;
        /**
         * Handles all language-related tasks, like loading and storing translations,
         * translating prompts, lists of prompts and even functions.
         *
         * Almost every object in amCharts4 universe will have a `language` property,
         * which can be accessed for prompt translation.
         *
         * @see {@link ILanguageAdapters} for a list of available Adapters
         * @todo Make prompt keys case-insensitive
         * @important
         */
        var Language = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Language, _super);
            /**
             * Constructor
             */
            function Language() {
                var _this = _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<this, this["_adapter"]>}
                 */
                _this.adapter = new _Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * Current locale.
                 *
                 * @type {ILocale}
                 */
                _this._locale = _lang_en__WEBPACK_IMPORTED_MODULE_5__["default"];
                /**
                 * Default locale. A locale to fall back to if none is specified, or
                 * if there's no translation for the prompt for the current language.
                 *
                 * @type {ILocaleDefault}
                 */
                _this._defaultLocale = _lang_en__WEBPACK_IMPORTED_MODULE_5__["default"];
                _this.className = "Language";
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns locale that is currently used.
             *
             * @param  {ILocale}  locale  Force locale. Will use current language if not set.
             * @return {string}           Locale
             */
            Language.prototype.getLocale = function (locale) {
                if (locale == null) {
                    locale = this._locale;
                }
                return this.adapter.apply("locale", {
                    locale: locale
                }).locale;
            };
            /**
             * Returns the translation of the string.
             *
             * If the translation is empty, it will return untranslated prompt.
             *
             * Third parameter and up are strings that can be used to replace "%X"
             * placeholders in prompt.
             *
             * E.g.:
             *
             * ```TypeScript
             * // Results in "This is a first translation test"
             * chart.language.translate("This is a %1 translation %2", null, "first", "test");
             * ```
             * ```JavaScriptScript
             * // Results in "This is a first translation test"
             * chart.language.translate("This is a %1 translation %2", null, "first", "test");
             * ```
             *
             * @param  {Key}            prompt   A string to translate
             * @param  {ILocale}        locale   Force translation into specific locale, e.g. fr_FR
             * @param  {Array<string>}  ...rest  Parameters to replace in string
             * @return {string}                  Translation
             */
            Language.prototype.translate = function (prompt, locale) {
                var rest = [];
                for (var _i = 2; _i < arguments.length; _i++) {
                    rest[_i - 2] = arguments[_i];
                }
                // Get langauge
                locale = this.getLocale(locale);
                // Init translation
                var translation = prompt;
                // Get translations for the locale
                var translations = this.getTranslations(locale);
                var value = translations[prompt];
                // Try to look for the translation
                if (value === null) {
                    value = "";
                }
                else if (_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](value)) {
                    // It might be an empty string
                    if (value) {
                        translation = value;
                    }
                }
                else if (locale !== this._defaultLocale) {
                    // Try to look in default language
                    return this.translate.apply(this, tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"]([prompt, this._defaultLocale], rest));
                }
                // Replace %1, %2, etc params
                if (rest.length) {
                    for (var len = rest.length, i = 0; i < len; ++i) {
                        translation = translation.split("%" + (i + 1)).join(rest[i]);
                    }
                }
                // Return the translation
                return this.adapter.apply("translate", {
                    translation: translation,
                    locale: locale
                }).translation;
            };
            /**
             * Translates prompt.
             *
             * If translation is empty, it will return empty string, which is a different
             * behavior than that of regular `translate`.
             *
             * @param  {Key}            prompt   A string to translate
             * @param  {ILocale}        locale   Force translation into specific locale, e.g. fr_FR
             * @param  {Array<string>}  ...rest  Parameters to replace in string
             * @return {string}                  Translation
             */
            Language.prototype.translateEmpty = function (prompt, locale) {
                var rest = [];
                for (var _i = 2; _i < arguments.length; _i++) {
                    rest[_i - 2] = arguments[_i];
                }
                var translation = this.translate.apply(this, tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"]([prompt, locale], rest));
                return translation == prompt ? "" : translation;
            };
            /**
             * Translates a function.
             *
             * This method will return a function reference, but will not run it. It's
             * up to the caller script to run the function.
             *
             * @param  {Key}                    prompt  A function id to translate
             * @param  {ILocale}                locale  Force translation into specific locale. e.g. fr_FR
             * @return {ILocaleFunctions[Key]}          A language-specific version of the function
             * @todo Apply adapter
             */
            Language.prototype.translateFunc = function (prompt, locale) {
                // Get langauge
                locale = this.getLocale(locale);
                // Get translations for the locale
                var translations = this.getTranslations(locale);
                var value = translations[prompt];
                // Try to look for the translation
                if (value != null) {
                    return value;
                }
                // Try to look in default language
                if (locale !== this._defaultLocale) {
                    return this.translateFunc(prompt, this._defaultLocale);
                }
                // Fail - return empty function
                return function () {
                    return "";
                };
            };
            /**
             * Translates a list of prompts in one go.
             *
             * @param  {Array<Key>}     list    An array of strings to translate
             * @param  {ILocale}        locale  Force translation into specific locale. e.g. fr_FR
             * @return {Array<string>}          An array of translated strings in the same order as source list
             */
            Language.prototype.translateAll = function (list, locale) {
                var _this = this;
                // Translate all items in the list
                if (!this.isDefault()) {
                    return _Array__WEBPACK_IMPORTED_MODULE_3__["map"](list, function (x) { return _this.translate(x, locale); });
                }
                else {
                    return list;
                }
            };
            /**
             * Returns `true` if the currently selected locale is a default locale.
             *
             * @return {boolean} `true` if locale is default; `false` if it is not.
             */
            Language.prototype.isDefault = function () {
                return this._defaultLocale === this._locale;
            };
            Object.defineProperty(Language.prototype, "locale", {
                /**
                 * @return {ILocale} Locale definition
                 */
                get: function () {
                    return this._locale;
                },
                /**
                 * Current locale.
                 *
                 * @param {ILocale}  value  Locale definition (translations)
                 */
                set: function (value) {
                    if (this._locale != value) {
                        this._locale = value;
                        if (this.events.isEnabled("localechanged")) {
                            var event_1 = {
                                type: "localechanged",
                                locale: value,
                                target: this
                            };
                            this.events.dispatchImmediately("localechanged", event_1);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns translations for a given locale.
             *
             * @ignore
             * @deprecated
             * @param  {ILocale}        locale  Locale
             * @return {ILocale}        Translations
             */
            Language.prototype.getTranslations = function (locale) {
                return this.adapter.apply("translations", {
                    translations: locale,
                    locale: locale
                }).translations;
            };
            return Language;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        //# sourceMappingURL=Language.js.map
        /***/ 
    }),
    /* 807 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /**
         * amCharts 4 locale
         *
         * Locale: en
         * Language: International English
         * Author: Martynas Majeris
         *
         * Follow instructions in [`amcharts4-lang` repo](https://github.com/amcharts/amcharts4-lang) to make corrections or add new translations.
         *
         * ---
         * Edit but leave the header section above this line. You can remove any
         * subsequent comment sections.
         * ---
         *
         * Use this file as a template to create translations. Leave the key part in
         * English intact. Fill the value with a translation.
         *
         * Empty string means no translation, so default "International English"
         * will be used.
         *
         * If you need the translation to literally be an empty string, use `null`
         * instead.
         *
         * IMPORTANT:
         * When translating make good effort to keep the translation length
         * at least the same chartcount as the English, especially for short prompts.
         *
         * Having significantly longer prompts may distort the actual charts.
         *
         * NOTE:
         * Some prompts - like months or weekdays - come in two versions: full and
         * shortened.
         *
         * If there's no official shortened version of these in your language, and it
         * would not be possible to invent such short versions that don't seem weird
         * to native speakers of that language, fill those with the same as full
         * version.
         *
         * PLACEHODERS:
         * Some prompts have placeholders like "%1". Those will be replaced by actual
         * values during translation and should be retained in the translated prompts.
         *
         * Placeholder positions may be changed to better suit structure of the
         * sentence.
         *
         * For example "From %1 to %2", when actually used will replace "%1" with an
         * actual value representing range start, and "%2" will be replaced by end
         * value.
         *
         * E.g. in a Scrollbar for Value axis "From %1 to %2" will become
         * "From 100 to 200". You may translate "From" and "to", as well as re-arrange
         * the order of the prompt itself, but make sure the "%1" and "%2" remain, in
         * places where they will make sense.
         *
         * Save the file as language_LOCALE, i.e. `en_GB.ts`, `fr_FR.ts`, etc.
         */
        /* harmony default export */ __webpack_exports__["default"] = ({
            // Number formatting options.
            // 
            // Please check with the local standards which separator is accepted to be
            // used for separating decimals, and which for thousands.
            "_decimalSeparator": ".",
            "_thousandSeparator": ",",
            // Suffixes for numbers
            // When formatting numbers, big or small numers might be reformatted to
            // shorter version, by applying a suffix.
            // 
            // For example, 1000000 might become "1m".
            // Or 1024 might become "1KB" if we're formatting byte numbers.
            // 
            // This section defines such suffixes for all such cases.
            "_big_number_suffix_3": "k",
            "_big_number_suffix_6": "M",
            "_big_number_suffix_9": "G",
            "_big_number_suffix_12": "T",
            "_big_number_suffix_15": "P",
            "_big_number_suffix_18": "E",
            "_big_number_suffix_21": "Z",
            "_big_number_suffix_24": "Y",
            "_small_number_suffix_3": "m",
            "_small_number_suffix_6": "μ",
            "_small_number_suffix_9": "n",
            "_small_number_suffix_12": "p",
            "_small_number_suffix_15": "f",
            "_small_number_suffix_18": "a",
            "_small_number_suffix_21": "z",
            "_small_number_suffix_24": "y",
            "_byte_suffix_B": "B",
            "_byte_suffix_KB": "KB",
            "_byte_suffix_MB": "MB",
            "_byte_suffix_GB": "GB",
            "_byte_suffix_TB": "TB",
            "_byte_suffix_PB": "PB",
            // Default date formats for various periods.
            // 
            // This should reflect official or de facto formatting universally accepted
            // in the country translation is being made for
            // Available format codes here:
            // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-date-time/#Format_codes
            // 
            // This will be used when formatting date/time for particular granularity,
            // e.g. "_date_hour" will be shown whenever we need to show time as hours.
            "_date_millisecond": "mm:ss SSS",
            "_date_second": "HH:mm:ss",
            "_date_minute": "HH:mm",
            "_date_hour": "HH:mm",
            "_date_day": "MMM dd",
            "_date_week": "ww",
            "_date_month": "MMM",
            "_date_year": "yyyy",
            // Default duration formats for various base units.
            // 
            // This will be used by DurationFormatter to format numeric values into
            // duration.
            // 
            // Notice how each duration unit comes in several versions. This is to ensure
            // that each base unit is shown correctly.
            // 
            // For example, if we have baseUnit set to "second", meaning our duration is
            // in seconds.
            // 
            // If we pass in `50` to formatter, it will know that we have just 50 seconds
            // (less than a minute) so it will use format in `"_duration_second"` ("ss"),
            // and the formatted result will be in like `"50"`.
            // 
            // If we pass in `70`, which is more than a minute, the formatter will switch
            // to `"_duration_second_minute"` ("mm:ss"), resulting in "01:10" formatted
            // text.
            // 
            // Available codes here:
            // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/#Available_Codes
            "_duration_millisecond": "SSS",
            "_duration_millisecond_second": "ss.SSS",
            "_duration_millisecond_minute": "mm:ss SSS",
            "_duration_millisecond_hour": "hh:mm:ss SSS",
            "_duration_millisecond_day": "d'd' mm:ss SSS",
            "_duration_millisecond_week": "d'd' mm:ss SSS",
            "_duration_millisecond_month": "M'm' dd'd' mm:ss SSS",
            "_duration_millisecond_year": "y'y' MM'm' dd'd' mm:ss SSS",
            "_duration_second": "ss",
            "_duration_second_minute": "mm:ss",
            "_duration_second_hour": "hh:mm:ss",
            "_duration_second_day": "d'd' hh:mm:ss",
            "_duration_second_week": "d'd' hh:mm:ss",
            "_duration_second_month": "M'm' dd'd' hh:mm:ss",
            "_duration_second_year": "y'y' MM'm' dd'd' hh:mm:ss",
            "_duration_minute": "mm",
            "_duration_minute_hour": "hh:mm",
            "_duration_minute_day": "d'd' hh:mm",
            "_duration_minute_week": "d'd' hh:mm",
            "_duration_minute_month": "M'm' dd'd' hh:mm",
            "_duration_minute_year": "y'y' MM'm' dd'd' hh:mm",
            "_duration_hour": "hh'h'",
            "_duration_hour_day": "d'd' hh'h'",
            "_duration_hour_week": "d'd' hh'h'",
            "_duration_hour_month": "M'm' dd'd' hh'h'",
            "_duration_hour_year": "y'y' MM'm' dd'd' hh'h'",
            "_duration_day": "d'd'",
            "_duration_day_week": "d'd'",
            "_duration_day_month": "M'm' dd'd'",
            "_duration_day_year": "y'y' MM'm' dd'd'",
            "_duration_week": "w'w'",
            "_duration_week_month": "w'w'",
            "_duration_week_year": "w'w'",
            "_duration_month": "M'm'",
            "_duration_month_year": "y'y' MM'm'",
            "_duration_year": "y'y'",
            // Era translations
            "_era_ad": "AD",
            "_era_bc": "BC",
            // Day part, used in 12-hour formats, e.g. 5 P.M.
            // Please note that these come in 3 variants:
            // * one letter (e.g. "A")
            // * two letters (e.g. "AM")
            // * two letters with dots (e.g. "A.M.")
            // 
            // All three need to to be translated even if they are all the same. Some
            // users might use one, some the other.
            "A": "",
            "P": "",
            "AM": "",
            "PM": "",
            "A.M.": "",
            "P.M.": "",
            // Date-related stuff.
            // 
            // When translating months, if there's a difference, use the form which is
            // best for a full date, e.g. as you would use it in "2018 January 1".
            // 
            // Note that May is listed twice. This is because in English May is the same
            // in both long and short forms, while in other languages it may not be the
            // case. Translate "May" to full word, while "May(short)" to shortened
            // version.
            // 
            // Should month names and weekdays be capitalized or not?
            // 
            // Rule of thumb is this: if the names should always be capitalized,
            // regardless of name position within date ("January", "21st January 2018",
            // etc.) use capitalized names. Otherwise enter all lowercase.
            // 
            // The date formatter will automatically capitalize names if they are the
            // first (or only) word in resulting date.
            "January": "",
            "February": "",
            "March": "",
            "April": "",
            "May": "",
            "June": "",
            "July": "",
            "August": "",
            "September": "",
            "October": "",
            "November": "",
            "December": "",
            "Jan": "",
            "Feb": "",
            "Mar": "",
            "Apr": "",
            "May(short)": "May",
            "Jun": "",
            "Jul": "",
            "Aug": "",
            "Sep": "",
            "Oct": "",
            "Nov": "",
            "Dec": "",
            // Weekdays.
            "Sunday": "",
            "Monday": "",
            "Tuesday": "",
            "Wednesday": "",
            "Thursday": "",
            "Friday": "",
            "Saturday": "",
            "Sun": "",
            "Mon": "",
            "Tue": "",
            "Wed": "",
            "Thu": "",
            "Fri": "",
            "Sat": "",
            // Date ordinal function.
            // 
            // This is used when adding number ordinal when formatting days in dates.
            // 
            // E.g. "January 1st", "February 2nd".
            // 
            // The function accepts day number, and returns a string to be added to the
            // day, like in default English translation, if we pass in 2, we will receive
            // "nd" back.
            "_dateOrd": function (day) {
                var res = "th";
                if ((day < 11) || (day > 13)) {
                    switch (day % 10) {
                        case 1:
                            res = "st";
                            break;
                        case 2:
                            res = "nd";
                            break;
                        case 3:
                            res = "rd";
                            break;
                    }
                }
                return res;
            },
            // Various chart controls.
            // Shown as a tooltip on zoom out button.
            "Zoom Out": "",
            // Timeline buttons
            "Play": "",
            "Stop": "",
            // Chart's Legend screen reader title.
            "Legend": "",
            // Legend's item screen reader indicator.
            "Click, tap or press ENTER to toggle": "",
            // Shown when the cahrt is busy loading something.
            "Loading": "",
            // Shown as the first button in the breadcrumb navigation, e.g.:
            // Home > First level > ...
            "Home": "",
            // Chart types.
            // Those are used as default screen reader titles for the main chart element
            // unless developer has set some more descriptive title.
            "Chart": "",
            "Serial chart": "",
            "X/Y chart": "",
            "Pie chart": "",
            "Gauge chart": "",
            "Radar chart": "",
            "Sankey diagram": "",
            "Flow diagram": "",
            "Chord diagram": "",
            "TreeMap chart": "",
            "Sliced chart": "",
            // Series types.
            // Used to name series by type for screen readers if they do not have their
            // name set.
            "Series": "",
            "Candlestick Series": "",
            "OHLC Series": "",
            "Column Series": "",
            "Line Series": "",
            "Pie Slice Series": "",
            "Funnel Series": "",
            "Pyramid Series": "",
            "X/Y Series": "",
            // Map-related stuff.
            "Map": "",
            "Press ENTER to zoom in": "",
            "Press ENTER to zoom out": "",
            "Use arrow keys to zoom in and out": "",
            "Use plus and minus keys on your keyboard to zoom in and out": "",
            // Export-related stuff.
            // These prompts are used in Export menu labels.
            // 
            // "Export" is the top-level menu item.
            // 
            // "Image", "Data", "Print" as second-level indicating type of export
            // operation.
            // 
            // Leave actual format untranslated, unless you absolutely know that they
            // would convey more meaning in some other way.
            "Export": "",
            "Image": "",
            "Data": "",
            "Print": "",
            "Click, tap or press ENTER to open": "",
            "Click, tap or press ENTER to print.": "",
            "Click, tap or press ENTER to export as %1.": "",
            'To save the image, right-click this link and choose "Save picture as..."': "",
            'To save the image, right-click thumbnail on the left and choose "Save picture as..."': "",
            "(Press ESC to close this message)": "",
            "Image Export Complete": "",
            "Export operation took longer than expected. Something might have gone wrong.": "",
            "Saved from": "",
            "PNG": "",
            "JPG": "",
            "GIF": "",
            "SVG": "",
            "PDF": "",
            "JSON": "",
            "CSV": "",
            "XLSX": "",
            // Scrollbar-related stuff.
            // 
            // Scrollbar is a control which can zoom and pan the axes on the chart.
            // 
            // Each scrollbar has two grips: left or right (for horizontal scrollbar) or
            // upper and lower (for vertical one).
            // 
            // Prompts change in relation to whether Scrollbar is vertical or horizontal.
            // 
            // The final section is used to indicate the current range of selection.
            "Use TAB to select grip buttons or left and right arrows to change selection": "",
            "Use left and right arrows to move selection": "",
            "Use left and right arrows to move left selection": "",
            "Use left and right arrows to move right selection": "",
            "Use TAB select grip buttons or up and down arrows to change selection": "",
            "Use up and down arrows to move selection": "",
            "Use up and down arrows to move lower selection": "",
            "Use up and down arrows to move upper selection": "",
            "From %1 to %2": "",
            "From %1": "",
            "To %1": "",
            // Data loader-related.
            "No parser available for file: %1": "",
            "Error parsing file: %1": "",
            "Unable to load file: %1": "",
            "Invalid date": "",
        });
        //# sourceMappingURL=en.js.map
        /***/ 
    }),
    /* 808 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextFormatter", function () { return TextFormatter; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextFormatter", function () { return getTextFormatter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _rendering_AMElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(778);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(770);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Strings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(796);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /**
         * Handles formatting of pseudo-markup in text.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Handles formatting of pseudo-markdown in text.
         *
         * @todo Encode < > in output
         * @todo Add more adapters
         * @important
         */
        var TextFormatter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextFormatter, _super);
            /**
             * Constructor
             */
            function TextFormatter() {
                var _this = _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<TextFormatter, ITextFormatterAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_3__["Adapter"](_this);
                _this.className = "TextFormatter";
                _this.applyTheme();
                return _this;
            }
            TextFormatter.prototype.debug = function () { };
            /**
             * Formats the text according to specifications passed in.
             *
             * @param  {string}  text    Text to format
             * @param  {string}  output  Output format (svg, html)
             * @return {string}          Formatted text
             */
            TextFormatter.prototype.format = function (text, output) {
                // Apply default
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["hasValue"](output)) {
                    output = "svg";
                }
                // Init return value
                var formatted = "";
                // Replace double (escaped) square spaces with remporary codes
                text = this.escape(text);
                // Divvy up the string by style tags
                var styles = text.match(/\[([^\]]*?)\]/gm);
                if (!styles) {
                    // Nothing to do here - no formatting elements
                    return this.wrap(text, "", output);
                }
                // Get pure text - no style tags
                var texts = text.split(/\[[^\[\]]*\]/);
                // Go through each of the texts and wrap it in style tags
                for (var i = 0, len = texts.length; i < len; i++) {
                    // Get text bit
                    var t = texts[i];
                    // Check if string is empty
                    if (t === "") {
                        continue;
                    }
                    // Run through an adapter
                    t = this.adapter.apply("chunk", t);
                    // Get related style
                    var s = "";
                    if (i > 0) {
                        s = styles[i - 1].replace('[', '').replace(']', '');
                    }
                    // Wrap text in tag
                    formatted += this.wrap(t, s, output);
                }
                // Replace placeholders back
                formatted = this.unescape(formatted);
                // Return result
                return this.cleanUp(formatted);
            };
            /**
             * Replaces brackets with temporary placeholders.
             *
             * @ignore Exclude from docs
             * @param  {string}  text  Input text
             * @return {string}        Escaped text
             */
            TextFormatter.prototype.escape = function (text) {
                return text.
                    replace(/\[\[/g, _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("1")).
                    replace(/([^\/]{1})\]\]/g, "$1" + _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("2")).
                    replace(/\{\{/g, _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("3")).
                    replace(/\}\}/g, _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("4")).
                    replace(/\'\'/g, _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("5"));
            };
            /**
             * Replaces placeholders back to brackets.
             *
             * @ignore Exclude from docs
             * @param  {string}  text  Escaped text
             * @return {string}        Unescaped text
             */
            TextFormatter.prototype.unescape = function (text) {
                return text.
                    replace(new RegExp(_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("1"), "g"), "[[").
                    replace(new RegExp(_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("2"), "g"), "]]").
                    replace(new RegExp(_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("3"), "g"), "{{").
                    replace(new RegExp(_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("4"), "g"), "}}").
                    replace(new RegExp(_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getPlaceholder("5"), "g"), "'");
            };
            /**
             * Cleans up the text text for leftover double square brackets.
             *
             * @ignore Exclude from docs
             * @param  {string}  text  Input text
             * @return {string}        Cleaned up text
             */
            TextFormatter.prototype.cleanUp = function (text) {
                return text.
                    replace(/\[\[/g, "[").
                    replace(/\]\]/g, "]").
                    replace(/\{\{/g, "{").
                    replace(/\}\}/g, "}").
                    replace(/\'\'/g, "'");
            };
            /**
             * Wraps text into corresponding tags.
             *
             * @ignore Exclude from docs
             * @param  {string}  text   Text to wrap
             * @param  {string}  style  Styles
             * @param  {string}  output  Format to output in (svg, html)
             * @return {string}          Formatted string
             */
            TextFormatter.prototype.wrap = function (text, style, output) {
                if (style === "" || style === "/") {
                    //return text;
                    style = "";
                }
                switch (output) {
                    case "html":
                        return this.wrapHtml(text, this.translateStyleShortcuts(style));
                    default:
                        return this.wrapSvg(text, this.translateStyleShortcuts(style));
                }
            };
            /**
             * Wraps text in styled SVG tag.
             *
             * @ignore Exclude from docs
             * @param  {string}  text   Text to wrap
             * @param  {string}  style  Style property
             * @return {string}         Formatted tag
             */
            TextFormatter.prototype.wrapSvg = function (text, style) {
                if (style === "") {
                    return "<tspan>" + text + "</tspan>";
                }
                else {
                    return "<tspan style='" + style + "'>" + text + "</tspan>";
                }
            };
            /**
             * Returns an SVG `<tspan>` element.
             *
             * @ignore Exclude from docs
             * @param  {string}     text   Text
             * @param  {string}     style  Style
             * @return {AMElement}         Element
             */
            TextFormatter.prototype.getSvgElement = function (text, style) {
                var element = new _rendering_AMElement__WEBPACK_IMPORTED_MODULE_2__["AMElement"]("tspan");
                element.textContent = text;
                if (style) {
                    element.node.setAttribute("style", style);
                }
                return element;
            };
            /**
             * Wraps text in HTML <span> tag.
             *
             * @ignore Exclude from docs
             * @param  {string}  text   Text to wrap
             * @param  {string}  style  Style property
             * @return {string}         Formatted tag
             * @todo Translate SVG styles into HTML ones
             */
            TextFormatter.prototype.wrapHtml = function (text, style) {
                if (style === "") {
                    return "<span>" + text + "</span>";
                }
                else {
                    return "<span style='" + this.styleSvgToHtml(style) + "'>" + text + "</span>";
                }
            };
            /**
             * Returns an HTML `<span>` element.
             *
             * @ignore Exclude from docs
             * @param  {string}       text   Text/HTML
             * @param  {string}       style  Style definition
             * @return {HTMLElement}         HTML element
             */
            TextFormatter.prototype.getHtmlElement = function (text, style) {
                var element = document.createElement("span");
                element.innerHTML = text;
                if (style) {
                    element.setAttribute("style", style);
                }
                return element;
            };
            /**
             * Trabslates SVG CSS into HTML CSS.
             *
             * @ignore Exclude from docs
             * @param  {string}  style  SVG CSS
             * @return {string}         HTML CSS
             * @todo Implement actual translation
             */
            TextFormatter.prototype.styleSvgToHtml = function (style) {
                style = style.replace(/fill:/, "color:");
                return style;
            };
            /**
             * Translates style shortcuts into full styles, i.e.:
             * "bold" => "font-weight: bold"
             * "#f00" => "fill: #f00"
             *
             * @ignore Exclude from docs
             * @param  {string}  style  Untranslated style
             * @return {string}         Translated style
             * @todo Implement actual translation
             */
            TextFormatter.prototype.translateStyleShortcuts = function (style) {
                if (style == "" || style == "[ ]") {
                    return "";
                }
                var cached = _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getCache("translateStyleShortcuts_" + style);
                if (cached) {
                    return cached;
                }
                // Get style parts
                var b = style.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);
                // Empty?
                if (!b) {
                    return style;
                }
                // Check each part
                for (var i = 0; i < b.length; i++) {
                    if (b[i].match(/^bold$/i)) {
                        // Bold
                        b[i] = "font-weight:" + b[i];
                    }
                    else if (b[i] == "/") {
                        // Just closing tag
                        // Do nothing
                        b[i] = "";
                    }
                    else if (!b[i].match(/:/)) {
                        // Color
                        b[i] = "fill:" + b[i];
                    }
                }
                var res = b.join(';');
                _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].setCache("translateStyleShortcuts_" + style, res);
                return res;
            };
            /**
             * Splits string into chunks. (style blocks, quoted blocks, regular blocks)
             *
             * If the second parameter `quotedBlocks` is set to `true` this method will
             * also single out text blocks enclosed within single quotes that no
             * formatting should be applied to, and they should be displayed as is.
             *
             * Default for the above is `false`, so that you can use single quote in text
             * without escaping it.
             *
             * If enabled, single quotes can be escaped by doubling it - adding two
             * single quotes, which will be replaced by a one single quote in the final
             * output.
             *
             * @ignore Exclude from docs
             * @param  {string}    text          Text to chunk
             * @param  {boolean}   quotedBlocks  Use quoted blocks
             * @param  {boolean}   noFormatting  Formatting blocks will be treated as regular text
             * @return {string[]}                Array of string chunks
             */
            TextFormatter.prototype.chunk = function (text, quotedBlocks, noFormatting) {
                if (quotedBlocks === void 0) {
                    quotedBlocks = false;
                }
                if (noFormatting === void 0) {
                    noFormatting = false;
                }
                // Init result
                var res = [];
                // Replace double (escaped) square spaces and quotes with temporary codes
                text = this.escape(text);
                // Deal with style blocks
                var chunks = quotedBlocks ? text.split("'") : [text];
                for (var i = 0; i < chunks.length; i++) {
                    var chunk = chunks[i];
                    // Empty?
                    if (chunk === "") {
                        continue;
                    }
                    if ((i % 2) === 0) {
                        // Text outside quotes
                        // Parse for style blocks which are "text" chunks, the rest chunks are
                        // "value"
                        chunk = chunk.replace(/\]\[/g, "]" + _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"] + "[");
                        chunk = chunk.replace(/\[\]/g, "[ ]");
                        var chunks2 = chunk.split(/[\[\]]+/);
                        for (var i2 = 0; i2 < chunks2.length; i2++) {
                            var chunk2 = this.cleanUp(this.unescape(chunks2[i2]));
                            // Placeholder?
                            if (chunk2 === _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"]) {
                                continue;
                            }
                            // Empty?
                            if (chunk2 === "") {
                                continue;
                            }
                            // Block or value
                            if ((i2 % 2) === 0) {
                                res.push({
                                    "type": "value",
                                    "text": this.adapter.apply("chunk", chunk2)
                                });
                            }
                            else {
                                res.push({
                                    "type": noFormatting ? "value" : "format",
                                    "text": "[" + chunk2 + "]"
                                });
                            }
                        }
                    }
                    else {
                        // A text within doublequotes
                        // All chunks are "text"
                        var chunks2 = chunk.split(/[\[\]]+/);
                        for (var i2 = 0; i2 < chunks2.length; i2++) {
                            var chunk2 = this.cleanUp(this.unescape(chunks2[i2]));
                            // Empty?
                            if (chunk2 === "") {
                                continue;
                            }
                            // Block or text
                            if ((i2 % 2) === 0) {
                                res.push({
                                    "type": "text",
                                    "text": chunk2
                                });
                            }
                            else if (this.isImage(chunk2)) {
                                res.push({
                                    "type": "image",
                                    "text": "[" + chunk2 + "]"
                                });
                            }
                            else {
                                res.push({
                                    "type": "format",
                                    "text": "[" + chunk2 + "]"
                                });
                            }
                        }
                    }
                }
                return res;
            };
            /**
             * Checks if supplied format contains image information and should be
             * formatted as such.
             * I.e.: `[img: myImage.png]`
             *
             * @ignore Exclude from docs
             * @param  {string}   text  Format
             * @return {boolean}        `true` if it is an image
             */
            TextFormatter.prototype.isImage = function (text) {
                return text.match(/img[ ]?:/) ? true : false;
            };
            return TextFormatter;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        var formatter;
        /**
         * Returns the global instance of [[TextFormatter]].
         *
         * All classes and instances should reuse this universal text formatter,
         * rather than create their own instance of it.
         *
         * @type {TextFormatter}
         */
        function getTextFormatter() {
            if (formatter == null) {
                formatter = new TextFormatter();
            }
            return formatter;
        }
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["TextFormatter"] = TextFormatter;
        //# sourceMappingURL=TextFormatter.js.map
        /***/ 
    }),
    /* 809 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateFormatter", function () { return DateFormatter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(806);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(768);
        /* harmony import */ var _formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(808);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Strings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(796);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * Handles date and time formatting
         */
        /**
         * Handles date and time formatting.
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-date-time/} Tutorial on date/time formatting
         * @todo Better type casting of passed in date?
         * @todo Quarter support?
         * @todo When parsing named months make the search case-insensitive
         * @todo Escape a.m./p.m. properly when used in RegEx
         */
        var DateFormatter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DateFormatter, _super);
            /**
             * Constructor
             */
            function DateFormatter() {
                var _this = _super.call(this) || this;
                /**
                 * Date format.
                 *
                 * @type {string}
                 */
                _this._dateFormat = "yyyy-MM-dd";
                /**
                 * Input date format.
                 *
                 * @type {string}
                 */
                _this._inputDateFormat = "yyyy-MM-dd";
                /**
                 * Assume UTC time zone.
                 *
                 * @type {boolean}
                 */
                _this._utc = false;
                /**
                 * First day of week.
                 *
                 * 0 - Sunday
                 * 1 - Monday
                 *
                 * Etc.
                 *
                 * @type {number}
                 */
                _this._firstDayOfWeek = 1;
                /**
                 * A list of month names.
                 *
                 * @type {Array<MonthNames>}
                 */
                _this._months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
                /**
                 * A list of short month names.
                 *
                 * @param {Array<ShortMonthNames>}
                 */
                _this._monthsShort = ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
                /**
                 * A list of weekday names.
                 *
                 * @type {Array<Weekdays>}
                 */
                _this._weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
                /**
                 * A list of short weekday names.
                 *
                 * @type {Array<ShortWeekdays>}
                 */
                _this._weekdaysShort = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
                /**
                 * Output format to produce. If the format calls for applying color to the
                 * formatted value, this setting will determine what markup to use: SVG or
                 * HTML.
                 *
                 * Available options: svg, html.
                 *
                 * @default "svg"
                 * @type {string}
                 */
                _this._outputFormat = "svg";
                /**
                 * Should the first letter of the formatted date be capitalized?
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this.capitalize = true;
                _this.className = "DateFormatter";
                _this.applyTheme();
                return _this;
            }
            /**
             * Formats the date value according to specified format.
             *
             * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-date-time/} Tutorial on date/time formatting
             * @param  {any}     source  Date value
             * @param  {string}  format  Format
             * @return {string}          Formatted date string
             */
            DateFormatter.prototype.format = function (source, format) {
                // No language?
                if (!this.language) {
                    if (this.sprite) {
                        this.language = this.sprite.language;
                    }
                    else {
                        this.language = new _utils_Language__WEBPACK_IMPORTED_MODULE_1__["Language"];
                    }
                }
                // No format passed in or it's empty
                if (typeof format === "undefined" || format === "") {
                    format = this._dateFormat;
                }
                // Clean format
                format = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["cleanFormat"](format);
                // get format info (it will also deal with parser caching)
                var info = this.parseFormat(format);
                // Do any casting if required
                // This will take care of timestamps as well as Date objects
                var date = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["anyToDate"](source);
                // Check if it's a valid date
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](date.getTime())) {
                    return this.language.translate("Invalid date");
                }
                // Apply format
                var formatted = this.applyFormat(date, info, this.language);
                // Capitalize
                if (this.capitalize) {
                    formatted = formatted.replace(/^.{1}/, formatted.substr(0, 1).toUpperCase());
                }
                // We're done
                return formatted;
            };
            /**
             * Parses format into structured infromation.
             *
             * @param {string} format Format template
             */
            DateFormatter.prototype.parseFormat = function (format) {
                // Check cache
                var cached = this.getCache(format);
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](cached)) {
                    return cached;
                }
                // Init format parse info holder
                var info = {
                    "template": "",
                    "parts": []
                };
                // Let TextFormatter split into chunks
                var chunks = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().chunk(format, true);
                for (var i = 0; i < chunks.length; i++) {
                    var chunk = chunks[i];
                    if (chunk.type === "value") {
                        // Just "Date"?
                        if (chunk.text.match(/^date$/i)) {
                            chunk.text = this._dateFormat;
                        }
                        // Find all possible parts
                        var matches = chunk.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);
                        // Found?
                        if (matches) {
                            // Populate template
                            for (var x = 0; x < matches.length; x++) {
                                info.parts.push(matches[x]);
                                chunk.text = chunk.text.replace(matches[x], _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"]);
                            }
                        }
                    }
                    // Apply to template
                    info.template += chunk.text;
                }
                // Apply style formatting
                //info.template = getTextFormatter().format(info.template, this.outputFormat);
                // Save cache
                this.setCache(format, info);
                return info;
            };
            /**
             * Applies format to Date.
             *
             * @param  {Date}            date      Date object
             * @param  {DateFormatInfo}  info      Parsed format information
             * @param  {Language}        language  Language
             * @return {string}                    Formatted date string
             */
            DateFormatter.prototype.applyFormat = function (date, info, language) {
                // Init return value
                var res = info.template;
                // Get values
                var fullYear, month, weekday, day, hours, minutes, seconds, milliseconds, offset = date.getTimezoneOffset(), timestamp = date.getTime();
                if (this.utc) {
                    fullYear = date.getUTCFullYear();
                    month = date.getUTCMonth();
                    weekday = date.getUTCDay();
                    day = date.getUTCDate();
                    hours = date.getUTCHours();
                    minutes = date.getUTCMinutes();
                    seconds = date.getUTCSeconds();
                    milliseconds = date.getUTCMilliseconds();
                }
                else {
                    fullYear = date.getFullYear();
                    month = date.getMonth();
                    weekday = date.getDay();
                    day = date.getDate();
                    hours = date.getHours();
                    minutes = date.getMinutes();
                    seconds = date.getSeconds();
                    milliseconds = date.getMilliseconds();
                }
                // Go through each part and format/replace it in template
                for (var i = 0, len = info.parts.length; i < len; i++) {
                    var value = "";
                    switch (info.parts[i]) {
                        case "G":
                            value = language.translate(fullYear < 0
                                ? "_era_bc"
                                : "_era_ad");
                            break;
                        case "yyyy":
                            value = fullYear.toString();
                            break;
                        case "yyy":
                        case "yy":
                        case "y":
                            value = fullYear.toString().substr(-info.parts[i].length);
                            break;
                        case "YYYY":
                        case "YYY":
                        case "YY":
                        case "Y":
                            var week = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getWeek"](date);
                            var year = fullYear;
                            if (week == 1 && weekday > 1) {
                                year++;
                            }
                            if (info.parts[i] == "YYYY") {
                                value = year.toString();
                            }
                            else {
                                value = year.toString().substr(-info.parts[i].length);
                            }
                            break;
                        case "u":
                            // @todo
                            break;
                        case "MMMMM":
                            value = language.translate(this._months[month]).substr(0, 1);
                            break;
                        case "MMMM":
                            value = language.translate(this._months[month]);
                            break;
                        case "MMM":
                            value = language.translate(this._monthsShort[month]);
                            break;
                        case "MM":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](month + 1, 2, "0");
                            break;
                        case "M":
                            value = (month + 1).toString();
                            break;
                        case "ww":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getWeek"](date, this.utc), 2, "0");
                            break;
                        case "w":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getWeek"](date, this.utc).toString();
                            break;
                        case "W":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getMonthWeek"](date, this.utc).toString();
                            break;
                        case "dd":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](day, 2, "0");
                            break;
                        case "d":
                            value = day.toString();
                            break;
                        case "DD":
                        case "DDD":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getYearDay"](date, this.utc).toString(), info.parts[i].length, "0");
                            break;
                        case "D":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getYearDay"](date, this.utc).toString();
                            break;
                        case "F":
                            // @todo
                            break;
                        case "g":
                            // @todo
                            break;
                        case "t":
                            value = language.translateFunc("_dateOrd").call(this, day);
                            break;
                        case "E":
                            value = (weekday || 7).toString();
                            break;
                        case "EE":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"]((weekday || 7).toString(), 2, "0");
                            break;
                        case "EEE":
                        case "eee":
                            value = language.translate(this._weekdaysShort[weekday]);
                            break;
                        case "EEEE":
                        case "eeee":
                            value = language.translate(this._weekdays[weekday]);
                            break;
                        case "EEEEE":
                        case "eeeee":
                            value = language.translate(this._weekdays[weekday]).substr(0, 1);
                            break;
                        case "e":
                        case "ee":
                            value = (weekday - this.firstDayOfWeek + 1).toString();
                            if (info.parts[i] == "ee") {
                                value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](value, 2, "0");
                            }
                            break;
                        case "a":
                            if (hours >= 12) {
                                value = language.translate("PM");
                            }
                            else {
                                value = language.translate("AM");
                            }
                            break;
                        case "aa":
                            if (hours >= 12) {
                                value = language.translate("P.M.");
                            }
                            else {
                                value = language.translate("A.M.");
                            }
                            break;
                        case "aaa":
                            if (hours >= 12) {
                                value = language.translate("P");
                            }
                            else {
                                value = language.translate("A");
                            }
                            break;
                        case "h":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["get12Hours"](hours).toString();
                            break;
                        case "hh":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["get12Hours"](hours), 2, "0");
                            break;
                        case "H":
                            value = hours.toString();
                            break;
                        case "HH":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](hours, 2, "0");
                            break;
                        case "K":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["get12Hours"](hours, 0).toString();
                            break;
                        case "KK":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["get12Hours"](hours, 0), 2, "0");
                            break;
                        case "k":
                            value = (hours + 1).toString();
                            break;
                        case "kk":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](hours + 1, 2, "0");
                            break;
                        case "m":
                            value = minutes.toString();
                            break;
                        case "mm":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](minutes, 2, "0");
                            break;
                        case "s":
                            value = seconds.toString();
                            break;
                        case "ss":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](seconds, 2, "0");
                            break;
                        case "S":
                        case "SS":
                        case "SSS":
                            value = Math.round((milliseconds / 1000) * Math.pow(10, info.parts[i].length)).toString();
                            break;
                        case "x":
                            value = timestamp.toString();
                            break;
                        case "n":
                        case "nn":
                        case "nnn":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](milliseconds, info.parts[i].length, "0");
                            break;
                        case "z":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getTimeZone"](date, false, false, this.utc);
                            break;
                        case "zz":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getTimeZone"](date, true, false, this.utc);
                            break;
                        case "zzz":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getTimeZone"](date, false, true, this.utc);
                            break;
                        case "zzzz":
                            value = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getTimeZone"](date, true, true, this.utc);
                            break;
                        case "Z":
                        case "ZZ":
                            var tz = Math.abs(offset) / 60;
                            var tzh = Math.floor(tz);
                            var tzm = tz * 60 - tzh * 60;
                            if (info.parts[i] == "Z") {
                                value = "GMT";
                                value += offset > 0 ? "-" : "+";
                                value += _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](tzh, 2) + ":" + _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](tzm, 2);
                            }
                            else {
                                value = offset > 0 ? "-" : "+";
                                value += _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](tzh, 2) + _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["padString"](tzm, 2);
                            }
                            break;
                        case "i":
                            value = date.toISOString();
                            break;
                        case "I":
                            value = date.toUTCString();
                            break;
                    }
                    res = res.replace(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"], value);
                }
                return res;
            };
            /**
             * Parses any input value into Date object.
             *
             * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-date-time/#Parsing_Dates} Tutorial on date/time parsing
             * @param  {any}     source  Source value
             * @param  {string}  format  Source format
             * @return {Date}            Date object
             */
            DateFormatter.prototype.parse = function (source, format) {
                // Format set?
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](format)) {
                    format = this.inputDateFormat;
                }
                // Is it already a Date
                if (source instanceof Date) {
                    return source;
                }
                // Is it a numeric timestamp
                if (typeof source === "number") {
                    return new Date(source);
                }
                // No? Let's check if it's string, and try converting to it if nec
                if (typeof source !== "string") {
                    source = source.toString();
                }
                // no language?
                if (!this.language) {
                    if (this.sprite) {
                        this.language = this.sprite.language;
                    }
                    else {
                        this.language = new _utils_Language__WEBPACK_IMPORTED_MODULE_1__["Language"];
                    }
                }
                // Init return value
                var res = new Date(1970, 0, 1, 0, 0, 0);
                // Init RegEx for parsing
                var reg = "";
                // Clean format
                format = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["cleanFormat"](format);
                // Parse format
                var info = this.parseFormat(format);
                // Init parsed items holder
                var parsedIndexes = {
                    "year": -1,
                    "year3": -1,
                    "year2": -1,
                    "year1": -1,
                    "month": -1,
                    "monthShort": -1,
                    "monthLong": -1,
                    "weekdayShort": -1,
                    "weekdayLong": -1,
                    "day": -1,
                    "yearDay": -1,
                    "week": -1,
                    "hourBase0": -1,
                    "hour12Base0": -1,
                    "hourBase1": -1,
                    "hour12Base1": -1,
                    "minute": -1,
                    "second": -1,
                    "millisecond": -1,
                    "millisecondDigits": -1,
                    "am": -1,
                    "zone": -1,
                    "timestamp": -1,
                    "iso": -1
                };
                // Index adjuster
                var indexAdjust = 0, index = 0;
                // Iterate through all of the parts
                for (var i = 0; i < info.parts.length; i++) {
                    // Set current match index
                    index = i + indexAdjust + 1;
                    switch (info.parts[i]) {
                        case "yyyy":
                        case "YYYY":
                            reg += "([0-9]{4,})";
                            parsedIndexes.year = index;
                            break;
                        case "yyy":
                        case "YYY":
                            reg += "([0-9]{3})";
                            parsedIndexes.year3 = index;
                            break;
                        case "yy":
                        case "YY":
                            reg += "([0-9]{2})";
                            parsedIndexes.year2 = index;
                            break;
                        case "y":
                        case "Y":
                            reg += "([0-9]{1})";
                            parsedIndexes.year1 = index;
                            break;
                        case "MMMM":
                            reg += "(" + this.getStringList(this._months).join("|") + ")";
                            parsedIndexes.monthLong = index;
                            break;
                        case "MMM":
                            reg += "(" + this.getStringList(this._monthsShort).join("|") + ")";
                            parsedIndexes.monthShort = index;
                            break;
                        case "MM":
                        case "M":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.month = index;
                            break;
                        case "ww":
                        case "w":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.week = index;
                            break;
                        case "dd":
                        case "d":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.day = index;
                            break;
                        case "DDD":
                        case "DD":
                        case "D":
                            reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})";
                            parsedIndexes.yearDay = index;
                            break;
                        case "dddd":
                            reg += "(" + this.getStringList(this._weekdays).join("|") + ")";
                            parsedIndexes.weekdayLong = index;
                            break;
                        case "ddd":
                            reg += "(" + this.getStringList(this._weekdaysShort).join("|") + ")";
                            parsedIndexes.weekdayShort = index;
                            break;
                        case "aaa":
                        case "aa":
                        case "a":
                            // TODO: fix (escape regex)
                            reg += "(" + this.getStringList(["AM", "PM", "A\.M\.", "P\.M\.", "A", "P"]).join("|") + ")";
                            parsedIndexes.am = index;
                            break;
                        case "hh":
                        case "h":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.hour12Base1 = index;
                            break;
                        case "HH":
                        case "H":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.hourBase0 = index;
                            break;
                        case "KK":
                        case "K":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.hour12Base0 = index;
                            break;
                        case "kk":
                        case "k":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.hourBase1 = index;
                            break;
                        case "mm":
                        case "m":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.minute = index;
                            break;
                        case "ss":
                        case "s":
                            reg += "([0-9]{2}|[0-9]{1})";
                            parsedIndexes.second = index;
                            break;
                        case "SSS":
                        case "SS":
                        case "S":
                            reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})";
                            parsedIndexes.millisecond = index;
                            parsedIndexes.millisecondDigits = info.parts[i].length;
                            break;
                        case "nnn":
                        case "nn":
                        case "n":
                            reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})";
                            parsedIndexes.millisecond = index;
                            break;
                        case "x":
                            reg += "([0-9]{1,})";
                            parsedIndexes.timestamp = index;
                            break;
                        case "Z":
                            reg += "GMT([-+]+[0-9]{2}:[0-9]{2})";
                            parsedIndexes.zone = index;
                            break;
                        case "ZZ":
                            reg += "([\\-+]+[0-9]{2}[0-9]{2})";
                            parsedIndexes.zone = index;
                            break;
                        case "i":
                            reg += "([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})\.([0-9]{3})Z";
                            parsedIndexes.iso = index;
                            indexAdjust += 6;
                            break;
                        case "G":
                        case "YYYY":
                        case "YYY":
                        case "YY":
                        case "Y":
                        case "MMMMM":
                        case "W":
                        case "EEEEE":
                        case "EEEE":
                        case "EEE":
                        case "EE":
                        case "E":
                        case "eeeee":
                        case "eeee":
                        case "eee":
                        case "ee":
                        case "e":
                        case "zzzz":
                        case "zzz":
                        case "zz":
                        case "z":
                        case "t":
                            // Ignore
                            indexAdjust--;
                            break;
                    }
                    reg += "[^0-9]*";
                }
                // Try matching
                var regex = new RegExp(reg);
                var matches;
                if (matches = source.match(regex)) {
                    // Populate the date object
                    // Full year
                    if (parsedIndexes.year > -1) {
                        var val = parseInt(matches[parsedIndexes.year]);
                        if (this.utc) {
                            res.setUTCFullYear(val);
                        }
                        else {
                            res.setFullYear(val);
                        }
                    }
                    // 3-digit year
                    if (parsedIndexes.year3 > -1) {
                        var val = parseInt(matches[parsedIndexes.year3]);
                        val += 1000;
                        if (this.utc) {
                            res.setUTCFullYear(val);
                        }
                        else {
                            res.setFullYear(val);
                        }
                    }
                    // 2-digit year
                    if (parsedIndexes.year2 > -1) {
                        var val = parseInt(matches[parsedIndexes.year2]);
                        if (val > 50) {
                            val += 1000;
                        }
                        else {
                            val += 2000;
                        }
                        if (this.utc) {
                            res.setUTCFullYear(val);
                        }
                        else {
                            res.setFullYear(val);
                        }
                    }
                    // 1-digit year
                    if (parsedIndexes.year1 > -1) {
                        var val = parseInt(matches[parsedIndexes.year1]);
                        val = Math.floor((new Date().getFullYear()) / 10) * 10 + val;
                        if (this.utc) {
                            res.setUTCFullYear(val);
                        }
                        else {
                            res.setFullYear(val);
                        }
                    }
                    // Full month
                    if (parsedIndexes.monthLong > -1) {
                        var val = this.resolveMonth(matches[parsedIndexes.monthLong]);
                        if (this.utc) {
                            res.setUTCMonth(val);
                        }
                        else {
                            res.setMonth(val);
                        }
                    }
                    // Short month
                    if (parsedIndexes.monthShort > -1) {
                        var val = this.resolveShortMonth(matches[parsedIndexes.monthShort]);
                        if (this.utc) {
                            res.setUTCMonth(val);
                        }
                        else {
                            res.setMonth(val);
                        }
                    }
                    // Numeric month
                    if (parsedIndexes.month > -1) {
                        var val = parseInt(matches[parsedIndexes.month]) - 1;
                        if (this.utc) {
                            res.setUTCMonth(val);
                        }
                        else {
                            res.setMonth(val);
                        }
                    }
                    // Weekday
                    // @todo
                    // Week
                    if ((parsedIndexes.week > -1) && (parsedIndexes.day === -1)) {
                        // We parse weeks ONLY if day is not explicitly set
                        // TODO: this needs work
                        // (but maybe later - I can hardly imagine anyone passing their dates in weeks)
                        var val = _utils_Utils__WEBPACK_IMPORTED_MODULE_6__["getDayFromWeek"](parseInt(matches[parsedIndexes.week]), this.utc ? res.getUTCFullYear() : res.getFullYear(), 1, this.utc);
                        if (this.utc) {
                            res.setUTCMonth(0);
                            res.setUTCDate(val);
                        }
                        else {
                            res.setMonth(0);
                            res.setDate(val);
                        }
                    }
                    // Day
                    if (parsedIndexes.day > -1) {
                        var val = parseInt(matches[parsedIndexes.day]);
                        if (this.utc) {
                            res.setUTCDate(val);
                        }
                        else {
                            res.setDate(val);
                        }
                    }
                    // Year day
                    if (parsedIndexes.yearDay > -1) {
                        var val = parseInt(matches[parsedIndexes.yearDay]);
                        if (this.utc) {
                            res.setUTCMonth(0);
                            res.setUTCDate(val);
                        }
                        else {
                            res.setMonth(0);
                            res.setDate(val);
                        }
                    }
                    // 24 Hour (0-23)
                    if (parsedIndexes.hourBase0 > -1) {
                        var val = parseInt(matches[parsedIndexes.hourBase0]);
                        if (this.utc) {
                            res.setUTCHours(val);
                        }
                        else {
                            res.setHours(val);
                        }
                    }
                    // 24 Hour (1-24)
                    if (parsedIndexes.hourBase1 > -1) {
                        var val = parseInt(matches[parsedIndexes.hourBase1]) - 1;
                        if (this.utc) {
                            res.setUTCHours(val);
                        }
                        else {
                            res.setHours(val);
                        }
                    }
                    // 12 Hour (0-11)
                    if (parsedIndexes.hour12Base0 > -1) {
                        var val = parseInt(matches[parsedIndexes.hour12Base0]);
                        if (val == 11) {
                            val = 0;
                        }
                        if ((parsedIndexes.am > -1) && !this.isAm(matches[parsedIndexes.am])) {
                            val += 12;
                        }
                        if (this.utc) {
                            res.setUTCHours(val);
                        }
                        else {
                            res.setHours(val);
                        }
                    }
                    // 12 Hour (1-12)
                    if (parsedIndexes.hour12Base1 > -1) {
                        var val = parseInt(matches[parsedIndexes.hour12Base1]);
                        if (val == 12) {
                            val = 0;
                        }
                        if ((parsedIndexes.am > -1) && !this.isAm(matches[parsedIndexes.am])) {
                            val += 12;
                        }
                        if (this.utc) {
                            res.setUTCHours(val);
                        }
                        else {
                            res.setHours(val);
                        }
                    }
                    // Minute
                    if (parsedIndexes.minute > -1) {
                        var val = parseInt(matches[parsedIndexes.minute]);
                        if (this.utc) {
                            res.setUTCMinutes(val);
                        }
                        else {
                            res.setMinutes(val);
                        }
                    }
                    // Second
                    if (parsedIndexes.second > -1) {
                        var val = parseInt(matches[parsedIndexes.second]);
                        if (this.utc) {
                            res.setUTCSeconds(val);
                        }
                        else {
                            res.setSeconds(val);
                        }
                    }
                    // Millisecond
                    if (parsedIndexes.millisecond > -1) {
                        var val = parseInt(matches[parsedIndexes.millisecond]);
                        if (parsedIndexes.millisecondDigits == 2) {
                            val *= 10;
                        }
                        else if (parsedIndexes.millisecondDigits == 1) {
                            val *= 100;
                        }
                        if (this.utc) {
                            res.setUTCMilliseconds(val);
                        }
                        else {
                            res.setMilliseconds(val);
                        }
                    }
                    // Timestamp
                    if (parsedIndexes.timestamp > -1) {
                        res.setTime(parseInt(matches[parsedIndexes.timestamp]));
                    }
                    // Adjust time zone
                    if (parsedIndexes.zone > -1) {
                        var zone = matches[parsedIndexes.zone].replace(/:/, "");
                        var match = _utils_Type__WEBPACK_IMPORTED_MODULE_7__["getValue"](zone.match(/([+\-]?)([0-9]{2})([0-9]{2})/));
                        var dir = match[1];
                        var hour = match[2];
                        var minute = match[3];
                        var offset = parseInt(hour) * 60 + parseInt(minute);
                        // Adjust offset
                        // Making it negative does not seem to make sense, but it's right
                        // because of how JavaScript calculates GTM offsets
                        if (dir == "+") {
                            offset *= -1;
                        }
                        // Check the difference in offset
                        var originalOffset = res.getTimezoneOffset();
                        var diff = offset - originalOffset;
                        if (diff != 0) {
                            res.setMinutes(res.getMinutes() + diff);
                        }
                    }
                    // ISO
                    if (parsedIndexes.iso > -1) {
                        res = new Date(_utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 0]), _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 1]) - 1, _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 2]), _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 3]), _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 4]), _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 5]), _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](matches[parsedIndexes.iso + 6]));
                    }
                }
                else {
                    // Didn't match anything
                    // Let's try dropping it into Date constructor and hope for the best
                    res = new Date(source);
                }
                return res;
            };
            /**
             * Resolves month name (i.e. "December") into a month number (11).
             *
             * @param  {MonthNames}  value  Month name
             * @return {number}             Month number
             */
            DateFormatter.prototype.resolveMonth = function (value) {
                // Let's try English first
                var month = this._months.indexOf(value);
                if (month > -1) {
                    return month;
                }
                // Try the translation
                if (this.language && !this.language.isDefault()) {
                    month = this.language.translateAll(this._months).indexOf(value);
                    if (month > -1) {
                        return month;
                    }
                }
                return 0;
            };
            /**
             * Resolves short month name (i.e. "Dec") into a month number.
             *
             * @param  {ShortMonthNames}  value  Short month name
             * @return {number}                  Month number
             */
            DateFormatter.prototype.resolveShortMonth = function (value) {
                // Let's try English first
                var month = this._monthsShort.indexOf(value);
                if (month > -1) {
                    return month;
                }
                // Try the translation
                if (this.language && !this.language.isDefault()) {
                    month = this.language.translateAll(this._monthsShort).indexOf(value);
                    if (month > -1) {
                        return month;
                    }
                }
                return 0;
            };
            /**
             * Checks if passed in string represents AM/PM notation in many of its
             * versions.
             *
             * @param  {string}   value  Source string
             * @return {boolean}         Is it AM/PM?
             */
            DateFormatter.prototype.isAm = function (value) {
                var list = this.getStringList(["AM", "A.M.", "A"]);
                return list.indexOf(value.toUpperCase()) > -1;
            };
            /**
             * Invalidates related [[Sprite]] causing it to redraw.
             */
            DateFormatter.prototype.invalidateSprite = function () {
                if (this.sprite) {
                    this.sprite.invalidate();
                }
            };
            /**
             * Translates list of strings.
             *
             * @param  {Array<keyof ILocaleProperties>}  list  Source strings
             * @return {Array<string>}                         Translated strings
             */
            DateFormatter.prototype.getStringList = function (list) {
                var res = [];
                for (var i = 0; i < list.length; i++) {
                    res.push(_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["escapeForRgex"](list[i]));
                    // translate?
                    if (this.language && !this.language.isDefault()) {
                        res.push(_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["escapeForRgex"](this.language.translate(list[i])));
                    }
                }
                return res;
            };
            Object.defineProperty(DateFormatter.prototype, "dateFormat", {
                /**
                 * @return {string} Date format
                 */
                get: function () {
                    return this._dateFormat;
                },
                /**
                 * Date format to use.
                 *
                 * If format is not supplied in-line in the string, this setting will be
                 * used.
                 *
                 * @default "yyyy-MM-dd"
                 * @param {string} value Date format
                 */
                set: function (value) {
                    this._dateFormat = value;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateFormatter.prototype, "inputDateFormat", {
                /**
                 * @return {string} Date format
                 */
                get: function () {
                    return this._inputDateFormat;
                },
                /**
                 * Date format to use when parsing dates.
                 *
                 * @default "yyyy-MM-dd"
                 * @param {string} value Date format
                 */
                set: function (value) {
                    this._inputDateFormat = value;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateFormatter.prototype, "utc", {
                /**
                 * @return {boolean} Use UTC?
                 */
                get: function () {
                    return this._utc;
                },
                /**
                 * Should formatter use UTC functions?
                 *
                 * If UTC is used, all date/time values will be independent on client's
                 * time zone.
                 *
                 * @param {boolean} value Use UTC?
                 */
                set: function (value) {
                    this._utc = value;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateFormatter.prototype, "firstDayOfWeek", {
                /**
                 * @return {number} First day of week
                 */
                get: function () {
                    return this._firstDayOfWeek;
                },
                /**
                 * Dirst day of the week:
                 *
                 * * 0 - Sunday
                 * * 1 - Monday
                 * * 2 - Tuesday
                 *
                 * Etc.
                 *
                 * @param {number} value First day of week
                 */
                set: function (value) {
                    this._firstDayOfWeek = value;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateFormatter.prototype, "outputFormat", {
                /**
                 * @ignore Exclude from docs
                 * @return {string} Format
                 */
                get: function () {
                    return this._outputFormat;
                },
                /**
                 * Output format for the formatted date.
                 *
                 * @ignore Exclude from docs
                 * @param {string}  value  Format
                 */
                set: function (value) {
                    this._outputFormat = value.toLowerCase();
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            return DateFormatter;
        }(_Base__WEBPACK_IMPORTED_MODULE_2__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["DateFormatter"] = DateFormatter;
        //# sourceMappingURL=DateFormatter.js.map
        /***/ 
    }),
    /* 810 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DurationFormatter", function () { return DurationFormatter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(806);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(768);
        /* harmony import */ var _formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(808);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Strings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(796);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(761);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(756);
        /**
         * Duration formatting functionality.
         */
        /**
         * DurationFormatter class. Formats numbers as durations.
         *
         * `1000` as `16:40`
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/} Tutorial on duration formatting
         */
        var DurationFormatter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DurationFormatter, _super);
            /**
             * Constructor
             */
            function DurationFormatter() {
                var _this = _super.call(this) || this;
                /**
                 * A base value for negative numbers. Will treat all numbers below this value
                 * as negative numbers.
                 *
                 * @type {number}
                 */
                _this._negativeBase = 0;
                /**
                 * A base unit to consider values are in.
                 *
                 * @default "s"
                 * @type {TimeUnit}
                 */
                _this._baseUnit = "second";
                /**
                 * Output format to produce. If the format calls for applying color to the
                 * formatted value, this setting will determine what markup to use: SVG or
                 * HTML.
                 *
                 * Available options: svg, html.
                 *
                 * @default "svg"
                 * @type {string}
                 */
                _this._outputFormat = "svg";
                /**
                 * How many milliseconds each unit represents.
                 *
                 * @type {Object}
                 */
                _this._unitValues = {
                    "millisecond": 1,
                    "second": 1000,
                    "minute": 60000,
                    "hour": 3600000,
                    "day": 86400000,
                    "week": 604800000,
                    "month": 2592000000,
                    "year": 31536000000,
                };
                /**
                 * Collection of aliases for units.
                 *
                 * @type {Object}
                 */
                _this._unitAliases = {
                    "Y": "y",
                    "D": "d",
                    "H": "h",
                    "K": "h",
                    "k": "h",
                    "n": "S"
                };
                _this.className = "DurationFormatter";
                _this.applyTheme();
                return _this;
            }
            /**
             * Formats the number according as duration.
             *
             * For example `1000` (base unit seconds) would be converted to `16:40` as in
             * 16 minutes and 40 seconds.
             *
             * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/} Tutorial on duration formatting
             * @param  {number | string}  value   Value to format
             * @param  {string}           format  Format to apply
             * @param  {TimeUnit}         base    Override base unit
             * @return {string}                   Formatted number
             */
            DurationFormatter.prototype.format = function (value, format, base) {
                // no language?
                if (!this.language) {
                    if (this.sprite) {
                        this.language = this.sprite.language;
                    }
                    else {
                        this.language = new _utils_Language__WEBPACK_IMPORTED_MODULE_1__["Language"];
                    }
                }
                // no base unit?
                var baseUnit = base || this._baseUnit;
                // no format passed in or empty
                if (typeof format === "undefined" || format === "") {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.durationFormat)) {
                        format = this.durationFormat;
                    }
                    else {
                        format = this.getFormat(_utils_Type__WEBPACK_IMPORTED_MODULE_8__["toNumber"](value), null, baseUnit);
                    }
                }
                // Clean format
                format = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["cleanFormat"](format);
                // get format info (it will also deal with parser caching)
                var info = this.parseFormat(format, baseUnit);
                // cast to number just in case
                // TODO: maybe use better casting
                var source = Number(value);
                // format and replace the number
                var details;
                if (source > this._negativeBase) {
                    details = info.positive;
                }
                else if (source < this._negativeBase) {
                    details = info.negative;
                }
                else {
                    details = info.zero;
                }
                // Format
                var formatted = this.applyFormat(source, details);
                // Apply color?
                if (details.color !== "") {
                    if (this._outputFormat === "svg") {
                        formatted = "<tspan fill='" + details.color + "'>" + formatted + "</tspan>";
                    }
                    else if (this._outputFormat === "html") {
                        formatted = "<span style='color: " + details.color + ";'>" + formatted + "</span>";
                    }
                }
                return formatted;
            };
            /**
             * Parses supplied format into structured object which can be used to format
             * the number.
             *
             * @param  {string}    format  Format string, i.e. "#,###.00"
             * @param  {TimeUnit}  base    Override base unit
             * @return {any}               Parsed information
             */
            DurationFormatter.prototype.parseFormat = function (format, base) {
                var _this = this;
                // Check cache
                var cached = this.getCache(format);
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](cached)) {
                    return cached;
                }
                // no base unit?
                var baseUnit = base || this._baseUnit;
                // Initialize duration parsing info
                var info = {
                    "positive": {
                        "color": "",
                        "template": "",
                        "parts": [],
                        "source": "",
                        "baseUnit": baseUnit,
                        "parsed": false,
                        "absolute": false
                    },
                    "negative": {
                        "color": "",
                        "template": "",
                        "parts": [],
                        "source": "",
                        "baseUnit": baseUnit,
                        "parsed": false,
                        "absolute": false
                    },
                    "zero": {
                        "color": "",
                        "template": "",
                        "parts": [],
                        "source": "",
                        "baseUnit": baseUnit,
                        "parsed": false,
                        "absolute": false
                    }
                };
                // Escape double vertical bars (that mean display one vertical bar)
                format = format.replace("||", _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"]);
                // Split it up and deal with different formats
                var parts = format.split("|");
                info.positive.source = parts[0];
                if (typeof parts[2] === "undefined") {
                    info.zero = info.positive;
                }
                else {
                    info.zero.source = parts[2];
                }
                if (typeof parts[1] === "undefined") {
                    info.negative = info.positive;
                }
                else {
                    info.negative.source = parts[1];
                }
                // Parse each
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["each"](info, function (part, item) {
                    // Already parsed
                    if (item.parsed) {
                        return;
                    }
                    // Check cached
                    if (typeof _this.getCache(item.source) !== "undefined") {
                        info[part] = _this.getCache(item.source);
                        return;
                    }
                    // Begin parsing
                    var partFormat = item.source;
                    // Check for [] directives
                    var dirs = [];
                    dirs = item.source.match(/^\[([^\]]*)\]/);
                    if (dirs && dirs.length && dirs[0] !== "") {
                        partFormat = item.source.substr(dirs[0].length);
                        item.color = dirs[1];
                    }
                    // Let TextFormatter split into chunks
                    var chunks = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().chunk(partFormat, true);
                    for (var i = 0; i < chunks.length; i++) {
                        var chunk = chunks[i];
                        // replace back double vertical bar
                        chunk.text = chunk.text.replace(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER2"], "|");
                        if (chunk.type === "value") {
                            // Just "Duration"?
                            // if (chunk.text.toLowerCase() === "duration") {
                            // 	chunk.text = durationFormat;
                            // }
                            // Check for "a" (absolute) modifier
                            if (chunk.text.match(/[yYMdDwhHKkmsSn]+a/)) {
                                item.absolute = true;
                                chunk.text = chunk.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1");
                            }
                            // Find all possible parts
                            var matches = chunk.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);
                            if (matches) {
                                // Populate template
                                for (var x = 0; x < matches.length; x++) {
                                    // Is it an alias?
                                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](matches[x])) {
                                        matches[x] = _this._unitAliases[matches[x]];
                                    }
                                    item.parts.push(matches[x]);
                                    chunk.text = chunk.text.replace(matches[x], _utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"]);
                                }
                            }
                        }
                        // Apply to template
                        item.template += chunk.text;
                    }
                    // Apply style formatting
                    //item.template = getTextFormatter().format(item.template, this.outputFormat);
                    // Save cache
                    _this.setCache(item.source, item);
                    // Mark this as parsed
                    item.parsed = true;
                });
                // Save cache (the whole thing)
                this.setCache(format, info);
                return info;
            };
            /**
             * Applies parsed format to a numeric value.
             *
             * @param  {number}  value    Value
             * @param  {any}     details  Parsed format as returned by {parseFormat}
             * @return {string}           Formatted duration
             */
            DurationFormatter.prototype.applyFormat = function (value, details) {
                // Use absolute values
                var negative = !details.absolute && (value < this._negativeBase);
                value = Math.abs(value);
                // Recalculate to milliseconds
                var tstamp = this.toTimeStamp(value, details.baseUnit);
                // Init return value
                var res = details.template;
                // Iterate through duration parts
                for (var i = 0, len = details.parts.length; i < len; i++) {
                    // Gather the part
                    var part = details.parts[i];
                    var unit = this.toTimeUnit(part.substr(0, 1));
                    var digits = part.length;
                    // Calculate current unit value
                    var ints = Math.floor(tstamp / this._unitValues[unit]);
                    res = res.replace(_utils_Strings__WEBPACK_IMPORTED_MODULE_5__["PLACEHOLDER"], _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["padString"](ints, digits, "0"));
                    // Reduce timestamp
                    tstamp -= ints * this._unitValues[unit];
                }
                // Reapply negative sign
                if (negative) {
                    res = "-" + res;
                }
                return res;
            };
            /**
             * Converts numeric value to timestamp in milliseconds.
             *
             * @param  {number}    value     A source value
             * @param  {TimeUnit}  baseUnit  Base unit the source value is in: "q", "s", "i", "h", "d", "w", "m", "y"
             * @return {number}              Value representation as a timestamp in milliseconds
             */
            DurationFormatter.prototype.toTimeStamp = function (value, baseUnit) {
                return value * this._unitValues[baseUnit];
            };
            DurationFormatter.prototype.toTimeUnit = function (code) {
                switch (code) {
                    case "S":
                        return "millisecond";
                    case "s":
                        return "second";
                    case "m":
                        return "minute";
                    case "h":
                        return "hour";
                    case "d":
                        return "day";
                    case "w":
                        return "week";
                    case "M":
                        return "month";
                    case "y":
                        return "year";
                }
                ;
            };
            /**
             * Invalidates the parent [[Sprite]] object.
             */
            DurationFormatter.prototype.invalidateSprite = function () {
                if (this.sprite) {
                    this.sprite.invalidate();
                }
            };
            Object.defineProperty(DurationFormatter.prototype, "baseUnit", {
                /**
                 * @return {string} Base unit
                 */
                get: function () {
                    return this._baseUnit;
                },
                /**
                 * Base unit the values are in.
                 *
                 * A base unit will be used to recalculate the numeric value to millisecond
                 * timestamps.
                 *
                 * Available options:
                 *
                 * * "millisecond"
                 * * "second"
                 * * "minute"
                 * * "hour"
                 * * "day"
                 * * "week"
                 * * "month"
                 * * "year"
                 *
                 * @default "s"
                 * @param {TimeUnit}  baseUnit  A base unit
                 */
                set: function (baseUnit) {
                    this._baseUnit = baseUnit;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DurationFormatter.prototype, "outputFormat", {
                /**
                 * Getter for output format.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Output format
                 */
                get: function () {
                    return this._outputFormat;
                },
                /**
                 * Setter for output format: "svg" or "html.
                 *
                 * @ignore Exclude from docs
                 * @param {string}  value  Output format
                 */
                set: function (outputFormat) {
                    this._outputFormat = outputFormat.toLowerCase();
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns appropriate default format for the value.
             *
             * If `maxValue` is sepcified, it will use that value to determine the time
             * unit for the format.
             *
             * For example if your `baseUnit` is `"second"` and you pass in `10`, you
             * will get `"10"`.
             *
             * However, you might want it to be formatted in the context of bigger scale,
             * say 10 minutes (600 seconds). If you pass in `600` as `maxValue`, all
             * values, including small ones will use format with minutes, e.g.:
             * `00:10`, `00:50`, `12: 30`, etc.
             *
             * @param  {number}    value     Value to format
             * @param  {number}    maxValue  Maximum value to be used to determine format
             * @param  {TimeUnit}  baseUnit  Base unit of the value
             * @return {string}              Format
             */
            DurationFormatter.prototype.getFormat = function (value, maxValue, baseUnit) {
                // Is format override set?
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.durationFormat)) {
                    return this.durationFormat;
                }
                // Get base unit
                if (!baseUnit) {
                    baseUnit = this.baseUnit;
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](maxValue) && value != maxValue) {
                    value = Math.abs(value);
                    maxValue = Math.abs(maxValue);
                    var maxUnit = this.getValueUnit(_utils_Math__WEBPACK_IMPORTED_MODULE_9__["max"](value, maxValue), baseUnit);
                    //let diffUnit = this.getValueUnit(Math.abs(maxValue - value), baseUnit);
                    //console.log(maxUnit, diffUnit);
                    return this.durationFormats[baseUnit][maxUnit];
                }
                else {
                    var unit = this.getValueUnit(value, baseUnit);
                    return this.durationFormats[baseUnit][unit];
                }
            };
            /**
             * Returns value's closest denominator time unit, e.g 100 seconds is
             * `"minute"`, while 59 seconds would still be `second`.
             *
             * @param  {number}    value     Source duration value
             * @param  {TimeUnit}  baseUnit  Base unit
             * @return {TimeUnit}            Denominator
             */
            DurationFormatter.prototype.getValueUnit = function (value, baseUnit) {
                // Get base unit
                if (!baseUnit) {
                    baseUnit = this.baseUnit;
                }
                // Convert to milliseconds
                var currentUnit;
                var ms = this.getMilliseconds(value, baseUnit);
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["eachContinue"](this._unitValues, function (key, val) {
                    if (key == baseUnit || currentUnit) {
                        var num = ms / val;
                        if (num <= 1) {
                            if (!currentUnit) {
                                currentUnit = key;
                            }
                            return false;
                        }
                        currentUnit = key;
                    }
                    return true;
                });
                return currentUnit;
            };
            /**
             * Converts value to milliseconds according to `baseUnit`.
             *
             * @param  {number}    value     Source duration value
             * @param  {TimeUnit}  baseUnit  Base unit
             * @return {number}              Value in milliseconds
             */
            DurationFormatter.prototype.getMilliseconds = function (value, baseUnit) {
                // Get base unit
                if (!baseUnit) {
                    baseUnit = this.baseUnit;
                }
                return value * this._unitValues[baseUnit];
            };
            Object.defineProperty(DurationFormatter.prototype, "durationFormat", {
                /**
                 * @return {Optional<string>} Format
                 */
                get: function () {
                    return this._durationFormat;
                },
                /**
                 * If set, this format will be used instead of the one determined dynamically
                 * based on the basedUnit and range of values.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/} Available fomatting codes
                 * @param {string}  value  Format
                 */
                set: function (value) {
                    if (this._durationFormat != value) {
                        this._durationFormat = value;
                        this.invalidateSprite();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DurationFormatter.prototype, "durationFormats", {
                /**
                 * @return {Partial} Formats
                 */
                get: function () {
                    if (!this._durationFormats) {
                        this._durationFormats = {
                            "millisecond": {
                                "millisecond": this.language.translate("_duration_millisecond"),
                                "second": this.language.translate("_duration_millisecond_second"),
                                "minute": this.language.translate("_duration_millisecond_minute"),
                                "hour": this.language.translate("_duration_millisecond_hour"),
                                "day": this.language.translate("_duration_millisecond_day"),
                                "week": this.language.translate("_duration_millisecond_week"),
                                "month": this.language.translate("_duration_millisecond_month"),
                                "year": this.language.translate("_duration_millisecond_year")
                            },
                            "second": {
                                "second": this.language.translate("_duration_second"),
                                "minute": this.language.translate("_duration_second_minute"),
                                "hour": this.language.translate("_duration_second_hour"),
                                "day": this.language.translate("_duration_second_day"),
                                "week": this.language.translate("_duration_second_week"),
                                "month": this.language.translate("_duration_second_month"),
                                "year": this.language.translate("_duration_second_year")
                            },
                            "minute": {
                                "minute": this.language.translate("_duration_minute"),
                                "hour": this.language.translate("_duration_minute_hour"),
                                "day": this.language.translate("_duration_minute_day"),
                                "week": this.language.translate("_duration_minute_week"),
                                "month": this.language.translate("_duration_minute_month"),
                                "year": this.language.translate("_duration_minute_year")
                            },
                            "hour": {
                                "hour": this.language.translate("_duration_hour"),
                                "day": this.language.translate("_duration_hour_day"),
                                "week": this.language.translate("_duration_hour_week"),
                                "month": this.language.translate("_duration_hour_month"),
                                "year": this.language.translate("_duration_hour_year")
                            },
                            "day": {
                                "day": this.language.translate("_duration_day"),
                                "week": this.language.translate("_duration_day_week"),
                                "month": this.language.translate("_duration_day_month"),
                                "year": this.language.translate("_duration_day_year")
                            },
                            "week": {
                                "week": this.language.translate("_duration_week"),
                                "month": this.language.translate("_duration_week_month"),
                                "year": this.language.translate("_duration_week_year")
                            },
                            "month": {
                                "month": this.language.translate("_duration_month"),
                                "year": this.language.translate("_duration_month_year")
                            },
                            "year": {
                                "year": this.language.translate("_duration_year")
                            }
                        };
                    }
                    return this._durationFormats;
                },
                /**
                 * Duration formats for various combination of base units.
                 *
                 * @param {Partial<Record<TimeUnit, Partial<Record<TimeUnit, string>>>>}  value  Formats
                 */
                set: function (value) {
                    this._durationFormats = value;
                    this.invalidateSprite();
                },
                enumerable: true,
                configurable: true
            });
            return DurationFormatter;
        }(_Base__WEBPACK_IMPORTED_MODULE_2__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["DurationFormatter"] = DurationFormatter;
        //# sourceMappingURL=DurationFormatter.js.map
        /***/ 
    }),
    /* 811 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Export", function () { return Export; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ExportMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(812);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _elements_Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(794);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(760);
        /* harmony import */ var _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(809);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(806);
        /* harmony import */ var _utils_Validatable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(814);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(774);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(751);
        /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(804);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(779);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(761);
        /* harmony import */ var _utils_Net__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(815);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(757);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(795);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(755);
        /**
         * Export module.
         *
         * Parts of Export functionality rely on the following third party libraries:
         *
         * [canvg.js](https://github.com/canvg/canvg)
         * Copyright (c) Gabe Lerner
         * Licensed under [MIT](https://github.com/canvg/canvg/blob/master/LICENSE)
         *
         * [pdfmake](http://pdfmake.org/)
         * Copyright (c) 2014 bpampuch
         * Licensed under [MIT](https://github.com/bpampuch/pdfmake/blob/master/LICENSE)
         *
         * [SheetJS Community Edition](https://github.com/sheetjs/js-xlsx)
         * Licensed under [Apache License 2.0](https://github.com/SheetJS/js-xlsx/blob/master/LICENSE)
         *
         * [JSZip](http://stuartk.com/jszip)
         * Copyright (c) Stuart Knightley
         * Dual licenced under the [MIT license or GPLv3](https://raw.githubusercontent.com/Stuk/jszip/master/LICENSE.markdown).
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        // TODO better parsing
        var fontFamilySrcRegexp = /src: ([^;]+);/;
        // TODO better checks
        function supportsBlobUri() {
            return window.navigator.msSaveOrOpenBlob != null;
        }
        // TODO move into utils or something ?
        function blobToDataUri(blob) {
            return new Promise(function (resolve, reject) {
                // TODO handle abort ?
                var f = new FileReader();
                f.onload = function (e) { resolve(f.result); };
                f.onerror = function (e) { reject(e); };
                f.readAsDataURL(blob);
            });
        }
        // This loads a stylesheet by URL and then calls the function with it
        // TODO this should be moved into utils or something
        function loadStylesheet(url, f) {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                var response, s;
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, _utils_Net__WEBPACK_IMPORTED_MODULE_14__["load"](url)];
                        case 1:
                            response = _a.sent();
                            s = document.createElement("style");
                            s.textContent = response.response;
                            document.head.appendChild(s);
                            _a.label = 2;
                        case 2:
                            _a.trys.push([2, , 4, 5]);
                            return [4 /*yield*/, f(s.sheet)];
                        case 3: return [2 /*return*/, _a.sent()];
                        case 4:
                            document.head.removeChild(s);
                            return [7 /*endfinally*/];
                        case 5: return [2 /*return*/];
                    }
                });
            });
        }
        // This calls a function for each CSSRule inside of a CSSStyleSheet.
        // If the CSSStyleSheet has any @import, then it will recursively call the function for those CSSRules too.
        // TODO this should be moved into utils or something
        function eachStylesheet(topUrl, sheet, f) {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                var promises, _loop_1, i;
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            promises = [];
                            _loop_1 = function (i) {
                                var rule = sheet.cssRules[i];
                                if (rule.type === CSSRule.IMPORT_RULE) {
                                    var url_1 = rule.href;
                                    if (url_1) {
                                        url_1 = _utils_Utils__WEBPACK_IMPORTED_MODULE_16__["joinUrl"](topUrl, url_1);
                                        promises.push(loadStylesheet(url_1, function (sheet) { return eachStylesheet(url_1, sheet, f); }));
                                    }
                                }
                                else {
                                    f(topUrl, rule);
                                }
                            };
                            for (i = 0; i < sheet.cssRules.length; i++) {
                                _loop_1(i);
                            }
                            if (!promises.length)
                                return [3 /*break*/, 2];
                            return [4 /*yield*/, Promise.all(promises)];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2: return [2 /*return*/];
                    }
                });
            });
        }
        // This calls a function for each CSSRule for all of the stylesheets in the page.
        // If the CSSStyleSheet has any @import, then it will recursively call the function for those CSSRules too.
        // TODO this should be moved into utils or something
        function eachStylesheets(f) {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, Promise.all(_utils_Array__WEBPACK_IMPORTED_MODULE_17__["map"](document.styleSheets, function (sheet) {
                                var url = sheet.href;
                                if (url == null) {
                                    return eachStylesheet(location.href, sheet, f);
                                }
                                else {
                                    url = _utils_Utils__WEBPACK_IMPORTED_MODULE_16__["joinUrl"](location.href, url);
                                    return loadStylesheet(url, function (sheet) { return eachStylesheet(url, sheet, f); });
                                }
                            }))];
                        case 1:
                            _a.sent();
                            return [2 /*return*/];
                    }
                });
            });
        }
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * [[Export]] allows downloading of current snapshot of the chart as an
         * image, PDF, or its data in various formats.
         *
         * The export functionality is enabled by default in charts and is accessible
         * via API or optional export menu.
         *
         * To enable menu, simply access export's `menu` property. E.g.:
         *
         * ```TypeScript
         * chart.exporting.menu = new am4core.ExportMenu();
         * ```
         * ```JavaScript
         * chart.exporting.menu = new am4core.ExportMenu();
         * ```
         * ```JSON
         * {
         *   // ...
         *   "exporting": {
         *     "menu": {}
         *   }
         * }
         * ```
         *
         * To export via API, use `export()` method:
         *
         * ```TypeScript
         * chart.exporting.export(type, [options]);
         * ```
         * ```JavaScript
         * chart.exporting.export(type, [options]);
         * ```
         *
         * E.g.:
         *
         * ```TypeScript
         * chart.exporting.export("png");
         * ```
         * ```JavaScript
         * chart.exporting.export("png");
         * ```
         *
         * @todo Better loading indicator?
         * @todo Implement multiplier option
         * @todo Handling of hanged exports
         * @important
         */
        var Export = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Export, _super);
            /**
             * Constructor
             */
            function Export(container) {
                var _this = _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<Export, IExportAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * Holds options for each format.
                 *
                 * @ignore Exclude from docs
                 * @type {Dictionary<string, ExportOptions>}
                 */
                _this._formatOptions = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["Dictionary"]();
                /**
                 * Holds a list of objects that were temporarily removed from the DOM while
                 * exporting. Those most probably are tainted images, or foreign objects that
                 * would otherwise prevent SVG to be converted to canvas.
                 *
                 * @ignore Exclude from docs
                 * @type {List<IExportRemovedObject>}
                 */
                _this._removedObjects = new _utils_List__WEBPACK_IMPORTED_MODULE_4__["List"]();
                /**
                 * Holds references to the objects that were temporarily hidden when export
                 * started, so that we can reveal them back when export ends.
                 *
                 * @type {Sprite[]}
                 */
                _this._hiddenObjects = [];
                /**
                 * Exported files will be prefixed with whatever it is set here.
                 *
                 * @ignore Exclude from docs
                 * @type {string}
                 */
                _this._filePrefix = "amCharts";
                /**
                 * If you are using web fonts (such as Google Fonts), your chart might be
                 * using them as well.
                 *
                 * Normally, exporting to image will require to download these fonts so the
                 * are carried over to exported image.
                 *
                 * This setting can be used to disable or enable this functionality.
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this.useWebFonts = true;
                /**
                 * Many modern displays have use more actual pixels per displayed pixel. This
                 * results in sharper images on screen. Unfortunately, when exported to a
                 * bitmap image of the sam width/height size it will lose those extra pixels,
                 * resulting in somewhat blurry image.
                 *
                 * This is why we are going to export images larger than they are, so that we
                 * don't lose any details.
                 *
                 * If you'd rather export images without change in size, set this to `false`.
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this.useRetina = true;
                /**
                 * If export operation takes longer than milliseconds in this second, we will
                 * show a modal saying export operation took longer than expected.
                 *
                 * @type {number}
                 */
                _this.timeoutDelay = 2000;
                _this._container = container;
                _this.className = "Export";
                // Set default options
                _this._formatOptions.setKey("png", {});
                _this._formatOptions.setKey("jpg", {
                    quality: 0.8
                });
                _this._formatOptions.setKey("gif", {});
                _this._formatOptions.setKey("svg", {});
                _this._formatOptions.setKey("pdf", {
                    fontSize: 14,
                    imageFormat: "png",
                    addURL: true
                });
                _this._formatOptions.setKey("json", {
                    indent: 2,
                    useLocale: true
                });
                _this._formatOptions.setKey("csv", {
                    addColumnNames: true
                });
                _this._formatOptions.setKey("xlsx", {
                    addColumnNames: true,
                    useLocale: true
                });
                _this._formatOptions.setKey("print", {
                    delay: 500,
                    printMethod: "iframe"
                });
                // Add options adapter
                _this.adapter.add("options", function (arg) {
                    var formatOptions = _this._formatOptions.getKey(arg.type);
                    if (arg.options) {
                        arg.options = _utils_Object__WEBPACK_IMPORTED_MODULE_13__["merge"](arg.options, formatOptions);
                    }
                    else {
                        arg.options = formatOptions;
                    }
                    return arg;
                });
                _this.applyTheme();
                _this.dispatchImmediately("inited");
                return _this;
            }
            Object.defineProperty(Export.prototype, "menu", {
                /**
                 * @return {Optional<ExportMenu>} ExportMenu instance
                 */
                get: function () {
                    return this._menu;
                },
                /**
                 * An instance of [[ExportMenu]].
                 *
                 * To add an export menu to a chart, set this to a new instance of
                 * [[ExportMenu]].
                 *
                 * ```TypeScript
                 * chart.exporting.menu = new am4core.ExportMenu();
                 * ```
                 * ```JavaScript
                 * chart.exporting.menu = new am4core.ExportMenu();
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "exporting": {
                 *     "menu": {}
                 *   }
                 * }
                 * ```
                 *
                 * @param {Optional<ExportMenu>}  menu  ExportMenu instance
                 */
                set: function (menu) {
                    var _this = this;
                    if (this._menu) {
                        this.removeDispose(this._menu);
                    }
                    this._menu = menu;
                    // Set container and language
                    this._menu.container = this.container;
                    this._menu.language = this._language;
                    // Add adapter to check for browser support
                    this._menu.adapter.add("branch", function (arg) {
                        arg.branch.unsupported = !_this.typeSupported(arg.branch.type);
                        return arg;
                    });
                    // Add click events
                    this._menu.events.on("hit", function (ev) {
                        _this.export(ev.branch.type, ev.branch.options);
                        _this.menu.close();
                    });
                    this._menu.events.on("enter", function (ev) {
                        _this.export(ev.branch.type, ev.branch.options);
                        _this.menu.close();
                    });
                    this._menu.events.on("over", function (ev) {
                        _this._disablePointers();
                    });
                    this._menu.events.on("out", function (ev) {
                        _this._releasePointers();
                    });
                    // Dispatch event
                    this.dispatchImmediately("menucreated");
                    // Prefix with Sprite's class name
                    this._menu.adapter.add("classPrefix", function (obj) {
                        obj.classPrefix = _Options__WEBPACK_IMPORTED_MODULE_11__["options"].classNamePrefix + obj.classPrefix;
                        return obj;
                    });
                    // Add menu to disposers so that it's destroyed when Export is disposed
                    this._disposers.push(this._menu);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if this specific menu item type is supported by current system.
             *
             * @param  {string}   type  Menu item type
             * @return {boolean}        `false` if not supported
             */
            Export.prototype.typeSupported = function (type) {
                var supported = true;
                if (type === "pdf") {
                    supported = this.downloadSupport();
                }
                else if (type === "xlsx") {
                    supported = (this.downloadSupport() && this.data) ? true : false;
                }
                else if (type == "print" && !window.print) {
                    supported = false;
                }
                else if (["json", "csv"].indexOf(type) !== -1 && !this.data) {
                    supported = false;
                }
                return this.adapter.apply("supported", {
                    supported: supported,
                    type: type
                }).supported;
            };
            /**
             * Get function to handle export for particular format.
             *
             * @ignore Exclude from docs
             * @type {this}
             */
            Export.prototype._getFunction = function (type) {
                switch (type) {
                    case "png":
                    case "gif":
                    case "jpg":
                        return this.getImage;
                    case "svg":
                        return this.getSVG;
                    case "pdf":
                        return this.getPDF;
                    case "xlsx":
                        return this.getExcel;
                    case "csv":
                        return this.getCSV;
                    case "json":
                        return this.getJSON;
                    case "print":
                        return this.getPrint;
                    default:
                        return this.unsupported;
                }
            };
            /**
             * Initiates export procedure.
             *
             * @param  {string}   type     Export type
             * @param  {Object}   options  Options
             * @return {boolean}           `true` if export was successful
             * @async
             */
            Export.prototype.export = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var _this = this;
                    var event_1, func, data, event_2, event_3;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                // Dispatch event
                                if (this.events.isEnabled("exportstarted")) {
                                    event_1 = {
                                        "type": "exportstarted",
                                        "target": this,
                                        "format": type,
                                        "options": options
                                    };
                                    this.events.dispatchImmediately("exportstarted", event_1);
                                }
                                // Check if it's a custom item, and do nothing or execute custom callback
                                if (type == "custom") {
                                    this.handleCustom(options);
                                    return [2 /*return*/, true];
                                }
                                // Schedule a preloader
                                this.showPreloader();
                                // Schedule a timeout
                                if (this.timeoutDelay) {
                                    this.hideTimeout();
                                    this._timeoutTimeout = this.setTimeout(function () {
                                        // Dispatch event
                                        if (_this.events.isEnabled("exporttimedout")) {
                                            var event_4 = {
                                                "type": "exporttimedout",
                                                "target": _this,
                                                "format": type,
                                                "options": options
                                            };
                                            _this.events.dispatchImmediately("exporttimedout", event_4);
                                        }
                                        // Show modal
                                        _this.showTimeout();
                                    }, this.timeoutDelay);
                                }
                                // Hide items that should not be exported
                                this.hideNonExportableSprites();
                                func = this._getFunction(type);
                                // Give chance for plugins to override both function and options
                                options = this.adapter.apply("options", {
                                    options: options,
                                    type: type
                                }).options;
                                func = this.adapter.apply("exportFunction", {
                                    func: func,
                                    type: type,
                                    options: options
                                }).func;
                                return [4 /*yield*/, func.call(this, type, options)];
                            case 1:
                                data = _a.sent();
                                // Restore temporarily hidden elements
                                this.restoreNonExportableSprites();
                                if (data) {
                                    // Dispatch event
                                    if (this.events.isEnabled("exportfinished")) {
                                        event_2 = {
                                            "type": "exportfinished",
                                            "target": this,
                                            "format": type,
                                            "options": options
                                        };
                                        this.events.dispatchImmediately("exportfinished", event_2);
                                    }
                                    // Hide preloader and timeout modals
                                    this.hidePreloader();
                                    this.hideTimeout();
                                    // Download or print
                                    if (type === "print") {
                                        return [2 /*return*/, this.print(data, options, this.adapter.apply("title", {
                                                title: this.title,
                                                options: options
                                            }).title)];
                                    }
                                    else {
                                        return [2 /*return*/, this.download(data, this.filePrefix + "." + type)];
                                    }
                                }
                                else {
                                    // Throw exception?
                                    // @todo
                                    // Dispatch event
                                    if (this.events.isEnabled("error")) {
                                        event_3 = {
                                            "type": "error",
                                            "target": this,
                                            "format": type,
                                            "options": options
                                        };
                                        this.events.dispatchImmediately("error", event_3);
                                    }
                                    return [2 /*return*/, false];
                                }
                                return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * A function that should handle unsupported export types.
             *
             * @ignore Exclude from docs
             * @param  {string}              type     Export type
             * @param  {IExportImageOptions} options  Options
             * @return {Promise<string>}               Promise
             * @async
             */
            Export.prototype.unsupported = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        // TODO should this return `undefined`?
                        return [2 /*return*/, ""];
                    });
                });
            };
            /**
             * Handles click on a "custom" menu item.
             *
             * Basically, if it has "callback" enabled, it will be called. Nothing else.
             *
             * @ignore Exclude from docs
             * @param {IExportCustomOptions}  options  Options
             */
            Export.prototype.handleCustom = function (options) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](options.callback)) {
                    options.callback.call(this, options);
                }
            };
            /**
             * Requests a Print of the chart.
             *
             * @param  {string}               type     Export type
             * @param  {IExportImageOptions}  options  Options
             * @return {Promise<string>}               Promise
             * @async
             */
            Export.prototype.getPrint = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        return [2 /*return*/, this.getImage("png", options)];
                    });
                });
            };
            /**
             * A function that returns data: URI encoded @font-family, so that way it can be embedded into SVG.
             *
             * @ignore Exclude from docs
             * @return {Promise<string>} String which can be embedded directly into a <style> element.
             * @async
             */
            Export.prototype.getFontFamilies = function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var _this = this;
                    var DOMURL, blobs, promises, a;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                DOMURL = this.getDOMURL();
                                blobs = [];
                                promises = [];
                                return [4 /*yield*/, eachStylesheets(function (topUrl, rule) {
                                        if (rule.type === CSSRule.FONT_FACE_RULE) {
                                            var cssText_1 = rule.cssText;
                                            // TODO this is necessary because Edge doesn't let you access the src using getPropertyValue
                                            var src = fontFamilySrcRegexp.exec(cssText_1);
                                            if (src !== null) {
                                                // TODO make this faster (don't create Promises for non-url stuff)
                                                var urls = src[1].split(/ *, */).map(function (url) {
                                                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](_this, void 0, void 0, function () {
                                                        var a, after, fullUrl, response, url_2, e_1;
                                                        return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                                                            switch (_a.label) {
                                                                case 0:
                                                                    a = /^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(url);
                                                                    if (!(a === null))
                                                                        return [3 /*break*/, 1];
                                                                    return [2 /*return*/, url];
                                                                case 1:
                                                                    after = a[2];
                                                                    fullUrl = _utils_Utils__WEBPACK_IMPORTED_MODULE_16__["joinUrl"](topUrl, a[1]);
                                                                    _a.label = 2;
                                                                case 2:
                                                                    _a.trys.push([2, 7, , 8]);
                                                                    return [4 /*yield*/, _utils_Net__WEBPACK_IMPORTED_MODULE_14__["load"](fullUrl, undefined, { responseType: "blob" })];
                                                                case 3:
                                                                    response = _a.sent();
                                                                    if (!supportsBlobUri())
                                                                        return [3 /*break*/, 4];
                                                                    url_2 = DOMURL.createObjectURL(response.blob);
                                                                    blobs.push(url_2);
                                                                    return [3 /*break*/, 6];
                                                                case 4: return [4 /*yield*/, blobToDataUri(response.blob)];
                                                                case 5:
                                                                    url_2 = _a.sent();
                                                                    _a.label = 6;
                                                                case 6:
                                                                    // TODO should it should escape the URI ?
                                                                    return [2 /*return*/, "url(\"" + url_2 + "\")" + after];
                                                                case 7:
                                                                    e_1 = _a.sent();
                                                                    console.error("Failed to load font", fullUrl, e_1);
                                                                    return [2 /*return*/, null];
                                                                case 8: return [2 /*return*/];
                                                            }
                                                        });
                                                    });
                                                });
                                                promises.push(Promise.all(urls).then(function (a) {
                                                    a = a.filter(function (x) { return x != null; });
                                                    if (a.length === 0) {
                                                        return "";
                                                    }
                                                    else {
                                                        return cssText_1.replace(fontFamilySrcRegexp, "src: " + a.join(", ") + ";");
                                                    }
                                                }));
                                            }
                                        }
                                    })];
                            case 1:
                                _a.sent();
                                return [4 /*yield*/, Promise.all(promises)];
                            case 2:
                                a = _a.sent();
                                return [2 /*return*/, {
                                        blobs: blobs,
                                        cssText: a.filter(function (x) { return !!x; }).join("\n")
                                    }];
                        }
                    });
                });
            };
            /**
             * Produces image output from the element.
             *
             * Converts to a `Canvas` first, then produces an image to download.
             *
             * This is an asynchronous function. Rather than returning a result, it
             * returns a Promise.
             *
             * You can use `await` notion from other async functions, or `then()`
             * anywhere else.
             *
             * ```TypeScript
             * // Async
             * let img = await chart.exporting.getImage( "PNG" );
             *
             * // Sync
             * let img;
             * chart.exporting.getImage( "PNG" ).then( ( data ) => {
             *   img = exporing;
             * } );
             * ```
             * ```JavaScript
             * var img;
             * chart.exporting.getImage( "PNG" ).then( ( data ) => {
             *   var = data;
             * } );
             * ```
             *
             * @param  {string}               type     Image format
             * @param  {IExportImageOptions}  options  Options
             * @return {Promise<string>}               Promise
             */
            Export.prototype.getImage = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var background, DOMURL_1, url, blobs_1, width, height, font, fontSize, canvas, pixelRatio, ctx, promises, a, data, svg, img, uri, e_2;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.simplifiedImageExport()];
                            case 1:
                                if (!_a.sent())
                                    return [3 /*break*/, 9];
                                background = this.backgroundColor || this.findBackgroundColor(this.sprite.dom);
                                DOMURL_1 = this.getDOMURL();
                                url = null;
                                blobs_1 = null;
                                _a.label = 2;
                            case 2:
                                _a.trys.push([2, 5, 7, 8]);
                                width = this.sprite.pixelWidth, height = this.sprite.pixelHeight, font = this.findFont(this.sprite.dom), fontSize = this.findFontSize(this.sprite.dom);
                                canvas = this.getDisposableCanvas();
                                pixelRatio = this.getPixelRatio();
                                canvas.style.width = width + 'px';
                                canvas.style.height = height + 'px';
                                canvas.width = width * pixelRatio;
                                canvas.height = height * pixelRatio;
                                ctx = canvas.getContext("2d");
                                if (pixelRatio != 1) {
                                    ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);
                                }
                                // Add background if necessary
                                if (background) {
                                    ctx.fillStyle = background.toString();
                                    ctx.fillRect(0, 0, width, height);
                                }
                                promises = [];
                                if (this.useWebFonts) {
                                    // TODO what if one of the other things errors before it's been able to set `blobs` ?
                                    promises.push(this.getFontFamilies().then(function (fonts) {
                                        blobs_1 = fonts.blobs;
                                        return fonts.cssText;
                                    }));
                                }
                                promises.push(this.imagesToDataURI(this.sprite.dom, options));
                                promises.push(this.prepForeignObjects(this.sprite.dom, options));
                                return [4 /*yield*/, Promise.all(promises)];
                            case 3:
                                a = _a.sent();
                                data = this.normalizeSVG("<style>" + a[0] + "</style>" + this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), options, width, height, font, fontSize);
                                svg = new Blob([data], { type: "image/svg+xml" });
                                url = DOMURL_1.createObjectURL(svg);
                                return [4 /*yield*/, this.loadNewImage(url, width, height, "anonymous")];
                            case 4:
                                img = _a.sent();
                                // Draw image on canvas
                                ctx.drawImage(img, 0, 0);
                                // Options are set?
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](options)) {
                                    options = {};
                                }
                                uri = canvas.toDataURL(this.getContentType(type), options.quality);
                                // Get rid of the canvas
                                this.disposeCanvas(canvas);
                                return [2 /*return*/, uri];
                            case 5:
                                e_2 = _a.sent();
                                return [4 /*yield*/, this.getImageAdvanced(type, options)];
                            case 6:
                                // An error occurred, let's try advanced method
                                return [2 /*return*/, _a.sent()];
                            case 7:
                                if (url !== null) {
                                    DOMURL_1.revokeObjectURL(url);
                                }
                                if (blobs_1 !== null) {
                                    _utils_Array__WEBPACK_IMPORTED_MODULE_17__["each"](blobs_1, function (url) {
                                        DOMURL_1.revokeObjectURL(url);
                                    });
                                }
                                // Restore replaced tainted images in DOM
                                this.restoreRemovedObjects();
                                return [7 /*endfinally*/];
                            case 8: return [3 /*break*/, 11];
                            case 9: return [4 /*yield*/, this.getImageAdvanced(type, options)];
                            case 10:
                                /**
                                 * Going the hard way. Converting to canvas from each node
                                 */
                                return [2 /*return*/, _a.sent()];
                            case 11: return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * Tries to dynamically load [canvg.js](https://github.com/canvg/canvg) and
             * export an image using its functions.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}               type     Image format
             * @param {IExportImageOptions}  options  Options
             * @return {Promise<string>}              Data uri
             */
            Export.prototype.getImageAdvanced = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var background, canvg, width, height, font, fontSize, data, canvas, pixelRatio, config, res, uri;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                //console.warn("Falling back to canvg for exporting");
                                // Convert external images to data uris
                                return [4 /*yield*/, this.imagesToDataURI(this.sprite.dom, options)];
                            case 1:
                                //console.warn("Falling back to canvg for exporting");
                                // Convert external images to data uris
                                _a.sent();
                                background = this.backgroundColor || this.findBackgroundColor(this.sprite.dom);
                                return [4 /*yield*/, this.canvg];
                            case 2:
                                canvg = _a.sent();
                                width = this.sprite.pixelWidth, height = this.sprite.pixelHeight, font = this.findFont(this.sprite.dom), fontSize = this.findFontSize(this.sprite.dom);
                                data = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), options, width, height, font, fontSize, background);
                                canvas = this.getDisposableCanvas();
                                pixelRatio = this.getPixelRatio();
                                canvas.style.width = (width * pixelRatio) + 'px';
                                canvas.style.height = (height * pixelRatio) + 'px';
                                canvas.width = width * pixelRatio;
                                canvas.height = height * pixelRatio;
                                config = {
                                    //ignoreDimensions: true,
                                    useCORS: true
                                };
                                if (pixelRatio != 1) {
                                    config.ignoreDimensions = true;
                                    config.scaleWidth = width * pixelRatio;
                                    config.scaleHeight = height * pixelRatio;
                                }
                                res = canvg(canvas, data, config);
                                // Options are set?
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](options)) {
                                    options = {};
                                }
                                uri = canvas.toDataURL(this.getContentType(type), options.quality);
                                // Get rid of the canvas
                                this.disposeCanvas(canvas);
                                return [2 /*return*/, uri];
                        }
                    });
                });
            };
            /**
             * Creates a `<canvas>` element and returns it.
             *
             * @return {HTMLCanvasElement} Canvas element
             */
            Export.prototype.getDisposableCanvas = function () {
                var canvas = document.createElement("canvas");
                canvas.style.position = "fixed";
                canvas.style.top = "-10000px";
                document.body.appendChild(canvas);
                return canvas;
            };
            /**
             * Removes canvas.
             *
             * @param {HTMLCanvasElement}  canvas  Canvas element
             */
            Export.prototype.disposeCanvas = function (canvas) {
                document.body.removeChild(canvas);
            };
            /**
             * Returns pixel ratio for retina displays.
             *
             * @return {number} Pixel ratio
             */
            Export.prototype.getPixelRatio = function () {
                return this.useRetina ? _utils_Utils__WEBPACK_IMPORTED_MODULE_16__["getPixelRatio"]() : 1;
            };
            /**
             * Converts all `<image>` tags in SVG to use data uris instead of external
             * URLs
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @param  {SVGSVGElement}        el       SVG node
             * @param  {IExportImageOptions}  options  Options
             * @return {Promise<void>}                 Promise
             */
            Export.prototype.imagesToDataURI = function (el, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var images, promises, count, i, image, href;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                images = el.querySelectorAll("image");
                                if (!images.length)
                                    return [3 /*break*/, 2];
                                promises = [];
                                // There are images, process each of them
                                for (count = images.length, i = 0; i < count; i++) {
                                    image = images[i];
                                    href = image.getAttributeNS(Export.XLINK, "href");
                                    //let href = image.getAttribute("href");
                                    if (href.indexOf("data:image") !== -1) {
                                        // Ignore image if it's already in Data URI format
                                    }
                                    else {
                                        // SVG or bitmap image?
                                        if (href.indexOf(".svg") !== -1) {
                                            promises.push(this.svgToDataURI(image, options));
                                        }
                                        else {
                                            promises.push(this.imageToDataURI(image, options));
                                        }
                                    }
                                }
                                return [4 /*yield*/, Promise.all(promises)];
                            case 1:
                                _a.sent();
                                return [2 /*return*/];
                            case 2: return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * `foreignObject` elements cannot be exported. This function hides them
             * temprarily. In the future it might try to convert them to SVG to make them
             * exportable.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @param  {SVGSVGElement}        el       SVG node
             * @param  {IExportImageOptions}  options  Options
             * @return {Promise<void>}                 Promise
             */
            Export.prototype.prepForeignObjects = function (el, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var objects, count, i;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        objects = el.querySelectorAll("foreignObject");
                        if (objects.length) {
                            // There are foreign objects, process each of them
                            for (count = objects.length, i = 0; i < count; i++) {
                                this.temporarilyRemoveObject(objects[i]);
                            }
                        }
                        return [2 /*return*/];
                    });
                });
            };
            /**
             * Converts an SVG `<image>` to use its data uri for `href` instead of
             * external file.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @param {SVGImageElement}     el       SVG element
             * @param {IExportImageOptions} options  Options
             */
            Export.prototype.imageToDataURI = function (el, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var img, canvas, uri, e_3;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                _a.trys.push([0, 2, , 3]);
                                return [4 /*yield*/, this.loadNewImage(el.getAttributeNS(Export.XLINK, "href"), null, null, "anonymous")];
                            case 1:
                                // Create image
                                img = _a.sent();
                                canvas = document.createElement("canvas");
                                canvas.width = img.width;
                                canvas.height = img.height;
                                // Draw new image on it via `toDataURL`
                                canvas.getContext("2d").drawImage(img, 0, 0);
                                // Replace image `href` with data uri
                                // If we got to this point it means image has loaded, however we might
                                // still get an error with `toDataURL()`
                                try {
                                    uri = canvas.toDataURL();
                                    el.setAttribute("href", uri);
                                    return [2 /*return*/, uri];
                                }
                                catch (e) {
                                    // Give up and temporarily remove the element href temporarily
                                    if (options.keepTainted !== false) {
                                        /*this._removedObjects.push({
                                            "element": el,
                                            "originalHref": el.getAttributeNS(Export.XLINK, "href")
                                        });
                                        el.setAttributeNS(Export.XLINK, "href", "");*/
                                        this.temporarilyRemoveObject(el);
                                    }
                                    return [2 /*return*/, undefined];
                                }
                                return [3 /*break*/, 3];
                            case 2:
                                e_3 = _a.sent();
                                // Give up and temporarily remove the element's href
                                if (!options || options.keepTainted !== false) {
                                    /*this._removedObjects.push({
                                        "element": el,
                                        "originalHref": el.getAttributeNS(Export.XLINK, "href")
                                    });
                                    el.setAttributeNS(Export.XLINK, "href", "");*/
                                    this.temporarilyRemoveObject(el);
                                }
                                return [2 /*return*/, undefined];
                            case 3: return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * Converts `<image>` with external SVG source to data uri. Loads external SVG
             * file, then converts it to data uri and replaces the `xlink:href` parameter.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @param {SVGImageElement}     el        An SVG element
             * @param {IExportImageOptions} options   Options
             */
            Export.prototype.svgToDataURI = function (el, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var href, data, charset, uri, e_4;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                href = el.getAttributeNS(Export.XLINK, "href");
                                _a.label = 1;
                            case 1:
                                _a.trys.push([1, 3, , 4]);
                                return [4 /*yield*/, _utils_Net__WEBPACK_IMPORTED_MODULE_14__["load"](href)];
                            case 2:
                                data = _a.sent();
                                charset = this.adapter.apply("charset", {
                                    charset: "base64",
                                    type: "svg",
                                    options: options
                                }).charset;
                                uri = this.adapter.apply("svgToDataURI", {
                                    data: "data:" + this.getContentType("svg") + ";" + charset + "," + btoa(data.response),
                                    options: options
                                }).data;
                                el.setAttributeNS(Export.XLINK, "href", uri);
                                return [2 /*return*/, uri];
                            case 3:
                                e_4 = _a.sent();
                                // Disable temporarily
                                if (!options || options.keepTainted !== false) {
                                    /*this._removedObjects.push({
                                        "element": el,
                                        "originalHref": href
                                    });
                                    el.setAttributeNS(Export.XLINK, "href", "");*/
                                    this.temporarilyRemoveObject(el);
                                }
                                return [2 /*return*/, undefined];
                            case 4: return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * Temporarily removes element from DOM, and replaces it with a dummy
             * placeholder, as well as stores it for later restoration.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @param {Node} el Node
             */
            Export.prototype.temporarilyRemoveObject = function (el, placeholder) {
                // Get parent
                var parent = el.parentElement || el.parentNode;
                // Create a placeholder group element if it has not been passed in
                if (!placeholder) {
                    placeholder = this.sprite.paper.add("g").node;
                }
                parent.insertBefore(placeholder, el);
                // Check if we have a textContents we can replace with
                // @todo Perhaps we should explore alternatives to creating text nodes
                // i.e. creating a text version of the HTML-based Text, just for export
                // purposes. Converting HTML into SVG is very complicated
                if (el.textContent) {
                    /*let text = this.sprite.paper.add("text").node;
                    text.textContent = el.textContent;
                    placeholder.appendChild(text);
        
                    // Copy properties from the removing element to the placeholder
                    $dom.copyAttributes(el, placeholder);*/
                }
                // Remove the old element
                parent.removeChild(el);
                // Log removed item
                this._removedObjects.push({
                    "element": el,
                    "placeholder": placeholder
                });
            };
            /**
             * Restores all (possibly tainted or unsupported) objects that were
             * temporarily removed when exporting.
             *
             * @ignore Exclude from docs
             */
            Export.prototype.restoreRemovedObjects = function () {
                var obj;
                while (obj = this._removedObjects.pop()) {
                    //obj.element.setAttribute("href", obj.originalHref);
                    var parent_1 = obj.placeholder.parentElement || obj.placeholder.parentNode;
                    parent_1.insertBefore(obj.element, obj.placeholder);
                    //parent.removeChild(obj.placeholder);
                }
            };
            /**
             * Checkes if simplified export can be used using `createObjectURL` and SVG
             * document does not contain any external images.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @return {boolean} `true` if simplified export can be used
             */
            Export.prototype.simplifiedImageExport = function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var cache, canvas, ctx, DOMURL, svg, url, img, e_5;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                cache = _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].getCache("simplifiedImageExport");
                                if (cache === false || cache === true) {
                                    return [2 /*return*/, cache];
                                }
                                _a.label = 1;
                            case 1:
                                _a.trys.push([1, 3, , 4]);
                                canvas = document.createElement("canvas");
                                canvas.width = 1;
                                canvas.height = 1;
                                ctx = canvas.getContext("2d");
                                DOMURL = this.getDOMURL();
                                svg = new Blob([this.normalizeSVG("<g></g>", {}, 1, 1)], { type: "image/svg+xml" });
                                url = DOMURL.createObjectURL(svg);
                                return [4 /*yield*/, this.loadNewImage(url, 1, 1)];
                            case 2:
                                img = _a.sent();
                                ctx.drawImage(img, 0, 0);
                                DOMURL.revokeObjectURL(url);
                                try {
                                    //let uri = canvas.toDataURL("image/png");
                                    _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].setCache("simplifiedImageExport", true);
                                    return [2 /*return*/, true];
                                }
                                catch (e) {
                                    _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].setCache("simplifiedImageExport", false);
                                    return [2 /*return*/, false];
                                }
                                return [3 /*break*/, 4];
                            case 3:
                                e_5 = _a.sent();
                                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].setCache("simplifiedImageExport", false);
                                return [2 /*return*/, false];
                            case 4: return [2 /*return*/];
                        }
                    });
                });
            };
            /**
             * Returns a new `<image>` element.
             *
             * @ignore Exclude from docs
             * @param  {string}                     url          URL of the image
             * @param  {number}                     width        Width (px)
             * @param  {number}                     height       Height (px)
             * @param  {string}                     crossOrigin  Cross-Origin setting
             * @return {Promise<HTMLImageElement>}               Promise
             */
            Export.prototype.loadNewImage = function (url, width, height, crossOrigin) {
                return new Promise(function (success, error) {
                    // New image
                    var image;
                    if (width && height) {
                        image = new Image(width, height);
                    }
                    else {
                        image = new Image();
                    }
                    // Set crossorigin
                    if (crossOrigin) {
                        image.setAttribute("crossOrigin", crossOrigin);
                    }
                    // Report success on load
                    image.onload = function () {
                        success(image);
                    };
                    function onerror() {
                        // Error occurred. Just in case it's the crossOrigin issue, let's try
                        // stripping off this attribute and trying again
                        if (crossOrigin) {
                            // Retain old uri
                            var currentHref = image.src;
                            // Set up another `onerror` to handle situations where image is not
                            // loadable at all (i.e. protected by CORS)
                            image.onerror = function () {
                                // Nope, no luck
                                error(new Error("Loading image \"" + url + "\" failed"));
                            };
                            // remove the `crossOrigin` attribute
                            image.removeAttribute("crossorigin");
                            // retry
                            image.src = "";
                            image.src = currentHref;
                        }
                        else {
                            error(new Error("Loading image \"" + url + "\" failed"));
                        }
                    }
                    // Set image error handlers
                    image.onabort = onerror;
                    image.onerror = onerror;
                    // Trigger load
                    image.src = url;
                });
            };
            /**
             * Returns current DOM URL.
             *
             * @ignore Exclude from docs
             * @return {any} URL
             */
            Export.prototype.getDOMURL = function () {
                return self.URL || self.webkitURL || self;
            };
            /**
             * Returns an SVG representation of the chart.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}             type     Type of the export
             * @param {IExportSVGOptions}  options  Options
             * @return {Promise<string>}            Promise
             */
            Export.prototype.getSVG = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var width, height, font, fontSize, svg, charset, uri;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        width = this.sprite.pixelWidth, height = this.sprite.pixelHeight, font = this.findFont(this.sprite.dom), fontSize = this.findFontSize(this.sprite.dom);
                        svg = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), options, width, height, font, fontSize);
                        charset = this.adapter.apply("charset", {
                            charset: "charset=utf-8",
                            type: "svg",
                            options: options
                        }).charset;
                        uri = this.adapter.apply("getSVG", {
                            data: "data:" + this.getContentType(type) + ";" + charset + "," + encodeURIComponent(svg),
                            options: options
                        }).data;
                        return [2 /*return*/, uri];
                    });
                });
            };
            /**
             * Checks if SVG is fully formatted. Encloses in `<svg>...</svg>` if
             * necessary.
             *
             * @ignore Exclude from docs
             * @param  {string}             svg       Input SVG
             * @param  {IExportSVGOptions}  options   Options
             * @param  {number}             width     Width of the SVG viewport
             * @param  {number}             height    Height of the SVG viewport
             * @param  {string}             font      Font family to use as a base
             * @param  {string}             fontSize  Font size to use as a base
             * @return {string}                       Output SVG
             * @todo Add style params to existing <svg>
             */
            Export.prototype.normalizeSVG = function (svg, options, width, height, font, fontSize, background) {
                // Construct width/height params
                var dimParams = "";
                if (width) {
                    dimParams += "width=\"" + width + "px\" ";
                }
                if (height) {
                    dimParams += "height=\"" + height + "px\" ";
                }
                // Apply font settings
                var styleParams = "";
                if (font) {
                    styleParams += "font-family: " + font.replace(/"/g, "") + ";";
                }
                if (fontSize) {
                    styleParams += "font-size: " + fontSize + ";";
                }
                // Add missing <svg> enclosure
                if (!svg.match(/<svg/)) {
                    svg = "<?xml version=\"1.0\" encoding=\"utf-8\"?><svg " + dimParams + " style=\"" + styleParams + "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">" + svg + "</svg>";
                }
                else {
                    if (dimParams !== "") {
                        // Clear current params
                        svg = svg.replace(/(<svg[^>]*)width="[^"]*"/, "$1");
                        svg = svg.replace(/(<svg[^>]*)height="[^"]*"/, "$1");
                        // Add new params
                        svg = svg.replace(/(<svg)/, "$1" + dimParams);
                    }
                    /*if (styleParams !== "") {
                        // Clear current params
                        svg = svg.replace(/(<svg[^>]*)stylewidth="[^"]*"/, "$1");
                        svg = svg.replace(/(<svg[^>]*)height="[^"]*"/, "$1");
        
                        // Add new params
                        svg = svg.replace(/(<svg)/, "$1" + dimParams);
                    }*/
                }
                if (background) {
                    svg = svg.replace(/(<svg[^>]*>)/, "$1<rect width=\"100%\" height=\"100%\" fill=\"" + background.rgba + "\"/>");
                    //svg = svg.replace(/<\/svg>/, "<rect width=\"100%\" height=\"100%\" fill=\"" + background.rgba + "\"/></svg>");
                }
                svg = this.adapter.apply("normalizeSVG", {
                    data: svg,
                    options: options
                }).data;
                return svg;
            };
            /**
             * Serializes an element and returns its contents.
             *
             * @ignore Exclude from docs
             * @param  {HTMLElement | SVGSVGElement}  element  An element to serialize
             * @return {string}                                A serialized XML
             */
            Export.prototype.serializeElement = function (element) {
                return new XMLSerializer().serializeToString(element);
            };
            /**
             * Returns a PDF containing chart image.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}             type     Type of the export
             * @param {IExportPDFOptions}  options  Options
             * @return {Promise<string>}            Promise
             * @async
             * @todo Account for header when calculating vertical fit
             */
            Export.prototype.getPDF = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var image, pdfmake, defaultMargins, doc, title;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.getImage(options.imageFormat || "png", options)];
                            case 1:
                                image = _a.sent();
                                return [4 /*yield*/, this.pdfmake];
                            case 2:
                                pdfmake = _a.sent();
                                defaultMargins = [30, 30, 30, 30];
                                doc = {
                                    pageSize: options.pageSize || "A4",
                                    pageOrientation: options.pageOrientation || "portrait",
                                    pageMargins: options.pageMargins || defaultMargins,
                                    //header: <any>[],
                                    content: []
                                };
                                title = this.adapter.apply("title", {
                                    title: this.title,
                                    options: options
                                }).title;
                                if (title) {
                                    doc.content.push({
                                        text: title,
                                        fontSize: options.fontSize,
                                        bold: true,
                                        margin: [0, 0, 0, 15]
                                    });
                                }
                                // Add page URL?
                                if (options.addURL) {
                                    doc.content.push({
                                        text: this.language.translate("Saved from") + ": " + document.location.href,
                                        fontSize: options.fontSize,
                                        margin: [0, 0, 0, 15]
                                    });
                                }
                                // Add image
                                doc.content.push({
                                    image: image,
                                    fit: this.getPageSizeFit(doc.pageSize, doc.pageMargins)
                                });
                                // Apply adapters
                                doc = this.adapter.apply("pdfmakeDocument", {
                                    doc: doc,
                                    options: options
                                }).doc;
                                return [4 /*yield*/, new Promise(function (success, error) {
                                        pdfmake.createPdf(doc).getDataUrl(function (uri) {
                                            success(uri);
                                        });
                                    })];
                            case 3:
                                // Create PDF
                                return [2 /*return*/, _a.sent()];
                        }
                    });
                });
            };
            /**
             * Returns fit dimensions for available page sizes.
             *
             * @ignore Exclude from docs
             * @param  {pageSizes} pageSize Page size
             * @return {number[]}           `[width, height]` in pixels
             */
            Export.prototype.getPageSizeFit = function (pageSize, margins) {
                // Check margins
                var newMargins = [0, 0, 0, 0];
                if (typeof margins == "number") {
                    newMargins = [margins, margins, margins, margins];
                }
                else if (margins.length == 2) {
                    newMargins = [margins[0], margins[1], margins[0], margins[1]];
                }
                else if (margins.length == 4) {
                    newMargins = margins;
                }
                // Define available page sizes
                var sizes = {
                    "4A0": [4767.87, 6740.79],
                    "2A0": [3370.39, 4767.87],
                    A0: [2383.94, 3370.39],
                    A1: [1683.78, 2383.94],
                    A2: [1190.55, 1683.78],
                    A3: [841.89, 1190.55],
                    A4: [595.28, 841.89],
                    A5: [419.53, 595.28],
                    A6: [297.64, 419.53],
                    A7: [209.76, 297.64],
                    A8: [147.40, 209.76],
                    A9: [104.88, 147.40],
                    A10: [73.70, 104.88],
                    B0: [2834.65, 4008.19],
                    B1: [2004.09, 2834.65],
                    B2: [1417.32, 2004.09],
                    B3: [1000.63, 1417.32],
                    B4: [708.66, 1000.63],
                    B5: [498.90, 708.66],
                    B6: [354.33, 498.90],
                    B7: [249.45, 354.33],
                    B8: [175.75, 249.45],
                    B9: [124.72, 175.75],
                    B10: [87.87, 124.72],
                    C0: [2599.37, 3676.54],
                    C1: [1836.85, 2599.37],
                    C2: [1298.27, 1836.85],
                    C3: [918.43, 1298.27],
                    C4: [649.13, 918.43],
                    C5: [459.21, 649.13],
                    C6: [323.15, 459.21],
                    C7: [229.61, 323.15],
                    C8: [161.57, 229.61],
                    C9: [113.39, 161.57],
                    C10: [79.37, 113.39],
                    RA0: [2437.80, 3458.27],
                    RA1: [1729.13, 2437.80],
                    RA2: [1218.90, 1729.13],
                    RA3: [864.57, 1218.90],
                    RA4: [609.45, 864.57],
                    SRA0: [2551.18, 3628.35],
                    SRA1: [1814.17, 2551.18],
                    SRA2: [1275.59, 1814.17],
                    SRA3: [907.09, 1275.59],
                    SRA4: [637.80, 907.09],
                    EXECUTIVE: [521.86, 756.00],
                    FOLIO: [612.00, 936.00],
                    LEGAL: [612.00, 1008.00],
                    LETTER: [612.00, 792.00],
                    TABLOID: [792.00, 1224.00]
                };
                // Calculate size
                var fitSize = sizes[pageSize];
                fitSize[0] -= newMargins[0] + newMargins[2];
                fitSize[1] -= newMargins[1] + newMargins[3];
                return fitSize;
            };
            /**
             * Returns an Excel file of chart's data.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}               type     Type of the export
             * @param {IExportExcelOptions}  options  Options
             * @return {Promise<string>}              Promise
             * @async
             * @todo Handle dates
             * @todo Support for multi-sheet
             */
            Export.prototype.getExcel = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var XLSX, wbOptions, sheetName, wb, data, len, i, uri;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.xlsx];
                            case 1:
                                XLSX = _a.sent();
                                wbOptions = this.adapter.apply("xlsxWorkbookOptions", {
                                    options: {
                                        bookType: "xlsx",
                                        bookSST: false,
                                        type: "base64"
                                    }
                                }).options;
                                sheetName = this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName", {
                                    name: this.title || this.language.translate("Data")
                                }).name);
                                wb = {
                                    SheetNames: [sheetName],
                                    Sheets: {}
                                };
                                data = [];
                                // Add column names?
                                if (options.addColumnNames) {
                                    data.push(this.getExcelRow(this.dataFields, options));
                                }
                                // Add lines
                                for (len = this.data.length, i = 0; i < len; i++) {
                                    data.push(this.getExcelRow(this.data[i], options));
                                }
                                // Create sheet and add data
                                wb.Sheets[sheetName] = XLSX.utils.aoa_to_sheet(data);
                                uri = this.adapter.apply("getExcel", {
                                    data: "data:" + this.getContentType(type) + ";base64," + XLSX.write(wb, wbOptions),
                                    options: options
                                }).data;
                                return [2 /*return*/, uri];
                        }
                    });
                });
            };
            /**
             * This is needed to work around Excel limitations.
             *
             * @param  {string}  name  Source name
             * @return {string}        Normalized name
             */
            Export.prototype.normalizeExcelSheetName = function (name) {
                name = name.replace(/([:\\\/?*\[\]]+)/g, " ");
                return _utils_Utils__WEBPACK_IMPORTED_MODULE_16__["truncateWithEllipsis"](name, 31, "...", true);
            };
            /**
             * Rertuns an array of values to be used as Excel row.
             *
             * @ignore Exclude from docs
             * @param  {any}                  row      Row data
             * @param  {IExportExcelOptions}  options  Options
             * @return {any[]}                         Array of values
             */
            Export.prototype.getExcelRow = function (row, options) {
                var _this = this;
                // Init
                var items = [];
                // Process each row item
                _utils_Object__WEBPACK_IMPORTED_MODULE_13__["each"](row, function (key, value) {
                    items.push(_this.convertDateValue(key, value, options));
                });
                return items;
            };
            /**
             * Returns chart's data formatted as CSV.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}             type     Type of the export
             * @param {IExportCSVOptions}  options  Options
             * @return {Promise<string>}            Promise
             * @async
             */
            Export.prototype.getCSV = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var csv, br, len, i, row, charset, uri;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        csv = "";
                        br = "";
                        for (len = this.data.length, i = 0; i < len; i++) {
                            row = this.getCSVRow(this.data[i], options);
                            if (options.reverse) {
                                csv = row + br + csv;
                            }
                            else {
                                csv += br + row;
                            }
                            br = "\n";
                        }
                        // Add column names?
                        if (options.addColumnNames) {
                            csv = this.getCSVRow(this.dataFields, options) + br + csv;
                        }
                        charset = this.adapter.apply("charset", {
                            charset: "charset=utf-8",
                            type: type,
                            options: options
                        }).charset;
                        uri = this.adapter.apply("getCSV", {
                            data: "data:" + this.getContentType(type) + ";" + charset + "," + encodeURIComponent(csv),
                            options: options
                        }).data;
                        return [2 /*return*/, uri];
                    });
                });
            };
            /**
             * Formats a row of CSV data.
             *
             * @ignore Exclude from docs
             * @param  {any}               row     An object holding data for the row
             * @param  {IExportCSVOptions} options Options
             * @return {string}                    Formated CSV line
             */
            Export.prototype.getCSVRow = function (row, options) {
                var _this = this;
                // Init
                var separator = options.separator || ",";
                var items = [];
                // Process each row item
                _utils_Object__WEBPACK_IMPORTED_MODULE_13__["each"](row, function (key, value) {
                    // Convert dates
                    var item = _this.convertDateValue(key, value, options);
                    // Cast and escape doublequotes
                    item = "" + item;
                    item = item.replace(/"/g, '""');
                    // Enclose into double quotes
                    if (options.forceQuotes || (item.search(new RegExp("\"|\n|" + separator, "g")) >= 0)) {
                        item = "\"" + item + "\"";
                    }
                    // Add to item
                    items.push(item);
                });
                return items.join(separator);
            };
            /**
             * Returns chart's data in JSON format.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}              type     Type of the export
             * @param {IExportJSONOptions}  options  Options
             * @return {Promise<string>}             Promise
             * @async
             */
            Export.prototype.getJSON = function (type, options) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var _this = this;
                    var json, charset, uri;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        json = JSON.stringify(this.data, function (key, value) {
                            if (typeof value == "object") {
                                _utils_Object__WEBPACK_IMPORTED_MODULE_13__["each"](value, function (field, item) {
                                    value[field] = _this.convertDateValue(field, item, options);
                                });
                            }
                            return value;
                        }, options.indent);
                        charset = this.adapter.apply("charset", {
                            charset: "charset=utf-8",
                            type: type,
                            options: options
                        }).charset;
                        uri = this.adapter.apply("getJSON", {
                            data: "data:" + this.getContentType(type) + ";" + charset + "," + encodeURIComponent(json),
                            options: options
                        }).data;
                        return [2 /*return*/, uri];
                    });
                });
            };
            /**
             * Converts the value to proper date format.
             *
             * @ignore Exclude from docs
             * @param  {string}                                  field    Field name
             * @param  {any}                                     value    Value
             * @param  {IExportCSVOptions | IExportJSONOptions}  options  Options
             * @return {any}                                              Formatted date value or unmodified value
             */
            Export.prototype.convertDateValue = function (field, value, options) {
                // Is this a timestamp?
                if (typeof value == "number" && this.isDateField(field)) {
                    value = new Date(value);
                }
                if (value instanceof Date) {
                    if (options.useTimestamps) {
                        value = value.getTime();
                    }
                    else if (options.useLocale) {
                        value = value.toLocaleString();
                    }
                    else {
                        value = this.dateFormatter.format(value, this.dateFormat);
                    }
                }
                return value;
            };
            /**
             * Triggers download of the file.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param  {string}            uri       Data URI with file content
             * @param  {string}            fileName  File name
             * @return {Promise<boolean>}            Promise
             * @async
             */
            Export.prototype.download = function (uri, fileName) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var link, parts, contentType, decoded, chars, i, charCode, blob, parts, contentType, iframe, idoc;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        //if (window.navigator.msSaveOrOpenBlob === undefined) {
                        if (this.linkDownloadSupport() && !this.blobDownloadSupport()) {
                            link = document.createElement("a");
                            link.download = fileName;
                            //uri = uri.replace(/#/g, "%23");
                            link.href = uri;
                            document.body.appendChild(link);
                            link.click();
                            document.body.removeChild(link);
                        }
                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](window.navigator.msSaveBlob)) {
                            parts = uri.split(";");
                            contentType = parts.shift().replace(/data:/, "");
                            uri = decodeURIComponent(parts.join(";").replace(/^[^,]*,/, ""));
                            // Check if we need to Base64-decode
                            if (["image/svg+xml", "application/json", "text/csv"].indexOf(contentType) == -1) {
                                try {
                                    decoded = atob(uri);
                                    uri = decoded;
                                }
                                catch (e) {
                                    // Error occurred, meaning string was not Base64-encoded. Do nothing.
                                    return [2 /*return*/, false];
                                }
                            }
                            chars = new Array(uri.length);
                            for (i = 0; i < uri.length; ++i) {
                                charCode = uri.charCodeAt(i);
                                chars[i] = charCode;
                            }
                            blob = new Blob([new Uint8Array(chars)], { type: contentType });
                            window.navigator.msSaveBlob(blob, fileName);
                        }
                        else if (this.legacyIE()) {
                            parts = uri.match(/^data:(.*);[ ]*([^,]*),(.*)$/);
                            if (parts.length === 4) {
                                // Base64-encoded or text-based stuff?
                                if (parts[2] == "base64") {
                                    // Base64-encoded - probably an image
                                    if (parts[1].match(/^image\//)) {
                                        // Yep, an image. Let's create a temporary image placeholder,
                                        // so that user can use do Save As.
                                        this.showModal("<img src=\"" + uri + "\" style=\"float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;\" />" +
                                            "<p>" + this.language.translate("To save the image, right-click thumbnail on the left and choose \"Save picture as...\"") +
                                            "</p>" +
                                            "<p style=\"text-align: center;\"><small>" + this.language.translate("(Press ESC to close this message)") + "</small></p>", this.language.translate("Image Export Complete"));
                                    }
                                }
                                else {
                                    contentType = void 0;
                                    if (fileName.match(/\.svg$/)) {
                                        contentType = "image/svg+xml";
                                    }
                                    else {
                                        contentType = "text/plain";
                                        fileName += ".txt";
                                    }
                                    iframe = document.createElement("iframe");
                                    iframe.width = "1px";
                                    iframe.height = "1px";
                                    iframe.style.display = "none";
                                    document.body.appendChild(iframe);
                                    idoc = iframe.contentDocument;
                                    idoc.open(contentType, "replace");
                                    // TODO test this with various encodings (e.g. UTF)
                                    //idoc.charset = parts[2].replace(/charset=/, "");
                                    idoc.write(decodeURIComponent(parts[3]));
                                    idoc.close();
                                    idoc.execCommand("SaveAs", true, fileName);
                                    // Destroy the iframe
                                    document.body.removeChild(iframe);
                                }
                            }
                        }
                        return [2 /*return*/, true];
                    });
                });
            };
            /**
             * Returns `true` if browser has any supported methods to trigger download
             * of a binary file.
             *
             * @return {boolean} Supports downloads?
             */
            Export.prototype.downloadSupport = function () {
                return this.linkDownloadSupport() || this.blobDownloadSupport();
            };
            /**
             * Checks if the browser supports "download" attribute on links.
             *
             * @ignore Exclude from docs
             * @return {boolean} Browser supports triggering downloads?
             */
            Export.prototype.linkDownloadSupport = function () {
                // Do we have this cached?
                var cache = _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].getCache("linkDownloadSupport");
                if (cache === false || cache === true) {
                    return cache;
                }
                var a = document.createElement("a");
                var res = typeof a.download !== "undefined";
                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].setCache("linkDownloadSupport", res);
                return res;
            };
            /**
             * Checks if the browser supports download via `msBlob`.
             *
             * @ignore Exclude from docs
             * @return {boolean} Browser supports triggering downloads?
             */
            Export.prototype.blobDownloadSupport = function () {
                return _utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](window.navigator.msSaveOrOpenBlob);
            };
            /**
             * Checks if this is a legacy version of IE.
             *
             * @ignore Exclude from docs
             * @return {boolean} IE9 or less?
             */
            Export.prototype.legacyIE = function () {
                // Create a temporary <div> with conditional tags in it an an <i> tag.
                // Count <i>s. If there are some, we have IE9 or late on our hands.
                var div = document.createElement("div");
                div.innerHTML = "<!--[if lt IE 10]><i></i><![endif]-->";
                return div.getElementsByTagName("i").length == 1;
            };
            /**
             * Initiates print of the chart.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @param {string}               data     Data URI for the image
             * @param {IExportPrintOptions}  options  Options
             * @param {string}               title    Optional title to use (uses window's title by default)
             * @return {Promise<boolean>}             Promise
             * @async
             */
            Export.prototype.print = function (data, options, title) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        if (options.printMethod == "css") {
                            return [2 /*return*/, this.printViaCSS(data, options, title)];
                        }
                        else {
                            return [2 /*return*/, this.printViaIframe(data, options, title)];
                        }
                        return [2 /*return*/];
                    });
                });
            };
            Export.prototype.printViaCSS = function (data, options, title) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var scroll, rule, originalTitle, img, isIOS;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        scroll = document.documentElement.scrollTop || document.body.scrollTop;
                        rule = new _utils_DOM__WEBPACK_IMPORTED_MODULE_12__["StyleRule"]("body > *", {
                            "display": "none",
                            "position": "fixed",
                            "visibility": "hidden",
                            "opacity": "0",
                            "clipPath": "polygon(0px 0px,0px 0px,0px 0px,0px 0px);"
                        });
                        if (title && document && document.title) {
                            originalTitle = document.title;
                            document.title = title;
                        }
                        img = new Image();
                        img.src = data;
                        img.style.maxWidth = "100%";
                        img.style.display = "block";
                        img.style.position = "relative";
                        img.style.visibility = "visible";
                        img.style.opacity = "1";
                        img.style.clipPath = "none";
                        document.body.appendChild(img);
                        // Print
                        this.setTimeout(function () {
                            window.print();
                        }, 50);
                        isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
                        if (isIOS && (options.delay < 1000)) {
                            options.delay = 1000;
                        }
                        else if (options.delay < 100) {
                            options.delay = 100;
                        }
                        // Delay function that resets back the document the way ot was before
                        this.setTimeout(function () {
                            // Remove image
                            document.body.removeChild(img);
                            // Reset back all elements
                            /*for (let len = items.length, i = 0; i < len; i++) {
                                let item = <HTMLElement>items[i];
                                if ($dom.isElement(item)) {
                                    item.style.display = states[i];
                                }
                            }*/
                            rule.dispose();
                            // Restore title
                            if (originalTitle) {
                                document.title = document.title;
                            }
                            // Scroll back the document the way it was before
                            document.documentElement.scrollTop = document.body.scrollTop = scroll;
                        }, options.delay || 500);
                        return [2 /*return*/, true];
                    });
                });
            };
            Export.prototype.printViaIframe = function (data, options, title) {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var iframe, img, isIOS;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        iframe = document.createElement("iframe");
                        iframe.style.visibility = "hidden";
                        document.body.appendChild(iframe);
                        // This is needed for FireFox
                        iframe.contentWindow.document.open();
                        iframe.contentWindow.document.close();
                        img = new Image();
                        img.src = data;
                        img.style.maxWidth = "100%";
                        if (title) {
                            iframe.contentWindow.document.title = title;
                        }
                        iframe.contentWindow.document.body.appendChild(img);
                        iframe.load = function () {
                            iframe.contentWindow.document.body.appendChild(img);
                        };
                        // Print
                        this.setTimeout(function () {
                            try {
                                if (!iframe.contentWindow.document.execCommand("print", false, null)) {
                                    iframe.contentWindow.print();
                                }
                            }
                            catch (e) {
                                iframe.contentWindow.print();
                            }
                        }, options.delay || 50);
                        isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
                        if (isIOS && (options.delay < 1000)) {
                            options.delay = 1000;
                        }
                        else if (options.delay < 100) {
                            options.delay = 100;
                        }
                        // Delay function that resets back the document the way ot was before
                        this.setTimeout(function () {
                            // Remove image
                            document.body.removeChild(iframe);
                        }, options.delay + 50 || 100);
                        return [2 /*return*/, true];
                    });
                });
            };
            /**
             * Finds a background color for the element. If element is transparent it goes
             * up the DOM hierarchy to find a parent element that does.
             *
             * @ignore Exclude from docs
             * @param  {Element}  element Element
             * @return {Color}            Color code
             */
            Export.prototype.findBackgroundColor = function (element) {
                // Check if element has styles set
                var opacity = 1, currentColor = "";
                if (element.currentStyle) {
                    currentColor = element.currentStyle["background-color"];
                }
                else if (window.getComputedStyle) {
                    currentColor = document.defaultView.getComputedStyle(element, null).getPropertyValue("background-color");
                }
                // Check opacity
                if (currentColor.match(/[^,]*,[^,]*,[^,]*,[ ]?0/) || currentColor == "transparent") {
                    opacity = 0;
                }
                if (opacity == 0) {
                    var parent_2 = element.parentElement; // || <Element>element.parentNode;
                    // Completely transparent. Look for a parent
                    if (parent_2) {
                        return this.findBackgroundColor(parent_2);
                    }
                    else {
                        return Object(_utils_Color__WEBPACK_IMPORTED_MODULE_9__["color"])("#fff");
                    }
                }
                else {
                    return Object(_utils_Color__WEBPACK_IMPORTED_MODULE_9__["color"])(currentColor, opacity);
                }
            };
            /**
             * Returns a font fmaily name for the element (directly set or
             * computed/inherited).
             *
             * @ignore Exclude from docs
             * @param  {Element}  element  Element
             * @return {string}            Font family
             */
            Export.prototype.findFont = function (element) {
                // Check if element has styles set
                var font = "";
                if (element.currentStyle) {
                    font = element.currentStyle["font-family"];
                }
                else if (window.getComputedStyle) {
                    font = document.defaultView.getComputedStyle(element, null).getPropertyValue("font-family");
                }
                if (!font) {
                    // Completely transparent. Look for a parent
                    var parent_3 = element.parentElement || element.parentNode;
                    if (parent_3) {
                        return this.findFont(parent_3);
                    }
                    else {
                        return undefined;
                    }
                }
                else {
                    return font;
                }
            };
            /**
             * Returns a font fmaily name for the element (directly set or
             * computed/inherited).
             *
             * @ignore Exclude from docs
             * @param  {Element}  element  Element
             * @return {string}            Font family
             */
            Export.prototype.findFontSize = function (element) {
                // Check if element has styles set
                var font = "";
                if (element.currentStyle) {
                    font = element.currentStyle["font-size"];
                }
                else if (window.getComputedStyle) {
                    font = document.defaultView.getComputedStyle(element, null).getPropertyValue("font-size");
                }
                if (!font) {
                    // Completely transparent. Look for a parent
                    var parent_4 = element.parentElement || element.parentNode;
                    if (parent_4) {
                        return this.findFont(parent_4);
                    }
                    else {
                        return undefined;
                    }
                }
                else {
                    return font;
                }
            };
            Object.defineProperty(Export.prototype, "container", {
                /**
                 * @return {HTMLElement} Reference
                 */
                get: function () {
                    return this.adapter.apply("container", {
                        container: this._container
                    }).container;
                },
                /**
                 * A reference to a container to be used to place [[ExportMenu]] in.
                 *
                 * @param {HTMLElement} value Reference
                 */
                set: function (value) {
                    this._container = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "sprite", {
                /**
                 * @return {Sprite} Sprite
                 */
                get: function () {
                    return this.adapter.apply("sprite", {
                        sprite: this._sprite
                    }).sprite;
                },
                /**
                 * A reference to [[Sprite]] to export. Can be any Sprite, including some
                 * internal elements.
                 *
                 * @param {Sprite} value Sprite
                 */
                set: function (value) {
                    this._sprite = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "data", {
                /**
                 * @return {any} Data
                 */
                get: function () {
                    return this.adapter.apply("data", {
                        data: this._data
                    }).data;
                },
                /**
                 * Data to export.
                 *
                 * @param {any} value Data
                 */
                set: function (value) {
                    this._data = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "dataFields", {
                /**
                 * @return {any} Field names `{ field: fieldName }`
                 */
                get: function () {
                    if (!this._dataFields) {
                        this.generateDataFields();
                    }
                    return this.adapter.apply("dataFields", {
                        dataFields: this._dataFields
                    }).dataFields;
                },
                /**
                 * Data fields in `{ field: fieldName }` format. Those are used for
                 * exporting in data formats to name the columns.
                 *
                 * @param {any} value Field names
                 */
                set: function (value) {
                    this._dataFields = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "dateFormatter", {
                /**
                 * @return {any} A DateFormatter instance
                 */
                get: function () {
                    if (!this._dateFormatter) {
                        this._dateFormatter = new _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_6__["DateFormatter"]();
                    }
                    return this.adapter.apply("dateFormatter", {
                        dateFormatter: this._dateFormatter
                    }).dateFormatter;
                },
                /**
                 * A [[DateFormatter]] to use when formatting dates when exporting data.
                 *
                 * @param {any} value DateFormatter instance
                 */
                set: function (value) {
                    this._dateFormatter = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "dateFormat", {
                /**
                 * @return {Optional<string>} Date format
                 */
                get: function () {
                    return this.adapter.apply("dateFormat", {
                        dateFormat: this._dateFormat
                    }).dateFormat;
                },
                /**
                 * A date format to use for exporting dates. Will use [[DateFormatter]]
                 * format if not set.
                 *
                 * @param {Optional<string>} value Date format
                 */
                set: function (value) {
                    this._dateFormat = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "dateFields", {
                /**
                 * @return {List<string>} Date field list
                 */
                get: function () {
                    if (!this._dateFields) {
                        this._dateFields = new _utils_List__WEBPACK_IMPORTED_MODULE_4__["List"]();
                    }
                    return this.adapter.apply("dateFields", {
                        dateFields: this._dateFields
                    }).dateFields;
                },
                /**
                 * A list of fields that hold date values.
                 *
                 * @param {List<string>} value Date field list
                 */
                set: function (value) {
                    this._dateFields = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Generates data fields out of the first row of data.
             *
             * @ignore Exclude from docs
             */
            Export.prototype.generateDataFields = function () {
                var _this = this;
                this._dataFields = {};
                if (this.data.length) {
                    var row = this.data[0];
                    _utils_Object__WEBPACK_IMPORTED_MODULE_13__["each"](row, function (key, value) {
                        _this._dataFields[key] = _this.adapter.apply("dataFieldName", {
                            name: key,
                            field: key
                        }).name;
                    });
                }
            };
            /**
             * Cheks against `dateFields` property to determine if this field holds
             * dates.
             *
             * @ignore Exclude from docs
             * @param  {string}        field   Field name
             * @param  {IExportOptions} options Options
             * @return {boolean}               `true` if it's a date field
             */
            Export.prototype.isDateField = function (field) {
                return this.adapter.apply("isDateField", {
                    isDateField: this.dateFields.contains(field),
                    field: field
                }).isDateField;
            };
            /**
             * Returns proper content type for the export type.
             *
             * @param  {string}  type  Export format/type
             * @return {string}        Proper content type, i.e. "image/jpeg"
             */
            Export.prototype.getContentType = function (type) {
                var contentType = "";
                switch (type) {
                    case "png":
                    case "gif":
                        contentType = "image/" + type;
                        break;
                    case "jpg":
                        contentType = "image/jpeg";
                        break;
                    case "svg":
                        contentType = "image/svg+xml";
                        break;
                    case "csv":
                        contentType = "text/csv";
                        break;
                    case "json":
                        contentType = "application/json";
                        break;
                    case "pdf":
                        contentType = "application/pdf";
                        break;
                    case "xlsx":
                        contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
                        break;
                }
                return this.adapter.apply("contentType", {
                    contentType: contentType,
                    type: type
                }).contentType;
            };
            Object.defineProperty(Export.prototype, "filePrefix", {
                /**
                 * @return {string} File prefix
                 */
                get: function () {
                    return this.adapter.apply("filePrefix", {
                        filePrefix: this._filePrefix
                    }).filePrefix;
                },
                /**
                 * A file prefix to be used for all exported formats.
                 *
                 * Export will apply format-related extension to it. E.g. if this is set to
                 * "myExport", the file name of the PNG exported image will be "myExport.png".
                 *
                 * @param {string} value File prefix
                 */
                set: function (value) {
                    this._filePrefix = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "backgroundColor", {
                /**
                 * @return {Optional<Color>} Background color
                 */
                get: function () {
                    return this.adapter.apply("backgroundColor", {
                        backgroundColor: this._backgroundColor
                    }).backgroundColor;
                },
                /**
                 * A background color to be used for exported images. If set, this will
                 * override the automatically acquired background color.
                 *
                 * @param {Optional<Color>} value Color
                 */
                set: function (value) {
                    this._backgroundColor = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "title", {
                /**
                 * @return {Optional<string>} Title
                 */
                get: function () {
                    return this.adapter.apply("title", {
                        title: this._title
                    }).title;
                },
                /**
                 * A title to be used when printing.
                 *
                 * @param {Optional<string>} value Title
                 */
                set: function (value) {
                    this._title = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Displays a preloader/exporting indicator.
             *
             * @ignore Exclude from docs
             * @todo Add ability to change text
             */
            Export.prototype.showPreloader = function () {
                var preloader = this.preloader;
                if (preloader) {
                    preloader.progress = 0.5;
                    preloader.label.text = "...";
                }
            };
            /**
             * Hides preloader/exporting indicator
             *
             * @ignore Exclude from docs
             */
            Export.prototype.hidePreloader = function () {
                var preloader = this.preloader;
                if (preloader) {
                    preloader.progress = 1;
                }
            };
            Object.defineProperty(Export.prototype, "preloader", {
                /**
                 * Returns a an instance of [[Preloader]] associated with the Sprite being
                 * exported.
                 *
                 * @return {Preloader} Preloader
                 */
                get: function () {
                    return this._sprite && this._sprite.parent && this._sprite.parent.preloader ?
                        this._sprite.parent.preloader :
                        undefined;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Displays a modal saying export is taking longer than expected.
             *
             * @ignore Exclude from docs
             */
            Export.prototype.showTimeout = function () {
                this.showModal(this.adapter.apply("timeoutMessage", {
                    message: this.language.translate("Export operation took longer than expected. Something might have gone wrong.")
                }).message);
            };
            /**
             * Hides preloader/exporting indicator.
             *
             * @ignore Exclude from docs
             */
            Export.prototype.hideTimeout = function () {
                if (this._timeoutTimeout) {
                    this.removeDispose(this._timeoutTimeout);
                    this._timeoutTimeout = null;
                }
                this.hideModal();
            };
            Object.defineProperty(Export.prototype, "language", {
                /**
                 * @return {Language} A [[Language]] instance to be used
                 */
                get: function () {
                    if (!this._language) {
                        this._language = new _utils_Language__WEBPACK_IMPORTED_MODULE_7__["Language"]();
                    }
                    return this._language;
                },
                /**
                 * A [[Language]] instance to be used for translations.
                 *
                 * @param {Language} value An instance of [[Language]]
                 */
                set: function (value) {
                    this._language = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Export.prototype, "modal", {
                /**
                 * Returns (and creates) [[Modal]].
                 *
                 * @ignore Exclude from docs
                 * @return {Modal} Modal instance
                 */
                get: function () {
                    if (!this._modal) {
                        this._modal = new _elements_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"]();
                        // Prefix with Sprite's class name
                        this._modal.adapter.add("classPrefix", function (value) {
                            value = _Options__WEBPACK_IMPORTED_MODULE_11__["options"].classNamePrefix + value;
                            return value;
                        });
                    }
                    return this._modal;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Shows [[Modal]] with specific text.
             *
             * @ignore Exclude from docs
             * @param {string} text Modal contents
             */
            Export.prototype.showModal = function (text, title) {
                // Hide previous modal and preloader
                this.hideModal();
                this.hidePreloader();
                // Create modal
                var modal = this.modal;
                modal.container = this.sprite.svgContainer.SVGContainer;
                modal.content = text;
                modal.readerTitle = title;
                modal.open();
            };
            /**
             * Hides modal window if one's currently open.
             *
             * @ignore Exclude from docs
             */
            Export.prototype.hideModal = function () {
                if (this._modal) {
                    this.modal.close();
                }
            };
            /**
             * Loads canvg dynamic module.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @return {Promise<any>} Instance of canvg
             * @async
             */
            Export.prototype._canvg = function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, __webpack_require__.e(/* import() | canvg */ 5).then(function () { var module = __webpack_require__(816); return typeof module === "object" && module && module.__esModule ? module : Object.assign({ /* fake namespace object */}, typeof module === "object" && module, { "default": module }); })];
                            case 1: return [2 /*return*/, _a.sent()];
                        }
                    });
                });
            };
            Object.defineProperty(Export.prototype, "canvg", {
                /**
                 * Returns canvg instance.
                 *
                 * @ignore Exclude from docs
                 * @return {Promise<any>} Instance of canvg
                 */
                get: function () {
                    return this._canvg();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Loads pdfmake dynamic module
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @return {Promise<any>} Instance of pdfmake
             * @async
             */
            Export.prototype._pdfmake = function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    var a, pdfmake, vfs_fonts, global;
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, Promise.all([
                                    __webpack_require__.e(/* import() | pdfmake */ 6).then(function () { var module = __webpack_require__(819); return typeof module === "object" && module && module.__esModule ? module : Object.assign({ /* fake namespace object */}, typeof module === "object" && module, { "default": module }); }),
                                    __webpack_require__.e(/* import() | pdfmake */ 6).then(__webpack_require__.bind(null, 820))
                                ])];
                            case 1:
                                a = _a.sent();
                                pdfmake = a[0];
                                vfs_fonts = a[1];
                                global = window;
                                global.pdfMake = global.pdfMake || {};
                                global.pdfMake.vfs = vfs_fonts.default;
                                pdfmake.vfs = vfs_fonts.default;
                                return [2 /*return*/, pdfmake];
                        }
                    });
                });
            };
            Object.defineProperty(Export.prototype, "pdfmake", {
                /**
                 * Returns pdfmake instance.
                 *
                 * @ignore Exclude from docs
                 * @return {Promise<any>} Instance of pdfmake
                 */
                get: function () {
                    return this._pdfmake();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Loads xlsx dynamic module.
             *
             * This is an asynchronous function. Check the description of `getImage()`
             * for description and example usage.
             *
             * @ignore Exclude from docs
             * @return {Promise<any>} Instance of pdfmake
             * @async
             */
            Export.prototype._xlsx = function () {
                return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, Promise.all(/* import() | xlsx */ [__webpack_require__.e(3), __webpack_require__.e(2)]).then(function () { var module = __webpack_require__(821); return typeof module === "object" && module && module.__esModule ? module : Object.assign({ /* fake namespace object */}, typeof module === "object" && module, { "default": module }); })];
                            case 1: return [2 /*return*/, _a.sent()];
                        }
                    });
                });
            };
            Object.defineProperty(Export.prototype, "xlsx", {
                /**
                 * Returns xlsx instance.
                 *
                 * @ignore Exclude from docs
                 * @return {Promise<any>} Instance of pdfmake
                 */
                get: function () {
                    return this._xlsx();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets options for a format.
             *
             * @type {Key}
             */
            Export.prototype.setFormatOptions = function (type, options) {
                this._formatOptions.setKey(type, options);
            };
            /**
             * Returns current options for a format.
             */
            Export.prototype.getFormatOptions = function (type) {
                return this._formatOptions.getKey(type);
            };
            /**
             * Disables interactivity on parent chart.
             */
            Export.prototype._disablePointers = function () {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](this._spriteInteractionsEnabled)) {
                    this._spriteInteractionsEnabled = this.sprite.interactionsEnabled;
                }
                this.sprite.interactionsEnabled = false;
            };
            /**
             * Releases temporarily disabled pointers on parent chart.
             */
            Export.prototype._releasePointers = function () {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](this._spriteInteractionsEnabled)) {
                    this.sprite.interactionsEnabled = this._spriteInteractionsEnabled;
                }
            };
            /**
             * Hides all elements that should not be included in the exported image.
             */
            Export.prototype.hideNonExportableSprites = function () {
                var _this = this;
                var svgContainer = this.sprite.svgContainer;
                if (svgContainer) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_17__["each"](svgContainer.nonExportableSprites, function (item) {
                        if (!item.isHidden && !item.isHiding) {
                            _this._hiddenObjects.push(item);
                        }
                        item.hide(0);
                    });
                }
            };
            /**
             * Respores elements that were hidden before export.
             */
            Export.prototype.restoreNonExportableSprites = function () {
                _utils_Array__WEBPACK_IMPORTED_MODULE_17__["each"](this._hiddenObjects, function (item) {
                    item.show(0);
                });
                this._hiddenObjects = [];
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            Export.prototype.processConfig = function (config) {
                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].registeredClasses["ExportMenu"] = _ExportMenu__WEBPACK_IMPORTED_MODULE_1__["ExportMenu"];
                if (config) {
                    // Set up menu
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](config.menu) && !_utils_Type__WEBPACK_IMPORTED_MODULE_15__["hasValue"](config.menu.type)) {
                        config.menu.type = "ExportMenu";
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * XLINK namespace definition.
             *
             * @ignore Exclude from docs
             * @type {string}
             */
            Export.XLINK = "http://www.w3.org/1999/xlink";
            return Export;
        }(_utils_Validatable__WEBPACK_IMPORTED_MODULE_8__["Validatable"]));
        //# sourceMappingURL=Export.js.map
        /***/ 
    }),
    /* 812 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportMenu", function () { return ExportMenu; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ExportCSS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(813);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(784);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(754);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(806);
        /* harmony import */ var _utils_Validatable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(814);
        /* harmony import */ var _utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(792);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(795);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(762);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(779);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /**
         * ExportMenu provides functionality for building Export menu
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a menu for Export operations.
         *
         * To add an export menu to a chart, set this to a new instance of
         * [[ExportMenu]].
         *
         * ```TypeScript
         * chart.exporting.menu = new am4core.ExportMenu();
         * ```
         * ```JavaScript
         * chart.exporting.menu = new am4core.ExportMenu();
         * ```
         * ```JSON
         * {
         *   // ...
         *   "exporting": {
         *     "menu": {}
         *   }
         * }
         * ```
         * @important
         */
        var ExportMenu = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ExportMenu, _super);
            /**
             * Constructor
             */
            function ExportMenu() {
                var _this = _super.call(this) || this;
                /**
                 * An [[Adapter]].
                 *
                 * @type {Adapter<ExportMenu, IExportMenuAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * How many milliseconds to hold menu/sub-menu open after it loses focus or
                 * hover, before auto-closing it.
                 *
                 * @type {number}
                 */
                _this.closeDelay = 1000;
                /**
                 * An instance of [[Language]].
                 *
                 * @ignore Exclude from docs
                 * @type {MutableValueDisposer<Language>}
                 */
                _this._language = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_5__["MutableValueDisposer"]();
                /**
                 * What HTML tags to use to build menu.
                 *
                 * @ignore Exclude from docs
                 * @type {string}
                 */
                _this._menuTag = "ul";
                /**
                 * Which tag to use to enclose individual menu items.
                 *
                 * @ignore Exclude from docs
                 * @type {string}
                 */
                _this._itemTag = "li";
                /**
                 * Tag to wrap menu item labels in.
                 *
                 * @ignore Exclude from docs
                 * @type {string}
                 */
                _this._labelTag = "a";
                /**
                 * Prefix for class names applied to menu elements.
                 *
                 * @ignore Exclude from docs
                 * @type {string}
                 */
                _this._classPrefix = "amexport";
                /**
                 * If set to `true` [[ExportMenu]] will load it's own external CSS when
                 * instantiated.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._defaultStyles = true;
                /**
                 * Horizontal positioning.
                 *
                 * @ignore Exclude from docs
                 * @type {Align}
                 */
                _this._align = "right";
                /**
                 * Vertical positioning.
                 *
                 * @ignore Exclude from docs
                 * @type {VerticalAlign}
                 */
                _this._verticalAlign = "top";
                /**
                 * A tabindex to apply to Export Menu.
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                _this._tabindex = 0;
                /**
                 * Whether next menu close event should be ignored.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._ignoreNextClose = false;
                /**
                 * Default menu items.
                 *
                 * @ignore Exclude from docs
                 * @type {Array<IExportMenuItem>}
                 */
                _this._items = [
                    {
                        "label": "...",
                        "menu": [
                            {
                                "label": "Image",
                                "menu": [
                                    { "type": "png", "label": "PNG" },
                                    { "type": "jpg", "label": "JPG" },
                                    { "type": "gif", "label": "GIF" },
                                    { "type": "svg", "label": "SVG" },
                                    { "type": "pdf", "label": "PDF" }
                                ]
                            }, {
                                "label": "Data",
                                "menu": [
                                    { "type": "json", "label": "JSON" },
                                    { "type": "csv", "label": "CSV" },
                                    { "type": "xlsx", "label": "XLSX" }
                                ]
                            }, {
                                "label": "Print", "type": "print"
                            }
                        ]
                    }
                ];
                _this.className = "ExportMenu";
                _this._disposers.push(_this._language);
                _this.invalidate();
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)draws the Export menu.
             *
             * @ignore Exclude from docs
             */
            ExportMenu.prototype.validate = function () {
                this.draw();
                _super.prototype.validate.call(this);
            };
            /**
             * Draws the menu based on current items.
             *
             * Normally, there's no need to call this explicitly. The chart, if it has
             * export menu enabled, will automatically draw the menu.
             */
            ExportMenu.prototype.draw = function () {
                var _this = this;
                // Create top-level menu item, or clear it
                if (!this._element) {
                    this._element = this.createMenuElement(0);
                }
                else {
                    this._element.innerHTML = "";
                    this._element.className = this.getMenuItemClass(0);
                }
                // See if we're loading external CSS
                // Hide it until CSS is loaded
                if (this.defaultStyles) {
                    this._element.style.display = "none";
                }
                // Append to container
                _utils_Type__WEBPACK_IMPORTED_MODULE_12__["getValue"](this._container).appendChild(this._element);
                // Apply adapter to menu items before processing
                this._items = this.adapter.apply("items", {
                    items: this._items
                }).items;
                for (var len = this._items.length, i = 0; i < len; i++) {
                    this.drawBranch(this._element, this._items[i], 0);
                }
                // Apply adapter to finalized menu element
                this._element = this.adapter.apply("menuElement", {
                    menuElement: this._element
                }).menuElement;
                // Set up global "down" event
                this._disposers.push(Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().body.events.on("down", function (ev) {
                    if (!ev.pointer.touch) {
                        _this._ignoreNextClose = false;
                    }
                    _this.close();
                }));
                // Set up global event on ESC press to close the menu
                this._disposers.push(Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().body.events.on("keyup", function (ev) {
                    var key = _utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__["keyboard"].getEventKey(ev.event);
                    switch (key) {
                        case "esc":
                            _this.close();
                            break;
                        case "up":
                        case "down":
                        case "left":
                        case "right":
                            _this.moveSelection(key);
                            break;
                    }
                }));
                if (this.defaultStyles) {
                    this.loadDefaultCSS();
                }
            };
            /**
             * Creates a new branch in export menu. This function is recursive for
             * building multi-level menus.
             *
             * @ignore Exclude from docs
             * @param {HTMLElement}     container Container to put branch elements in
             * @param {IExportMenuItem} branch    Menu item
             * @param {number}          level     Current nesting level
             */
            ExportMenu.prototype.drawBranch = function (container, branch, level) {
                var _this = this;
                // Apply adapter
                branch = this.adapter.apply("branch", {
                    branch: branch,
                    level: level
                }).branch;
                // Unsupported?
                // ExportMenu does not check or know for specific browser/system
                // capabilities. It must happen in some other code and applied via Adapter.
                // Export itself will check compatibility, but there might be other plugins
                // that influence it or even add any specific export functionality.
                if (branch.unsupported === true) {
                    return;
                }
                // Init ascendants
                if (!branch.ascendants) {
                    branch.ascendants = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                }
                // Get type
                var type = branch.type;
                // Create an item
                var element = this.createItemElement(level, type);
                // Create label
                var label = this.createLabelElement(level, type);
                label.innerHTML = (branch.label ? this.language.translate(branch.label) : "");
                // Apply reader text to label
                var readerLabel = this.getReaderLabel(branch, label.innerHTML);
                label.setAttribute("aria-label", readerLabel);
                // Add Label
                element.appendChild(label);
                // Create interaction object
                // TODO clean this up when it's disposed
                branch.interactions = Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().getInteraction(label);
                // Create interaction manager we can set event listeners to
                if (this.typeClickable(type)) {
                    //branch.interactions.clickable = true;
                    // TODO clean this up when it's disposed
                    branch.interactions.events.on("hit", function (ev) {
                        if (_this.events.isEnabled("hit")) {
                            var event_1 = {
                                "type": "hit",
                                "event": ev.event,
                                "target": _this,
                                "branch": branch
                            };
                            _this.events.dispatchImmediately("hit", event_1);
                        }
                    });
                    // TODO clean this up when it's disposed
                    branch.interactions.events.on("keyup", function (ev) {
                        if (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__["keyboard"].isKey(ev.event, "enter")) {
                            if (_this.events.isEnabled("enter")) {
                                var event_2 = {
                                    "type": "enter",
                                    "event": ev.event,
                                    "target": _this,
                                    "branch": branch
                                };
                                _this.events.dispatchImmediately("enter", event_2);
                            }
                        }
                    });
                }
                {
                    var submenu_1 = this.getSubMenu(branch);
                    // Add ENTER event to open sub-menus
                    if (submenu_1 != null) {
                        // TODO clean this up when it's disposed
                        branch.interactions.events.on("keyup", function (ev) {
                            if (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__["keyboard"].isKey(ev.event, "enter")) {
                                // This is item has sub-menu, activate the first child on ENTER
                                _this.selectBranch(submenu_1[0]);
                                // Attempt to set focus
                                _this.setFocus(submenu_1[0]);
                            }
                        });
                    }
                }
                // Add events
                // TODO clean this up when it's disposed
                branch.interactions.events.on("over", function (ev) {
                    if (ev.pointer.touch) {
                        // Cancel pending menu closure
                        _this._ignoreNextClose = true;
                    }
                    _this.selectBranch(branch);
                    if (_this.events.isEnabled("over")) {
                        var event_3 = {
                            "type": "over",
                            "event": ev.event,
                            "target": _this,
                            "branch": branch
                        };
                        _this.events.dispatchImmediately("over", event_3);
                    }
                });
                // TODO clean this up when it's disposed
                branch.interactions.events.on("out", function (ev) {
                    if (!ev.pointer.touch) {
                        _this.delayUnselectBranch(branch);
                    }
                    if (_this.events.isEnabled("out")) {
                        var event_4 = {
                            "type": "out",
                            "event": ev.event,
                            "target": _this,
                            "branch": branch
                        };
                        _this.events.dispatchImmediately("out", event_4);
                    }
                });
                // TODO clean this up when it's disposed
                branch.interactions.events.on("focus", function (ev) {
                    _this.selectBranch(branch);
                });
                // TODO clean this up when it's disposed
                branch.interactions.events.on("blur", function (ev) {
                    _this.delayUnselectBranch(branch);
                });
                // Increment level
                var local_level = level + 1;
                // Has sub-menu?
                if (branch.menu) {
                    var submenu = this.createMenuElement(local_level);
                    for (var len = branch.menu.length, i = 0; i < len; i++) {
                        var ascendants = new _utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        branch.menu[i].ascendants = ascendants;
                        if (branch.ascendants.length) {
                            ascendants.copyFrom(branch.ascendants);
                        }
                        ascendants.push(branch);
                        this.drawBranch(submenu, branch.menu[i], local_level);
                    }
                    // Sub-menu is empty (all items are not supported)
                    // Do not draw this menu item at all
                    if (submenu.innerHTML == "") {
                        return;
                    }
                    element.appendChild(submenu);
                }
                // Append to container
                container.appendChild(element);
            };
            /**
             * Creates a menu element to hold its elements in. Usually it's an `<ul>`
             * tag.
             *
             * @ignore Exclude from docs
             * @param  {number}       level  Current nesting level
             * @return {HTMLElement}         HTML element reference
             */
            ExportMenu.prototype.createMenuElement = function (level) {
                var element = document.createElement(this.menuTag);
                element.className = this.getMenuItemClass(level);
                // Accessibility
                if (level === 0) {
                    element.setAttribute("role", "menu");
                }
                return element;
            };
            /**
             * Generates a class name for the menu element based on its nesting level.
             *
             * @ignore Exclude from docs
             * @param  {number}  level  Current nesting level
             * @return {string}         Class name(s)
             */
            ExportMenu.prototype.getMenuItemClass = function (level) {
                var className = this.classPrefix + "-menu " + this.classPrefix + "-menu-level-" + level;
                if (level === 0) {
                    className += " " + this.classPrefix + "-menu-root " +
                        this.classPrefix + "-" + this.align + " " +
                        this.classPrefix + "-" + this.verticalAlign;
                }
                return this.adapter.apply("menuClass", {
                    className: className,
                    level: level
                }).className;
            };
            /**
             * Creates menu item. Usually `<li>` tag. Its label and sub-elements will go
             * into this element.
             *
             * @ignore Exclude from docs
             * @param  {number}       level  Current nesting level
             * @param  {string}       type   Type of the menu item
             * @return {HTMLElement}         HTML element reference
             */
            ExportMenu.prototype.createItemElement = function (level, type) {
                var element = document.createElement(this.itemTag);
                var className = this.classPrefix + "-item " + this.classPrefix
                    + "-item-level-" + level
                    + " " + this.classPrefix + "-item-" + (type || "blank");
                element.className = this.adapter.apply("itemClass", {
                    className: className,
                    level: level,
                    type: type
                }).className;
                return element;
            };
            /**
             * Creates a "label" part of the menu item. It could be text or any HTML
             * content.
             *
             * @ignore Exclude from docs
             * @param  {number}       level  Current nesting level
             * @param  {string}       type   Type of the menu item
             * @return {HTMLElement}         An HTML Element
             */
            ExportMenu.prototype.createLabelElement = function (level, type) {
                var element = document.createElement(this.labelTag);
                var className = this.classPrefix + "-label " + this.classPrefix
                    + "-label-level-" + level
                    + " " + this.classPrefix + "-item-" + (type || "blank");
                if (this.typeClickable(type)) {
                    className += " " + this.classPrefix + "-clickable";
                }
                element.className = this.adapter.apply("labelClass", {
                    className: className,
                    level: level,
                    type: type
                }).className;
                // Accessible navigation
                element.setAttribute("tabindex", this.tabindex.toString());
                element.setAttribute("role", "menuitem");
                return element;
            };
            /**
             * Destroys the menu and all its elements.
             */
            ExportMenu.prototype.dispose = function () {
                if (!this._disposed) {
                    _super.prototype.dispose.call(this);
                    this._element
                        && this._element.parentNode
                        && this._element.parentNode.removeChild(this._element);
                }
            };
            /**
             * Checks whether menu item type is supposed to be clickable.
             *
             * @ignore Exclude from docs
             * @param  {string}   type  Menu item type
             * @return {boolean}        Is clickable?
             */
            ExportMenu.prototype.typeClickable = function (type) {
                return _utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](type);
            };
            /**
             * Checks whether menu item has any sub-items.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}  branch  A menu item
             * @return {boolean}                  Has sub-items?
             */
            ExportMenu.prototype.hasSubMenu = function (branch) {
                return (branch.menu && branch.menu.length) ? true : false;
            };
            /**
             * Returns sub-items (if they exist).
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}                   branch  A menu item
             * @return {Optional<Array<IExportMenuItem>>}          Submenus
             */
            ExportMenu.prototype.getSubMenu = function (branch) {
                if (branch.menu && branch.menu.length) {
                    return branch.menu;
                }
            };
            /**
             * Generates and returns an applicable label to be used for screen readers.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}  item   A menu item instance
             * @param  {string}           label  Current label
             * @return {string}                  Reader text
             */
            ExportMenu.prototype.getReaderLabel = function (branch, label) {
                // Strip any HTML from the label
                label = _utils_Utils__WEBPACK_IMPORTED_MODULE_9__["stripTags"](label);
                // Add textual note if the branch is clickable
                if (this.hasSubMenu(branch)) {
                    label += " [" + this.language.translate("Click, tap or press ENTER to open") + "]";
                }
                else if (branch.type == "print") {
                    label = this.language.translate("Click, tap or press ENTER to print.");
                }
                else if (this.typeClickable(branch.type)) {
                    label = this.language.translate("Click, tap or press ENTER to export as %1.", undefined, label);
                }
                return this.adapter.apply("rederLabel", {
                    label: label,
                    branch: branch
                }).label;
            };
            Object.defineProperty(ExportMenu.prototype, "container", {
                /**
                 * @return {HTMLElement} Container
                 */
                get: function () {
                    return this._container;
                },
                /**
                 * Getters and setters
                 */
                /**
                 * An HTML container to place the Menu in.
                 *
                 * A container must be an HTML element, because menu itself is HTML, and
                 * cannot be placed into SVG.
                 *
                 * @param {Optional<HTMLElement>} container Reference to container element
                 * @todo Check if menu is already build. If it is, just move it to a new container
                 */
                set: function (container) {
                    this._container = container;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "items", {
                /**
                 * @return {Array<IExportMenuItem>} Menu items
                 */
                get: function () {
                    return this._items;
                },
                /**
                 * A list of menu items. Can be nested.
                 *
                 * @param {Array<IExportMenuItem>}  items  Menu items
                 */
                set: function (items) {
                    this._items = items;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "tag", {
                /**
                 * Sets main menu tag to place menu in.
                 *
                 * This also sets up how menu items are built.
                 *
                 * If you set this to "ul", menu items will be wrapped into `<li>` tags.
                 *
                 * If set to "div", menu items will be wrapped in `<div>` tags.
                 *
                 * @default "ul"
                 * @param {"ul" | "div"} tag Tag to use for menu
                 */
                set: function (tag) {
                    this._menuTag = tag;
                    this._itemTag = tag == "ul" ? "li" : "div";
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "menuTag", {
                /**
                 * Returns current menu tag.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Menu tag (item that contains sub-items)
                 */
                get: function () {
                    return this.adapter.apply("menuTag", {
                        tag: this._menuTag
                    }).tag;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "itemTag", {
                /**
                 * Returns tag to wrap items into.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Item tag
                 */
                get: function () {
                    return this.adapter.apply("itemTag", {
                        tag: this._itemTag
                    }).tag;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "labelTag", {
                /**
                 * Returns menu label tag.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Label tag
                 */
                get: function () {
                    return this.adapter.apply("labelTag", {
                        tag: this._labelTag
                    }).tag;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "align", {
                /**
                 * @return {Align} Horizontal alignment
                 */
                get: function () {
                    return this.adapter.apply("align", {
                        align: this._align
                    }).align;
                },
                /**
                 * A horizontal alignment for the menu placement.
                 *
                 * @param {Align} value Horizontal alignment
                 */
                set: function (value) {
                    this._align = value;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "verticalAlign", {
                /**
                 * @return {VerticalAlign} Vertical alignment
                 */
                get: function () {
                    return this.adapter.apply("verticalAlign", {
                        verticalAlign: this._verticalAlign
                    }).verticalAlign;
                },
                /**
                 * A vertical alignment for the menu placement.
                 *
                 * @param {VerticalAlign} value Vertical alignment
                 */
                set: function (value) {
                    this._verticalAlign = value;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "classPrefix", {
                /**
                 * @return {string} Class name prefix
                 */
                get: function () {
                    return this.adapter.apply("classPrefix", {
                        classPrefix: this._classPrefix
                    }).classPrefix;
                },
                /**
                 * Class name prefix.
                 *
                 * @default "amexport"
                 * @param {string} value Class name prefix
                 */
                set: function (value) {
                    this._classPrefix = value;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "defaultStyles", {
                /**
                 * @return {boolean} Should ExportMenu load its own CSS?
                 */
                get: function () {
                    return this.adapter.apply("defaultStyles", {
                        defaultStyles: this._defaultStyles
                    }).defaultStyles;
                },
                /**
                 * Indicates whether [[ExportMenu]] should load external CSS to style itself.
                 *
                 * If set to `false`, the menu will not be styled, and will rely on some
                 * external CSS.
                 *
                 * @default true
                 * @param {string} Should ExportMenu load its own CSS?
                 */
                set: function (value) {
                    if (this._defaultStyles != value) {
                        this._defaultStyles = value;
                        if (value) {
                            this.loadDefaultCSS();
                        }
                    }
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Loads the default CSS.
             *
             * @ignore Exclude from docs
             */
            ExportMenu.prototype.loadDefaultCSS = function () {
                this._disposers.push(Object(_ExportCSS__WEBPACK_IMPORTED_MODULE_1__["default"])(this.classPrefix));
                if (this._element) {
                    this._element.style.display = "";
                }
            };
            Object.defineProperty(ExportMenu.prototype, "tabindex", {
                /**
                 * @return {number} Tab index
                 */
                get: function () {
                    return this.adapter.apply("tabindex", {
                        tabindex: this._tabindex
                    }).tabindex;
                },
                /**
                 * A tab index for the menu.
                 *
                 * Tab index will influence the order in which elements on the chart and
                 * the whole page are selected when pressing TAB key.
                 *
                 * @param {number} value Tab index
                 */
                set: function (value) {
                    this._tabindex = value;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ExportMenu.prototype, "language", {
                /**
                 * @return {Language} A [[Language]] instance to be used
                 */
                get: function () {
                    var _this = this;
                    var language = this._language.get();
                    if (language == null) {
                        language = new _utils_Language__WEBPACK_IMPORTED_MODULE_6__["Language"]();
                        // TODO code duplication with `set language()`
                        this._language.set(language, language.events.on("localechanged", function (ev) {
                            _this.invalidate();
                        }));
                    }
                    return language;
                },
                /**
                 * A [[Language]] instance.
                 *
                 * @param {Language} value An instance of [[Language]]
                 */
                set: function (value) {
                    var _this = this;
                    this._language.set(value, value.events.on("localechanged", function (ev) {
                        _this.invalidate();
                    }));
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Controlling the menu
             */
            /**
             * Removes all active classes from menu items. Useful on touch devices and
             * keyboard navigation where open menu can be closed instantly by clicking or
             * tapping outside it.
             *
             * @ignore Exclude from docs
             */
            ExportMenu.prototype.close = function () {
                if (this._ignoreNextClose) {
                    this._ignoreNextClose = false;
                    return;
                }
                if (this._currentSelection) {
                    this.setBlur(this._currentSelection);
                    this._currentSelection = undefined;
                }
                if (this._element) {
                    var items = this._element.getElementsByClassName("active");
                    for (var len = items.length, i = len - 1; i >= 0; i--) {
                        if (items[i]) {
                            _utils_DOM__WEBPACK_IMPORTED_MODULE_11__["removeClass"](items[i], "active");
                        }
                    }
                }
                this.events.dispatchImmediately("closed", {
                    type: "closed",
                    target: this
                });
            };
            /**
             * Selects a branch in the menu.
             *
             * Handles closing of currently open branch.
             *
             * @ignore Exclude from docs
             * @param {IExportMenuItem} branch Branch to select
             */
            ExportMenu.prototype.selectBranch = function (branch) {
                var _this = this;
                // Cancel previous closure
                if (branch.closeTimeout) {
                    this.removeDispose(branch.closeTimeout);
                    branch.closeTimeout = undefined;
                }
                // Add active class
                _utils_DOM__WEBPACK_IMPORTED_MODULE_11__["addClass"](branch.interactions.element.parentElement, "active");
                // Remove current selection
                if (this._currentSelection && this._currentSelection !== branch && this._currentSelection.ascendants) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["concat"](_utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["fromArray"]([this._currentSelection]), this._currentSelection.ascendants.iterator()), function (ascendant) {
                        if (!branch.ascendants.contains(ascendant) && branch !== ascendant) {
                            _this.unselectBranch(ascendant, true);
                        }
                    });
                }
                // Select and/or cancel timeout for current ascendants
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](branch.ascendants.iterator(), function (ascendant) {
                    if (ascendant.closeTimeout) {
                        _this.removeDispose(ascendant.closeTimeout);
                        ascendant.closeTimeout = undefined;
                    }
                    _utils_DOM__WEBPACK_IMPORTED_MODULE_11__["addClass"](ascendant.interactions.element.parentElement, "active");
                });
                // Log current selection
                this._currentSelection = branch;
                // Invoke event
                if (this.events.isEnabled("branchselected")) {
                    var event_5 = {
                        type: "branchselected",
                        target: this,
                        branch: branch
                    };
                    this.events.dispatchImmediately("branchselected", event_5);
                }
            };
            /**
             * Unselects a branch. Also selects a branch one level up if necessary.
             *
             * @ignore Exclude from docs
             * @param {IExportMenuItem} branch Branch to unselect
             * @param {boolean}         simple If `true`, only the branch will be unselected without selecting parent branch
             */
            ExportMenu.prototype.unselectBranch = function (branch, simple) {
                // Remove active class
                _utils_DOM__WEBPACK_IMPORTED_MODULE_11__["removeClass"](branch.interactions.element.parentElement, "active");
                // Remove current selection
                if (this._currentSelection == branch) {
                    this._currentSelection = undefined;
                }
                // Invoke event
                if (this.events.isEnabled("branchunselected")) {
                    var event_6 = {
                        type: "branchunselected",
                        target: this,
                        branch: branch
                    };
                    this.events.dispatchImmediately("branchunselected", event_6);
                }
            };
            /**
             * Delay unselection of a branch. This can still be cancelled in some other
             * place if the branch or its children regain focus.
             *
             * @ignore Exclude from docs
             * @param {IExportMenuItem} branch Branch to unselect
             * @param {boolean}         simple If `true`, only the branch will be unselected without selecting parent branch
             */
            ExportMenu.prototype.delayUnselectBranch = function (branch, simple) {
                var _this = this;
                // Schedule branch unselection
                if (branch.closeTimeout) {
                    this.removeDispose(branch.closeTimeout);
                    branch.closeTimeout = undefined;
                }
                branch.closeTimeout = this.setTimeout(function () {
                    _this.unselectBranch(branch, simple);
                }, this.closeDelay);
                // Schedule unselection of all ascendants
                // In case focus went away from the export menu altogether, this will ensure
                // that all items will be closed.
                // In case we're jumping to other menu item, those delayed unselections will
                // be cancelled by `selectBranch`
                if (simple !== true && branch.ascendants) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](branch.ascendants.iterator(), function (ascendant) {
                        _this.delayUnselectBranch(ascendant, true);
                    });
                }
            };
            /**
             * Navigates the menu based on which direction kayboard key was pressed.
             *
             * @ignore Exclude from docs
             * @param {KeyboardKeys} key A key that was pressed
             */
            ExportMenu.prototype.moveSelection = function (key) {
                // Check if there's a current selection
                if (!this._currentSelection) {
                    return;
                }
                var newSelection;
                if (key == "up") {
                    // Try moving up in current menu list, or to the last item if already
                    // at the top
                    newSelection = this.getPrevSibling(this._currentSelection);
                }
                else if (key == "down") {
                    // Try moving down in current menu list, or to the top item if already
                    // at the bottom
                    newSelection = this.getNextSibling(this._currentSelection);
                }
                else if ((key == "left" && this.align == "right") || (key == "right" && this.align == "left")) {
                    var menu = this.getSubMenu(this._currentSelection);
                    // Go one level-deeper
                    if (menu != null) {
                        newSelection = menu[0];
                    }
                }
                else if ((key == "right" && this.align == "right") || (key == "left" && this.align == "left")) {
                    // Go one level-deeper
                    newSelection = this.getParentItem(this._currentSelection);
                }
                if (newSelection && newSelection !== this._currentSelection) {
                    this.selectBranch(newSelection);
                    this.setFocus(newSelection);
                    this._currentSelection = newSelection;
                }
            };
            /**
             * Returns all siblings of a menu item, including this same menu item.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}         branch  Menu item
             * @return {Array<IExportMenuItem>}          List of sibling menu items
             */
            ExportMenu.prototype.getSiblings = function (branch) {
                var parent = this.getParentItem(branch);
                if (parent && parent.menu) {
                    return parent.menu;
                }
                else {
                    return [];
                }
            };
            /**
             * Returns menu items parent item.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}            branch  Menu item
             * @return {Optional<IExportMenuItem>}          Parent menu item
             */
            ExportMenu.prototype.getParentItem = function (branch) {
                if (branch.ascendants && branch.ascendants.length) {
                    return branch.ascendants.getIndex(branch.ascendants.length - 1);
                }
                else {
                    return undefined;
                }
            };
            /**
             * Returns next sibling in the same menu branch. If there is no next sibling,
             * the first one is returned. If there is just one item, that item is
             * returned. Unsupported menu items are skipped.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}  branch  Menu item to search siblings for
             * @return {IExportMenuItem}          Menu item
             */
            ExportMenu.prototype.getNextSibling = function (branch) {
                var siblings = this.getSiblings(branch);
                if (siblings.length > 1) {
                    var next = siblings.indexOf(branch) + 1;
                    next = siblings.length == next ? 0 : next;
                    return siblings[next].unsupported ? this.getNextSibling(siblings[next]) : siblings[next];
                }
                else {
                    return branch;
                }
            };
            /**
             * Returns previous sibling in the same menu branch. If there is no next
             * sibling, the first one is returned. If there is just one item, that item is
             * returned. Unsupported menu items are skipped.
             *
             * @ignore Exclude from docs
             * @param  {IExportMenuItem}  branch  Menu item to search siblings for
             * @return {IExportMenuItem}          Menu item
             */
            ExportMenu.prototype.getPrevSibling = function (branch) {
                var siblings = this.getSiblings(branch);
                if (siblings.length > 1) {
                    var prev = siblings.indexOf(branch) - 1;
                    prev = prev == -1 ? siblings.length - 1 : prev;
                    return siblings[prev].unsupported ? this.getPrevSibling(siblings[prev]) : siblings[prev];
                }
                else {
                    return branch;
                }
            };
            /**
             * Attempts to set focus on particular menu element.
             *
             * @ignore Exclude from docs
             * @param {IExportMenuItem} branch Menu item
             */
            ExportMenu.prototype.setFocus = function (branch) {
                if (branch.interactions) {
                    branch.interactions.element.focus();
                }
            };
            /**
             * Attempts to remove focus from the menu element.
             *
             * @ignore Exclude from docs
             * @param {IExportMenuItem} branch Menu item
             */
            ExportMenu.prototype.setBlur = function (branch) {
                if (branch.interactions) {
                    branch.interactions.element.blur();
                }
            };
            return ExportMenu;
        }(_utils_Validatable__WEBPACK_IMPORTED_MODULE_7__["Validatable"]));
        //# sourceMappingURL=ExportMenu.js.map
        /***/ 
    }),
    /* 813 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(779);
        /* harmony import */ var _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(800);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(760);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        var rules = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_2__["Dictionary"]();
        /**
         * A dynamically-loadable CSS module for Export menu.
         *
         * @ignore Exclude from docs
         * @param  {string}     prefix  Prefix to addtach to class names
         * @return {IDisposer}          A MultiDisposer with style rules
         */
        /* harmony default export */ __webpack_exports__["default"] = (function (prefix) {
            var newPrefix = (prefix ? prefix : "amexport");
            var colorSet = new _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_1__["InterfaceColorSet"]();
            var counter = rules.insertKeyIfEmpty(newPrefix, function () {
                var disposer = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MultiDisposer"]([
                    /*new StyleRule(`.${newPrefix}-menu`, {
                        "opacity": "0.3",
                        "transition": "all 100ms ease-in-out",
                    }),
        
                    new StyleRule(`div:hover .${newPrefix}-menu, .${newPrefix}-menu.active`, {
                        "opacity": "0.9",
                    }),*/
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu-level-0", {
                        "position": "absolute",
                        "top": "5px",
                        "right": "5px",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu-level-0." + newPrefix + "-left", {
                        "right": "auto",
                        "left": "5px",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu-level-0." + newPrefix + "-right", {
                        "right": "5px",
                        "left": "auto",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu-level-0." + newPrefix + "-top", {
                        "top": "5px",
                        "bottom": "auto",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu-level-0." + newPrefix + "-bottom", {
                        "top": "auto",
                        "bottom": "5px",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item." + newPrefix + "-item-level-0", {
                        "opacity": "0.3",
                        "width": "30px",
                        "height": "30px",
                        "transition": "all 100ms ease-in-out",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("div:hover ." + newPrefix + "-item." + newPrefix + "-item-level-0, ." + newPrefix + "-item." + newPrefix + "-item-level-0.active", {
                        "opacity": "0.9",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item." + newPrefix + "-item-level-0 > a", {
                        "padding": "0",
                        "text-align": "center"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item." + newPrefix + "-item-level-0:before", {
                        "display": "block"
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item", {
                        "position": "relative",
                        "display": "block",
                        "opacity": "0",
                        "z-index": "1",
                        "border-radius": "3px",
                        "background-color": colorSet.getFor("secondaryButton").hex,
                        "padding": "0",
                        "margin": "1px 1px 0 0",
                        "color": colorSet.getFor("secondaryButton").alternative.hex,
                        "transition": "all 100ms ease-in-out, opacity 0.5s ease 0.5s",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-left ." + newPrefix + "-item", {
                        "margin": "1px 0 0 1px",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item:hover, ." + newPrefix + "-item.active", {
                        "background": colorSet.getFor("secondaryButtonHover").hex,
                        "color": colorSet.getFor("secondaryButtonText").hex,
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "position": "absolute",
                        "top": "-1px",
                        "right": "0",
                        "margin-right": "100%",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-left ." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "left": "0",
                        "right": "auto",
                        "margin-left": "100%",
                        "margin-right": "auto",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-right ." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "left": "auto",
                        "right": "0",
                        "margin-left": "auto",
                        "margin-right": "100%",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-top ." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "top": "-1px",
                        "bottom": "auto",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-bottom ." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "top": "auto",
                        "bottom": "0",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item > ." + newPrefix + "-menu", {
                        "display": "none",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item:hover > ." + newPrefix + "-menu, ." + newPrefix + "-item.active > ." + newPrefix + "-menu", {
                        "display": "block",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-item:hover > ." + newPrefix + "-menu > ." + newPrefix + "-item, ." + newPrefix + "-item.active > ." + newPrefix + "-menu > ." + newPrefix + "-item", {
                        "opacity": "1",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-menu", {
                        "display": "block",
                        "list-style": "none",
                        "margin": "0",
                        "padding": "0",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-label", {
                        "display": "block",
                        "cursor": "default",
                        "padding": "0.5em 1em",
                    }),
                    new _utils_DOM__WEBPACK_IMPORTED_MODULE_0__["StyleRule"]("." + newPrefix + "-clickable", {
                        "cursor": "pointer",
                    }),
                ]);
                return new _utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["CounterDisposer"](function () {
                    rules.removeKey(newPrefix);
                    disposer.dispose();
                });
            });
            return counter.increment();
        });
        //# sourceMappingURL=ExportCSS.js.map
        /***/ 
    }),
    /* 814 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Validatable", function () { return Validatable; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * This module defines a [[Validatable]] class which can be used by all
         * non-[[Sprite]] classes to use system beats to revalidate themselves.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * This module defines a [[Validatable]] class which can be used by all
         * non-[[Sprite]] classes to use system update cycle to revalidate themselves.
         *
         * @ignore Exclude from docs
         */
        var Validatable = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Validatable, _super);
            function Validatable() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * Is invalid and should be revalidated?
                 *
                 * @type {boolean}
                 */
                _this._invalid = false;
                return _this;
            }
            /**
             * Invalidates the element, so that it can re-validate/redraw itself in the
             * next cycle.
             *
             * @ignore Exclude from docs
             */
            Validatable.prototype.invalidate = function () {
                if (this._invalid === false) {
                    this._invalid = true;
                    _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].events.on("exitframe", this.validate, this);
                }
            };
            /**
             * Validates itself.
             *
             * Most probably the extending class will have an overriding `validate()`
             * method which will do actual work, as well as call this method using
             * `super.validate()`.
             *
             * @ignore Exclude from docs
             */
            Validatable.prototype.validate = function () {
                if (this._invalid === true) {
                    this._invalid = false;
                    _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].events.off("exitframe", this.validate, this);
                }
            };
            return Validatable;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        //# sourceMappingURL=Validatable.js.map
        /***/ 
    }),
    /* 815 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "load", function () { return load; });
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(757);
        /**
         * A collection of network-related functions
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Loads an external file via its URL.
         *
         * Please note that this is an asynchronous function.
         *
         * It will not return the result, but rather a `Promise`.
         *
         * You can use the `await` notion, or `then()`.
         *
         * ```TypeScript
         * // Using await
         * let response = await Net.load( "http://www.my.com/data.json" );
         * console.log( response.response );
         *
         * // Using then()
         * Net.load( "http://www.my.com/data.json" ).then( ( response ) => {
         *   console.log( response.response );
         * } );
         * ```
         * ```JavaScript
         * // Using then()
         * Net.load( "http://www.my.com/data.json" ).then( function( response ) {
         *   console.log( response.response );
         * } );
         * ```
         *
         * @async
         * @param  {string}                      url      URL for the file to load
         * @param  {A}                           target   A target element that is requesting the net load
         * @param  {INetRequestOptions}          options  Request options
         * @return {Promise<INetLoadResult<A>>}           Result (Promise)
         */
        function load(url, target, options) {
            return new Promise(function (success, error) {
                // Is return type Blob?
                var isBlob = _Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](options) && options.responseType == "blob";
                // Create request and set up handlers
                var xhr = new XMLHttpRequest();
                xhr.onload = function () {
                    if (xhr.status === 200) {
                        var response = void 0;
                        var blob = void 0;
                        if (isBlob) {
                            blob = xhr.response;
                        }
                        else {
                            response = xhr.responseText || xhr.response;
                        }
                        var output = {
                            xhr: xhr,
                            error: false,
                            response: response,
                            blob: blob,
                            type: xhr.getResponseHeader("Content-Type"),
                            target: target
                        };
                        success(output);
                    }
                    else {
                        error({
                            xhr: xhr,
                            error: true,
                            type: xhr.getResponseHeader("Content-Type"),
                            target: target
                        });
                    }
                };
                xhr.onerror = function () {
                    error({
                        xhr: xhr,
                        error: true,
                        type: xhr.getResponseHeader("Content-Type"),
                        target: target
                    });
                };
                // Open request
                xhr.open("GET", url, true);
                if (options && options.withCredentials) {
                    xhr.withCredentials = true;
                }
                // Process options
                if (_Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](options)) {
                    if (_Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](options.requestHeaders)) {
                        for (var i = 0; i < options.requestHeaders.length; i++) {
                            var header = options.requestHeaders[i];
                            xhr.setRequestHeader(header.key, header.value);
                        }
                    }
                    if (_Type__WEBPACK_IMPORTED_MODULE_0__["hasValue"](options.responseType)) {
                        xhr.responseType = options.responseType;
                    }
                }
                // Send request
                xhr.send();
            });
        }
        //# sourceMappingURL=Net.js.map
        /***/ 
    }),
    /* 816 */ ,
    /* 817 */ ,
    /* 818 */ ,
    /* 819 */ ,
    /* 820 */ ,
    /* 821 */ ,
    /* 822 */ ,
    /* 823 */ ,
    /* 824 */ ,
    /* 825 */ ,
    /* 826 */ ,
    /* 827 */ ,
    /* 828 */ ,
    /* 829 */ ,
    /* 830 */ ,
    /* 831 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rectangle", function () { return Rectangle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /**
         * Functionality for drawing rectangles.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to draw a rectangle.
         *
         * @see {@link IRectangleEvents} for a list of available events
         * @see {@link IRectangleAdapters} for a list of available Adapters
         */
        var Rectangle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Rectangle, _super);
            /**
             * Constructor
             * * Creates a `<rect>` element
             * * Creates default state
             */
            function Rectangle() {
                var _this = _super.call(this) || this;
                _this.className = "Rectangle";
                _this.element = _this.paper.add("rect");
                //this.pixelPerfect = false;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Rectangle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var precision = this._positionPrecision;
                if (this.pixelPerfect) {
                    precision = 0;
                }
                var w = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["round"](this.innerWidth, precision);
                var h = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["round"](this.innerHeight, precision);
                this.element.attr({
                    "width": w,
                    "height": h
                });
            };
            /**
             * Updates bounding box based on element dimension settings.
             *
             * @ignore Exclude from docs
             */
            Rectangle.prototype.measureElement = function () {
                this._bbox = {
                    x: 0,
                    y: 0,
                    width: this.innerWidth,
                    height: this.innerHeight
                };
            };
            return Rectangle;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Rectangle"] = Rectangle;
        //# sourceMappingURL=Rectangle.js.map
        /***/ 
    }),
    /* 832 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Component", function () { return Component; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _utils_SortedList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(771);
        /* harmony import */ var _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(760);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(754);
        /* harmony import */ var _data_DataSource__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(833);
        /* harmony import */ var _responsive_Responsive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(838);
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(750);
        /* harmony import */ var _DataItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(860);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(751);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(756);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(755);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(787);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(795);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(762);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A Component represents an independent functional element or control, that
         * can have it's own behavior, children, data, etc.
         *
         * A few examples of a Component: [[Legend]], [[Series]], [[Scrollbar]].
         *
         * @see {@link IComponentEvents} for a list of available events
         * @see {@link IComponentAdapters} for a list of available Adapters
         * @important
         */
        var Component = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Component, _super);
            /**
             * Constructor
             */
            function Component() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Holds data field names.
                 *
                 * Data fields define connection beween [[DataItem]] and actual properties
                 * in raw data.
                 *
                 * @type {IComponentDataFields}
                 */
                _this.dataFields = {};
                /**
                 * A list of [[DataSource]] definitions of external data source.
                 *
                 * @ignore Exclude from docs
                 * @type {Object}
                 */
                _this._dataSources = {};
                /**
                 * This is used when only new data is invalidated (if added using `addData`
                 * method).
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                _this._parseDataFrom = 0;
                /**
                 * Holds the disposers for the dataItems and dataUsers
                 *
                 * @ignore Exclude from docs
                 * @type {Array<IDisposer>}
                 */
                _this._dataDisposers = [];
                /**
                 * [_start description]
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                _this._start = 0;
                /**
                 * [_end description]
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                _this._end = 1;
                /**
                 * If set to `true`, changing data range in element will not trigger
                 * `daterangechanged` event.
                 *
                 * @type {boolean}
                 */
                _this.skipRangeEvent = false;
                /**
                 * Whenever selected scope changes (chart is zoomed or panned), for example
                 * by interaction from a Scrollbar, or API, a chart needs to reposition
                 * its contents.
                 *
                 * `rangeChangeDuration` influences how this is performed.
                 *
                 * If set to zero (0), the change will happen instantenously.
                 *
                 * If set to non-zero value, the chart will gradually animate into new
                 * position for the set amount of milliseconds.
                 *
                 * @default 0
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {number}
                 */
                _this.rangeChangeDuration = 0;
                /**
                 * An easing function to use for range change animation.
                 *
                 * @see {@link Ease}
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {function}
                 */
                _this.rangeChangeEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_13__["cubicOut"];
                /**
                 * A duration (ms) of each data parsing step. A Component parses its data in
                 * chunks in order to avoid completely freezing the machine when large data
                 * sets are used. This setting will control how many milliseconds should pass
                 * when parsing data until parser stops for a brief moment to let other
                 * processes catch up.
                 *
                 * @type {number}
                 */
                _this.parsingStepDuration = 50;
                /**
                 * [dataInvalid description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {boolean}
                 */
                _this.dataInvalid = false;
                /**
                 *
                 * @ignore Exclude from docs
                 */
                _this.rawDataInvalid = false;
                /**
                 * [dataRangeInvalid description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {boolean}
                 */
                _this.dataRangeInvalid = false;
                /**
                 * [dataItemsInvalid description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {boolean}
                 */
                _this.dataItemsInvalid = false;
                /**
                 * If set to a non-zero number the element will "animate" data values of its
                 * children.
                 *
                 * This will happen on first load and whenever data values change.
                 *
                 * Enabling interpolation will mean that elements will transit smoothly into
                 * new values rather than updating instantly.
                 *
                 * @default 0
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {number}
                 */
                _this.interpolationDuration = 0;
                /**
                 * An easing function to use for interpolating values when transiting from
                 * one source value to another.
                 *
                 * @default cubicOut
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @see {@link Ease}
                 * @type {function}
                 */
                _this.interpolationEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_13__["cubicOut"];
                /**
                 * Indicates whether transition between data item's values should start and
                 * play out all at once, or with a small delay (as defined by
                 * `sequencedInterpolationDelay`) for each subsequent data item.
                 *
                 * @default true
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {boolean}
                 */
                _this.sequencedInterpolation = true;
                /**
                 * A delay (ms) to wait between animating each subsequent data item's
                 * interpolation animation.
                 *
                 * Relative only if `sequencedInterpolation = true`.
                 *
                 * @default 0
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/animations/} for more info about animations
                 * @type {number}
                 */
                _this.sequencedInterpolationDelay = 0;
                /**
                 * A progress (0-1) for the data validation process.
                 *
                 * @ignore Exclude from docs
                 * @type {number}
                 */
                _this.dataValidationProgress = 0;
                _this._addAllDataItems = true;
                _this.className = "Component";
                _this.invalidateData();
                // TODO what about remove ?
                _this.dataUsers.events.on("inserted", _this.handleDataUserAdded, _this, false);
                // Set up disposers
                _this._disposers.push(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_5__["MultiDisposer"](_this._dataDisposers));
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {DataItem} Data Item
             */
            Component.prototype.createDataItem = function () {
                return new _DataItem__WEBPACK_IMPORTED_MODULE_9__["DataItem"]();
            };
            /**
             * [handleDataUserAdded description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {IListEvents<Component>["inserted"]} event Event object
             */
            Component.prototype.handleDataUserAdded = function (event) {
                var dataUser = event.newValue;
                dataUser.dataProvider = this;
            };
            /**
             * [handleDataItemValueChange description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Component.prototype.handleDataItemValueChange = function (dataItem) {
                if (!this.dataItemsInvalid) {
                    this.invalidateDataItems();
                }
            };
            /**
             * [handleDataItemWorkingValueChange description]
             *
             * @ignore Exclude from docs
             */
            Component.prototype.handleDataItemWorkingValueChange = function (dataItem) {
            };
            /**
             * [handleDataItemWorkingLocationChange description]
             *
             * @ignore Exclude from docs
             */
            Component.prototype.handleDataItemWorkingLocationChange = function (dataItem) {
            };
            /**
             * [handleDataItemCalculatedValueChange description]
             *
             * @ignore Exclude from docs
             */
            Component.prototype.handleDataItemCalculatedValueChange = function (dataItem) {
            };
            /**
             * [handleDataItemPropertyChange description]
             *
             * @ignore Exclude from docs
             */
            Component.prototype.handleDataItemPropertyChange = function (dataItem) {
            };
            /**
             * Populates a [[DataItem]] width data from data source.
             *
             * Loops through all the fields and if such a field is found in raw data
             * object, a corresponding value on passed in `dataItem` is set.
             *
             * @ignore Exclude from docs
             * @param {Object} item
             */
            Component.prototype.processDataItem = function (dataItem, dataContext) {
                var _this = this;
                if (dataItem) {
                    if (!dataContext) {
                        dataContext = {};
                    }
                    // store reference to original data item
                    dataItem.dataContext = dataContext;
                    var hasSomeValues_1 = false;
                    _utils_Object__WEBPACK_IMPORTED_MODULE_16__["each"](this.dataFields, function (key, fieldValue) {
                        var fieldName = key;
                        var value = dataContext[fieldValue];
                        // Apply adapters to a retrieved value
                        value = _this.adapter.apply("dataContextValue", {
                            field: fieldName,
                            value: value,
                            dataItem: dataItem
                        }).value;
                        if (dataItem.hasChildren[fieldName]) {
                            if (value) {
                                hasSomeValues_1 = true;
                                var children = new _utils_SortedList__WEBPACK_IMPORTED_MODULE_3__["OrderedListTemplate"](_this.createDataItem());
                                children.events.on("inserted", _this.handleDataItemAdded, _this, false);
                                children.events.on("removed", _this.handleDataItemRemoved, _this, false);
                                _this._dataDisposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_2__["ListDisposer"](children));
                                var count = value.length;
                                for (var i = 0; i < count; i++) {
                                    var rawDataItem = value[i];
                                    var childDataItem = children.create();
                                    childDataItem.parent = dataItem;
                                    _this.processDataItem(childDataItem, rawDataItem);
                                }
                                var anyDataItem = dataItem;
                                anyDataItem[fieldName] = children;
                            }
                        }
                        else {
                            // data is converted to numbers/dates in each dataItem
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](value)) {
                                hasSomeValues_1 = true;
                                dataItem[fieldName] = value;
                            }
                        }
                    });
                    _utils_Object__WEBPACK_IMPORTED_MODULE_16__["each"](this.propertyFields, function (key, fieldValue) {
                        var f = key;
                        var value = dataContext[fieldValue];
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](value)) {
                            hasSomeValues_1 = true;
                            dataItem.setProperty(f, value);
                        }
                    });
                    // @todo we might need some flag which would tell whether we should create empty data items or not. 
                    if (!this._addAllDataItems && !hasSomeValues_1) {
                        this.dataItems.remove(dataItem);
                    }
                }
            };
            /**
             *
             * When validating raw data, instead of processing data item, we update it
             *
             * @ignore Exclude from docs
             * @param {Object} item
             */
            Component.prototype.updateDataItem = function (dataItem) {
                var _this = this;
                if (dataItem) {
                    var dataContext_1 = dataItem.dataContext;
                    _utils_Object__WEBPACK_IMPORTED_MODULE_16__["each"](this.dataFields, function (key, fieldValue) {
                        var fieldName = key;
                        var value = dataContext_1[fieldValue];
                        // Apply adapters to a retrieved value
                        value = _this.adapter.apply("dataContextValue", {
                            field: fieldName,
                            value: value,
                            dataItem: dataItem
                        }).value;
                        if (dataItem.hasChildren[fieldName]) {
                            if (value) {
                                var anyDataItem = dataItem;
                                var children = (anyDataItem[fieldName]);
                                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](children.iterator(), function (child) {
                                    _this.updateDataItem(child);
                                });
                            }
                        }
                        else {
                            // data is converted to numbers/dates in each dataItem
                            if (_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](value)) {
                                dataItem[fieldName] = value;
                            }
                        }
                    });
                    _utils_Object__WEBPACK_IMPORTED_MODULE_16__["each"](this.propertyFields, function (key, fieldValue) {
                        var f = key;
                        var value = dataContext_1[fieldValue];
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](value)) {
                            dataItem.setProperty(f, value);
                        }
                    });
                }
            };
            /**
             * [validateDataElements description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Component.prototype.validateDataElements = function () {
                var count = this.endIndex;
                for (var i = this.startIndex; i < count; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    // TODO is this correct
                    if (dataItem) {
                        this.validateDataElement(dataItem);
                    }
                }
            };
            /**
             * Validates this element and its related elements.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.validate = function () {
                this.validateDataElements();
                _super.prototype.validate.call(this);
            };
            /**
             * [validateDataElement description]
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]} dataItem [description]
             */
            Component.prototype.validateDataElement = function (dataItem) {
            };
            /**
             * Adds one or several (array) of data items to the existing data.
             *
             * @param {Object | Object[]} rawDataItem One or many raw data item objects
             */
            Component.prototype.addData = function (rawDataItem, removeCount) {
                var _this = this;
                // need to check if data is invalid, as addData might be called multiple times
                if (!this.dataInvalid) {
                    this._parseDataFrom = this.data.length; // save length of parsed data
                }
                if (rawDataItem instanceof Array) {
                    // can't use concat because new array is returned
                    _utils_Array__WEBPACK_IMPORTED_MODULE_12__["each"](rawDataItem, function (dataItem) {
                        _this.data.push(dataItem);
                    });
                }
                else {
                    this.data.push(rawDataItem); // add to raw data array
                }
                this.removeData(removeCount);
                this.invalidateData();
            };
            /**
             * Removes elements from the beginning of data
             *
             * @param {Optional<number>} coun number of elements to remove
             */
            Component.prototype.removeData = function (count) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](count)) {
                    while (count > 0) {
                        var dataItem = this.dataItems.getIndex(0);
                        if (dataItem) {
                            this.dataItems.remove(dataItem);
                        }
                        _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (dataUser) {
                            var dataItem = dataUser.dataItems.getIndex(0);
                            if (dataItem) {
                                dataUser.dataItems.remove(dataItem);
                            }
                        });
                        this.data.shift();
                        this._parseDataFrom--;
                        count--;
                    }
                }
            };
            /**
             * Triggers a data (re)parsing.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.invalidateData = function () {
                if (this.disabled || this.isTemplate) {
                    return;
                }
                //if(!this.dataInvalid){
                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].addToInvalidComponents(this);
                _System__WEBPACK_IMPORTED_MODULE_8__["system"].requestFrame();
                this.dataInvalid = true;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (x) {
                    x.invalidateDataItems();
                });
                //}
            };
            /**
             * [invalidateDataUsers description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Component.prototype.invalidateDataUsers = function () {
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (x) {
                    x.invalidate();
                });
            };
            /**
             * Invalidates data values. When data array is not changed, but values within
             * it changes, we invalidate data so that component would process changes.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.invalidateDataItems = function () {
                if (this.disabled || this.isTemplate) {
                    return;
                }
                //if(!this.dataItemsInvalid){
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["move"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataItems, this);
                _System__WEBPACK_IMPORTED_MODULE_8__["system"].requestFrame();
                this.dataItemsInvalid = true;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (x) {
                    x.invalidateDataItems();
                });
                //}
            };
            /**
             * Invalidates data range. This is done when data which must be shown
             * changes (chart is zoomed for example).
             *
             * @ignore Exclude from docs
             */
            Component.prototype.invalidateDataRange = function () {
                if (this.disabled || this.isTemplate) {
                    return;
                }
                //if(!this.dataRangeInvalid){
                this.dataRangeInvalid = true;
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["move"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataRange, this);
                _System__WEBPACK_IMPORTED_MODULE_8__["system"].requestFrame();
                //}
            };
            /**
             * Processes data range.
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            Component.prototype.validateDataRange = function () {
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataRange, this);
                this.dataRangeInvalid = false;
                if (this.startIndex != this._prevStartIndex || this.endIndex != this._prevEndIndex) {
                    this.rangeChangeUpdate();
                }
                this.appendDataItems();
                this.invalidate();
                this.dispatchImmediately("datarangechanged");
            };
            /**
             * [sliceData description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            Component.prototype.sliceData = function () {
                this._workingStartIndex = this.startIndex;
                this._workingEndIndex = this.endIndex;
            };
            /**
             * [rangeChangeUpdate description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            Component.prototype.rangeChangeUpdate = function () {
                this.sliceData();
                this._prevStartIndex = this.startIndex;
                this._prevEndIndex = this.endIndex;
            };
            /**
             * [appendDataItems description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            Component.prototype.appendDataItems = function () {
                // TODO use an iterator instead
                var count = this.endIndex;
                for (var i = this.startIndex; i < count; i++) {
                    // data item
                    var dataItem = this.dataItems.getIndex(i);
                    if (dataItem) {
                        dataItem.__disabled = false;
                    }
                }
                for (var i = 0; i < this.startIndex; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    dataItem.__disabled = true;
                }
                for (var i = this.endIndex; i < this.dataItems.length; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    dataItem.__disabled = true;
                }
            };
            /**
             * If you want to have a smooth transition from one data values to another, you change your raw data and then you must call this method.
             * then instead of redrawing everything, the chart will check raw data and smoothly transit from previous to new data
             */
            Component.prototype.invalidateRawData = function () {
                if (this.disabled || this.isTemplate) {
                    return;
                }
                //if(!this.rawDataInvalid){
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["move"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidRawDatas, this);
                _System__WEBPACK_IMPORTED_MODULE_8__["system"].requestFrame();
                this.rawDataInvalid = true;
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (x) {
                    x.invalidateRawData();
                });
                //}
            };
            /**
             * @ignore
             */
            Component.prototype.validateRawData = function () {
                var _this = this;
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidRawDatas, this);
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataItems.iterator(), function (dataItem) {
                    if (dataItem) {
                        _this.updateDataItem(dataItem);
                    }
                });
            };
            /**
             * @ignoref
             */
            Component.prototype.disposeData = function () {
                if (this.inited) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_12__["each"](this._dataDisposers, function (x) {
                        x.dispose();
                    });
                    // and for all components
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (dataUser) {
                        dataUser.disposeData();
                    });
                    this._dataDisposers.length = 0;
                    this._startIndex = undefined;
                    this._endIndex = undefined;
                    // dispose old
                    this.dataItems.clear();
                }
            };
            /**
             * Validates (processes) data.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.validateData = function () {
                this.dispatchImmediately("beforedatavalidated");
                this.dataInvalid = false;
                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].removeFromInvalidComponents(this);
                this.dataValidationProgress = 0;
                // need this to slice new data
                this._prevStartIndex = undefined;
                this._prevEndIndex = undefined;
                // todo: this needs some overthinking, maybe some extra settings like zoomOotonDataupdate like in v3 or so. some charts like pie chart probably should act like this always
                this._startIndex = undefined;
                this._endIndex = undefined;
                if (this.dataFields.data && this.dataItem) {
                    var dataContext = this.dataItem.dataContext;
                    this._data = dataContext[this.dataFields.data];
                }
                // data items array is reset only if all data is validated, if _parseDataFrom is not 0, we append new data only
                // check heatmap demo if uncommented
                // fixed both issues by adding && this.data.length > 0 
                // check adding series example if changed
                if (this._parseDataFrom === 0 && this.data.length > 0) {
                    this.disposeData();
                }
                if (this.data.length > 0) {
                    var preloader = this.preloader;
                    // and for all components
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.dataUsers.iterator(), function (dataUser) {
                        // todo: this needs some overthinking, maybe some extra settings like zoomOUtonDataupdate like in v3 or so. some charts like pie chart probably should act like this always
                        dataUser._startIndex = undefined;
                        dataUser._endIndex = undefined;
                    });
                    var counter = 0;
                    var startTime = Date.now();
                    // parse data
                    var i = this._parseDataFrom;
                    var n = this.data.length;
                    var _loop_1 = function () {
                        var rawDataItem = this_1.data[i];
                        var dataItem = this_1.dataItems.create();
                        this_1.processDataItem(dataItem, rawDataItem);
                        _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this_1.dataUsers.iterator(), function (dataUser) {
                            if (dataUser.data.length == 0) { // checking if data is not set directly
                                var dataUserDataItem = dataUser.dataItems.create();
                                dataUser.processDataItem(dataUserDataItem, rawDataItem);
                            }
                        });
                        counter++;
                        // show preloader if this takes too many time
                        if (counter == 100) { // no need to check it on each data item
                            counter = 0;
                            var elapsed = Date.now() - startTime;
                            if (elapsed > this_1.parsingStepDuration) {
                                if (i < this_1.data.length - 10) {
                                    this_1._parseDataFrom = i + 1;
                                    // update preloader
                                    if (preloader) {
                                        if (i / this_1.data.length > 0.5 && !preloader.visible) {
                                            // do not start showing
                                        }
                                        else {
                                            preloader.progress = i / this_1.data.length;
                                        }
                                    }
                                    this_1.dataValidationProgress = i / this_1.data.length;
                                    i = this_1.data.length; // stops cycle
                                    this_1.invalidateData();
                                    return { value: void 0 };
                                }
                            }
                        }
                    };
                    var this_1 = this;
                    for (i; i < n; i++) {
                        var state_1 = _loop_1();
                        if (typeof state_1 === "object")
                            return state_1.value;
                    }
                    if (preloader) {
                        preloader.progress = 1;
                    }
                }
                this.dataValidationProgress = 1;
                this._parseDataFrom = 0; // reset this index, it is set to dataItems.length if addData() method was used.
                this.invalidateDataItems();
                if (!this._internalDefaultsApplied) {
                    this.applyInternalDefaults();
                }
                this.dispatch("datavalidated"); // can't zoom chart if dispatched immediately
            };
            /**
             * Validates (processes) data items.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.validateDataItems = function () {
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataItems, this);
                this.dataItemsInvalid = false;
                this.invalidateDataRange();
                this.dispatch("dataitemsvalidated");
            };
            Object.defineProperty(Component.prototype, "data", {
                /**
                 * Returns element's source (raw) data.
                 *
                 * @return {any[]} Data
                 */
                get: function () {
                    if (!this._data) {
                        this._data = [];
                    }
                    return this.adapter.apply("data", this._data);
                },
                /**
                 * Sets source (raw) data for the element. The "data" is always an `Array`
                 * of objects.
                 *
                 * @param {any[]} value Data
                 */
                set: function (value) {
                    // array might be the same, but there might be items added
                    // todo: check if array changed, toString maybe?
                    //if (this._data != value) {
                    this.disposeData();
                    this._data = value;
                    if (value && value.length > 0) {
                        this.invalidateData();
                    }
                    //}
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns (creates if necessary) a [[DataSource]] bound to any specific
             * property.
             *
             * For example if I want to bind `data` to an external JSON file, I'd create
             * a DataSource for it.
             *
             * @param  {string}      property  Property to bind external data to
             * @return {DataSource}            A DataSource for property
             */
            Component.prototype.getDataSource = function (property) {
                var _this = this;
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](this._dataSources[property])) {
                    this._dataSources[property] = new _data_DataSource__WEBPACK_IMPORTED_MODULE_6__["DataSource"]();
                    this._dataSources[property].component = this;
                    this.setDataSourceEvents(this._dataSources[property], property);
                    this._dataSources[property].adapter.add("dateFields", function (val) {
                        return _this.dataSourceDateFields(val);
                    });
                    this._dataSources[property].adapter.add("numberFields", function (val) {
                        return _this.dataSourceNumberFields(val);
                    });
                    this.events.on("inited", function () {
                        _this.loadData(property);
                    }, this, false);
                }
                return this._dataSources[property];
            };
            Object.defineProperty(Component.prototype, "dataSource", {
                /**
                 * @return {DataSource} Data source
                 */
                get: function () {
                    if (!this._dataSources["data"]) {
                        this.getDataSource("data");
                    }
                    return this._dataSources["data"];
                },
                /**
                 *A [[DataSource]] to be used for loading Component's data.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/loading-external-data/} for more on loading external data
                 * @param {DataSource}  value  Data source
                 */
                set: function (value) {
                    var _this = this;
                    if (this._dataSources["data"]) {
                        this.removeDispose(this._dataSources["data"]);
                    }
                    this._dataSources["data"] = value;
                    this._dataSources["data"].component = this;
                    this.events.on("inited", function () {
                        _this.loadData("data");
                    }, this, false);
                    this.setDataSourceEvents(value, "data");
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Initiates loading of the external data via [[DataSource]].
             *
             * @ignore Exclude from docs
             */
            Component.prototype.loadData = function (property) {
                this._dataSources[property].load();
            };
            /**
             * This function is called by the [[DataSource]]'s `dateFields` adapater
             * so that particular chart types can popuplate this setting with their
             * own type-speicifc data fields so they are parsed properly.
             *
             * @ignore Exclude from docs
             * @param  {string[]}  value  Array of date fields
             * @return {string[]}         Array of date fields populated with chart's date fields
             */
            Component.prototype.dataSourceDateFields = function (value) {
                return value;
            };
            /**
             * This function is called by the [[DataSource]]'s `numberFields` adapater
             * so that particular chart types can popuplate this setting with their
             * own type-speicifc data fields so they are parsed properly.
             *
             * @ignore Exclude from docs
             * @param  {string[]}  value  Array of number fields
             * @return {string[]}         Array of number fields populated with chart's number fields
             */
            Component.prototype.dataSourceNumberFields = function (value) {
                return value;
            };
            /**
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {string[]}  list        [description]
             * @param  {object}    dataFields  [description]
             * @param  {string[]}  targetList  [description]
             * @return {string[]}              [description]
             */
            Component.prototype.populateDataSourceFields = function (list, dataFields, targetList) {
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["each"](targetList, function (value) {
                    if (dataFields[value] && _utils_Array__WEBPACK_IMPORTED_MODULE_12__["indexOf"](list, dataFields[value]) === -1) {
                        list.push(dataFields[value]);
                    }
                });
                return list;
            };
            /**
             * Sets events on a [[DataSource]].
             *
             * @ignore Exclude from docs
             */
            Component.prototype.setDataSourceEvents = function (ds, property) {
                var _this = this;
                ds.events.on("started", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 0;
                        //preloader.label.text = this.language.translate("Loading");
                    }
                }, undefined, false);
                ds.events.on("loadstarted", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 0.25;
                    }
                }, undefined, false);
                ds.events.on("loadended", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 0.5;
                    }
                }, undefined, false);
                ds.events.on("parseended", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 0.75;
                    }
                }, undefined, false);
                ds.events.on("ended", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 1;
                    }
                }, undefined, false);
                ds.events.on("error", function (ev) {
                    var preloader = _this.preloader;
                    if (preloader) {
                        preloader.progress = 1;
                    }
                    _this.openModal(ev.message);
                }, undefined, false);
                if (property) {
                    ds.events.on("done", function (ev) {
                        var preloader = _this.preloader;
                        if (preloader) {
                            preloader.progress = 1;
                        }
                        if (property == "data" && !_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isArray"](ev.data)) {
                            ev.data = [ev.data];
                        }
                        if (ds.incremental && property == "data" && _this.data.length) {
                            _this.addData(ev.data, ds.keepCount ? ev.data.length : 0);
                        }
                        else {
                            _this[property] = ev.data;
                        }
                    });
                }
            };
            Object.defineProperty(Component.prototype, "responsive", {
                /**
                 * @return {DataSource} Data source
                 */
                get: function () {
                    if (!this._responsive) {
                        this._responsive = new _responsive_Responsive__WEBPACK_IMPORTED_MODULE_7__["Responsive"]();
                        this._responsive.component = this;
                    }
                    return this._responsive;
                },
                /**
                 * A [[Responsive]] instance to be used when applying conditional
                 * property values.
                 *
                 * NOTE: Responsive features are currently in development and may not work
                 * as expected, if at all.
                 *
                 * @param {Responsive}  value  Data source
                 */
                set: function (value) {
                    this._responsive = value;
                    this._responsive.component = this;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets current zoom.
             *
             * The range uses relative values from 0 to 1, with 0 marking beginning and 1
             * marking end of the available data range.
             *
             * This method will not have any effect when called on a chart object.
             * Since the chart can have a number of axes and series, each with its own
             * data, the meaning of "range" is very ambiguous.
             *
             * To zoom the chart use `zoom*` methods on its respective axes.
             *
             * @param  {IRange}  range          Range
             * @param  {boolean} skipRangeEvent Should rangechanged event not be triggered?
             * @param  {boolean} instantly      Do not animate?
             * @return {IRange}                 Actual modidied range (taking `maxZoomFactor` into account)
             */
            Component.prototype.zoom = function (range, skipRangeEvent, instantly) {
                var _this = this;
                if (skipRangeEvent === void 0) {
                    skipRangeEvent = false;
                }
                if (instantly === void 0) {
                    instantly = false;
                }
                var start = range.start;
                var end = range.end;
                var priority = range.priority;
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](start) || !_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](end)) {
                    return { start: this.start, end: this.end };
                }
                if (this._finalStart != start || this._finalEnd != end) {
                    var maxZoomFactor = this.maxZoomFactor;
                    // most likely we are dragging left scrollbar grip here, so we tend to modify end
                    if (priority == "start") {
                        // add to the end
                        if (1 / (end - start) > maxZoomFactor) {
                            end = start + 1 / maxZoomFactor;
                        }
                        //unless end is > 0
                        if (end > 1 && end - start < 1 / maxZoomFactor) {
                            //end = 1;
                            start = end - 1 / maxZoomFactor;
                        }
                    }
                    // most likely we are dragging right, so we modify left
                    else {
                        // remove from start
                        if (1 / (end - start) > maxZoomFactor) {
                            start = end - 1 / maxZoomFactor;
                        }
                        if (start < 0 && end - start < 1 / maxZoomFactor) {
                            //start = 0;
                            end = start + 1 / maxZoomFactor;
                        }
                    }
                    this._finalEnd = end;
                    this._finalStart = start;
                    this.skipRangeEvent = skipRangeEvent;
                    if (this.rangeChangeDuration > 0 && !instantly) {
                        // todo: maybe move this to Animation
                        var rangeChangeAnimation = this.rangeChangeAnimation;
                        if (rangeChangeAnimation && rangeChangeAnimation.progress < 1) {
                            var options = rangeChangeAnimation.animationOptions;
                            if (options.length > 1) {
                                if (options[0].to == start && options[1].to == end) {
                                    return { start: start, end: end };
                                }
                            }
                        }
                        this.dispatchImmediately("rangechangestarted");
                        if (this.rangeChangeAnimation) {
                            this.rangeChangeAnimation.kill();
                        }
                        rangeChangeAnimation = this.animate([{ property: "start", to: start }, { property: "end", to: end }], this.rangeChangeDuration, this.rangeChangeEasing);
                        this.rangeChangeAnimation = rangeChangeAnimation;
                        if (rangeChangeAnimation && !rangeChangeAnimation.isFinished()) {
                            rangeChangeAnimation.events.on("animationended", function () {
                                _this.dispatchImmediately("rangechangeended");
                            });
                        }
                        else {
                            this.dispatchImmediately("rangechangeended");
                        }
                    }
                    else {
                        this.start = start;
                        this.end = end;
                    }
                }
                return { start: start, end: end };
            };
            /**
             * Zooms to specific data items using their index in data.
             *
             * This method will not have any effect when called on a chart object.
             * Since the chart can have a number of axes and series, each with its own
             * data, the meaning of "index" is very ambiguous.
             *
             * To zoom the chart use `zoom*` methods on its respective axes.
             *
             * @param {number}  startIndex     Index of the starting data item
             * @param {number}  endIndex       Index of the ending data item
             * @param {boolean} skipRangeEvent Should rangechanged event not be triggered?
             * @param {boolean} instantly      Do not animate?
             */
            Component.prototype.zoomToIndexes = function (startIndex, endIndex, skipRangeEvent, instantly) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](startIndex) || !_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](endIndex)) {
                    return;
                }
                var start = startIndex / this.dataItems.length;
                var end = endIndex / this.dataItems.length;
                this.zoom({ start: start, end: end }, skipRangeEvent, instantly);
            };
            Object.defineProperty(Component.prototype, "zoomFactor", {
                /**
                 * A current zoom factor (0-1). 1 meaning fully zoomed out. (showing all of
                 * the available data)
                 *
                 * @return {number} Zoom factor
                 */
                get: function () {
                    return _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](1 / (this.end - this.start), 1, this.maxZoomFactor);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Component.prototype, "maxZoomFactor", {
                /**
                 * @return {number} Maximum `zoomFactor`
                 */
                get: function () {
                    return this.getPropertyValue("maxZoomFactor");
                },
                /**
                 * Max available `zoomFactor`.
                 *
                 * The element will not allow zoom to occur beyond this factor.
                 *
                 * @param {number}  value  Maximum `zoomFactor`
                 */
                set: function (value) {
                    if (this.setPropertyValue("maxZoomFactor", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Component.prototype, "startIndex", {
                /**
                 * Current starting index.
                 *
                 * @return {number} Start index
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](this._startIndex)) {
                        this._startIndex = 0;
                    }
                    return this._startIndex;
                },
                /**
                 * Sets current starting index.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Start index
                 */
                set: function (value) {
                    this._startIndex = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](Math.round(value), 0, this.dataItems.length);
                    //this._workingStartIndex = this._startIndex; // not good, breaks adjusted working start index of line series
                    this.start = this.indexToPosition(this._startIndex);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             * @todo:review description
             * returns item's relative position by the index of the item
             * @param {number} index
             */
            Component.prototype.indexToPosition = function (index) {
                return index / this.dataItems.length;
            };
            Object.defineProperty(Component.prototype, "endIndex", {
                /**
                 * Current ending index.
                 *
                 * @return {number} End index
                 */
                get: function () {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](this._endIndex)) {
                        this._endIndex = this.dataItems.length;
                    }
                    return this._endIndex;
                },
                /**
                 * Sets current ending index.
                 *
                 * @ignore Exclude from docs
                 * @param {number} value End index
                 */
                set: function (value) {
                    this._endIndex = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](Math.round(value), 0, this.dataItems.length);
                    //this._workingEndIndex = this._endIndex; // not good, breaks adjusted workingend index of line series
                    this.end = this.indexToPosition(this._endIndex);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Component.prototype, "start", {
                /**
                 * Current relative starting position of the data range (zoom).
                 *
                 * @return {number} Start (0-1)
                 */
                get: function () {
                    return this._start;
                },
                /**
                 * Sets start of the current data range (zoom).
                 *
                 * @ignore Exclude from docs
                 * @param {number} value Start (0-1)
                 */
                set: function (value) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](value, 5);
                    //if (1 / (this.end - value) > this.maxZoomFactor) {
                    //	value = this.end - 1 / this.maxZoomFactor;
                    //}
                    if (this._start != value) {
                        this._start = value;
                        var startIndex = Math.max(0, Math.floor(this.dataItems.length * value) || 0);
                        this._startIndex = Math.min(startIndex, this.dataItems.length);
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Component.prototype, "end", {
                /**
                 * Current relative ending position fo the data range (zoom).
                 *
                 * @return {number} End (0-1)
                 */
                get: function () {
                    return this._end;
                },
                /**
                 * Sets end of the current data range (zoom).
                 *
                 * @ignore Exclude from docs
                 * @param {number} value End (0-1)
                 */
                set: function (value) {
                    value = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](value, 5);
                    //if (1 / (value - this.start) > this.maxZoomFactor) {
                    //	value = 1 / this.maxZoomFactor + this.start;
                    //}
                    if (this._end != value) {
                        this._end = value;
                        this._endIndex = Math.min(this.dataItems.length, Math.ceil(this.dataItems.length * value) || 0);
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * [removeFromInvalids description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Component.prototype.removeFromInvalids = function () {
                _super.prototype.removeFromInvalids.call(this);
                _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].removeFromInvalidComponents(this);
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataItems, this);
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidDataRange, this);
                _utils_Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].invalidRawDatas, this);
            };
            Object.defineProperty(Component.prototype, "dataItems", {
                /**
                 * Returns a list of source [[DataItem]] objects.
                 *
                 * @return {OrderedListTemplate} List of data items
                 */
                get: function () {
                    // @todo Check if we can automatically dispose all of the data items when
                    // Component is disposed
                    if (!this._dataItems) {
                        this._dataItems = new _utils_SortedList__WEBPACK_IMPORTED_MODULE_3__["OrderedListTemplate"](this.createDataItem());
                        this._dataItems.events.on("inserted", this.handleDataItemAdded, this, false);
                        this._dataItems.events.on("removed", this.invalidateDataItems, this, false);
                        this._disposers.push(new _utils_List__WEBPACK_IMPORTED_MODULE_2__["ListDisposer"](this._dataItems));
                        this._disposers.push(this._dataItems.template);
                    }
                    return this._dataItems;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes newly added [[DataItem]] as well as triggers data re-validation.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<DataItem>["inserted"]} event [description]
             */
            Component.prototype.handleDataItemAdded = function (event) {
                event.newValue.component = this;
                this.invalidateDataItems();
            };
            /**
             * removes [[DataItem]] as well as triggers data re-validation.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<DataItem>["inserted"]} event [description]
             */
            Component.prototype.handleDataItemRemoved = function (event) {
                event.oldValue.component = undefined;
                this.invalidateDataItems();
            };
            Object.defineProperty(Component.prototype, "dataMethods", {
                /**
                 * [dataMethods description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @deprecated Not used?
                 * @param {Dictionary} List of data methods
                 */
                get: function () {
                    if (!this._dataMethods) {
                        this._dataMethods = new _utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                    }
                    return this._dataMethods;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Binds a data element's field to a specific field in raw data.
             * For example, for the very basic column chart you'd want to bind a `value`
             * field to a field in data, such as `price`.
             *
             * Some more advanced Components, like [[CandlestickSeries]] need several
             * data fields bound to data, such as ones for open, high, low and close
             * values.
             *
             * @todo Example
             * @param {Key}                       field  Field name
             * @param {this["_dataFields"][Key]}  value  Field name in data
             */
            Component.prototype.bindDataField = function (field, value) {
                this.dataFields[field] = value;
                this.invalidateDataRange();
            };
            /**
             * Invalidates processed data.
             *
             * @ignore Exclude from docs
             */
            Component.prototype.invalidateProcessedData = function () {
                this.resetProcessedRange();
                this.invalidateDataRange();
            };
            /**
             * [resetProcessedRange description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Component.prototype.resetProcessedRange = function () {
                this._prevEndIndex = null;
                this._prevStartIndex = null;
            };
            Object.defineProperty(Component.prototype, "dataUsers", {
                /**
                 * Returns all other [[Component]] objects that are using this element's
                 * data.
                 *
                 * @ignore Exclude from docs
                 * @todo Description (review)
                 * @return {List<Component>} [description]
                 */
                get: function () {
                    var _this = this;
                    if (!this._dataUsers) {
                        this._dataUsers = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                        //this._disposers.push(new ListDisposer(this._dataUsers));
                        // TODO better way of handling this? e.g. move into another module ?
                        this._disposers.push(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_5__["Disposer"](function () {
                            // TODO clear the list ?
                            _utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](_this._dataUsers.iterator(), function (x) {
                                x.dispose();
                            });
                        }));
                    }
                    return this._dataUsers;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a clone of this element.
             *
             * @return {this} Clone
             */
            Component.prototype.clone = function () {
                var component = _super.prototype.clone.call(this);
                component.dataFields = _utils_Utils__WEBPACK_IMPORTED_MODULE_14__["copyProperties"](this.dataFields, {});
                return component;
            };
            /**
             * Copies all parameters from another [[Component]].
             *
             * @param {Component} source Source Component
             */
            Component.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.data = source.data;
                this.sequencedInterpolation = source.sequencedInterpolation;
                this.sequencedInterpolationDelay = source.sequencedInterpolationDelay;
                this.interpolationDuration = source.interpolationDuration;
                this.interpolationEasing = source.interpolationEasing;
            };
            /**
             * Invalidates the whole element, including all its children, causing
             * complete re-parsing of data and redraw.
             *
             * Use sparingly!
             */
            Component.prototype.reinit = function () {
                this._inited = false;
                this.deepInvalidate();
            };
            /**
             * Add an adapter for data.
             *
             * @return {Export} Exporting
             */
            Component.prototype.getExporting = function () {
                var _export = _super.prototype.getExporting.call(this);
                if (!_export.adapter.has("data", this._exportData, null, this)) {
                    _export.adapter.add("data", this._exportData, null, this);
                }
                return _export;
            };
            Component.prototype._exportData = function (arg) {
                arg.data = this.data;
                return arg;
            };
            Component.prototype.setDisabled = function (value) {
                _super.prototype.setDisabled.call(this, value);
                this.invalidateData();
            };
            /**
             * @ignore
             */
            Component.prototype.setShowOnInit = function (value) {
                if (value != this.getPropertyValue("showOnInit") && value && !this.inited && !this.hidden) {
                    this.events.once("dataitemsvalidated", this.hideInitially, this, false);
                }
                // important order here
                _super.prototype.setShowOnInit.call(this, value);
            };
            Component.prototype.setBaseId = function (value) {
                if (value != this._baseId) {
                    if (this.dataInvalid) {
                        this.dataInvalid = false;
                        _Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].removeFromInvalidComponents(this);
                        this._baseId = value;
                        this.invalidateData();
                    }
                }
                _super.prototype.setBaseId.call(this, value);
            };
            return Component;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=Component.js.map
        /***/ 
    }),
    /* 833 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSource", function () { return DataSource; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _DataLoader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(834);
        /* harmony import */ var _JSONParser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(837);
        /* harmony import */ var _CSVParser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(835);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(768);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(770);
        /* harmony import */ var _utils_Language__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(806);
        /* harmony import */ var _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(809);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(761);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents a single data source - external file with all of its settings,
         * such as format, data parsing, etc.
         *
         * ```TypeScript
         * chart.dataSource.url = "http://www.myweb.com/data.json";
         * chart.dataSource.parser = am4core.JSONParser;
         * ```
         * ```JavaScript
         * chart.dataSource.url = "http://www.myweb.com/data.json";
         * chart.dataSource.parser = am4core.JSONParser;
         * ```
         * ```JSON
         * {
         *   // ...
         *   "dataSource": {
         *     "url": "http://www.myweb.com/data.json",
         *     "parser": "JSONParser"
         *   },
         *   // ...
         * }
         * ```
         *
         * @see {@link IDataSourceEvents} for a list of available events
         * @see {@link IDataSourceAdapters} for a list of available Adapters
         */
        var DataSource = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DataSource, _super);
            /**
             * Constructor
             */
            function DataSource(url, parser) {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<DataSource, IDataSourceAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_5__["Adapter"](_this);
                /**
                 * Custom options for HTTP(S) request.
                 *
                 * @type {INetRequestOptions}
                 */
                _this._requestOptions = {};
                /**
                 * If set to `true`, any subsequent data loads will be considered incremental
                 * (containing only new data points that are supposed to be added to existing
                 * data).
                 *
                 * NOTE: this setting works only with element's `data` property. It won't
                 * work with any other externally-loadable data property.
                 *
                 * @default false
                 * @type {boolean}
                 */
                _this._incremental = false;
                /**
                 * A collection of key/value pairs to attach to a data source URL when making
                 * an incremental request.
                 */
                _this._incrementalParams = {};
                /**
                 * This setting is used only when `incremental = true`. If set to `true`,
                 * it will try to retain the same number of data items across each load.
                 *
                 * E.g. if incremental load yeilded 5 new records, then 5 items from the
                 * beginning of data will be removed so that we end up with the same number
                 * of data items.
                 *
                 * @default false
                 * @type {boolean}
                 */
                _this._keepCount = false;
                /**
                 * Will show loading indicator when loading files.
                 *
                 * @type {boolean}
                 */
                _this.showPreloader = true;
                _this.className = "DataSource";
                // Set defaults
                if (url) {
                    _this.url = url;
                }
                // Set parser
                if (parser) {
                    if (typeof parser == "string") {
                        _this.parser = _DataLoader__WEBPACK_IMPORTED_MODULE_1__["dataLoader"].getParserByType(parser);
                    }
                    else {
                        _this.parser = parser;
                    }
                }
                return _this;
            }
            /**
             * Processes the loaded data.
             *
             * @ignore Exclude from docs
             * @param {string}  data         Raw (unparsed) data
             * @param {string}  contentType  Content type of the loaded data (optional)
             */
            DataSource.prototype.processData = function (data, contentType) {
                // Parsing started
                this.dispatchImmediately("parsestarted");
                // Check if parser is set
                if (!this.parser) {
                    // Try to resolve from data
                    this.parser = _DataLoader__WEBPACK_IMPORTED_MODULE_1__["dataLoader"].getParserByData(data, contentType);
                    if (!this.parser) {
                        // We have a problem - nobody knows what to do with the data
                        // Raise error
                        if (this.events.isEnabled("parseerror")) {
                            var event_1 = {
                                type: "parseerror",
                                message: this.language.translate("No parser available for file: %1", null, this.url),
                                target: this
                            };
                            this.events.dispatchImmediately("parseerror", event_1);
                        }
                        this.dispatchImmediately("parseended");
                        return;
                    }
                }
                // Apply options adapters
                this.parser.options = this.adapter.apply("parserOptions", this.parser.options);
                this.parser.options.dateFields = this.adapter.apply("dateFields", this.parser.options.dateFields || []);
                this.parser.options.numberFields = this.adapter.apply("numberFields", this.parser.options.numberFields || []);
                // Check if we need to pass in date formatter
                if (this.parser.options.dateFields && !this.parser.options.dateFormatter) {
                    this.parser.options.dateFormatter = this.dateFormatter;
                }
                // Parse
                this.data = this.adapter.apply("parsedData", this.parser.parse(this.adapter.apply("unparsedData", data)));
                // Check for parsing errors
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.data) && this.events.isEnabled("parseerror")) {
                    var event_2 = {
                        type: "parseerror",
                        message: this.language.translate("Error parsing file: %1", null, this.url),
                        target: this
                    };
                    this.events.dispatchImmediately("parseerror", event_2);
                }
                // Wrap up
                this.dispatchImmediately("parseended");
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.data)) {
                    this.dispatchImmediately("done", {
                        "data": this.data
                    });
                }
                // The component is responsible for updating its own data vtriggered via
                // events.
                // Update last data load
                this.lastLoad = new Date();
            };
            Object.defineProperty(DataSource.prototype, "url", {
                /**
                 * @return {string} URL
                 */
                get: function () {
                    // Get URL
                    var url = this.disableCache
                        ? this.timestampUrl(this._url)
                        : this._url;
                    // Add incremental params
                    if (this.incremental && this.component.data.length) {
                        url = this.addUrlParams(url, this.incrementalParams);
                    }
                    return this.adapter.apply("url", url);
                },
                /**
                 * URL of the data source.
                 *
                 * @param {string}  value  URL
                 */
                set: function (value) {
                    this._url = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "requestOptions", {
                /**
                 * @return {INetRequestOptions} Options
                 */
                get: function () {
                    return this.adapter.apply("requestOptions", this._requestOptions);
                },
                /**
                 * Custom options for HTTP(S) request.
                 *
                 * At this moment the only option supported is: `requestHeaders`, which holds
                 * an array of objects for custom request headers, e.g.:
                 *
                 * ```TypeScript
                 * chart.dataSource.requestOptions.requestHeaders = [{
                 *   "key": "x-access-token",
                 *   "value": "123456789"
                 * }];
                 * ``````JavaScript
                 * chart.dataSource.requestOptions.requestHeaders = [{
                 *   "key": "x-access-token",
                 *   "value": "123456789"
                 * }];
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "dataSource": {
                 *     // ...
                 *     "requestOptions": {
                 *       "requestHeaders": [{
                 *         "key": "x-access-token",
                 *         "value": "123456789"
                 *       }]
                 *     }
                 *   }
                 * }
                 * ```
                 *
                 * NOTE: setting this options on an-already loaded DataSource will not
                 * trigger a reload.
                 *
                 * @param {INetRequestOptions}  value  Options
                 */
                set: function (value) {
                    this._requestOptions = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "parser", {
                /**
                 * @return {DataParser} Data parser
                 */
                get: function () {
                    if (!this._parser) {
                        this._parser = new _JSONParser__WEBPACK_IMPORTED_MODULE_2__["JSONParser"]();
                    }
                    return this.adapter.apply("parser", this._parser);
                },
                /**
                 * A parser to be used to parse data.
                 *
                 * ```TypeScript
                 * chart.dataSource.url = "http://www.myweb.com/data.json";
                 * chart.dataSource.parser = am4core.JSONParser;
                 * ```
                 * ```JavaScript
                 * chart.dataSource.url = "http://www.myweb.com/data.json";
                 * chart.dataSource.parser = am4core.JSONParser;
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "dataSource": {
                 *     "url": "http://www.myweb.com/data.json",
                 *     "parser": "JSONParser"
                 *   },
                 *   // ...
                 * }
                 * ```
                 *
                 * @default JSONParser
                 * @param {DataParser}  value  Data parser
                 */
                set: function (value) {
                    this._parser = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "reloadFrequency", {
                /**
                 * @return {number} Reload frequency (ms)
                 */
                get: function () {
                    return this.adapter.apply("reloadTimeout", this._reloadFrequency);
                },
                /**
                 * Data source reload frequency.
                 *
                 * If set, it will reload the same URL every X milliseconds.
                 *
                 * @param {number} value Reload frequency (ms)
                 */
                set: function (value) {
                    var _this = this;
                    if (this._reloadFrequency != value) {
                        this._reloadFrequency = value;
                        // Should we schedule a reload?
                        if (value) {
                            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this._reloadDisposer)) {
                                this._reloadDisposer = this.events.on("ended", function (ev) {
                                    _this._reloadTimeout = setTimeout(function () {
                                        _this.load();
                                    }, _this.reloadFrequency);
                                });
                            }
                        }
                        else if (_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this._reloadDisposer)) {
                            this._reloadDisposer.dispose();
                            this._reloadDisposer = undefined;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "incremental", {
                /**
                 * @return {boolean} Incremental load?
                 */
                get: function () {
                    return this.adapter.apply("incremental", this._incremental);
                },
                /**
                 * Should subsequent reloads be treated as incremental?
                 *
                 * Incremental loads will assume that they contain only new data items
                 * since the last load.
                 *
                 * If `incremental = false` the loader will replace all of the target's
                 * data with each load.
                 *
                 * This setting does not have any effect trhe first time data is loaded.
                 *
                 * NOTE: this setting works only with element's `data` property. It won't
                 * work with any other externally-loadable data property.
                 *
                 * @default false
                 * @param {boolean} Incremental load?
                 */
                set: function (value) {
                    this._incremental = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "incrementalParams", {
                /**
                 * @return {object} Incremental request parameters
                 */
                get: function () {
                    return this.adapter.apply("incrementalParams", this._incrementalParams);
                },
                /**
                 * An object consisting of key/value pairs to apply to an URL when data
                 * source is making an incremental request.
                 *
                 * @param {object}  value  Incremental request parameters
                 */
                set: function (value) {
                    this._incrementalParams = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "keepCount", {
                /**
                 * @return {boolean} keepCount load?
                 */
                get: function () {
                    return this.adapter.apply("keepCount", this._keepCount);
                },
                /**
                 * This setting is used only when `incremental = true`. If set to `true`,
                 * it will try to retain the same number of data items across each load.
                 *
                 * E.g. if incremental load yeilded 5 new records, then 5 items from the
                 * beginning of data will be removed so that we end up with the same number
                 * of data items.
                 *
                 * @default false
                 * @param {boolean} Keep record count?
                 */
                set: function (value) {
                    this._keepCount = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "language", {
                /**
                 * @return {Language} A [[Language]] instance to be used
                 */
                get: function () {
                    if (this._language) {
                        return this._language;
                    }
                    else if (this.component) {
                        this._language = this.component.language;
                        return this._language;
                    }
                    this.language = new _utils_Language__WEBPACK_IMPORTED_MODULE_6__["Language"]();
                    return this.language;
                },
                /**
                 * Language instance to use.
                 *
                 * Will inherit and use chart's language, if not set.
                 *
                 * @param {Language} value An instance of Language
                 */
                set: function (value) {
                    this._language = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataSource.prototype, "dateFormatter", {
                /**
                 * @return {DateFormatter} A [[DateFormatter]] instance to be used
                 */
                get: function () {
                    if (this._dateFormatter) {
                        return this._dateFormatter;
                    }
                    else if (this.component) {
                        this._dateFormatter = this.component.dateFormatter;
                        return this._dateFormatter;
                    }
                    this.dateFormatter = new _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_7__["DateFormatter"]();
                    return this.dateFormatter;
                },
                /**
                 * A [[DateFormatter]] to use when parsing dates from string formats.
                 *
                 * Will inherit and use chart's DateFormatter if not ser.
                 *
                 * @param {DateFormatter} value An instance of [[DateFormatter]]
                 */
                set: function (value) {
                    this._dateFormatter = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Adds current timestamp to the URL.
             *
             * @param  {string}  url  Source URL
             * @return {string}       Timestamped URL
             */
            DataSource.prototype.timestampUrl = function (url) {
                var tstamp = new Date().getTime().toString();
                var params = {};
                params[tstamp] = "";
                return this.addUrlParams(url, params);
            };
            /**
             * Disposes of this object.
             */
            DataSource.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                if (this._reloadTimeout) {
                    clearTimeout(this._reloadTimeout);
                }
            };
            /**
             * Initiate the load.
             *
             * All loading in JavaScript is asynchronous. This function will trigger the
             * load and will exit immediately.
             *
             * Use DataSource's events to watch for loaded data and errors.
             */
            DataSource.prototype.load = function () {
                if (this._reloadTimeout) {
                    clearTimeout(this._reloadTimeout);
                }
                _DataLoader__WEBPACK_IMPORTED_MODULE_1__["dataLoader"].load(this);
            };
            /**
             * Adds parameters to `url` as query strings. Will take care of proper
             * separators.
             *
             * @param  {string}  url     Source URL
             * @param  {object}  params  Parameters
             * @return {string}          New URL
             */
            DataSource.prototype.addUrlParams = function (url, params) {
                var join = url.match(/\?/) ? "&" : "?";
                var add = [];
                _utils_Object__WEBPACK_IMPORTED_MODULE_10__["each"](params, function (key, value) {
                    if (value != "") {
                        add.push(key + "=" + encodeURIComponent(value));
                    }
                    else {
                        add.push(key);
                    }
                });
                if (add.length) {
                    return url + join + add.join("&");
                }
                return url;
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            DataSource.prototype.processConfig = function (config) {
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["json"] = _JSONParser__WEBPACK_IMPORTED_MODULE_2__["JSONParser"];
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["JSONParser"] = _JSONParser__WEBPACK_IMPORTED_MODULE_2__["JSONParser"];
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["csv"] = _CSVParser__WEBPACK_IMPORTED_MODULE_3__["CSVParser"];
                _Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["CSVParser"] = _CSVParser__WEBPACK_IMPORTED_MODULE_3__["CSVParser"];
                _super.prototype.processConfig.call(this, config);
            };
            return DataSource;
        }(_Base__WEBPACK_IMPORTED_MODULE_4__["BaseObjectEvents"]));
        //# sourceMappingURL=DataSource.js.map
        /***/ 
    }),
    /* 834 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataLoader", function () { return DataLoader; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataLoader", function () { return dataLoader; });
        /* harmony import */ var _CSVParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(835);
        /* harmony import */ var _JSONParser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(837);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _utils_Net__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(815);
        /**
         * Data Loader is responsible for loading and parsing external data
         */
        ;
        /**
         * Data Loader is responsible for loading and parsing external data.
         *
         * There is just one instance of DataLoader per system. Unless you have a
         * speicific reason, do not instantiate additional instances.
         *
         * The global instance of Data Loader is accessible via:
         *
         * ```TypeScript
         * am4core.dataLoader;
         * ```
         * ```JavaScript
         * am4core.dataLoader;
         * ```
         *
         * A loading of specific data source is done via [[DataSource]].
         *
             Please refer to [[DataSource]] for information how to use it.
         *
         * @see {@link IDataLoaderAdapters} for a list of available Adapters
         */
        var DataLoader = /** @class */ (function () {
            function DataLoader() {
                /**
                 * Adapter.
                 *
                 * @type {Adapter<DataLoader, IDataLoaderAdapters>}
                 */
                this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](this);
            }
            /**
             * Loads a supplied [[DataSource]] or an array of data sources, then calls
             * their respective `parse` methods.
             *
             * @param  {DataSource | DataSource[]}  source  A single data source or an array of multiple of data sources
             */
            DataLoader.prototype.load = function (source) {
                var sources = Array.isArray(source) ? source : [source];
                var promises = [];
                // Add each Source to the list to be loaded simultaneously
                for (var x in sources) {
                    // Dispatch events
                    sources[x].dispatchImmediately("started");
                    sources[x].dispatchImmediately("loadstarted");
                    promises.push(_utils_Net__WEBPACK_IMPORTED_MODULE_3__["load"](sources[x].url, sources[x], sources[x].requestOptions));
                }
                // Run all promises in parallel
                Promise.all(promises).then(function (res) {
                    // Process each loaded source
                    for (var x in res) {
                        // Get Source
                        var result = res[x];
                        var source_1 = result.target;
                        // Dispatch events
                        source_1.dispatchImmediately("loadended");
                        if (result.error) {
                            if (source_1.events.isEnabled("error")) {
                                source_1.events.dispatchImmediately("error", {
                                    type: "error",
                                    code: result.xhr.status,
                                    message: source_1.language.translate("Unable to load file: %1", null, source_1.url),
                                    target: source_1
                                });
                            }
                        }
                        else {
                            // Initiate parsing of the loaded data
                            source_1.processData(result.response, result.type);
                        }
                        source_1.dispatchImmediately("ended");
                    }
                }).catch(function (res) {
                    res.target.dispatchImmediately("loadended");
                    if (res.target.events.isEnabled("error")) {
                        res.target.events.dispatchImmediately("error", {
                            type: "error",
                            code: res.xhr.status,
                            message: res.target.language.translate("Unable to load file: %1", null, res.target.url),
                            target: res.target
                        });
                    }
                    res.target.dispatchImmediately("ended");
                });
            };
            /**
             * Instantiates a [[DataParser]] object based on the data type.
             * Built-in parser types are as follows:
             *
             * * "csv" or "text/csv"
             * * "json" or "application/json"
             *
             * @param  {string}      contentType  A format type
             * @return {DataParser}               A parser object
             */
            DataLoader.prototype.getParserByType = function (contentType) {
                // Let some plugin decide
                var parser;
                if (parser = this.adapter.apply("getParserByType", {
                    parser: null,
                    type: contentType
                }).parser) {
                    return parser;
                }
                if (contentType == "csv" || contentType == "text/csv" || contentType == "application/vnd.ms-excel") {
                    return new _CSVParser__WEBPACK_IMPORTED_MODULE_0__["CSVParser"]();
                }
                if (contentType == "json" || contentType == "application/json") {
                    return new _JSONParser__WEBPACK_IMPORTED_MODULE_1__["JSONParser"]();
                }
                return;
            };
            /**
             * Tries to determine a parser out of content type and/or actual data.
             *
             * @param  {string}      data         Data
             * @param  {string}      contentType  Content-type
             * @return {DataParser}               Parser instance
             */
            DataLoader.prototype.getParserByData = function (data, contentType) {
                // Let some plugin decide
                var parser = this.adapter.apply("getParserByData", {
                    parser: null,
                    data: data,
                    type: contentType
                }).parser;
                // Check if we have parser from outside code
                if (!parser) {
                    // No, let's try to figure it out
                    if (parser = this.getParserByType(contentType)) {
                        // We're able to figure out parser by conten-type
                        return parser;
                    }
                    else if (_JSONParser__WEBPACK_IMPORTED_MODULE_1__["JSONParser"].isJSON(data)) {
                        return this.getParserByType("json");
                    }
                    else if (_CSVParser__WEBPACK_IMPORTED_MODULE_0__["CSVParser"].isCSV(data)) {
                        return this.getParserByType("csv");
                    }
                }
                return parser;
            };
            return DataLoader;
        }());
        /**
         * Create instance of Data Loader
         */
        var dataLoader = new DataLoader();
        //# sourceMappingURL=DataLoader.js.map
        /***/ 
    }),
    /* 835 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSVParser", function () { return CSVParser; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _DataParser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(836);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /**
         * CSV parser.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Define possible separators.
         */
        var separators = [",", ";", "\t"];
        /**
         * A parser for CSV format.
         *
         * @important
         */
        var CSVParser = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CSVParser, _super);
            function CSVParser() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * Content-type suitable for CSV format.
                 *
                 * @type {string}
                 */
                _this.contentType = "text/csv";
                /**
                 * Parser options.
                 *
                 * @see {@link ICSVOptions} for description of each option
                 * @type {ICSVOptions}
                 */
                _this.options = {
                    delimiter: "",
                    reverse: false,
                    skipRows: 0,
                    skipEmpty: true,
                    useColumnNames: false
                };
                return _this;
            }
            /**
             * Tests if the format is CSV.
             *
             * @param  {string}   data  Source data
             * @return {boolean}        Is it CSV?
             */
            CSVParser.isCSV = function (data) {
                return CSVParser.getDelimiterFromData(data) ? true : false;
            };
            /**
             * Tries to determine a column separator.
             *
             * @param  {string}  data  Source data
             * @return {string}        Separator
             */
            CSVParser.getDelimiterFromData = function (data) {
                // We're going to take first few lines of the CSV with different
                // possible separators and check if it results in same number of columns.
                // If it does, we're going to assume it's a CSV
                var lines = data.split("\n");
                var separator;
                try {
                    // TODO replace with iterators
                    for (var separators_1 = tslib__WEBPACK_IMPORTED_MODULE_0__["__values"](separators), separators_1_1 = separators_1.next(); !separators_1_1.done; separators_1_1 = separators_1.next()) {
                        var sep = separators_1_1.value;
                        var columns = 0, lineColums = 0;
                        for (var i in lines) {
                            // Get number of columns in a line
                            columns = lines[i].split(sep).length;
                            if (columns > 1) {
                                // More than one column - possible candidate
                                if (lineColums === 0) {
                                    // First line
                                    lineColums = columns;
                                }
                                else if (columns != lineColums) {
                                    // Incorrect number of columns, give up on this separator
                                    lineColums = 0;
                                    break;
                                }
                            }
                            else {
                                // Not this separator
                                // Not point in continuing
                                lineColums = 0;
                                break;
                            }
                        }
                        // Check if we have a winner
                        if (lineColums) {
                            separator = sep;
                        }
                    }
                }
                catch (e_1_1) {
                    e_1 = { error: e_1_1 };
                }
                finally {
                    try {
                        if (separators_1_1 && !separators_1_1.done && (_a = separators_1.return))
                            _a.call(separators_1);
                    }
                    finally {
                        if (e_1)
                            throw e_1.error;
                    }
                }
                return separator;
                var e_1, _a;
            };
            /**
             * Parses and returns data.
             *
             * @param  {string}  data  Unparsed data
             * @return {any}           Parsed data
             */
            CSVParser.prototype.parse = function (csv) {
                // Check if we have delimiter set
                if (!this.options.delimiter) {
                    this.options.delimiter = CSVParser.getDelimiterFromData(csv);
                }
                // Get CSV data as array
                var data = this.CSVToArray(csv, this.options.delimiter);
                // Do we need to cast some fields to numbers?
                var empty = _utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](this.options.emptyAs);
                var numbers = this.parsableNumbers;
                var dates = this.parsableDates;
                // Init resuling array
                var res = [], cols = [], col, i;
                // First row holds column names?
                if (this.options.useColumnNames) {
                    cols = data.shift();
                    // Normalize column names
                    for (var x = 0; x < cols.length; x++) {
                        // trim
                        col = _utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](cols[x]) ? cols[x].replace(/^\s+|\s+$/gm, "") : "";
                        // Check for empty
                        if ("" === col) {
                            col = "col" + x;
                        }
                        cols[x] = col;
                    }
                    if (0 < this.options.skipRows)
                        this.options.skipRows--;
                }
                // Skip rows
                for (i = 0; i < this.options.skipRows; i++) {
                    data.shift();
                }
                // Iterate through the result set
                var row;
                while ((row = this.options.reverse ? data.pop() : data.shift())) {
                    if (this.options.skipEmpty && row.length === 1 && row[0] === "")
                        continue;
                    var dataPoint = {};
                    for (i = 0; i < row.length; i++) {
                        col = undefined === cols[i] ? "col" + i : cols[i];
                        dataPoint[col] = row[i] === "" ? this.options.emptyAs : row[i];
                        // Convert
                        if (empty) {
                            dataPoint[col] = this.maybeToEmpty(dataPoint[col]);
                        }
                        if (numbers) {
                            dataPoint[col] = this.maybeToNumber(col, dataPoint[col]);
                        }
                        if (dates) {
                            dataPoint[col] = this.maybeToDate(col, dataPoint[col]);
                        }
                    }
                    res.push(dataPoint);
                }
                return res;
            };
            /**
             * Converts CSV into array.
             *
             * The functionality of this function is taken from here:
             * http://www.bennadel.com/blog/1504-ask-ben-parsing-csv-strings-with-javascript-exec-regular-expression-command.htm
             *
             * @param  {string}  data       Source data
             * @param  {string}  delimiter  Column delimiter
             * @return {any[]}              Parsed array
             */
            CSVParser.prototype.CSVToArray = function (data, delimiter) {
                // Check to see if the delimiter is defined. If not,
                // then default to comma.
                delimiter = (delimiter || ',');
                // Create a regular expression to parse the CSV values.
                var objPattern = new RegExp((
                // Delimiters.
                "(\\" + delimiter + "|\\r?\\n|\\r|^)" +
                    // Quoted fields.
                    "(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" +
                    // Standard fields.
                    "([^\"\\" + delimiter + "\\r\\n]*))"), "gi");
                // Create an array to hold our data. Give the array
                // a default empty first row.
                var arrData = [
                    []
                ];
                // Create an array to hold our individual pattern
                // matching groups.
                var arrMatches = null;
                // Keep looping over the regular expression matches
                // until we can no longer find a match.
                while ((arrMatches = objPattern.exec(data))) {
                    // Get the delimiter that was found.
                    var strMatchedDelimiter = arrMatches[1];
                    // Check to see if the given delimiter has a length
                    // (is not the start of string) and if it matches
                    // field delimiter. If id does not, then we know
                    // that this delimiter is a row delimiter.
                    if (strMatchedDelimiter.length &&
                        (strMatchedDelimiter !== delimiter)) {
                        // Since we have reached a new row of data,
                        // add an empty row to our data array.
                        arrData.push([]);
                    }
                    // Now that we have our delimiter out of the way,
                    // let's check to see which kind of value we
                    // captured (quoted or unquoted).
                    var strMatchedValue = void 0;
                    if (arrMatches[2]) {
                        // We found a quoted value. When we capture
                        // this value, unescape any double quotes.
                        strMatchedValue = arrMatches[2].replace(new RegExp("\"\"", "g"), "\"");
                    }
                    else {
                        // We found a non-quoted value.
                        strMatchedValue = arrMatches[3];
                    }
                    // Now that we have our value string, let's add
                    // it to the data array.
                    arrData[arrData.length - 1].push(strMatchedValue);
                }
                // Return the parsed data.
                return (arrData);
            };
            return CSVParser;
        }(_DataParser__WEBPACK_IMPORTED_MODULE_1__["DataParser"]));
        //# sourceMappingURL=CSVParser.js.map
        /***/ 
    }),
    /* 836 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataParser", function () { return DataParser; });
        /* harmony import */ var _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(809);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /**
         * Data parser module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base class for the data parsers.
         */
        var DataParser = /** @class */ (function () {
            function DataParser() {
            }
            /**
             * A "placeholder" function for real parsers to override.
             *
             * @ignore Exclude from docs
             * @param  {string}  data  Source data
             * @return {any}           Parsed data (empty)
             */
            DataParser.prototype.parse = function (data) {
                return [];
            };
            ;
            Object.defineProperty(DataParser.prototype, "parsableNumbers", {
                /**
                 * Checks if there are any numeric fields that need to be converted to
                 * numbers.
                 *
                 * @return {boolean} Numeric fields?
                 */
                get: function () {
                    return this.options.numberFields && (this.options.numberFields.length > 0);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts a value to 'number' if it is in `numberFields`.
             *
             * @param  {string}  field  Field name
             * @param  {any}     value  Value
             * @return {any}            Parsed or original value
             */
            DataParser.prototype.maybeToNumber = function (field, value) {
                if (this.options.numberFields.indexOf(field) !== -1) {
                    return _utils_Utils__WEBPACK_IMPORTED_MODULE_1__["anyToNumber"](value);
                }
                return value;
            };
            Object.defineProperty(DataParser.prototype, "parsableDates", {
                /**
                 * Checks if there are any date fields that need to be converted to `Date`
                 * objects.
                 *
                 * @return {boolean} Date fields?
                 */
                get: function () {
                    return this.options.dateFields && (this.options.dateFields.length > 0);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts a value to `Date` if it is in `dateFields`.
             *
             * @param  {string}  field  Field name
             * @param  {any}     value  Value
             * @return {any}            Parsed or original value
             */
            DataParser.prototype.maybeToDate = function (field, value) {
                if (this.options.dateFields.indexOf(field) !== -1) {
                    return this.options.dateFormatter.parse(value, this.dateFormat);
                }
                return value;
            };
            /**
             * Replaces empty value with something else.
             *
             * @param  {any}  value  Source value
             * @return {any}         Source value or replacement
             */
            DataParser.prototype.maybeToEmpty = function (value) {
                if ((!_utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](value) || value == "") && _utils_Type__WEBPACK_IMPORTED_MODULE_2__["hasValue"](this.options.emptyAs)) {
                    return this.options.emptyAs;
                }
                return value;
            };
            Object.defineProperty(DataParser.prototype, "dateFormatter", {
                /**
                 * [[DateFormatter]] object for date parsing.
                 *
                 * If there was not [[DateFormatter]] supplied in parser options, a new one
                 * is created.
                 *
                 * @return {DateFormatter} Date formatter
                 * @see {@link DateFormatter}
                 */
                get: function () {
                    if (!this.options.dateFormatter) {
                        this.options.dateFormatter = new _formatters_DateFormatter__WEBPACK_IMPORTED_MODULE_0__["DateFormatter"];
                        if (this.options.dateFormat) {
                            this.options.dateFormat = this.options.dateFormat;
                        }
                    }
                    return this.options.dateFormatter;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataParser.prototype, "dateFormat", {
                /**
                 * A date format to use when parsing dates.
                 *
                 * @return {string} Date format
                 * @see {@link DateFormatter}
                 */
                get: function () {
                    return this.options.dateFormat || this.dateFormatter.inputDateFormat;
                },
                enumerable: true,
                configurable: true
            });
            return DataParser;
        }());
        //# sourceMappingURL=DataParser.js.map
        /***/ 
    }),
    /* 837 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JSONParser", function () { return JSONParser; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _DataParser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(836);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(757);
        /**
         * JSON parser.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * A parser for JSON.
         *
         * @important
         */
        var JSONParser = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](JSONParser, _super);
            function JSONParser() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                /**
                 * Content-type suitable for JSON format.
                 *
                 * @type {string}
                 */
                _this.contentType = "application/json";
                /**
                 * Parser options.
                 *
                 * @see {@link IJSONOptions} for description of each option
                 * @type {IJSONOptions}
                 */
                _this.options = {};
                return _this;
            }
            /**
             * Tests if the data is valid JSON.
             *
             * @param  {string}   data  Source data
             * @return {boolean}        Is it JSON?
             */
            JSONParser.isJSON = function (data) {
                try {
                    // Try parsing JSON
                    JSON.parse(data);
                    // If we got to this point it means it's a valid JSON
                    return true;
                }
                catch (e) {
                    return false;
                }
            };
            /**
             * Parses and returns data.
             *
             * @param  {string}  data  Unparsed data
             * @return {any}           Parsed data
             */
            JSONParser.prototype.parse = function (data) {
                var _this = this;
                // Init return
                var res;
                // Try parsing
                try {
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_3__["hasValue"](JSON)) {
                        res = JSON.parse(data);
                    }
                }
                catch (e) {
                    return undefined;
                }
                // Do we need to cast some fields to numbers or dates?
                var empty = _utils_Type__WEBPACK_IMPORTED_MODULE_3__["hasValue"](this.options.emptyAs);
                var numbers = this.parsableNumbers;
                var dates = this.parsableDates;
                if (Array.isArray(res) && (numbers || dates || empty)) {
                    var _loop_1 = function (i, len) {
                        var row = res[i];
                        _utils_Object__WEBPACK_IMPORTED_MODULE_2__["each"](row, function (key, value) {
                            if (empty) {
                                row[key] = _this.maybeToEmpty(row[key]);
                            }
                            if (numbers) {
                                row[key] = _this.maybeToNumber(key, row[key]);
                            }
                            if (dates) {
                                row[key] = _this.maybeToDate(key, row[key]);
                            }
                        });
                    };
                    // Iterate through the data and check if it needs to be converted
                    for (var i = 0, len = res.length; i < len; i++) {
                        _loop_1(i, len);
                    }
                }
                // Convert to array
                //return Array.isArray(res) ? res : [res];
                return res;
            };
            return JSONParser;
        }(_DataParser__WEBPACK_IMPORTED_MODULE_1__["DataParser"]));
        //# sourceMappingURL=JSONParser.js.map
        /***/ 
    }),
    /* 838 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Responsive", function () { return Responsive; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(770);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(762);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(755);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * Responsive functionality module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Responsive is responsible for overriding certain properties when conditions
         * are met.
         *
         * This class is used to dynamically apply and change certain chart properties
         * based on the current values of properties.
         *
         * Mainly, this is used with [[Sprite]]'s dimensional properties, like
         * `pixelWidth` and `pixelHeight`. However, it can be used to dynamically
         * change any property, based on any other property's value.
         *
         * A default responsive rules are disabled.
         *
         * To enable, set `enabled = false`. E.g.:
         *
         * ```TypeScript
         * chart.responsive.enabled = true;
         * ```
         * ```JavaScript
         * chart.responsive.enabled = true;
         * ```
         *
         * @see {@link IResponsiveEvents} for a list of available events
         * @see {@link IResponsiveAdapters} for a list of available Adapters
         * @todo Add default rules
         * @todo Watch for rule modification
         * @important
         */
        var Responsive = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Responsive, _super);
            /**
             * Constructor
             */
            function Responsive() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Holds a list of responsive rules organized by object type.
                 *
                 * @type {List<IResponsiveRule>}
                 */
                _this._rules = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * Holds the list of the default responsive rules.
                 *
                 * @type {List<IResponsiveRule>}
                 */
                _this._defaultRules = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * Holds the list of currently applied rules.
                 *
                 * @type {object}
                 */
                _this._appliedRules = {};
                /**
                 * Use default rules in addition to the user-defined ones?
                 *
                 * @type {Boolean}
                 */
                _this._useDefault = true;
                /**
                 * Adapter.
                 *
                 * @type {Adapter<Responsive, IResponsiveAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_3__["Adapter"](_this);
                /**
                 * Indicates of responsive rules application is enabled.
                 *
                 * @type {Boolean}
                 */
                _this._enabled = false;
                /**
                 * Collection of objects and state ids that do not have any properties set.
                 *
                 * @type {string[]}
                 */
                _this._noStates = [];
                _this.className = "Responsive";
                // Set up rules list events
                _this.rules.events.on("inserted", _this.checkRules, true);
                _this.rules.events.on("removed", _this.checkRules, true);
                _this._disposers.push(_this.rules.events);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Responsive.prototype, "component", {
                /**
                 * @return {Optional<Component>} Target object
                 */
                get: function () {
                    return this._component;
                },
                /**
                 * A target object that responsive rules will need to be applied to.
                 *
                 * @param {Optional<Component>}  value  Target object
                 */
                set: function (value) {
                    // Check if it's the same
                    if (value == this._component) {
                        return;
                    }
                    // Check if we already have a set up component and remove its events
                    if (this._sizeEventDisposer) {
                        this.removeDispose(this._sizeEventDisposer);
                    }
                    // Set
                    this._component = value;
                    // Set up resize monitoring events
                    this._sizeEventDisposer = _utils_Type__WEBPACK_IMPORTED_MODULE_7__["getValue"](this.component).events.on("sizechanged", this.checkRules, this);
                    this._disposers.push(this._sizeEventDisposer);
                    // Enable resoponsive
                    this.enabled = true;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Responsive.prototype, "enabled", {
                /**
                 * @return {boolean} Apply responsive rules?
                 */
                get: function () {
                    return this.adapter.apply("enabled", this._enabled);
                },
                /**
                 * Should responsive rules be checked against and applied?
                 *
                 * @default false
                 * @param {boolean}  value  Apply responsive rules?
                 */
                set: function (value) {
                    if (this._enabled != value) {
                        this._enabled = value;
                        // Run `applyRules` so that any currently applied rules can be reset
                        this.applyRules();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Responsive.prototype, "useDefault", {
                /**
                 * @return {boolean} Use default rules?
                 */
                get: function () {
                    return this.adapter.apply("useDefault", this._useDefault);
                },
                /**
                 * Should default responsive rules be applied in addition to user-defined
                 * ones.
                 *
                 * User-defined rules will take precedence over default rules whenever they
                 * produce conflicting settings.
                 *
                 * @default true
                 * @param {boolean}  value  Use default rules?
                 */
                set: function (value) {
                    if (this._useDefault != value) {
                        this._useDefault = true;
                        // Run `applyRules` so that any currently applied rules can be reset
                        this.applyRules();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Responsive.prototype, "rules", {
                /**
                 * @return {List<IResponsiveRule>} User-defined rules
                 */
                get: function () {
                    return this.adapter.apply("rules", this._rules);
                },
                /**
                 * User-defined responsive rules.
                 *
                 * User-defined rules will take precedence over default rules whenever they
                 * produce conflicting settings.
                 *
                 * Use `allRules` to get all applicable rules including default and
                 * user-defined ones.
                 *
                 * @param {List<IResponsiveRule>}  value  User-defined rules
                 */
                set: function (value) {
                    this._rules = value;
                    this._enabled = true;
                    this.applyRules();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Responsive.prototype, "defaultRules", {
                /**
                 * Default responsive rules.
                 *
                 * @readonly
                 * @return {List<IResponsiveRule>} List of responsive rules
                 */
                get: function () {
                    return this.adapter.apply("defaultRules", this._defaultRules);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Responsive.prototype, "allRules", {
                /**
                 * Returns all rules: default rules (if not disabled) combined with
                 * user-defined ones.
                 *
                 * @readonly
                 * @return {List<IResponsiveRule>} List of all applicable rules
                 */
                get: function () {
                    // Create empty list
                    var rules = new _utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                    // Add default rules if not disabled
                    // A code, requesting `allRules` must ensure loading of default rules
                    // by calling `loadDefaultRules()`
                    if (this.useDefault) {
                        rules.copyFrom(this.defaultRules);
                    }
                    // Add user-defined ones
                    rules.copyFrom(this.rules);
                    return this.adapter.apply("allRules", rules);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Checks if rule by the particular id currently applied.
             *
             * @param  {string}   ruleId  Rule ID
             * @return {boolean}          Is currently applied?
             */
            Responsive.prototype.isApplied = function (ruleId) {
                var rule = this._appliedRules[ruleId];
                return _utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](rule) ? rule : false;
            };
            /**
             * Checks which responsive rules currently satisfy their conditions and
             * should be applied, or unapplied.
             *
             * @ignore Exclude from docs
             */
            Responsive.prototype.checkRules = function () {
                var _this = this;
                // Check if default rules need to be loaded
                // If needed, we wait until it's loaded and then call `checkRules` again
                if (this.useDefault && this.defaultRules.length == 0) {
                    this.loadDefaultRules().then(function (res) {
                        _this._defaultRules.setAll(res.default);
                        _this.checkRules();
                    });
                    return;
                }
                // Check if there are any rules
                var rules = this.allRules;
                if (!rules || rules.length == 0) {
                    return;
                }
                // Init a list of rules to be applied
                var rulesChanged = false;
                var component = _utils_Type__WEBPACK_IMPORTED_MODULE_7__["getValue"](this.component);
                // Check which rules match
                _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](rules.iterator(), function (rule) {
                    // Check if rule has an id
                    if (!rule.id) {
                        rule.id = _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].getUniqueId();
                    }
                    // Init indicator if this rule should be applied
                    var apply = rule.relevant(component);
                    // Let's check if this rule needs to be applied
                    if ((apply && !_this.isApplied(rule.id)) || (!apply && _this.isApplied(rule.id))) {
                        rulesChanged = true;
                    }
                    _this._appliedRules[rule.id] = apply;
                });
                // Check if we need to re-apply the rules
                if (rulesChanged) {
                    this.applyRules();
                }
            };
            /**
             * Applies current rules to the object.
             *
             * @ignore Exclude from docs
             * @param {any} target Target object
             * @todo Better type check
             */
            Responsive.prototype.applyRules = function (target) {
                var _this = this;
                // If no target supplied, we assume the top-level element
                var newTarget = (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](target)
                    ? target
                    : _utils_Type__WEBPACK_IMPORTED_MODULE_7__["getValue"](this.component));
                // Check each rule
                var defaultStateApplied = false;
                if (this.enabled) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](this.allRules.iterator(), function (rule) {
                        // Get relevant state
                        var state = _this.getState(rule, newTarget);
                        // If there's a state, it means it needs to be applied
                        if (state) {
                            // Check if default state was already applied to this element.
                            // We don't want to go resetting default states to ALL element,
                            // if they don't have responsive states.
                            if (!defaultStateApplied) {
                                // Nope, reset states (instantly).
                                //console.log("Applying default state to " + newTarget.className + " (" + newTarget.uid + "): " + JSON.stringify(newTarget.defaultState.properties));
                                newTarget.applyCurrentState(0);
                                defaultStateApplied = true;
                            }
                            // Is this rule currently applied?
                            if (_this.isApplied(_utils_Type__WEBPACK_IMPORTED_MODULE_7__["getValue"](rule.id))) {
                                // Yes. Apply the responsive state
                                //console.log("Applying state to " + newTarget.className + " (" + newTarget.uid + "): " + JSON.stringify(state.properties));
                                newTarget.setState(state);
                            }
                        }
                    });
                }
                // Apply rules to the children
                if (newTarget.children) {
                    _utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](newTarget.children.iterator(), function (child) {
                        _this.applyRules(child);
                    });
                }
            };
            /**
             * Applies specific oresponsive overrides to the element.
             *
             * @ignore Exclude from docs
             * @param {IResponsiveRule}  rule    Responsive rule
             * @param {any}              target  Target element
             * @deprecated
             * @hidden
             */
            /*	public applyRule(rule: IResponsiveRule, target: any): void {
        
                    // Construct state id
                    //let stateId = "responsive-" + rule.id;
        
                    // Check if we need to create a state for the element
                    let state = this.getState(rule, target);
        
                    // Apply the state
                    if (state) {
                        //if (target.className == "Container" && target.parent.className == "ZoomControl") {
                        console.log("Applying state to " + target.className + " (" + target.uid + "): " + JSON.stringify(state.properties));
                        //}
                        target.setState(state);
                    }
        
                }*/
            /**
             * Returns a relative state for the rule/target, or `undefined` if no state is
             * needed.
             *
             * @param  {IResponsiveRule}  rule    [description]
             * @param  {any}              target  [description]
             * @return {Optional}                 [description]
             */
            Responsive.prototype.getState = function (rule, target) {
                var stateId = "responsive-" + rule.id;
                var tmpId = target.uid + "_" + stateId;
                if (_utils_Array__WEBPACK_IMPORTED_MODULE_6__["indexOf"](this._noStates, tmpId) !== -1) {
                    return;
                }
                else if (!target.states.hasKey(stateId)) {
                    var state = rule.state(target, stateId);
                    if (!state) {
                        this._noStates.push(tmpId);
                    }
                    return state;
                }
                else {
                    return target.states.getKey(stateId);
                }
            };
            /**
             * Gets a value from an element.
             *
             * @ignore Exclude from docs
             * @param  {any}     target    Target object
             * @param  {string}  property  Property
             * @return {any}               Property value
             */
            Responsive.prototype.getValue = function (target, property) {
                // This is a bit hacky, first we check if the property exist.
                // If it doesn't we try accessing target's property directly
                var value = target.getPropertyValue(property);
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](value) && _utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](target[property])) {
                    value = target[property];
                }
                return value;
            };
            /**
             * Loads default responsive rules.
             *
             * @ignore Exclude from docs
             * @return {Promise<any>} Responsive rules
             */
            Responsive.prototype.loadDefaultRules = function () {
                return __webpack_require__.e(/* import() */ 4).then(__webpack_require__.bind(null, 839));
            };
            return Responsive;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        //# sourceMappingURL=Responsive.js.map
        /***/ 
    }),
    /* 839 */ ,
    /* 840 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRenderer", function () { return AxisRenderer; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _AxisLine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(841);
        /* harmony import */ var _AxisFill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(842);
        /* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(843);
        /* harmony import */ var _AxisLabel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(844);
        /* harmony import */ var _AxisTick__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(846);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(769);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(756);
        /**
         * Module, defining base Axis Renderer.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for all axis renderers.
         *
         * @see {@link IAxisRendererEvents} for a list of available events
         * @see {@link IAxisRendererAdapters} for a list of available Adapters
         */
        var AxisRenderer = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRenderer, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRenderer() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A related chart.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._chart = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "AxisRenderer";
                // Set defaults
                _this.minGridDistance = 50;
                _this.inside = false;
                _this.inversed = false;
                _this.tooltipLocation = 0.5;
                _this.fullWidthTooltip = false;
                _this.cellStartLocation = 0;
                _this.cellEndLocation = 1;
                _this.minLabelPosition = 0;
                _this.maxLabelPosition = 1;
                _this.shouldClone = false;
                var gridContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]);
                gridContainer.shouldClone = false;
                gridContainer.layout = "none";
                gridContainer.isMeasured = false;
                gridContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                gridContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                _this.gridContainer = gridContainer;
                // not good without this
                gridContainer.events.on("maxsizechanged", function () {
                    if (_this.inited) {
                        _this.invalidateAxisItems();
                    }
                }, _this, false);
                var breakContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]);
                breakContainer.shouldClone = false;
                breakContainer.isMeasured = false;
                breakContainer.layout = "none";
                breakContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                breakContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                _this.breakContainer = breakContainer;
                _this.line = _this.createChild(_AxisLine__WEBPACK_IMPORTED_MODULE_3__["AxisLine"]);
                _this.line.shouldClone = false;
                _this.line.strokeOpacity = 0;
                _this.ticks.template.strokeOpacity = 0;
                var baseGrid = _this.createChild(_Grid__WEBPACK_IMPORTED_MODULE_5__["Grid"]);
                baseGrid.shouldClone = false;
                _this.baseGrid = baseGrid;
                // Make elements disposable
                var disposers = _this._disposers;
                disposers.push(baseGrid);
                disposers.push(_this.line);
                disposers.push(gridContainer);
                disposers.push(breakContainer);
                disposers.push(_this._chart);
                //this.axisFills.template.disabled = true;
                _this.axisFills.template.interactionsEnabled = false;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(AxisRenderer.prototype, "axis", {
                get: function () {
                    return this._axis;
                },
                set: function (axis) {
                    this.setAxis(axis);
                },
                enumerable: true,
                configurable: true
            });
            /**
            * @ignore
            */
            AxisRenderer.prototype.setAxis = function (axis) {
                this._axis = axis;
                this.baseGrid.parent = axis;
                this.line.parent = axis;
            };
            /**
             * Called when rendered is attached to an Axis, as well as a property of
             * Axis that might affect the appearance is updated.
             *
             * E.g. `axis.opposite`, `axis.inside`, etc.
             *
             * This method is called **before** draw, so that any related setting
             * changed in this method can be changed.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRenderer.prototype.processRenderer = function () {
                this.events.on("sizechanged", this.updateTooltip, this, false);
                this.events.on("positionchanged", this.updateTooltip, this, false);
                this.labels.template.inside = this.inside;
                this.ticks.template.inside = this.inside;
            };
            /**
             * Updates Axis' tooltip.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRenderer.prototype.updateTooltip = function () {
                // This is a placeholder method for extending classes to override.
            };
            Object.defineProperty(AxisRenderer.prototype, "axisLength", {
                /**
                 * Returns actual length of the Axis, in pixels.
                 *
                 * @return {number} Length (px)
                 */
                get: function () {
                    // This is a placeholder method for extending classes to override.
                    return 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Re-positions an element to new coordinates.
             *
             * @ignore Exclude from docs
             * @param {Sprite}  item   A target element
             * @param {IPoint}  point  New coordinates
             */
            AxisRenderer.prototype.positionItem = function (item, point) {
                if (item) {
                    item.moveTo(point);
                }
            };
            /**
             * Converts relative position on axis to point coordinates.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (0-1)
             * @return {IPoint}            Point
             */
            AxisRenderer.prototype.positionToPoint = function (position) {
                // This is a placeholder method for extending classes to override.
                return { x: 0, y: 0 };
            };
            /**
             * Converts relative position on axis to angle.
             *
             * @ignore Exclude from docs
             * @todo Description (review / units)
             * @param  {number}  position  Position (0-1)
             * @return {number}            Angle
             */
            AxisRenderer.prototype.positionToAngle = function (position) {
                // This is a placeholder method for extending classes to override.
                return 0;
            };
            /**
             * Converts relative position (0-1) on axis to a pixel coordinate.
             *
             * @param  {number}  position  Position (0-1)
             * @return {number}            Coordinate (px)
             */
            AxisRenderer.prototype.positionToCoordinate = function (position) {
                var coordinate;
                var axis = this.axis;
                var axisFullLength = axis.axisFullLength;
                if (axis.renderer.inversed) {
                    coordinate = (axis.end - position) * axisFullLength;
                }
                else {
                    coordinate = (position - axis.start) * axisFullLength;
                }
                return coordinate;
            };
            AxisRenderer.prototype.getHeight = function () {
                var axis = this.axis;
                if (axis && axis.chart) {
                    var chart = this.axis.chart;
                    if (chart.plotContainer) {
                        return chart.plotContainer.pixelHeight || 0;
                    }
                }
                return this.gridContainer.pixelHeight || 0;
            };
            AxisRenderer.prototype.getWidth = function () {
                var axis = this.axis;
                if (axis && axis.chart) {
                    var chart = this.axis.chart;
                    if (chart.plotContainer) {
                        return chart.plotContainer.pixelWidth || 0;
                    }
                }
                return this.gridContainer.pixelWidth || 0;
            };
            /**
             * Converts a coordinate in pixels to a relative position. (0-1)
             *
             * @param  {number}  coordinate  Coordinate (px)
             * @return {number}              Position (0-1)
             */
            AxisRenderer.prototype.coordinateToPosition = function (coordinate) {
                var position;
                var axis = this.axis;
                var axisFullLength = axis.axisFullLength;
                if (axis.renderer.inversed) {
                    position = axis.end - coordinate / axisFullLength;
                }
                else {
                    position = coordinate / axisFullLength + axis.start;
                }
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](position, 5);
            };
            /**
             * Converts a point at specific coordinates to a relative position (0-1)
             * on the axis.
             *
             * @ignore Exclude from docs
             * @param  {IPoint}  point  Point
             * @return {number}         Position (0-1)
             */
            AxisRenderer.prototype.pointToPosition = function (point) {
                // This is a placeholder method for extending classes to override.
                return 0;
            };
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  startPosition  Starting position
             * @param  {number}  endPosition    End position
             * @return {string}                 SVG path
             */
            AxisRenderer.prototype.getPositionRangePath = function (startPosition, endPosition) {
                return "";
            };
            /**
             * Invalidates all axis data items, effectively causing them re-evaluated.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            AxisRenderer.prototype.invalidateAxisItems = function () {
                var axis = this.axis;
                if (axis) {
                    axis.invalidateDataItems();
                }
            };
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRenderer.prototype.updateGridElement = function (grid, position, endPosition) {
                // This is a placeholder method for extending classes to override.
            };
            /**
             * Updates and positions a tick element.
             *
             * @ignore Exclude from docs
             * @param {AxisTick}  tick         Tick element
             * @param {number}    position     Starting position
             * @param {number}    endPosition  End position
             */
            AxisRenderer.prototype.updateTickElement = function (tick, position, endPosition) {
                // This is a placeholder method for extending classes to override.
            };
            /**
             * Updates and positions a label element.
             *
             * @ignore Exclude from docs
             * @param {AxisLabel}  label        Label element
             * @param {number}     position     Starting position
             * @param {number}     endPosition  Ending position
             */
            AxisRenderer.prototype.updateLabelElement = function (label, position, endPosition, location) {
                // This is a placeholder method for extending classes to override.
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             * @param {AxisFill}  fill         Fill element
             * @param {number}    position     Starting position
             * @param {number}    endPosition  Ending position
             */
            AxisRenderer.prototype.updateFillElement = function (fill, position, endPosition) {
                fill.startPosition = position;
                fill.endPosition = endPosition;
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             */
            AxisRenderer.prototype.updateAxisLine = function () {
                // This is a placeholder method for extending classes to override.
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRenderer.prototype.updateBaseGridElement = function () {
                // This is a placeholder method for extending classes to override.
            };
            /**
             * Updates and positions an axis break element.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Break element
             */
            AxisRenderer.prototype.updateBreakElement = function (axisBreak) {
                this.positionItem(axisBreak.startLine, axisBreak.startPoint);
                this.toggleVisibility(axisBreak.startLine, axisBreak.startPosition, 0, 1);
                this.positionItem(axisBreak.endLine, axisBreak.endPoint);
                this.toggleVisibility(axisBreak.endLine, axisBreak.endPosition, 0, 1);
            };
            Object.defineProperty(AxisRenderer.prototype, "minGridDistance", {
                /**
                 * @return {number} Min distance (px)
                 */
                get: function () {
                    return this.getPropertyValue("minGridDistance");
                },
                /**
                 * Minimum distance in pixels between grid elements.
                 *
                 * @param {number}  value  Min distance (px)
                 */
                set: function (value) {
                    if (this.setPropertyValue("minGridDistance", value)) {
                        if (this.axis) {
                            this.axis.invalidateLayout();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "chart", {
                /**
                 * @ignore Exclude from docs
                 * @return {Chart} Chart
                 */
                get: function () {
                    return this._chart.get();
                },
                /**
                 * A chart, associated with the Axis.
                 *
                 * @ignore Exclude from docs
                 * @param {Chart}  value  Chart
                 */
                set: function (value) {
                    this._chart.set(value, null);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Toggles visibility of an element, based on its current position and
             * min/max position settings.
             *
             * E.g. labels based on `minLabelPosition` and `maxLabelPosition`.
             *
             * @ignore Exclude from docs
             * @param {Sprite}  sprite       An element to toggle
             * @param {number}  position     Elements current position
             * @param {number}  minPosition  Min position setting
             * @param {number}  maxPosition  Max position setting
             */
            AxisRenderer.prototype.toggleVisibility = function (sprite, position, minPosition, maxPosition) {
                var axis = this.axis;
                var updatedStart = axis.start + (axis.end - axis.start) * minPosition - 0.00001;
                var updatedEnd = axis.start + (axis.end - axis.start) * maxPosition + 0.00001;
                if (!sprite.disabled) {
                    if (position < updatedStart || position > updatedEnd) {
                        sprite.__disabled = true;
                    }
                    else {
                        sprite.__disabled = false;
                    }
                }
            };
            /**
             * Creates visual elements for and axis break.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Axis break
             */
            AxisRenderer.prototype.createBreakSprites = function (axisBreak) {
                // This is a placeholder method for extending classes to override.
            };
            Object.defineProperty(AxisRenderer.prototype, "axisFills", {
                /**
                 * A list of Axis' Fill elements.
                 *
                 * @return {ListTemplate} Fill elements
                 */
                get: function () {
                    if (!this._axisFills) {
                        this._axisFills = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListTemplate"](this.createFill(this.axis));
                        this._axisFills.template.applyOnClones = true;
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._axisFills));
                        this._disposers.push(this._axisFills.template);
                    }
                    return this._axisFills;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a new fill element, suitable for this Axis Renderer type.
             *
             * @return {AxisFill} Fill element
             */
            AxisRenderer.prototype.createFill = function (axis) {
                return new _AxisFill__WEBPACK_IMPORTED_MODULE_4__["AxisFill"](axis);
            };
            Object.defineProperty(AxisRenderer.prototype, "grid", {
                /**
                 * A list of Axis' Grid elements.
                 *
                 * @return {ListTemplate} Grid elements
                 */
                get: function () {
                    if (!this._grid) {
                        this._grid = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListTemplate"](this.createGrid());
                        this._grid.template.applyOnClones = true;
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._grid));
                        this._disposers.push(this._grid.template);
                    }
                    return this._grid;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a new grid element, suitable for this Axis Renderer type.
             *
             * @return {Grid} Grid element
             */
            AxisRenderer.prototype.createGrid = function () {
                return new _Grid__WEBPACK_IMPORTED_MODULE_5__["Grid"]();
            };
            Object.defineProperty(AxisRenderer.prototype, "ticks", {
                /**
                 * A list of Axis' Tick elements.
                 *
                 * @return {ListTemplate} Tick elements
                 */
                get: function () {
                    if (!this._ticks) {
                        var tick = this.createTick();
                        tick.applyOnClones = true;
                        tick.isMeasured = false;
                        this._ticks = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListTemplate"](tick);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._ticks));
                        this._disposers.push(this._ticks.template);
                    }
                    return this._ticks;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a new tick element, suitable for this Axis Renderer type.
             *
             * @return {AxisTick} Tick element
             */
            AxisRenderer.prototype.createTick = function () {
                return new _AxisTick__WEBPACK_IMPORTED_MODULE_7__["AxisTick"]();
            };
            Object.defineProperty(AxisRenderer.prototype, "labels", {
                /**
                 * A list of Axis' Label elements.
                 *
                 * @return {ListTemplate} Label elements
                 */
                get: function () {
                    if (!this._labels) {
                        this._labels = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListTemplate"](this.createLabel());
                        this._labels.template.applyOnClones = true;
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._labels));
                        this._disposers.push(this._labels.template);
                    }
                    return this._labels;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a new label element, suitable for this Axis Renderer type.
             *
             * @return {AxisLabel} Label element
             */
            AxisRenderer.prototype.createLabel = function () {
                return new _AxisLabel__WEBPACK_IMPORTED_MODULE_6__["AxisLabel"]();
            };
            Object.defineProperty(AxisRenderer.prototype, "inside", {
                /**
                 * @return {boolean} Labels inside?
                 */
                get: function () {
                    return this.getPropertyValue("inside");
                },
                /**
                 * Indicates whether Axis' labels and ticks should be drawn inside Plot area.
                 *
                 * Does not work with all renderers, like AxisRendererRadial.
                 *
                 * @param {boolean}  value  Labels inside?
                 */
                set: function (value) {
                    this.setPropertyValue("inside", value);
                    if (this.axis) {
                        this.axis.invalidateDataRange();
                    }
                    // todo: not a very good hack, but for some reason size is not update, need to check
                    if (value) {
                        this.width = 0;
                        this.height = 0;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "opposite", {
                /**
                 * @return {boolean} Draw axis on opposite side?
                 */
                get: function () {
                    return this.getPropertyValue("opposite");
                },
                /**
                 * Indicates whether Axis should be drawn on the opposite side of the plot
                 * area than it would normally be drawn based on chart's settings.
                 *
                 * Does not work with all renderers, like [[AxisRendererRadial]] and
                 * [[AxisRenderer Circular].
                 *
                 * @param {boolean}  value  Draw axis on opposite side?
                 */
                set: function (value) {
                    this.setPropertyValue("opposite", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "fullWidthTooltip", {
                /**
                 * @return {boolean} Full width tooltip?
                 */
                get: function () {
                    return this.getPropertyValue("fullWidthTooltip");
                },
                /**
                 * Indicates if Axis tooltip should take the whole width of the axis cell.
                 * (between two grid lines)
                 *
                 * NOTE: this setting is ignored on circular axis types.
                 *
                 * @param {boolean} value Full width tooltip?
                 */
                set: function (value) {
                    this.setPropertyValue("fullWidthTooltip", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "tooltipLocation", {
                /**
                 * @return {number} Tooltip location
                 */
                get: function () {
                    return this.getPropertyValue("tooltipLocation");
                },
                /**
                 * Location within axis cell to show tooltip on. (0-1)
                 *
                 * 0 - show at the start
                 * 0.5 - show right in the middle
                 * 1 - show at the end
                 *
                 * @param {number} value Tooltip location
                 */
                set: function (value) {
                    this.setPropertyValue("tooltipLocation", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "cellStartLocation", {
                /**
                 * @return {number} Cell start (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("cellStartLocation");
                },
                /**
                 * Location for the cell start.
                 *
                 * Normally a "cell" is the whole available width in a category.
                 *
                 * If there are several clustered column-like series available, the whole
                 * space is divided between each clustered column, or column stacks.
                 *
                 * `cellStartLocation` identifies where, within available space, the actual
                 * cell starts.
                 *
                 * This, together with column series' `width` will affect actual width of
                 * columns, and thus gaps between them.
                 *
                 * This will affect category-like axes only, like [[DateAxis]], or
                 * [[CategoryAxis]].
                 *
                 * This is used to limit a space occupied by series like column.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/positioning-axis-elements/} for more info.
                 * @param {number} value Cell start (0-1)
                 */
                set: function (value) {
                    if (this.setPropertyValue("cellStartLocation", value)) {
                        if (this.axis) {
                            this.axis.invalidateSeries();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "cellEndLocation", {
                /**
                 * @return {number} Cell end (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("cellEndLocation");
                },
                /**
                 * Location for the cell end.
                 *
                 * Normally a "cell" is the whole available width in a category.
                 *
                 * If there are several clustered column-like series available, the whole
                 * space is divided between each clustered column, or column stacks.
                 *
                 * `cellEndLocation` identifies where, within available space, the actual
                 * cell ends.
                 *
                 * This, together with column series' `width` will affect actual width of
                 * columns, and thus gaps between them.
                 *
                 * This will affect category-like axes only, like [[DateAxis]], or
                 * [[CategoryAxis]].
                 *
                 * This is used to limit a space occupied by series like column.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/positioning-axis-elements/} for more info.
                 * @param {number} value Cell end (0-1)
                 */
                set: function (value) {
                    if (this.setPropertyValue("cellEndLocation", value)) {
                        if (this.axis) {
                            this.axis.invalidateSeries();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "inversed", {
                /**
                 * @return {boolean} Flip axis?
                 */
                get: function () {
                    return this.getPropertyValue("inversed");
                },
                /**
                 * Indicates if the scale of the axis should be flipped.
                 *
                 * @param {boolean} value Flip axis?
                 */
                set: function (value) {
                    this.setPropertyValue("inversed", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "minLabelPosition", {
                /**
                 * @return {number} Min label position (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("minLabelPosition");
                },
                /**
                 * Minimum position along the Axis, for labels.
                 *
                 * Labels, which have their position closer to the start of the Axis, will be
                 * automatically hidden.
                 *
                 * E.g., setting this to 0.05 (5% of total axis length) would hide labels,
                 * that would otherwise be drawn very near start of the Axis.
                 *
                 * This is especially usefull with `inside = true`, or if the chart hasn't
                 * got any extra margins.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/positioning-axis-elements/} for more info.
                 * @param {number}  value  Min label position (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("minLabelPosition", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRenderer.prototype, "maxLabelPosition", {
                /**
                 * @return {number} Max label position (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("maxLabelPosition");
                },
                /**
                 * Maximum position along the Axis, for labels.
                 *
                 * Labels, which have their position closer to the and of the Axis, will be
                 * automatically hidden.
                 *
                 * E.g., setting this to 0.95 (95% of total axis length) would hide labels,
                 * that would otherwise be drawn very near end of the Axis.
                 *
                 * This is especially usefull with `inside = true`, or if the chart hasn't
                 * got any extra margins.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/positioning-axis-elements/} for more info.
                 * @param {number}  value  Max label position (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("maxLabelPosition", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all settings and related items from another object of the same
             * type.
             *
             * @param {this}  source  Source object
             */
            AxisRenderer.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.grid.template.copyFrom(source.grid.template);
                this.ticks.template.copyFrom(source.ticks.template);
                this.labels.template.copyFrom(source.labels.template);
                this.axisFills.template.copyFrom(source.axisFills.template);
                this.line.copyFrom(source.line);
                this.baseGrid.copyFrom(source.baseGrid);
            };
            return AxisRenderer;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_9__["registry"].registeredClasses["AxisRenderer"] = AxisRenderer;
        //# sourceMappingURL=AxisRenderer.js.map
        /***/ 
    }),
    /* 841 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisLine", function () { return AxisLine; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /**
         *
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to draw Axis line.
         *
         * @see {@link IAxisLineEvents} for a list of available events
         * @see {@link IAxisLineAdapters} for a list of available Adapters
         */
        var AxisLine = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisLine, _super);
            /**
             * Constructor
             */
            function AxisLine() {
                var _this = _super.call(this) || this;
                _this.className = "AxisLine";
                _this.element = _this.paper.add("path");
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                _this.stroke = interfaceColors.getFor("grid");
                _this.strokeOpacity = 0.15;
                _this.pixelPerfect = true;
                _this.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_3__["color"])();
                _this.applyTheme();
                _this.interactionsEnabled = false;
                return _this;
                //this.element.moveTo({ x: 0, y: 0 });
            }
            return AxisLine;
        }(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["AxisLine"] = AxisLine;
        //# sourceMappingURL=AxisLine.js.map
        /***/ 
    }),
    /* 842 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisFill", function () { return AxisFill; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * AxisFill is a base class used to defines fill shapes for various
         * type-specific Axes.
         *
         * Axis fills are used to add fills to specific ranges of those axes.
         *
         * @see {@link IAxisFillEvents} for a list of available events
         * @see {@link IAxisFillAdapters} for a list of available Adapters
         * @important
         */
        var AxisFill = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisFill, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Axis
             */
            function AxisFill(axis) {
                var _this = _super.call(this) || this;
                _this.axis = axis;
                _this.element = _this.paper.add("path");
                _this.className = "AxisFill";
                _this.isMeasured = false;
                _this.location = 0;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__["InterfaceColorSet"]();
                _this.fill = interfaceColors.getFor("alternativeBackground");
                _this.fillOpacity = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * @ignore
             */
            AxisFill.prototype.setDisabled = function (value) {
                _super.prototype.setDisabled.call(this, value);
                if (this.axis) {
                    this.axis.invalidateDataItems();
                }
            };
            /**
             * Draws the fill element.
             *
             * @ignore Exclude from docs
             */
            AxisFill.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this.axis && _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.startPosition) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.endPosition)) {
                    this.fillPath = this.axis.getPositionRangePath(this.startPosition, this.endPosition);
                    this.path = this.fillPath;
                }
            };
            Object.defineProperty(AxisFill.prototype, "startPosition", {
                /**
                 * @return {number} Start position
                 */
                get: function () {
                    return this.getPropertyValue("startPosition");
                },
                /**
                 * An actual starting position of the fill.
                 *
                 * @param {number}  value  Starting position
                 */
                set: function (value) {
                    this.setPropertyValue("startPosition", value);
                    this.invalidate(); // this is needed as relative position might not change when zooming
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisFill.prototype, "endPosition", {
                /**
                 * @return {number} End position
                 */
                get: function () {
                    return this.getPropertyValue("endPosition");
                },
                /**
                 * An actual end position of the fill.
                 *
                 * @param {number} value End position
                 */
                set: function (value) {
                    this.setPropertyValue("endPosition", value);
                    this.invalidate(); // this is needed as relative position might not change when zooming
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisFill.prototype, "location", {
                /**
                 * @return {AxisItemLocation} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("location");
                },
                /**
                 * Relative location of the fill. (0-1)
                 *
                 * @param {number} value Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("location", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return AxisFill;
        }(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["AxisFill"] = AxisFill;
        //# sourceMappingURL=AxisFill.js.map
        /***/ 
    }),
    /* 843 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Grid", function () { return Grid; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /**
         * A module defining functionality for axis grid elements.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Displays an axis grid line.
         *
         * @see {@link IGridEvents} for a list of available events
         * @see {@link IGridAdapters} for a list of available Adapters
         * @todo Review: container is better, as we'll be able to attach something to the grid, also with 3d charts we might need some additional elements
         * @important
         */
        var Grid = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Grid, _super);
            /**
             * Constructor
             */
            function Grid() {
                var _this = _super.call(this) || this;
                _this.className = "Grid";
                _this.element = _this.paper.add("path");
                _this.location = 0.5;
                _this.isMeasured = false;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                _this.stroke = interfaceColors.getFor("grid");
                _this.pixelPerfect = true;
                _this.strokeOpacity = 0.15;
                _this.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_3__["color"])(); // "none";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Grid.prototype, "location", {
                /**
                 * @return {AxisItemLocation} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("location");
                },
                /**
                 * Location within axis cell to place grid line on.
                 *
                 * * 0 - start
                 * * 0.5 - middle
                 * * 1 - end
                 *
                 * @param {AxisItemLocation}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("location", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            Grid.prototype.setDisabled = function (value) {
                _super.prototype.setDisabled.call(this, value);
                if (this.axis) {
                    this.axis.invalidateDataItems();
                }
            };
            return Grid;
        }(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Grid"] = Grid;
        //# sourceMappingURL=Grid.js.map
        /***/ 
    }),
    /* 844 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisLabel", function () { return AxisLabel; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(845);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Axis Label module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Use to create labels on Axis.
         *
         * @see {@link IAxisLabelEvents} for a list of available events
         * @see {@link IAxisLabelAdapters} for a list of available Adapters
         * @important
         */
        var AxisLabel = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisLabel, _super);
            /**
             * Constructor
             */
            function AxisLabel() {
                var _this = _super.call(this) || this;
                _this.className = "AxisLabel";
                _this.isMeasured = false;
                _this.padding(10, 10, 10, 10);
                _this.location = 0.5;
                _this.nonScaling = true;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(AxisLabel.prototype, "location", {
                /**
                 * @return {AxisItemLocation} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("location");
                },
                /**
                 * Relative location of the label. (0-1)
                 *
                 * @param {AxisItemLocation}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("location", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisLabel.prototype, "inside", {
                /**
                 * Returns if label is set to be drawn inside axis.
                 *
                 * @return {boolean} Inside?
                 */
                get: function () {
                    return this.getPropertyValue("inside");
                },
                /**
                 * Sets if label should be drawn inside axis.
                 *
                 * @param {boolean}  value  Inside?
                 */
                set: function (value) {
                    this.setPropertyValue("inside", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            AxisLabel.prototype.setDisabled = function (value) {
                _super.prototype.setDisabled.call(this, value);
                if (this.axis) {
                    this.axis.invalidateDataItems();
                }
            };
            return AxisLabel;
        }(_core_elements_Label__WEBPACK_IMPORTED_MODULE_1__["Label"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["AxisLabel"] = AxisLabel;
        //# sourceMappingURL=AxisLabel.js.map
        /***/ 
    }),
    /* 845 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Label", function () { return Label; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(808);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(800);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /**
         * Text class deals with all text placed on chart.
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Text is used to display highly configurable, data-enabled textual elements.
         *
         * ## Data Binding
         *
         * A Text element can dynamically parse and populate its contents with values
         * from a [[DataItem]].
         *
         * To activate such binding, set element's `dataItem` property.
         *
         * When activated, text contents will be parsed for special tags, e.g.:
         *
         * ```TypeScript
         * label.dataItem = myDataItem;
         * label.text = "The title is: {title}";
         * ```
         * ```JavaScript
         * label.dataItem = myDataItem;
         * label.text = "The title is: {title}";
         * ```
         *
         * The above will automatically replace "{title}" in the string with the
         * actual data value from `myDataItem`.
         *
         * Note, that most often dataItem is set by the Component.
         *
         *
         * @see {@link ILabelEvents} for a list of available events
         * @see {@link ILabelAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-strings/} for info on string formatting and data binding
         * @todo Vertical align
         * @important
         */
        var Label = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Label, _super);
            /**
             * Constructor
             */
            function Label() {
                var _this = 
                // Execute super's constructor
                _super.call(this) || this;
                /**
                 * Indicates if the whole text does not fit into max dimenstions set for it.
                 *
                 * @type {boolean}
                 */
                _this.isOversized = false;
                // Set this class name
                _this.className = "Label";
                _this.fill = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__["InterfaceColorSet"]().getFor("text");
                // not good to set this, as then these will appear on each label and values set on container won't be applied.
                //this.textDecoration = "none";
                //this.fontWeight = "normal";
                // Set defaults
                _this.wrap = false;
                _this.truncate = false;
                _this.fullWords = true;
                _this.ellipsis = "...";
                _this.textAlign = "start";
                _this.textValign = "top";
                _this.layout = "absolute";
                // Set up adapters for manipulating accessibility
                _this.adapter.add("readerTitle", function (arg) {
                    if (!arg) {
                        arg = _this.populateString(_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["plainText"](_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["isNotEmpty"](_this.html)
                            ? _this.html
                            : _this.text));
                    }
                    return arg;
                });
                // Add events to watch for maxWidth/maxHeight changes so that we can
                // invalidate this
                _this.events.on("maxsizechanged", function () {
                    if (_this.inited) {
                        _this.handleMaxSize();
                    }
                }, _this, false);
                // this solves strange bug when text just added to svg is 0x0
                _this.events.once("validated", _this.handleValidate, _this, false);
                // Aply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * A placeholder method that is called **after** element finishes drawing
             * itself.
             *
             * @ignore Exclude from docs
             */
            Label.prototype.afterDraw = function () {
                // since we removed validatePosition from sprite, we still need it here to handle rotated text
                _super.prototype.afterDraw.call(this);
                this.validatePosition();
            };
            /**
             * Sets [[Paper]] instance to use to draw elements.
             * @ignore
             * @param {Paper} paper Paper
             * @return {boolean} true if paper was changed, false, if it's the same
             */
            Label.prototype.setPaper = function (paper) {
                var changed = _super.prototype.setPaper.call(this, paper);
                if (changed) {
                    this.hardInvalidate();
                }
                return changed;
            };
            /**
             * @ignore
             */
            Label.prototype.handleValidate = function () {
                if ((this.currentText || this.text) && (this.bbox.width == 0 || this.bbox.height == 0)) {
                    _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].events.once("exitframe", this.hardInvalidate, this);
                }
            };
            /**
             * @ignore
             */
            Label.prototype.handleMaxSize = function () {
                if ((this.bbox.width > this.availableWidth)
                    || ((this.bbox.width < this.availableWidth) && (this.isOversized || this.truncate))
                    || (this.bbox.height > this.availableHeight)
                    || ((this.bbox.height < this.availableHeight) && this.isOversized)) {
                    this.invalidate();
                }
                else {
                    this.alignSVGText();
                }
            };
            /**
             * [arrange description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Label.prototype.arrange = function () {
            };
            /**
             * Updates current text according to data item and supported features.
             * Returns `true` if current text has changed.
             *
             * @return {boolean} Text changed?
             */
            Label.prototype.updateCurrentText = function () {
                // Determine output format
                var output, text;
                if (_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["isNotEmpty"](this.html) && this.paper.supportsForeignObject()) {
                    // We favor HTML text if it's set and browser supports `foreignObject`
                    output = "html";
                    text = this.html;
                }
                else {
                    output = "svg";
                    text = this.text;
                }
                // Need to format text all the time
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](text) && text !== "") {
                    text = this.populateString(text, this.dataItem);
                }
                if (output == "html") {
                    text = this.adapter.apply("htmlOutput", text);
                }
                else {
                    text = this.adapter.apply("textOutput", text);
                }
                // Update the text
                var changed = text != this.currentText || output != this._currentFormat;
                this.currentText = text;
                this._currentFormat = output;
                return changed;
            };
            /**
             * Hard invalidate means the text will be redrawn even if it hasn't changed. This is used when we change fontSize of fontFamily or for some other reasons.
             */
            Label.prototype.hardInvalidate = function () {
                this._prevStatus = "";
                this.invalidate();
            };
            /**
             * Gets line bbox, uses caching to save cpu
             * @ignore
             */
            Label.prototype.getLineBBox = function (lineInfo) {
                //let cacheKey = lineInfo.text + lineInfo.style;
                //let lineBBox = this.getCache(cacheKey);
                //if (!lineBBox) {
                //lineBBox = lineInfo.element.getBBox();
                //if (lineBBox.width != 0 && lineBBox.height != 0) {
                //	this.setCache(cacheKey, lineBBox, 5000);
                //}
                //}
                lineInfo.bbox = lineInfo.element.getBBox();
            };
            /**
             * Draws the textual label.
             *
             * @ignore Exclude from docs
             */
            Label.prototype.draw = function () {
                // Draw super
                _super.prototype.draw.call(this);
                var oldW = this.bbox.width;
                var oldH = this.bbox.height;
                var topParent = this.topParent;
                if (topParent) {
                    if (!topParent.maxWidth || !topParent.maxHeight) {
                        topParent.events.once("maxsizechanged", this.hardInvalidate, this, false);
                        return;
                    }
                }
                // Calculate max width and height
                var maxWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.availableWidth - this.pixelPaddingLeft - this.pixelPaddingRight, 0);
                var maxHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.availableHeight - this.pixelPaddingTop - this.pixelPaddingBottom, 0);
                // save
                var status = maxHeight + "," + maxWidth + this.wrap + this.truncate + this.fullWords + this.rtl + this.ellipsis;
                // Update text
                if (!this.updateCurrentText() && this.inited && this._prevStatus == status) {
                    return;
                }
                this._measuredWidth = 0;
                this._measuredHeight = 0;
                // Reset
                this.isOversized = false;
                // Determine output format
                var output = this._currentFormat;
                var text = this.currentText;
                // Empty string
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](text) || text == "") {
                    this.element.attr({ display: "none" });
                    return;
                }
                // Chop up text into lines
                // We're still processing SVG and HTML in the same way for now
                var lines = text.split("\n");
                // Do we need to go through the trouble of measuring lines
                //let measure: boolean = true;// (lines.length > 1) || this.wrap;
                this._prevStatus = status;
                this.textAlign = this.textAlign;
                // need this to measure
                var display = this.group.getAttr("display");
                if (display == "none") {
                    this.group.removeAttr("display");
                }
                // SVG or HTML?
                if (output === "svg") {
                    /**
                     * SVG
                     */
                    this.element.removeAttr("display");
                    // Clear the element
                    var group = this.element;
                    this.resetBBox();
                    // Init state variables
                    var currentHeight = 0;
                    var currentFormat = "";
                    // Process each line
                    for (var i = 0; i < lines.length; i++) {
                        // Get line
                        var line = lines[i];
                        // Check if line is empty
                        if (line == "") {
                            // It is, let's just update currentHeight and go to the next one
                            // If it's the first line, we'll have to use arbirary line height,
                            // since there's nothing to measure. For subsequent lines we can take
                            // previous line's height
                            var tempElement = this.getSVGLineElement("", 0);
                            tempElement.add(this.getSvgElement(".", Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().translateStyleShortcuts(currentFormat)));
                            group.add(tempElement);
                            var offset = Math.ceil(tempElement.getBBox().height);
                            if (offset > 0) {
                                currentHeight += offset;
                            }
                            group.removeElement(tempElement);
                            continue;
                        }
                        // Chunk up the line and process each chunk
                        var chunks = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().chunk(line, null, this.ignoreFormatting);
                        var currentLineHeight = 0;
                        var firstChunk = true;
                        var skipTextChunks = false;
                        // Create line element or grab it from cache
                        var lineInfo = void 0;
                        if (lineInfo = this.getLineInfo(i)) {
                            // Empty line
                            lineInfo.element.textContent = "";
                        }
                        else {
                            // Init new line info
                            lineInfo = {
                                "element": this.getSVGLineElement("", 0),
                                "complex": false
                            };
                            // Create the line element
                            //lineInfo.element = this.getSVGLineElement("", 0);
                            //lineElement = this.getSVGLineElement("", 0);
                            group.add(lineInfo.element);
                        }
                        lineInfo.element.removeAttr("display");
                        lineInfo.element.removeChildren(); // memory leak without this
                        if (this.rtl) {
                            chunks.reverse();
                        }
                        // Process each chunk
                        for (var x = 0; x < chunks.length; x++) {
                            // If there's more than one chunk, means the line is "complex"
                            if (x) {
                                lineInfo.complex = true;
                            }
                            // Get chunk
                            var chunk = chunks[x];
                            // Is this chunk format or text?
                            if (chunk.type === "format") {
                                // Log current format, so that we can apply it to multiple lines if
                                // necessary
                                currentFormat = chunk.text;
                            }
                            else {
                                // It's text block
                                // Need to skip?
                                // We do this when truncating. We can't just simply go ahead and
                                // abandon chunk processing as they might have formatting
                                // instructions in them that are relevant for subsequent lines
                                if (skipTextChunks) {
                                    continue;
                                }
                                // Add chunk to the current element
                                //lineInfo.element.content += $utils.trim(getTextFormatter().format(currentFormat + chunk.text, output));
                                lineInfo.text = chunk.text;
                                lineInfo.style = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().translateStyleShortcuts(currentFormat);
                                lineInfo.element.add(this.getSvgElement(lineInfo.text, lineInfo.style));
                                this.getLineBBox(lineInfo);
                                lineInfo.bbox.width = Math.ceil(lineInfo.bbox.width);
                                // Updated current line height
                                if (currentLineHeight < lineInfo.bbox.height) {
                                    currentLineHeight = lineInfo.bbox.height;
                                }
                                // Wrapping?
                                if ((this.wrap || this.truncate) && (lineInfo.bbox.width > maxWidth)) {
                                    // Set oversized
                                    this.isOversized = true;
                                    // Take temporary measurements
                                    var lineText = lineInfo.element.textContent;
                                    var avgCharWidth = (lineInfo.bbox.width / lineText.length); // * .9;
                                    // Calculate average number of symbols / width
                                    var excessChars = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["min"](Math.ceil((lineInfo.bbox.width - maxWidth) / avgCharWidth), lineText.length);
                                    // Are we truncating or auto-wrapping text?
                                    if (this.truncate) {
                                        /**
                                         * Processing line truncation
                                         * With the addition of each text chunk we measure if current
                                         * line does not exceed maxWidth. If it does, we will stop
                                         * addition of further chunks as well as try to truncate
                                         * current or any number of previous chunks with an added
                                         * ellipsis
                                         */
                                        // Indicator whether we need to add ellipsis to the current
                                        // element, even if it fits. This is needed to indicate
                                        // whether we have already removed some subsequent chunks in
                                        // which case we need to add ellipsis.
                                        var addEllipsis = false;
                                        // Process each child in the temporary line, until the whole
                                        // line fits, preferably with an ellipsis
                                        // TODO use iterator instead
                                        var node_1 = lineInfo.element.node;
                                        if (node_1 && node_1.childNodes) {
                                            for (var e = lineInfo.element.node.childNodes.length - 1; e >= 0; e--) {
                                                // Get current element
                                                var node_2 = lineInfo.element.node.childNodes[e];
                                                // Add ellipsis only if previous chunk was removed in full
                                                // and this chunk already fits
                                                //if (addEllipsis && (bbox.width <= maxWidth)) {
                                                if (addEllipsis && (lineInfo.bbox.width <= maxWidth)) {
                                                    // Add ellipsis
                                                    node_2.textContent += " " + this.ellipsis;
                                                    // Measure again (we need to make sure ellipsis fits)
                                                    lineInfo.bbox = lineInfo.element.getBBox();
                                                    lineInfo.bbox.width = Math.floor(lineInfo.bbox.width);
                                                    // If it fits, we're done here
                                                    // If it doesn't we continue rolling
                                                    if (lineInfo.bbox.width <= maxWidth) {
                                                        break;
                                                    }
                                                }
                                                addEllipsis = false;
                                                // Get element text
                                                var elementText = node_2.textContent;
                                                // Calculate average number of symbols / width
                                                lineText = lineInfo.element.textContent;
                                                excessChars = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["min"](Math.ceil((lineInfo.bbox.width - maxWidth) / avgCharWidth), lineText.length);
                                                // Do this until we fit
                                                while ((lineInfo.bbox.width > maxWidth) && (excessChars <= lineText.length) && (excessChars > 0)) {
                                                    // Calculate max available chars
                                                    var maxChars = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](elementText.length - excessChars - this.ellipsis.length, 1);
                                                    // Is there anything left?
                                                    if (maxChars <= 1) {
                                                        // Nope, let's jump to the previous item
                                                        // Set excess characters to zero so that this loop does
                                                        // not repeat when it over
                                                        excessChars = 0;
                                                        // Add ellipsis to previous item
                                                        // Subsequent iterations will check if the ellipsis fits
                                                        if (e > 0) {
                                                            // Indicating to add ellipsis to previous item
                                                            addEllipsis = true;
                                                            // Removing this node
                                                            lineInfo.element.node.removeChild(node_2);
                                                        }
                                                    }
                                                    // Truncate the text
                                                    elementText = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["truncateWithEllipsis"](elementText, maxChars, this.ellipsis, this.fullWords, this.rtl);
                                                    if ((elementText.length > maxChars) && this.fullWords) {
                                                        // Still too long?
                                                        // Let's try truncating breaking words anyway
                                                        elementText = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["truncateWithEllipsis"](elementText, maxChars, this.ellipsis, false, this.rtl);
                                                    }
                                                    // Set truncated text
                                                    node_2.textContent = elementText;
                                                    // Measure again
                                                    lineInfo.bbox = lineInfo.element.getBBox();
                                                    lineInfo.bbox.width = Math.floor(lineInfo.bbox.width);
                                                    // Increase excess characters count, just in case it still
                                                    // doesn't fit and we have to go at it again
                                                    excessChars = Math.ceil(excessChars * 1.1);
                                                }
                                                // Do not process further chunks
                                                skipTextChunks = true;
                                            }
                                        }
                                    }
                                    else {
                                        /**
                                         * Processign auto-wrap
                                         * In this case we're going to be adding text chunks until
                                         * they don't fit into current line. Once that happens we will
                                         * inject the rest of the chunks to the next line
                                         */
                                        // Get last node added and measure it
                                        var node_3 = lineInfo.element.node;
                                        if (node_3) {
                                            var lastNode = lineInfo.element.node.lastChild;
                                            // Init split lines
                                            var splitLines = void 0;
                                            while ((lineInfo.bbox.width > maxWidth) && (excessChars <= lineText.length) && (excessChars > 0)) {
                                                // Calculate max available chars
                                                var maxChars = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](chunk.text.length - excessChars, 1);
                                                // Don't split the words mid-word if it's not the first chunk
                                                // in the line
                                                if (firstChunk) {
                                                    // Split mid-word if necessary
                                                    splitLines = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["splitTextByCharCount"](chunk.text, maxChars, true, this.rtl);
                                                }
                                                else {
                                                    // Don't split mid-word
                                                    splitLines = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["splitTextByCharCount"](chunk.text, maxChars, true, this.rtl);
                                                    // Check if the first word is too long
                                                    if ((splitLines[0].length > maxChars) || maxChars === 1) {
                                                        // Yes - move the whole chunk to the next line
                                                        // Remove the element we just added
                                                        lineInfo.element.node.removeChild(lastNode);
                                                        // Break out of the while on next cycle
                                                        excessChars = 0;
                                                    }
                                                }
                                                // Use the first line to update last item
                                                if (excessChars > 0) {
                                                    lastNode.textContent = Object(_formatters_TextFormatter__WEBPACK_IMPORTED_MODULE_3__["getTextFormatter"])().cleanUp(_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["trim"](splitLines.shift()));
                                                }
                                                // Measure again, just in case
                                                lineInfo.bbox = lineInfo.element.getBBox();
                                                lineInfo.bbox.width = Math.floor(lineInfo.bbox.width);
                                                // Increase excess characters count, just in case it still
                                                // doesn't fit and we have to go at it again
                                                excessChars = Math.ceil(excessChars * 1.1);
                                            }
                                            // Construct the rest of the line
                                            if (splitLines.length > 0) {
                                                var restOfLine = "";
                                                // Add leftovers from splitting the current chunk
                                                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](splitLines)) {
                                                    if (this.rtl) {
                                                        restOfLine += splitLines.join("") + currentFormat;
                                                    }
                                                    else {
                                                        restOfLine += currentFormat + splitLines.join("");
                                                    }
                                                }
                                                // Add the rest of the chunks
                                                for (var c = x + 1; c < chunks.length; c++) {
                                                    restOfLine += chunks[c].text;
                                                }
                                                // Inject the rest of the lines as chunks for subsequent
                                                lines.splice(i + 1, 0, restOfLine);
                                            }
                                            // Skip processing the rest of the chunks
                                            skipTextChunks = true;
                                        }
                                    }
                                }
                                // Let's update the text's bbox with the line's one
                                if (this.bbox.width < lineInfo.bbox.width) {
                                    this.bbox.width = lineInfo.bbox.width;
                                }
                                // commented to avoid bug (seen on sankey link) where text is incorrectly aligned
                                //if (this.bbox.x > lineInfo.bbox.x) {
                                //this.bbox.x = lineInfo.bbox.x;
                                //}
                                this.bbox.height = currentHeight + currentLineHeight;
                                // Position current line
                                lineInfo.element.attr({
                                    "x": "0",
                                    "y": currentHeight + currentLineHeight,
                                    "dy": _utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"]((-0.2 * currentLineHeight), 3).toString()
                                });
                                firstChunk = false;
                            }
                        }
                        // Trim the last item
                        var node = lineInfo.element.node;
                        if (node) {
                            var lastNode = node.lastChild;
                            if (lastNode) {
                                lastNode.textContent = this.rtl ?
                                    _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["ltrim"](lastNode.textContent) :
                                    _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["rtrim"](lastNode.textContent);
                            }
                        }
                        // Increment collective height
                        currentHeight += currentLineHeight;
                        // Save line cache
                        this.addLineInfo(lineInfo, i);
                    }
                    // Check if maybe we need to hide the whole label if it doesn't fit
                    if (this.hideOversized) {
                        if ((this.availableWidth < this.bbox.width) || (this.availableHeight < this.bbox.height)) {
                            this.element.attr({ display: "none" });
                            this.isOversized = true;
                        }
                        else {
                            this.element.removeAttr("display");
                            this.isOversized = false;
                        }
                    }
                    this._measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight);
                    this._measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom);
                    // Align the lines
                    this.alignSVGText();
                    this.bbox.width = this._measuredWidth;
                    this.bbox.height = this._measuredHeight;
                    if (oldH != this._measuredHeight || oldW != this._measuredWidth) {
                        this.dispatch("transformed");
                    }
                    this.hideUnused(lines.length);
                }
                else {
                    /**
                     * HTML
                     */
                    var pixelRatio = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["getPixelRatio"]();
                    this.element.removeAttr("display");
                    this.resetBBox();
                    // Clear the element
                    var group = this.element;
                    group.removeChildren();
                    // Create a ForeignObject to use as HTML container
                    var fo = this.paper.foreignObject();
                    group.add(fo);
                    // Set group and foreignObject dimensions
                    var width = maxWidth > 0 ? (maxWidth).toString() + "px" : "100%";
                    var height = maxHeight > 0 ? (maxHeight).toString() + "px" : "100%";
                    /*			fo.attr({
                                    width: width,
                                    height: height
                                });*/
                    // Create line element
                    //let lineElement: HTMLElement = this.getHTMLLineElement(getTextFormatter().format(this.html, output));
                    var lineElement = this.getHTMLLineElement(text);
                    fo.node.appendChild(lineElement);
                    // Temporarily set to inline-block so we can measure real width and height
                    lineElement.style.display = "inline-block";
                    var tmpBBox = lineElement.getBoundingClientRect();
                    lineElement.style.display = "block";
                    this._bbox = {
                        x: 0,
                        y: 0,
                        width: tmpBBox.width / pixelRatio,
                        height: tmpBBox.height / pixelRatio
                    };
                    // Set exact dimensions of foreignObject so it is sized exactly as
                    // the content within
                    fo.attr({
                        width: tmpBBox.width / pixelRatio,
                        height: tmpBBox.height / pixelRatio
                    });
                    // Set measurements and update bbox
                    this._measuredWidth = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight);
                    this._measuredHeight = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom);
                    this.bbox.width = this._measuredWidth;
                    this.bbox.height = this._measuredHeight;
                    // Don't let labels bleed out of the alotted area
                    if (this.truncate) {
                        lineElement.style.overflow = "hidden";
                    }
                    if ((tmpBBox.width > maxWidth) || (tmpBBox.height > maxHeight)) {
                        this.isOversized = true;
                    }
                }
                // Set applicable styles
                this.setStyles();
                this.updateCenter();
                this.updateBackground();
                if (display == "none") {
                    this.group.attr({ display: "none" });
                }
            };
            /**
             * Aligns the lines horizontally ant vertically, based on properties.
             *
             * @ignore Exclude from docs
             */
            Label.prototype.alignSVGText = function () {
                // Get Group
                var group = this.element;
                var children = group.node.children || group.node.childNodes;
                // Is there anything to align?
                if (!children || (children && children.length == 0)) {
                    return;
                }
                var width = this._measuredWidth;
                var height = this._measuredHeight;
                var paddingLeft = this.pixelPaddingLeft;
                var paddingRight = this.pixelPaddingRight;
                var paddingTop = this.pixelPaddingTop;
                var paddingBottom = this.pixelPaddingBottom;
                // Process each line
                //$iter.each(group.children.backwards().iterator(), (element) => {
                for (var i = children.length - 1; i >= 0; i--) {
                    // Align horizontally
                    // Since we are using `text-anchor` for horizontal alignment, all we need
                    // to do here is move the `x` position
                    var node = children[i];
                    node.setAttribute("text-anchor", this.textAlign);
                    switch (this.textAlign) {
                        case "middle":
                            node.setAttribute("x", (width / 2).toString() + "px");
                            break;
                        case "end":
                            if (this.rtl) {
                            }
                            else {
                                node.setAttribute("x", width.toString());
                            }
                            break;
                        default:
                            if (this.rtl) {
                                node.setAttribute("x", width.toString());
                            }
                            else {
                                node.removeAttribute("text-anchor");
                            }
                            break;
                    }
                    var y = _utils_Type__WEBPACK_IMPORTED_MODULE_8__["toNumber"](node.getAttribute("y"));
                    switch (this.textValign) {
                        case "middle":
                            node.setAttribute("y", (y + (height - this.bbox.height) / 2).toString());
                            break;
                        case "bottom":
                            node.setAttribute("y", (y + height - this.bbox.height).toString());
                            break;
                        default:
                            node.setAttribute("y", y.toString());
                            break;
                    }
                }
            };
            /**
             * Produces an SVG line element with formatted text.
             *
             * @ignore Exclude from docs
             * @param  {string}     text    Text to wrap into line
             * @param  {number}     y       Current line vertical position
             * @return {AMElement}          A DOM element
             * @todo Implement HTML support
             */
            Label.prototype.getSVGLineElement = function (text, y) {
                // Create a <text> node and set text
                var element = this.paper.addGroup("text");
                element.textContent = text;
                // Set parameters
                element.attr({
                    "x": "0"
                    //"alignment-baseline": "hanging",
                    //"baseline-shift": "-20%",
                    //"text-anchor": "center"
                });
                // Set `y` position
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](y)) {
                    element.attr({
                        "y": y.toString()
                    });
                }
                // Don't let labels blled out of the alotted area
                if (this.truncate || this.wrap) {
                    element.attr({ "overflow": "hidden" });
                }
                // Add RTL?
                if (this.rtl) {
                    element.attr({
                        "direction": "rtl",
                        "unicode-bidi": "bidi-override"
                    });
                }
                return element;
            };
            /**
             * Resets cached BBox.
             *
             * @ignore Exclude from docs
             */
            Label.prototype.resetBBox = function () {
                this._bbox = { x: 0, y: 0, width: 0, height: 0 };
            };
            /**
             * Creates and returns an HTML line element (`<div>`).
             *
             * @ignore Exclude from docs
             * @param  {string}       text  Text to add
             * @return {HTMLElement}        `<div>` element reference
             */
            Label.prototype.getHTMLLineElement = function (text) {
                // Create the <div> element
                var div = document.createElement("div");
                div.innerHTML = text;
                // Set text alignment
                switch (this.textAlign) {
                    case "middle":
                        div.style.textAlign = "center";
                        break;
                    case "end":
                        div.style.textAlign = "right";
                        break;
                }
                // Disable or enable wrapping
                if (this.wrap) {
                    div.style.wordWrap = "break-word";
                }
                else {
                    div.style.whiteSpace = "nowrap";
                }
                // Don't let labels bleed out of the alotted area
                // Moved to `draw()` because setting "hidden" kills all measuring
                /*if (this.truncate) {
                    div.style.overflow = "hidden";
                }*/
                // Set RTL-related styles
                if (this.rtl) {
                    div.style.direction = "rtl";
                    div.style.unicodeBidi = "bidi-override";
                }
                // Translate some of the SVG styles into CSS
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.fill)) {
                    div.style.color = this.fill.toString();
                }
                return div;
            };
            /**
             * Applies specific styles to text to make it not selectable, unless it is
             * explicitly set as `selectable`.
             *
             * @ignore Exclude from docs
             * @todo Set styles via AMElement
             */
            Label.prototype.setStyles = function () {
                var group = this.element;
                if (!this.selectable || this.draggable || this.resizable || this.swipeable) {
                    group.addStyle({
                        "webkitUserSelect": "none",
                        "msUserSelect": "none"
                    });
                }
                else if (this.selectable) {
                    group.removeStyle("webkitUserSelect");
                    group.removeStyle("msUserSelect");
                }
            };
            /**
             * Hides unused lines
             */
            Label.prototype.hideUnused = function (index) {
                this.initLineCache();
                var lines = this.getCache("lineInfo");
                if (lines.length >= index) {
                    for (var i = index; i < lines.length; i++) {
                        var line = lines[i];
                        if (line && line.element) {
                            line.element.attr({ "display": "none" });
                        }
                    }
                }
            };
            Object.defineProperty(Label.prototype, "text", {
                /**
                 * @return {string} SVG text
                 */
                get: function () {
                    return this.getPropertyValue("text");
                },
                /**
                 * An SVG text.
                 *
                 * Please note that setting `html` will override this setting if browser
                 * supports `foreignObject` in SGV, such as most modern browsers excluding
                 * IEs.
                 *
                 * @param {string}  value  SVG Text
                 */
                set: function (value) {
                    //this.setPropertyValue("html", undefined);
                    this.setPropertyValue("text", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "wrap", {
                /**
                 * @return {boolean} Auto-wrap enabled or not
                 */
                get: function () {
                    return this.getPropertyValue("wrap");
                },
                /**
                 * Enables or disables autowrapping of text.
                 *
                 * @param {boolean}  value  Auto-wrapping enabled
                 */
                set: function (value) {
                    this.resetBBox();
                    this.setPropertyValue("wrap", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "truncate", {
                /**
                 * @return {boolean} Truncate text?
                 */
                get: function () {
                    return this.getPropertyValue("truncate");
                },
                /**
                 * Indicates if text lines need to be truncated if they do not fit, using
                 * configurable `ellipsis` string.
                 *
                 * `truncate` overrides `wrap` if both are set to `true`.
                 *
                 * NOTE: For HTML text, this setting **won't** trigger a parser and actual
                 * line truncation with ellipsis. It will just hide everything that goes
                 * outside the label.
                 *
                 * @param {boolean}  value  trincate text?
                 */
                set: function (value) {
                    this.resetBBox();
                    this.setPropertyValue("truncate", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "fullWords", {
                /**
                 * @return {boolean} Truncate on full words?
                 */
                get: function () {
                    return this.getPropertyValue("fullWords");
                },
                /**
                 * If `truncate` is enabled, should Label try to break only on full words
                 * (`true`), or whenever needed, including middle of the word. (`false`)
                 *
                 * @default true
                 * @param {boolean}  value  Truncate on full words?
                 */
                set: function (value) {
                    this.setPropertyValue("fullWords", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "ellipsis", {
                /**
                 * @return {string} Ellipsis string
                 */
                get: function () {
                    return this.getPropertyValue("ellipsis");
                },
                /**
                 * Ellipsis character to use if `truncate` is enabled.
                 *
                 * @param {string} value Ellipsis string
                 * @default "..."
                 */
                set: function (value) {
                    this.setPropertyValue("ellipsis", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "selectable", {
                /**
                 * @return {boolean} Text selectable?
                 */
                get: function () {
                    return this.getPropertyValue("selectable");
                },
                /**
                 * Forces the text to be selectable. This setting will be ignored if the
                 * object has some kind of interaction attached to it, such as it is
                 * `draggable`, `swipeable`, `resizable`.
                 *
                 * @param {boolean}  value  Text selectable?
                 * @default false
                 */
                set: function (value) {
                    this.setPropertyValue("selectable", value, true);
                    this.setStyles();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "textAlign", {
                /**
                 * @return {TextAlign} Alignment
                 */
                get: function () {
                    return this.getPropertyValue("textAlign");
                },
                /**
                 * Horizontal text alignment.
                 *
                 * Available choices:
                 * * "start"
                 * * "middle"
                 * * "end"
                 *
                 * @param {TextAlign}  value  Alignment
                 */
                set: function (value) {
                    this.setPropertyValue("textAlign", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "textValign", {
                /**
                 * @ignore Exclude from docs (not used)
                 * @return {TextValign} Alignment
                 * @deprecated
                 */
                get: function () {
                    return this.getPropertyValue("textValign");
                },
                /**
                 * Vertical text alignment.
                 *
                 * @ignore Exclude from docs (not used)
                 * @param {TextValign}  value  Alignment
                 * @deprecated
                 */
                set: function (value) {
                    this.setPropertyValue("textValign", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "html", {
                /**
                 * @return {string} HTML content
                 */
                get: function () {
                    return this.getPropertyValue("html");
                },
                /**
                 * Raw HTML to be used as text.
                 *
                 * NOTE: HTML text is subject to browser support. It relies on browsers
                 * supporting SVG `foreignObject` nodes. Some browsers (read IEs) do not
                 * support it. On those browsers, the text will fall back to basic SVG text,
                 * striping out all HTML markup and styling that goes with it.
                 *
                 * For more information about `foreignObject` and its browser compatibility
                 * refer to [this page](https://developer.mozilla.org/en/docs/Web/SVG/Element/foreignObject#Browser_compatibility).
                 *
                 * @param {string} value HTML text
                 */
                set: function (value) {
                    this.setPropertyValue("html", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "hideOversized", {
                /**
                 * @return {boolean} Hide if text does not fit?
                 */
                get: function () {
                    return this.getPropertyValue("hideOversized");
                },
                /**
                 * Indicates whether the whole text should be hidden if it does not fit into
                 * its allotted space.
                 *
                 * @param {boolean}  value  Hide if text does not fit?
                 */
                set: function (value) {
                    this.setPropertyValue("hideOversized", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "ignoreFormatting", {
                /**
                 * @return {boolean} Ignore formatting?
                 */
                get: function () {
                    return this.getPropertyValue("ignoreFormatting");
                },
                /**
                 * If set to `true` square-bracket formatting blocks will be treated as
                 * regular text.
                 *
                 * @default false
                 * @param {boolean}  value  Ignore formatting?
                 */
                set: function (value) {
                    this.setPropertyValue("ignoreFormatting", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Override `mesaureElement` so it does not get measure again, because
             * internal `_bbox` is being updated by measuring routines in Text itself.
             */
            Label.prototype.measureElement = function () { };
            /**
             * Returns information about a line element.
             *
             * @ignore Exclude from docs
             * @param  {number}         index  Line index
             * @return {ITextLineInfo}         Line info object
             */
            Label.prototype.getLineInfo = function (index) {
                this.initLineCache();
                var lines = this.getCache("lineInfo");
                return lines.length > index ? lines[index] : undefined;
            };
            /**
             * Adds a line to line info cache.
             *
             * @ignore Exclude from docs
             * @param {ITextLineInfo}  line     Line info object
             * @param {number}         index    Insert at specified index
             */
            Label.prototype.addLineInfo = function (line, index) {
                this.initLineCache();
                this.getCache("lineInfo")[index] = line;
            };
            /**
             * Checks if line cache is initialized and initializes it.
             */
            Label.prototype.initLineCache = function () {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.getCache("lineInfo"))) {
                    this.setCache("lineInfo", [], 0);
                }
            };
            /**
             * Sets a [[DataItem]] to use for populating dynamic sections of the text.
             *
             * Check the description for [[Text]] class, for data binding.
             *
             * @param {DataItem} dataItem Data item
             */
            Label.prototype.setDataItem = function (dataItem) {
                if (this._sourceDataItemEvents) {
                    this._sourceDataItemEvents.dispose();
                }
                if (dataItem) {
                    this._sourceDataItemEvents = new _utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                        dataItem.events.on("valuechanged", this.invalidate, this, false),
                        dataItem.events.on("workingvaluechanged", this.invalidate, this, false),
                        dataItem.events.on("calculatedvaluechanged", this.invalidate, this, false),
                        dataItem.events.on("propertychanged", this.invalidate, this, false)
                    ]);
                }
                _super.prototype.setDataItem.call(this, dataItem);
            };
            Object.defineProperty(Label.prototype, "availableWidth", {
                /**
                 * Returns available horizontal space.
                 *
                 * @ignore Exclude from docs
                 * @return {number} Available width (px)
                 */
                get: function () {
                    return _utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.maxWidth) ? this.maxWidth : this.pixelWidth;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Label.prototype, "availableHeight", {
                /**
                 * Returns available vertical space.
                 *
                 * @return {number} Available height (px)
                 */
                get: function () {
                    return _utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.maxHeight) ? this.maxHeight : this.pixelHeight;
                },
                enumerable: true,
                configurable: true
            });
            // temp, replacing textFormatter method
            Label.prototype.getSvgElement = function (text, style) {
                var element = this.paper.add("tspan");
                element.textContent = text;
                if (style) {
                    element.node.setAttribute("style", style);
                }
                return element;
            };
            return Label;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Label"] = Label;
        //# sourceMappingURL=Label.js.map
        /***/ 
    }),
    /* 846 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisTick", function () { return AxisTick; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _elements_Tick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(847);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Axis Tick module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws an axis tick
         * @see {@link IAxisTickEvents} for a list of available events
         * @see {@link IAxisTickAdapters} for a list of available Adapters
         */
        var AxisTick = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisTick, _super);
            function AxisTick() {
                var _this = _super.call(this) || this;
                _this.className = "AxisTick";
                _this.element = _this.paper.add("path");
                _this.location = 0.5;
                _this.isMeasured = false;
                _this.pixelPerfect = true;
                _this.length = 5;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(AxisTick.prototype, "location", {
                get: function () {
                    return this.getPropertyValue("location");
                },
                set: function (value) {
                    this.setPropertyValue("location", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisTick.prototype, "inside", {
                get: function () {
                    return this.getPropertyValue("inside");
                },
                set: function (value) {
                    this.setPropertyValue("inside", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            AxisTick.prototype.setDisabled = function (value) {
                _super.prototype.setDisabled.call(this, value);
                if (this.axis) {
                    this.axis.invalidateDataItems();
                }
            };
            return AxisTick;
        }(_elements_Tick__WEBPACK_IMPORTED_MODULE_1__["Tick"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["AxisTick"] = AxisTick;
        //# sourceMappingURL=AxisTick.js.map
        /***/ 
    }),
    /* 847 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tick", function () { return Tick; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(800);
        /**
         * Tick module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A basic Tick class.
         *
         * A tick is a short dash, mainly connecting an object like axis or slice to
         * it's textual label.
         *
         * @see {@link ITickEvents} for a list of available events
         * @see {@link ITickAdapters} for a list of available Adapters
         * @important
         */
        var Tick = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Tick, _super);
            /**
             * Constructor
             */
            function Tick() {
                var _this = _super.call(this) || this;
                _this.className = "Tick";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__["InterfaceColorSet"]();
                _this.fillOpacity = 0;
                _this.length = 6;
                _this.strokeOpacity = 0.2;
                _this.stroke = interfaceColors.getFor("grid");
                _this.isMeasured = false;
                _this.nonScalingStroke = true;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Tick.prototype, "length", {
                /**
                 * @return {number} Length (px)
                 */
                get: function () {
                    if (this.disabled) {
                        return 0;
                    }
                    return this.getPropertyValue("length");
                },
                /**
                 * Length of the tick in pixels.
                 *
                 * @param {number}  value  Length (px)
                 */
                set: function (value) {
                    this.setPropertyValue("length", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Tick;
        }(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Tick"] = Tick;
        //# sourceMappingURL=Tick.js.map
        /***/ 
    }),
    /* 848 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererX", function () { return AxisRendererX; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(840);
        /* harmony import */ var _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(849);
        /* harmony import */ var _core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(853);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Module, defining Axis Renderer for vertical axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A renderer for horizontal axis.
         *
         * @see {@link IAxisRendererEvents} for a list of available events
         * @see {@link IAxisRendererAdapters} for a list of available Adapters
         */
        var AxisRendererX = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererX, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererX() {
                var _this = _super.call(this) || this;
                _this.className = "AxisRendererX";
                _this.minGridDistance = 120;
                _this.opposite = false;
                _this.rotation = 0;
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.labels.template.horizontalCenter = "middle";
                _this.applyTheme();
                return _this;
            }
            /**
            * @ignore
            */
            AxisRendererX.prototype.setAxis = function (axis) {
                _super.prototype.setAxis.call(this, axis);
                axis.layout = "vertical";
            };
            /**
             * Called when rendered is attached to an Axis, as well as a property of
             * Axis that might affect the appearance is updated.
             *
             * E.g. `axis.opposite`, `axis.inside`, etc.
             *
             * This method is called **before** draw, so that any related setting
             * changed in this method can be changed.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRendererX.prototype.processRenderer = function () {
                _super.prototype.processRenderer.call(this);
                // can not do this in init, as axis is set later
                var axis = this.axis;
                if (axis) {
                    axis.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                    // @todo Is thi sneeded?
                    this.line;
                    var title = axis.title;
                    title.rotation = 0;
                    title.align = "center";
                    if (this.opposite) {
                        this.line.toFront();
                        title.toBack();
                    }
                    else {
                        title.toFront();
                        this.line.toBack();
                    }
                }
            };
            /**
             * Updates some of the Axis tooltip's visual properties, related to
             * rendering of the Axis.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRendererX.prototype.updateTooltip = function () {
                var axis = this.axis;
                if (axis) {
                    var bigNum = 1000;
                    var bbx = this.line.pixelX;
                    var bby = this.line.pixelY;
                    var bbw = this.axisLength;
                    var bbh = bigNum;
                    // top
                    if (this.opposite) {
                        if (!this.inside) {
                            bby = -bigNum;
                            bbh = bigNum;
                        }
                    }
                    // bottom
                    else {
                        if (this.inside) {
                            bby = -bigNum;
                            bbh = bigNum;
                        }
                    }
                    this.axis.updateTooltip("vertical", { x: bbx, y: bby, width: bbw, height: bbh });
                }
            };
            /**
             * Updates and positions a label element.
             *
             * @ignore Exclude from docs
             * @param {AxisLabel}  label        Label element
             * @param {number}     position     Starting position
             * @param {number}     endPosition  Ending position
             */
            AxisRendererX.prototype.updateLabelElement = function (label, position, endPosition, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](location)) {
                    location = label.location;
                }
                position = position + (endPosition - position) * location;
                var point = this.positionToPoint(position);
                label.isMeasured = !label.inside;
                if (!this.opposite && label.inside) {
                    label.verticalCenter = "bottom";
                }
                this.positionItem(label, point);
                this.toggleVisibility(label, position, this.minLabelPosition, this.maxLabelPosition);
            };
            Object.defineProperty(AxisRendererX.prototype, "axisLength", {
                /**
                 * Returns actual length of the Axis, in pixels.
                 *
                 * @return {number} Length (px)
                 */
                get: function () {
                    var axis = this.axis;
                    return (axis.measuredWidth - axis.pixelPaddingRight - axis.pixelPaddingLeft) || 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position on axis to point coordinates.
             *
             * @param  {number}  position  Position (0-1)
             * @return {IPoint}            Point
             */
            AxisRendererX.prototype.positionToPoint = function (position) {
                return { x: this.positionToCoordinate(position), y: 0 };
            };
            /**
             * Converts a point at specific coordinates to a relative position (0-1)
             * on the axis.
             *
             * @param  {IPoint}  point  Point
             * @return {number}         Position (0-1)
             */
            AxisRendererX.prototype.pointToPosition = function (point) {
                return this.coordinateToPosition(point.x);
            };
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  startPosition  Starting position
             * @param  {number}  endPosition    End position
             * @return {string}                 SVG path
             */
            AxisRendererX.prototype.getPositionRangePath = function (startPosition, endPosition) {
                var x1 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](this.positionToCoordinate(startPosition), 0, this.axisLength);
                var x2 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](this.positionToCoordinate(endPosition), 0, this.axisLength);
                var w = Math.abs(x2 - x1);
                var h = this.getHeight();
                var x = Math.min(x1, x2);
                var y = 0;
                return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["rectToPath"]({
                    x: x,
                    y: y,
                    width: w,
                    height: h
                }, true);
            };
            /**
             * Updates and positions an axis break element.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Break element
             */
            AxisRendererX.prototype.updateBreakElement = function (axisBreak) {
                _super.prototype.updateBreakElement.call(this, axisBreak);
                var startLine = axisBreak.startLine;
                var endLine = axisBreak.endLine;
                var fillShape = axisBreak.fillShape;
                var startPoint = axisBreak.startPoint;
                var endPoint = axisBreak.endPoint;
                var y1 = axisBreak.pixelMarginLeft;
                var y2 = this.getHeight() - axisBreak.pixelMarginTop - axisBreak.pixelMarginBottom;
                startPoint.x = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](startPoint.x, -1, this.pixelWidth + 1);
                endPoint.x = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](endPoint.x, -1, this.pixelWidth + 1);
                if (startPoint.x == endPoint.x && (startPoint.x < 0 || startPoint.x > this.pixelWidth)) {
                    axisBreak.fillShape.__disabled = true;
                }
                else {
                    axisBreak.fillShape.__disabled = false;
                }
                startLine.y = y1;
                startLine.width = 0;
                startLine.height = y2;
                endLine.y = y1;
                endLine.width = 0;
                endLine.height = y2;
                fillShape.height = y2;
                fillShape.width = Math.abs(endPoint.x - startPoint.x);
                fillShape.y = y1;
                fillShape.x = startPoint.x;
            };
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererX.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                grid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: 0, y: this.getHeight() });
                this.positionItem(grid, point);
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions a tick element.
             *
             * @ignore Exclude from docs
             * @param {AxisTick}  tick         Tick element
             * @param {number}    position     Starting position
             * @param {number}    endPosition  End position
             */
            AxisRendererX.prototype.updateTickElement = function (tick, position, endPosition) {
                position = position + (endPosition - position) * tick.location;
                var point = this.positionToPoint(position);
                var tickLength = tick.length;
                if (this.opposite) {
                    point.y = 0;
                    tickLength *= (tick.inside ? 1 : -1);
                }
                else {
                    point.y = this.gridContainer.pixelHeight;
                    tickLength *= (tick.inside ? -1 : 1);
                }
                tick.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: 0, y: tickLength });
                this.positionItem(tick, point);
                this.toggleVisibility(tick, position, 0, 1);
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererX.prototype.updateAxisLine = function () {
                this.line.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: this.axisLength, y: 0 });
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererX.prototype.updateBaseGridElement = function () {
                _super.prototype.updateBaseGridElement.call(this);
                var axis = this.axis;
                var h = this.getHeight();
                var w = this.getWidth();
                var baseGrid = this.baseGrid;
                var x = axis.basePoint.x;
                if (x < 0 || x > w) {
                    baseGrid.hide(0);
                }
                else {
                    var y = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["spritePointToSprite"]({ x: 0, y: 0 }, this.gridContainer, baseGrid.parent).y;
                    baseGrid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: 0, y: h });
                    baseGrid.moveTo({ x: x, y: y });
                    baseGrid.show(0);
                }
            };
            /**
             * Creates visual elements for and axis break.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Axis break
             */
            AxisRendererX.prototype.createBreakSprites = function (axisBreak) {
                axisBreak.startLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__["WavedLine"]();
                axisBreak.endLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__["WavedLine"]();
                var wavedRectangle = new _core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_3__["WavedRectangle"]();
                wavedRectangle.setWavedSides(false, true, false, true);
                axisBreak.fillShape = wavedRectangle;
            };
            return AxisRendererX;
        }(_AxisRenderer__WEBPACK_IMPORTED_MODULE_1__["AxisRenderer"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["AxisRendererX"] = AxisRendererX;
        //# sourceMappingURL=AxisRendererX.js.map
        /***/ 
    }),
    /* 849 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WavedLine", function () { return WavedLine; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Line__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(850);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _rendering_Smoothing__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(851);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Functionality for drawing waved lines.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a waved line.
         *
         * @see {@link IWavedLineEvents} for a list of available events
         * @see {@link IWavedLineAdapters} for a list of available Adapters
         */
        var WavedLine = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](WavedLine, _super);
            /**
             * Constructor
             */
            function WavedLine() {
                var _this = _super.call(this) || this;
                _this.className = "WavedLine";
                _this.element = _this.paper.add("path");
                _this.waveLength = 16;
                _this.waveHeight = 4;
                _this.tension = 0.8;
                _this.pixelPerfect = false;
                _this.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_2__["color"])();
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the waved line.
             *
             * @ignore Exclude from docs
             */
            WavedLine.prototype.draw = function () {
                //super.draw();
                var p1 = { x: this.x1, y: this.y1 };
                var p2 = { x: this.x2, y: this.y2 };
                this.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](p1) + Object(_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_3__["wavedLine"])(p1, p2, this.waveLength, this.waveHeight, this.tension, true);
            };
            Object.defineProperty(WavedLine.prototype, "waveLength", {
                /**
                 * @return {number} Wave length (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveLength");
                },
                /**
                 * Wave length in pixels.
                 *
                 * @default 16
                 * @param {number}  value  Wave length (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveLength", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedLine.prototype, "waveHeight", {
                /**
                 * @return {number} Wave height (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveHeight");
                },
                /**
                 * Wave height in pixels.
                 *
                 * @default 4
                 * @param {number}  value  Wave height (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveHeight", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedLine.prototype, "tension", {
                /**
                 * @return {number} Tension
                 */
                get: function () {
                    return this.getPropertyValue("tension");
                },
                /**
                 * Tension of the wave.
                 *
                 * @default 0.8
                 * @param {number}  value  Tension
                 */
                set: function (value) {
                    this.setPropertyValue("tension", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            return WavedLine;
        }(_Line__WEBPACK_IMPORTED_MODULE_1__["Line"]));
        //# sourceMappingURL=WavedLine.js.map
        /***/ 
    }),
    /* 850 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Line", function () { return Line; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /**
         * Line drawing functionality.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a line.
         *
         * @see {@link ILineEvents} for a list of available events
         * @see {@link ILineAdapters} for a list of available Adapters
         */
        var Line = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Line, _super);
            /**
             * Constructor
             */
            function Line() {
                var _this = _super.call(this) || this;
                _this.className = "Line";
                _this.element = _this.paper.add("line");
                _this.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_2__["color"])(); //"none";
                _this.x1 = 0;
                _this.y1 = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the line.
             *
             * @ignore Exclude from docs
             */
            Line.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this.x1 == this.x2 || this.y1 == this.y2) {
                    this.pixelPerfect = true;
                }
                else {
                    this.pixelPerfect = false;
                }
                this.x1 = this.x1;
                this.x2 = this.x2;
                this.y1 = this.y1;
                this.y2 = this.y2;
            };
            Object.defineProperty(Line.prototype, "x1", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    return this.getPropertyValue("x1");
                },
                /**
                 * X coordinate of first end.
                 *
                 * @param {number} value X
                 */
                set: function (value) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = 0;
                    }
                    var delta = 0;
                    if (this.pixelPerfect && this.stroke instanceof _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_3__["LinearGradient"]) {
                        delta = 0.00001;
                    }
                    this.setPropertyValue("x1", value, true);
                    this.element.attr({ "x1": value + delta });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Line.prototype, "x2", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    var value = this.getPropertyValue("x2");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = this.pixelWidth;
                    }
                    return value;
                },
                /**
                 * X coordinate of second end.
                 *
                 * @param {number} value X
                 */
                set: function (value) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = 0;
                    }
                    this.setPropertyValue("x2", value, true);
                    this.element.attr({ "x2": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Line.prototype, "y1", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    return this.getPropertyValue("y1");
                },
                /**
                 * Y coordinate of first end.
                 *
                 * @param {number} value Y
                 */
                set: function (value) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = 0;
                    }
                    var delta = 0;
                    if (this.pixelPerfect && this.stroke instanceof _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_3__["LinearGradient"]) {
                        delta = 0.00001;
                    }
                    this.setPropertyValue("y1", value, true);
                    this.element.attr({ "y1": value + delta });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Line.prototype, "y2", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    var value = this.getPropertyValue("y2");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = this.pixelHeight;
                    }
                    return value;
                },
                /**
                 * Y coordinate of second end.
                 *
                 * @param {number} value Y
                 */
                set: function (value) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](value)) {
                        value = 0;
                    }
                    this.setPropertyValue("y2", value, true);
                    this.element.attr({ "y2": value });
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position along the line (0-1) into pixel coordinates.
             *
             * @param  {number}             position  Position (0-1)
             * @return {IOrientationPoint}            Coordinates
             */
            Line.prototype.positionToPoint = function (position) {
                var point1 = { x: this.x1, y: this.y1 };
                var point2 = { x: this.x2, y: this.y2 };
                var point = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["getMidPoint"](point1, point2, position);
                var angle = _utils_Math__WEBPACK_IMPORTED_MODULE_6__["getAngle"](point1, point2);
                return { x: point.x, y: point.y, angle: angle };
            };
            return Line;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["Line"] = Line;
        //# sourceMappingURL=Line.js.map
        /***/ 
    }),
    /* 851 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tension", function () { return Tension; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wavedLine", function () { return wavedLine; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Basis", function () { return Basis; });
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(751);
        /* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(852);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(755);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(795);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * [sign description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @todo Move this someplace else
         * @param {number} x [description]
         */
        function sign(x) {
            return x < 0 ? -1 : 1;
        }
        /**
         * [slope2 description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number} x0 [description]
         * @param  {number} x1 [description]
         * @param  {number} y0 [description]
         * @param  {number} y1 [description]
         * @param  {number} t  [description]
         * @return {number}    [description]
         */
        function slope2(x0, x1, y0, y1, t) {
            var h = x1 - x0;
            return h ? (3 * (y1 - y0) / h - t) / 2 : t;
        }
        /**
         * [slope3 description]
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number} x0 [description]
         * @param  {number} x1 [description]
         * @param  {number} y0 [description]
         * @param  {number} y1 [description]
         * @param  {number} x2 [description]
         * @param  {number} y2 [description]
         * @return {number}    [description]
         */
        function slope3(x0, x1, y0, y1, x2, y2) {
            var h0 = x1 - x0;
            var h1 = x2 - x1;
            var s0 = (y1 - y0) / (h0 || h1 < 0 && -0);
            var s1 = (y2 - y1) / (h1 || h0 < 0 && -0);
            var p = (s0 * h1 + s1 * h0) / (h0 + h1);
            return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        var Tension = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {number} tensionX [description]
             * @param {number} tensionY [description]
             */
            function Tension(tensionX, tensionY) {
                this._tensionX = tensionX;
                this._tensionY = tensionY;
            }
            /**
             * [smooth description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {Array<IPoint>}  points  [description]
             * @return {string}                 [description]
             */
            Tension.prototype.smooth = function (points) {
                var tensionX = this._tensionX;
                var tensionY = this._tensionY;
                if (points.length < 3 || (tensionX >= 1 && tensionY >= 1)) {
                    return _Path__WEBPACK_IMPORTED_MODULE_1__["polyline"](points);
                }
                var first = points[0];
                var last = points[points.length - 1];
                var closed = false;
                if (_utils_Math__WEBPACK_IMPORTED_MODULE_4__["round"](first.x, 3) == _utils_Math__WEBPACK_IMPORTED_MODULE_4__["round"](last.x) && _utils_Math__WEBPACK_IMPORTED_MODULE_4__["round"](first.y) == _utils_Math__WEBPACK_IMPORTED_MODULE_4__["round"](last.y)) {
                    closed = true;
                }
                // Can't moveTo here, as it wont be possible to have fill then.
                var path = "";
                for (var i = 0, len = points.length - 1; i < len; i++) {
                    var p0 = points[i - 1];
                    var p1 = points[i];
                    var p2 = points[i + 1];
                    var p3 = points[i + 2];
                    if (i === 0) {
                        if (closed) {
                            p0 = points[points.length - 2];
                        }
                        else {
                            p0 = points[i];
                        }
                    }
                    else if (i == points.length - 2) {
                        if (closed) {
                            p3 = points[1];
                        }
                        else {
                            p3 = points[i + 1];
                        }
                    }
                    var controlPointA = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getCubicControlPointA"](p0, p1, p2, p3, tensionX, tensionY);
                    var controlPointB = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getCubicControlPointB"](p0, p1, p2, p3, tensionX, tensionY);
                    path += _Path__WEBPACK_IMPORTED_MODULE_1__["cubicCurveTo"](p2, controlPointA, controlPointB);
                }
                return path;
            };
            return Tension;
        }());
        /**
         * Returns a waved line SVG path between two points.
         *
         * @ignore Exclude from docs
         * @param  {IPoint}   point1            Starting point
         * @param  {IPoint}   point2            Ending point
         * @param  {number}   waveLength        Wave length
         * @param  {number}   waveHeight        Wave height
         * @param  {boolean}  adjustWaveLength  Adjust wave length based on the actual line length
         * @return {string}                     SVG path
         */
        function wavedLine(point1, point2, waveLength, waveHeight, tension, adjustWaveLength) {
            var x1 = point1.x;
            var y1 = point1.y;
            var x2 = point2.x;
            var y2 = point2.y;
            var distance = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getDistance"](point1, point2);
            if (adjustWaveLength) {
                waveLength = distance / Math.round(distance / waveLength);
            }
            var d = _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].getCache(_utils_Utils__WEBPACK_IMPORTED_MODULE_3__["stringify"](["wavedLine", point1.x, point2.x, point1.y, point2.y, waveLength, waveHeight]));
            if (!d) {
                if (distance > 0) {
                    var angle = Math.atan2(y2 - y1, x2 - x1);
                    var cos = Math.cos(angle);
                    var sin = Math.sin(angle);
                    var waveLengthX = waveLength * cos;
                    var waveLengthY = waveLength * sin;
                    if (waveLength <= 1 || waveHeight <= 1) {
                        d = _Path__WEBPACK_IMPORTED_MODULE_1__["lineTo"](point2);
                    }
                    else {
                        var halfWaveCount = Math.round(2 * distance / waveLength);
                        var points = [];
                        var sign_1 = 1;
                        if (x2 < x1) {
                            sign_1 *= -1;
                        }
                        if (y2 < y1) {
                            sign_1 *= -1;
                        }
                        for (var i = 0; i <= halfWaveCount; i++) {
                            sign_1 *= -1;
                            var x = x1 + i * waveLengthX / 2 + sign_1 * waveHeight / 2 * sin;
                            var y = y1 + i * waveLengthY / 2 - sign_1 * waveHeight / 2 * cos;
                            points.push({ x: x, y: y });
                        }
                        d = new Tension(tension, tension).smooth(points);
                    }
                }
                else {
                    d = "";
                }
                _Registry__WEBPACK_IMPORTED_MODULE_0__["registry"].setCache(_utils_Utils__WEBPACK_IMPORTED_MODULE_3__["stringify"](["wavedLine", point1.x, point2.x, point1.y, point2.y, waveLength, waveHeight]), d);
            }
            return d;
        }
        /**
         * @ignore Exclude from docs
         * @todo Description
         */
        var Basis = /** @class */ (function () {
            /**
             * Constructor.
             *
             * @param {object}  info  [description]
             */
            function Basis(info) {
                this._closed = info.closed;
            }
            /**
             * [smooth description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {Array<IPoint>}  points  [description]
             * @return {string}                 [description]
             */
            Basis.prototype.smooth = function (points) {
                var _this = this;
                var x0 = NaN;
                var x1 = NaN;
                var x2 = NaN;
                var x3 = NaN;
                var x4 = NaN;
                var y0 = NaN;
                var y1 = NaN;
                var y2 = NaN;
                var y3 = NaN;
                var y4 = NaN;
                var point = 0;
                var output = "";
                var pushCurve = function (x, y) {
                    output += _Path__WEBPACK_IMPORTED_MODULE_1__["cubicCurveTo"]({
                        x: (x0 + 4 * x1 + x) / 6,
                        y: (y0 + 4 * y1 + y) / 6
                    }, {
                        x: (2 * x0 + x1) / 3,
                        y: (2 * y0 + y1) / 3
                    }, {
                        x: (x0 + 2 * x1) / 3,
                        y: (y0 + 2 * y1) / 3
                    });
                };
                var pushPoint = function (_a) {
                    var x = _a.x, y = _a.y;
                    switch (point) {
                        case 0:
                            point = 1;
                            if (_this._closed) {
                                x2 = x;
                                y2 = y;
                            }
                            else {
                                output += _Path__WEBPACK_IMPORTED_MODULE_1__["lineTo"]({ x: x, y: y });
                            }
                            break;
                        case 1:
                            point = 2;
                            if (_this._closed) {
                                x3 = x;
                                y3 = y;
                            }
                            break;
                        case 2:
                            point = 3;
                            if (_this._closed) {
                                x4 = x;
                                y4 = y;
                                output += _Path__WEBPACK_IMPORTED_MODULE_1__["moveTo"]({ x: (x0 + 4 * x1 + x) / 6, y: (y0 + 4 * y1 + y) / 6 });
                                break;
                            }
                            else {
                                output += _Path__WEBPACK_IMPORTED_MODULE_1__["lineTo"]({ x: (5 * x0 + x1) / 6, y: (5 * y0 + y1) / 6 });
                                // fall-through
                            }
                        default:
                            pushCurve(x, y);
                            break;
                    }
                    x0 = x1;
                    x1 = x;
                    y0 = y1;
                    y1 = y;
                };
                _utils_Array__WEBPACK_IMPORTED_MODULE_2__["each"](points, pushPoint);
                if (this._closed) {
                    switch (point) {
                        case 1:
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["moveTo"]({ x: x2, y: y2 });
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["closePath"]();
                            break;
                        case 2:
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["moveTo"]({ x: (x2 + 2 * x3) / 3, y: (y2 + 2 * y3) / 3 });
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["lineTo"]({ x: (x3 + 2 * x2) / 3, y: (y3 + 2 * y2) / 3 });
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["closePath"]();
                            break;
                        case 3:
                            pushPoint({ x: x2, y: y2 });
                            pushPoint({ x: x3, y: y3 });
                            pushPoint({ x: x4, y: y4 });
                            break;
                    }
                }
                else {
                    switch (point) {
                        case 3:
                            pushCurve(x1, y1);
                        // fall-through
                        case 2:
                            output += _Path__WEBPACK_IMPORTED_MODULE_1__["lineTo"]({ x: x1, y: y1 });
                            break;
                    }
                    output += _Path__WEBPACK_IMPORTED_MODULE_1__["closePath"]();
                }
                return output;
            };
            return Basis;
        }());
        //# sourceMappingURL=Smoothing.js.map
        /***/ 
    }),
    /* 852 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyline", function () { return polyline; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moveTo", function () { return moveTo; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineTo", function () { return lineTo; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadraticCurveTo", function () { return quadraticCurveTo; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicCurveTo", function () { return cubicCurveTo; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closePath", function () { return closePath; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arcTo", function () { return arcTo; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arc", function () { return arc; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arcToPoint", function () { return arcToPoint; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rectangle", function () { return rectangle; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rectToPath", function () { return rectToPath; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pathToPoints", function () { return pathToPoints; });
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(757);
        /* harmony import */ var _rendering_Paper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(777);
        /**
         * A collection of functions that deals with path calculations.
         */
        /**
         * ============================================================================
         * PATH FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Returns an SVG path from a number of points.
         *
         * @ignore Exclude from docs
         * @param  {IPoint[]}  points  An array of line elbow points
         * @return {string}            SVG path
         */
        function polyline(points) {
            var path = lineTo(points[0]);
            var prevPoint = { x: 0, y: 0 };
            for (var i = 0, len = points.length; i < len; i++) {
                var point = points[i];
                if (_utils_Math__WEBPACK_IMPORTED_MODULE_0__["getDistance"](point, prevPoint) > 1) {
                    path += lineTo(point);
                    prevPoint = point;
                }
            }
            return path;
        }
        /**
         * Returns a starting point of an SVG path.
         *
         * @ignore Exclude from docs
         * @param  {IPoint}  point  Starting point
         * @return {string}         SVG path
         */
        function moveTo(point) {
            return " M" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.x, 4) + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.y, 4) + " ";
        }
        /**
         * Returns a line part of SVG path.
         *
         * @ignore Exclude from docs
         * @param  {IPoint}  point  SVG path
         * @return {string}         SVG path
         */
        function lineTo(point) {
            return " L" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.x, 4) + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.y, 4) + " ";
        }
        /**
         * Returns a quadratic curve part of an SVG path.
         *
         * @ignore Exclude from docs
         * @param  {IPoint}  point         End point of the curve
         * @param  {IPoint}  controlPoint  Control point
         * @return {string}                SVG path
         */
        function quadraticCurveTo(point, controlPoint) {
            return " Q" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPoint.x, 4)
                + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPoint.y, 4) + " " + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.x, 4)
                + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.y, 4);
        }
        /**
         * Returns a cubic curve part of an SVG path.
         *
         * @ignore Exclude from docs
         * @param  {IPoint}  point          End point of the curve
         * @param  {IPoint}  controlPointA  Control point A
         * @param  {IPoint}  controlPointB  Control point B
         * @return {string}                 SVG path
         */
        function cubicCurveTo(point, controlPointA, controlPointB) {
            return " C" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPointA.x, 4)
                + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPointA.y, 4) + " " + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPointB.x, 4)
                + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](controlPointB.y, 4) + " " + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.x, 4)
                + "," + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.y, 4);
        }
        /**
         * Returns a terminator for an SVG path.
         *
         * @ignore Exclude from docs
         * @return {string} SVG path
         */
        function closePath() {
            return " Z";
        }
        /**
         * Returns an arc part of an SVG path.
         *
         * @ignore Exclude from docs
         * @todo Better parameter descriptions
         * @param  {number}  startAngle  Starting angle
         * @param  {number}  arc         Arc
         * @param  {number}  radius      Radius
         * @param  {number}  radiusY     Vertical radius
         * @return {string}              SVG path
         */
        function arcTo(startAngle, arc, radius, radiusY) {
            if (arc == 0) {
                return "";
            }
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](radiusY)) {
                radiusY = radius;
            }
            var path = "";
            var c = ",";
            var segments = Math.ceil(Math.abs(arc) / 180);
            var l = 1;
            if (arc < 0) {
                l = 0;
            }
            // previous, as we use a not A
            var pax = 0;
            var pay = 0;
            // center
            var cx = -_utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](startAngle) * radius;
            var cy = -_utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](startAngle) * radiusY;
            // foir very short angles and big radius, solves artefacts
            if (arc < 0.5 && radius > 3000) {
                var endAngle = startAngle + arc;
                var ax = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](endAngle) * radius, 4);
                var ay = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](endAngle) * radiusY, 4);
                return lineTo({ x: ax, y: ay });
            }
            for (var i = 0; i < segments; i++) {
                var endAngle = startAngle + arc / segments * (i + 1);
                var ax = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](endAngle) * radius + cx - pax, 4);
                var ay = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](endAngle) * radiusY + cy - pay, 4);
                path += " a" + radius + c + radiusY + c + 0 + c + 0 + c + l + c + ax + c + ay;
                pax = ax;
                pay = ay;
            }
            return path;
        }
        /**
         * Creates an arc path.
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {number}  startAngle         [description]
         * @param  {number}  arc                [description]
         * @param  {number}  radius             [description]
         * @param  {number}  innerRadius        [description]
         * @param  {number}  radiusY            [description]
         * @param  {number}  cornerRadius       [description]
         * @param  {number}  innerCornerRadius  [description]
         * @return {string}                     SVG path
         */
        function arc(startAngle, arc, radius, innerRadius, radiusY, cornerRadius, innerCornerRadius) {
            if (arc == 0) {
                return "";
            }
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](innerRadius)) {
                innerRadius = 0;
            }
            if (radius == 0 && innerRadius <= 0) {
                return "";
            }
            if (radius < innerRadius) {
                var temp = radius;
                radius = innerRadius;
                innerRadius = temp;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](radiusY)) {
                    radiusY = radiusY / innerRadius * radius;
                }
            }
            arc = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["min"](arc, 360);
            if (arc == 360) {
                cornerRadius = 0;
                innerCornerRadius = 0;
            }
            var endAngle = startAngle + arc;
            var crSin = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["min"](arc, 45) / 2);
            radiusY = _utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](radiusY) ? radiusY : radius;
            cornerRadius = cornerRadius || 0;
            innerCornerRadius = _utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](innerCornerRadius) ? innerCornerRadius : cornerRadius;
            var innerRadiusY = (radiusY / radius) * innerRadius;
            var cornerRadiusY = (radiusY / radius) * cornerRadius;
            var innerCornerRadiusY = (radiusY / radius) * innerCornerRadius;
            cornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](cornerRadius, 0, (radius - innerRadius) / 2);
            cornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](cornerRadiusY, 0, (radiusY - innerRadiusY) / 2);
            innerCornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](innerCornerRadius, 0, (radius - innerRadius) / 2);
            innerCornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](innerCornerRadiusY, 0, (radiusY - innerRadiusY) / 2);
            cornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](cornerRadius, 0, radius * crSin), 4);
            cornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](cornerRadiusY, 0, radiusY * crSin), 4);
            innerCornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](innerCornerRadius, 0, innerRadius * crSin), 4);
            innerCornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["fitToRange"](innerCornerRadiusY, 0, innerRadiusY * crSin), 4);
            var crAngle = Math.asin(cornerRadius / radius / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["DEGREES"] * 2;
            var crAngleY = Math.asin(cornerRadiusY / radiusY / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["DEGREES"] * 2;
            if (innerRadius < innerCornerRadius) {
                innerRadius = innerCornerRadius;
            }
            if (innerRadiusY < innerCornerRadiusY) {
                innerRadiusY = innerCornerRadiusY;
            }
            var crInnerAngle = Math.asin(innerCornerRadius / innerRadius / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["DEGREES"] * 2;
            var crInnerAngleY = Math.asin(innerCornerRadiusY / innerRadiusY / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["DEGREES"] * 2;
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](crInnerAngle)) {
                crInnerAngle = 0;
            }
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](crInnerAngleY)) {
                crInnerAngleY = 0;
            }
            var middleAngle = startAngle + arc / 2;
            var mPoint = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](middleAngle) * innerRadius, 4), y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](middleAngle) * innerRadiusY };
            var a0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](startAngle) * (innerRadius + innerCornerRadius), y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](startAngle) * (innerRadiusY + innerCornerRadiusY) };
            var b0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](startAngle) * (radius - cornerRadius), y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](startAngle) * (radiusY - cornerRadiusY) };
            var c0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](endAngle) * (radius - cornerRadius), y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](endAngle) * (radiusY - cornerRadiusY) };
            var d0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](endAngle) * (innerRadius + innerCornerRadius), y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](endAngle) * (innerRadiusY + innerCornerRadiusY) };
            var b1 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](startAngle + crAngle) * radius, y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](startAngle + crAngleY) * radiusY };
            var d1 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["cos"](endAngle - crInnerAngle) * innerRadius, y: _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](endAngle - crInnerAngleY) * innerRadiusY };
            // some magic math
            innerCornerRadius += innerCornerRadius * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](crInnerAngle / 2);
            innerCornerRadiusY += innerCornerRadiusY * _utils_Math__WEBPACK_IMPORTED_MODULE_0__["sin"](crInnerAngleY / 2);
            if (crInnerAngle > (endAngle - startAngle) / 2) {
                d1 = mPoint;
            }
            var path = "";
            // start from b if this is full circle
            if (arc == 360) {
                path = moveTo(b0);
            }
            // otherwise start from a
            else {
                path = moveTo(a0);
                path += lineTo(b0);
                path += arcToPoint(b1, cornerRadius, cornerRadiusY, true);
            }
            // draw arc
            path += arcTo(startAngle + crAngle, arc - 2 * crAngle, radius, radiusY);
            // draw inner arc
            if (_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](innerRadius) && innerRadius != 0) {
                // move to B if this is full circle
                if (arc == 360 && cornerRadius == 0) {
                    path += moveTo(d0);
                }
                // draw line otherwise
                else {
                    path += arcToPoint(c0, cornerRadius, cornerRadiusY, true);
                    path += lineTo(d0);
                    path += arcToPoint(d1, innerCornerRadius, innerCornerRadiusY, true);
                }
                path += arcTo(endAngle - crInnerAngle, -(arc - 2 * crInnerAngle), innerRadius, innerRadiusY);
                if (arc < 360 || cornerRadius > 0) {
                    path += arcToPoint(a0, innerCornerRadius, innerCornerRadiusY, true);
                }
                path += lineTo(a0);
            }
            else {
                path += arcToPoint(c0, cornerRadius, cornerRadiusY, true);
                if (arc < 360) {
                    path += lineTo(a0);
                }
            }
            return path;
        }
        /**
         * Creates a path for an arc to specific coordinate.
         *
         * @ignore Exclude from docs
         * @todo Description
         * @param  {IPoint}  point         Reference point
         * @param  {number}  radius        Radius
         * @param  {number}  radiusY       Vertical radius (for skewed arcs)
         * @param  {boolean} sweepFlag     [description]
         * @param  {boolean} largeArcFlag  [description]
         * @param  {number}  xAxisRotation [description]
         * @return {string}                Arc path
         */
        function arcToPoint(point, radius, radiusY, sweepFlag, largeArcFlag, xAxisRotation) {
            if (radius == 0) {
                return "";
            }
            xAxisRotation = xAxisRotation || 0;
            largeArcFlag = Boolean(largeArcFlag);
            sweepFlag = Boolean(sweepFlag);
            var c = ",";
            var sweepFlagValue = +sweepFlag; // converts to 1 or 0
            var largeArcFlagValue = +largeArcFlag; // converts to 1 or 0
            return " A" + radius + c + radiusY + c + xAxisRotation + c + largeArcFlagValue + c + sweepFlagValue + c + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.x, 4) + c + _utils_Math__WEBPACK_IMPORTED_MODULE_0__["round"](point.y, 4);
        }
        /**
         * Creates a new rectangle.
         *
         * @ignore Exclude from docs
         * @param  {number}  width   Width (px)
         * @param  {number}  height  Height (px)
         * @param  {number}  x       X position
         * @param  {number}  y       Y position
         * @return {string}          Rectangle
         */
        function rectangle(width, height, x, y) {
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](x)) {
                x = 0;
            }
            if (!_utils_Type__WEBPACK_IMPORTED_MODULE_1__["isNumber"](y)) {
                y = 0;
            }
            return moveTo({ x: x, y: y }) + lineTo({ x: x + width, y: y }) + lineTo({ x: x + width, y: y + height }) + lineTo({ x: x, y: y + height }) + closePath();
        }
        /**
         * Converts a rectangle to an SVG path.
         *
         * @ignore Exclude from docs
         * @param  {IRectangle}  rect  Rectangle
         * @param  {boolean}     ccw   Counter-clockwise?
         * @return {string}            SVG path
         */
        function rectToPath(rect, ccw) {
            var c = ",";
            var L = " L";
            if (ccw) {
                return "M" + rect.x
                    + c + rect.y + L + rect.x
                    + c + (rect.y + rect.height) + L + (rect.x + rect.width)
                    + c + (rect.y + rect.height) + L + (rect.x + rect.width)
                    + c + rect.y + L + rect.x
                    + c + rect.y;
            }
            else {
                return "M" + rect.x
                    + c + rect.y + L + (rect.x + rect.width)
                    + c + rect.y + L + (rect.x + rect.width)
                    + c + (rect.y + rect.height) + L + rect.x
                    + c + (rect.y + rect.height) + L + rect.x
                    + c + rect.y;
            }
        }
        /**
         * Converts SVG path to array of points.
         *
         * Note, this is experimental feature based on method which is deprecated
         * on some browsers and some browsers do not support it at all.
         *
         * You can save the output of this function, but not rely on it completely.
         */
        function pathToPoints(path, pointCount) {
            var paper = Object(_rendering_Paper__WEBPACK_IMPORTED_MODULE_2__["getGhostPaper"])();
            var svgPath = paper.add("path").node;
            svgPath.setAttribute("d", path);
            if (svgPath.getPointAtLength && svgPath.getTotalLength) {
                var length_1 = svgPath.getTotalLength();
                var toPoints = [];
                for (var i = 0; i < pointCount; i++) {
                    var point = svgPath.getPointAtLength(i / pointCount * length_1);
                    toPoints.push({ x: point.x, y: point.y });
                }
                return toPoints;
            }
            svgPath.remove();
        }
        //# sourceMappingURL=Path.js.map
        /***/ 
    }),
    /* 853 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WavedRectangle", function () { return WavedRectangle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Rectangle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(831);
        /* harmony import */ var _rendering_Smoothing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(851);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /**
         * Functionality for drawing rectangles with waved edges.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a rectangle with waved edges.
         *
         * @see {@link IWavedRectangleEvents} for a list of available events
         * @see {@link IWavedRectangleAdapters} for a list of available Adapters
         */
        var WavedRectangle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](WavedRectangle, _super);
            /**
             * Constructor
             */
            function WavedRectangle() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Top waved?
                 *
                 * @type {boolean}
                 */
                _this._twaved = true;
                /**
                 * Right side waved?
                 *
                 * @type {boolean}
                 */
                _this._rwaved = true;
                /**
                 * Bottom waved?
                 *
                 * @type {boolean}
                 */
                _this._bwaved = true;
                /**
                 * Left side waved?
                 *
                 * @type {boolean}
                 */
                _this._lwaved = true;
                _this.className = "WavedRectangle";
                // Add path element
                _this.element = _this.paper.add("path");
                // Set defaults
                _this.waveLength = 16;
                _this.waveHeight = 4;
                _this.tension = 0.8;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the waved rectangle.
             *
             * @ignore Exclude from docs
             */
            WavedRectangle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.pixelWidth;
                var h = this._pixelHeight;
                if (w > 0 && h > 0) {
                    var p1 = { x: 0, y: 0 };
                    var p2 = { x: w, y: 0 };
                    var p3 = { x: w, y: h };
                    var p4 = { x: 0, y: h };
                    var waveLength = this.waveLength;
                    var waveHeight = this.waveHeight;
                    var td = "";
                    var rd = "";
                    var bd = "";
                    var ld = "";
                    if (this._twaved) {
                        td = Object(_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_2__["wavedLine"])(p1, p2, waveLength, waveHeight, this.tension, true);
                    }
                    if (this._rwaved) {
                        ld = Object(_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_2__["wavedLine"])(p2, p3, waveLength, waveHeight, this.tension, true);
                    }
                    if (this._bwaved) {
                        bd = Object(_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_2__["wavedLine"])(p3, p4, waveLength, waveHeight, this.tension, true);
                    }
                    if (this._rwaved) {
                        rd = Object(_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_2__["wavedLine"])(p4, p1, waveLength, waveHeight, this.tension, true);
                    }
                    this.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](p1) + td + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](p2) + ld + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](p3) + bd + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](p4) + rd + "z";
                }
            };
            Object.defineProperty(WavedRectangle.prototype, "waveLength", {
                /**
                 * @return {number} Wave length (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveLength");
                },
                /**
                 * Wave length in pixels.
                 *
                 * @default 16
                 * @param {number}  value  Wave length (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveLength", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedRectangle.prototype, "waveHeight", {
                /**
                 * @return {number} Wave height (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveHeight");
                },
                /**
                 * Wave height in pixels.
                 *
                 * @default 4
                 * @param {number}  value  Wave height (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveHeight", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets which side should be waved or not. If particular side is set to
             * `false`, a straight line will be drawn on that side.
             *
             * @param {boolean}  top     Top waved?
             * @param {boolean}  right   Right side waved?
             * @param {boolean}  bottom  Bottom Waved?
             * @param {boolean}  left    Left side waved?
             */
            WavedRectangle.prototype.setWavedSides = function (top, right, bottom, left) {
                this._twaved = top;
                this._lwaved = right;
                this._bwaved = bottom;
                this._rwaved = left;
            };
            /**
             * Updates bounding box based on element dimension settings.
             *
             * @ignore Exclude from docs
             */
            WavedRectangle.prototype.measureElement = function () {
                this._bbox = {
                    x: 0,
                    y: 0,
                    width: this.innerWidth,
                    height: this.innerHeight
                };
            };
            Object.defineProperty(WavedRectangle.prototype, "tension", {
                /**
                 * @return {number} Tension
                 */
                get: function () {
                    return this.getPropertyValue("tension");
                },
                /**
                 * Tension of the wave.
                 *
                 * @default 0.8
                 * @param {number}  value  Tension
                 */
                set: function (value) {
                    this.setPropertyValue("tension", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            return WavedRectangle;
        }(_Rectangle__WEBPACK_IMPORTED_MODULE_1__["Rectangle"]));
        //# sourceMappingURL=WavedRectangle.js.map
        /***/ 
    }),
    /* 854 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererY", function () { return AxisRendererY; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(840);
        /* harmony import */ var _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(849);
        /* harmony import */ var _core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(853);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Module, defining Axis Renderer for vertical axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A renderer for vertical axis.
         *
         * @see {@link IAxisRendererYEvents} for a list of available events
         * @see {@link IAxisRendererYAdapters} for a list of available Adapters
         */
        var AxisRendererY = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererY, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererY() {
                var _this = _super.call(this) || this;
                _this.className = "AxisRendererY";
                _this.minGridDistance = 40;
                _this.opposite = false;
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.labels.template.verticalCenter = "middle";
                _this.applyTheme();
                return _this;
            }
            /**
            * @ignore
            */
            AxisRendererY.prototype.setAxis = function (axis) {
                _super.prototype.setAxis.call(this, axis);
                axis.layout = "horizontal";
            };
            /**
             * Called when rendered is attached to an Axis, as well as a property of
             * Axis that might affect the appearance is updated.
             *
             * E.g. `axis.opposite`, `axis.inside`, etc.
             *
             * This method is called **before** draw, so that any related setting
             * changed in this method can be changed.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRendererY.prototype.processRenderer = function () {
                _super.prototype.processRenderer.call(this);
                var axis = this.axis;
                if (axis) {
                    var title = axis.title;
                    title.valign = "middle";
                    axis.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                    if (this.opposite) {
                        title.rotation = 90;
                        this.line.toBack();
                        title.toFront();
                    }
                    else {
                        title.rotation = -90;
                        title.toBack();
                        this.line.toFront();
                    }
                }
            };
            /**
             * Updates some of the Axis tooltip's visual properties, related to
             * rendering of the Axis.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRendererY.prototype.updateTooltip = function () {
                var axis = this.axis;
                if (axis) {
                    var bigNum = 2000;
                    var bbx = 0;
                    var bby = 0;
                    var bbw = bigNum;
                    var bbh = this.axisLength;
                    // right
                    if (this.opposite) {
                        if (this.inside) {
                            bbx = -bigNum;
                            bbw = bigNum;
                        }
                    }
                    // left
                    else {
                        if (!this.inside) {
                            bbx = -bigNum;
                            bbw = bigNum;
                        }
                    }
                    this.axis.updateTooltip("horizontal", { x: bbx, y: bby, width: bbw, height: bbh });
                }
            };
            Object.defineProperty(AxisRendererY.prototype, "axisLength", {
                /**
                 * Returns actual length of the Axis, in pixels.
                 *
                 * @return {number} Length (px)
                 */
                get: function () {
                    var axis = this.axis;
                    return (axis.pixelHeight - axis.pixelPaddingTop - axis.pixelPaddingBottom) || 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position on axis to point coordinates.
             *
             * @param  {number}  position  Position (0-1)
             * @return {IPoindt}            Point
             */
            AxisRendererY.prototype.positionToPoint = function (position) {
                return { x: 0, y: this.positionToCoordinate(position) };
            };
            /**
             * Converts a point at specific coordinates to a relative position (0-1)
             * on the axis.
             *
             * @param  {IPoint}  point  Point
             * @return {number}         Position (0-1)
             */
            AxisRendererY.prototype.pointToPosition = function (point) {
                return this.coordinateToPosition(point.y);
            };
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  startPosition  Starting position
             * @param  {number}  endPosition    End position
             * @return {string}                 SVG path
             */
            AxisRendererY.prototype.getPositionRangePath = function (startPosition, endPosition) {
                var y1 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](this.positionToCoordinate(startPosition), 0, this.axisLength);
                var y2 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](this.positionToCoordinate(endPosition), 0, this.axisLength);
                var h = Math.abs(y2 - y1);
                var w = this.getWidth();
                var y = Math.min(y1, y2);
                var x = 0;
                return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["rectToPath"]({
                    x: x,
                    y: y,
                    width: w,
                    height: h
                }, true);
            };
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererY.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                grid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: this.getWidth(), y: 0 });
                this.positionItem(grid, point);
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions a tick element.
             *
             * @ignore Exclude from docs
             * @param {AxisTick}  tick         Tick element
             * @param {number}    position     Starting position
             * @param {number}    endPosition  End position
             */
            AxisRendererY.prototype.updateTickElement = function (tick, position, endPosition) {
                var point = this.positionToPoint(position);
                var tickLength = tick.length;
                var titleWidth = 0;
                try {
                    titleWidth = this.axis.title.measuredWidth;
                }
                catch (_a) {
                    // void
                }
                if (!this.opposite) {
                    tickLength *= (tick.inside ? 1 : -1);
                    point.x = 0;
                }
                else {
                    point.x = this.gridContainer.pixelWidth;
                    tickLength *= (tick.inside ? -1 : 1);
                }
                tick.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: tickLength, y: 0 });
                this.positionItem(tick, point);
                this.toggleVisibility(tick, position, 0, 1);
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererY.prototype.updateAxisLine = function () {
                this.line.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: 0, y: this.axisLength });
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererY.prototype.updateBaseGridElement = function () {
                _super.prototype.updateBaseGridElement.call(this);
                var axis = this.axis;
                var w = this.getWidth();
                var h = this.getHeight();
                var y = axis.basePoint.y;
                var baseGrid = this.baseGrid;
                if (y < 0 || y > h) {
                    baseGrid.hide(0);
                }
                else {
                    var x = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["spritePointToSprite"]({ x: 0, y: 0 }, this.gridContainer, baseGrid.parent).x;
                    baseGrid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: w, y: 0 });
                    baseGrid.moveTo({ x: x, y: y });
                    baseGrid.show(0);
                }
            };
            /**
             * Updates and positions a label element.
             *
             * @ignore Exclude from docs
             * @param {AxisLabel}  label        Label element
             * @param {number}     position     Starting position
             * @param {number}     endPosition  Ending position
             */
            AxisRendererY.prototype.updateLabelElement = function (label, position, endPosition, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](location)) {
                    location = label.location;
                }
                position = position + (endPosition - position) * location;
                label.isMeasured = !label.inside;
                var point = this.positionToPoint(position);
                var horizontalCenter;
                var deltaX = 0;
                if (this.opposite) {
                    if (label.inside) {
                        horizontalCenter = "right";
                    }
                    else {
                        horizontalCenter = "left";
                    }
                    if (label.inside) {
                        if (label.align == "left") {
                            deltaX = -this.gridContainer.maxWidth;
                            horizontalCenter = "left";
                        }
                    }
                    point.x = 0 + deltaX;
                }
                else {
                    if (label.inside) {
                        horizontalCenter = "left";
                    }
                    else {
                        horizontalCenter = "right";
                    }
                    if (label.inside) {
                        if (label.align == "right") {
                            deltaX = this.gridContainer.maxWidth;
                            horizontalCenter = "right";
                        }
                    }
                    point.x = this.measuredWidth + deltaX;
                }
                label.horizontalCenter = horizontalCenter;
                this.positionItem(label, point);
                this.toggleVisibility(label, position, this.minLabelPosition, this.maxLabelPosition);
            };
            /**
             * Updates and positions an axis break element.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Break element
             */
            AxisRendererY.prototype.updateBreakElement = function (axisBreak) {
                _super.prototype.updateBreakElement.call(this, axisBreak);
                var startLine = axisBreak.startLine;
                var endLine = axisBreak.endLine;
                var fillShape = axisBreak.fillShape;
                var startPoint = axisBreak.startPoint;
                var endPoint = axisBreak.endPoint;
                var x1 = axisBreak.pixelMarginLeft;
                var x2 = this.getWidth() - axisBreak.pixelMarginLeft - axisBreak.pixelMarginRight;
                startPoint.y = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](startPoint.y, -1, this.pixelHeight + 1);
                endPoint.y = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](endPoint.y, -1, this.pixelHeight + 1);
                if (startPoint.y == endPoint.y && (startPoint.y < 0 || startPoint.y > this.pixelHeight)) {
                    axisBreak.fillShape.__disabled = true;
                }
                else {
                    axisBreak.fillShape.__disabled = false;
                }
                var w = Math.abs(x2 - x1);
                startLine.x = x1;
                startLine.height = 0;
                startLine.width = w;
                endLine.x = x1;
                endLine.height = 0;
                endLine.width = w;
                fillShape.width = w;
                fillShape.height = Math.abs(endPoint.y - startPoint.y);
                fillShape.x = x1;
                fillShape.y = endPoint.y;
            };
            /**
             * Creates visual elements for and axis break.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Axis break
             */
            AxisRendererY.prototype.createBreakSprites = function (axisBreak) {
                axisBreak.startLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__["WavedLine"]();
                axisBreak.endLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_2__["WavedLine"]();
                var wavedRectangle = new _core_elements_WavedRectangle__WEBPACK_IMPORTED_MODULE_3__["WavedRectangle"]();
                wavedRectangle.setWavedSides(true, false, true, false);
                axisBreak.fillShape = wavedRectangle;
            };
            /**
             * Converts a position on the axis to a coordinate in pixels.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (0-1)
             * @return {number}            Coordinate (px)
             */
            AxisRendererY.prototype.positionToCoordinate = function (position) {
                var coordinate;
                var axis = this.axis;
                var axisFullLength = axis.axisFullLength;
                if (!axis.renderer.inversed) {
                    coordinate = (axis.end - position) * axisFullLength;
                }
                else {
                    coordinate = (position - axis.start) * axisFullLength;
                }
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](coordinate, 1);
            };
            return AxisRendererY;
        }(_AxisRenderer__WEBPACK_IMPORTED_MODULE_1__["AxisRenderer"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["AxisRendererY"] = AxisRendererY;
        //# sourceMappingURL=AxisRendererY.js.map
        /***/ 
    }),
    /* 855 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererCircular", function () { return AxisRendererCircular; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(840);
        /* harmony import */ var _AxisFillCircular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(856);
        /* harmony import */ var _GridCircular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(857);
        /* harmony import */ var _AxisLabelCircular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(858);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(757);
        /**
         * Module, defining Axis Renderer for circular axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A renderer for circular axis.
         */
        var AxisRendererCircular = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererCircular, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererCircular() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * @ignore
                 */
                _this.pixelRadiusReal = 0;
                // axis.layout = "none"; // does not trigger redraw when size changes
                _this.layout = "none";
                _this.className = "AxisRendererCircular";
                _this.isMeasured = false;
                _this.startAngle = -90;
                _this.endAngle = 270;
                _this.useChartAngles = true;
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                _this.isMeasured = false;
                _this.grid.template.location = 0;
                _this.labels.template.location = 0;
                _this.labels.template.radius = 15;
                _this.ticks.template.location = 0;
                _this.ticks.template.pixelPerfect = false;
                _this.tooltipLocation = 0;
                _this.line.strokeOpacity = 0;
                _this.applyTheme();
                return _this;
            }
            /**
            * @ignore
            */
            AxisRendererCircular.prototype.setAxis = function (axis) {
                var _this = this;
                _super.prototype.setAxis.call(this, axis);
                axis.isMeasured = false;
                // modify x and y so that tooltip would always be on circle
                var tooltip = axis.tooltip;
                tooltip.adapter.add("dx", function (x, target) {
                    var point = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["svgPointToSprite"]({ x: target.pixelX, y: target.pixelY }, _this);
                    return _this.pixelRadius * Math.cos(Math.atan2(point.y, point.x)) - point.x;
                });
                tooltip.adapter.add("dy", function (y, target) {
                    var point = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["svgPointToSprite"]({ x: target.pixelX, y: target.pixelY }, _this);
                    return _this.pixelRadius * Math.sin(Math.atan2(point.y, point.x)) - point.y;
                });
            };
            /**
             * Validates Axis renderer.
             *
             * @ignore Exclude from docs
             */
            AxisRendererCircular.prototype.validate = function () {
                // so that radius would be updated
                if (this.chart && this.chart.invalid) {
                    this.chart.validate();
                }
                _super.prototype.validate.call(this);
            };
            Object.defineProperty(AxisRendererCircular.prototype, "axisLength", {
                /**
                 * Returns actual length of the Axis, in pixels.
                 *
                 * @return {number} Length (px)
                 */
                get: function () {
                    return 2 * Math.PI * this.pixelRadius;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "radius", {
                /**
                 * @return {number | Percent} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the axis.
                 *
                 * Can be absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    if (this.setPercentProperty("radius", value, false, false, 10, false)) {
                        if (this.axis) {
                            this.axis.invalidate();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "pixelRadius", {
                /**
                 * Outer radius in pixels.
                 *
                 * @return {number} Outer radius (px)
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](this.radius, this.pixelRadiusReal) || 0;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "innerRadius", {
                /**
                 * @return {number | Percent} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the axis.
                 *
                 * Can be absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Inner radius
                 */
                set: function (value) {
                    if (this.setPercentProperty("innerRadius", value, false, false, 10, false)) {
                        if (this.axis) {
                            this.axis.invalidate();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "useChartAngles", {
                /**
                 * @return {boolean} Use chart angles
                 */
                get: function () {
                    return this.getPropertyValue("useChartAngles");
                },
                /**
                 * Specifies if axis should use its own `startAngle` and `endAngle` or
                 * inherit them from relative properties from chart.
                 *
                 * @default false
                 * @param {boolean}  value  Use chart's angles
                 */
                set: function (value) {
                    this.setPropertyValue("useChartAngles", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "pixelInnerRadius", {
                /**
                 * Inner radius in pixels.
                 *
                 * @return {number} Inner radius (px)
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](this.innerRadius, this.pixelRadiusReal) || 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position on axis to point coordinates.
             *
             * @param  {number}  position  Position (0-1)
             * @return {IPoint}            Point
             */
            AxisRendererCircular.prototype.positionToPoint = function (position) {
                var coordinate = this.positionToCoordinate(position);
                var angle = this.startAngle + (this.endAngle - this.startAngle) * coordinate / this.axisLength;
                return { x: this.pixelRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: this.pixelRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) };
            };
            /**
             * Converts relative position (0-1) on axis to angle in degrees (0-360).
             *
             * @param  {number}  position  Position (0-1)
             * @return {number}            Angle (0-360)
             */
            AxisRendererCircular.prototype.positionToAngle = function (position) {
                var axis = this.axis;
                var arc = (this.endAngle - this.startAngle) / (axis.end - axis.start);
                var angle;
                if (axis.renderer.inversed) {
                    angle = this.startAngle + (axis.end - position) * arc;
                }
                else {
                    angle = this.startAngle + (position - axis.start) * arc;
                }
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](angle, 3);
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererCircular.prototype.updateAxisLine = function () {
                var radius = this.pixelRadius;
                var startAngle = this.startAngle;
                var endAngle = this.endAngle;
                var arc = endAngle - startAngle;
                this.line.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](startAngle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](startAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["arcTo"](startAngle, arc, radius, radius);
            };
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererCircular.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                if (grid.element) {
                    var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["DEGREES"] * Math.atan2(point.y, point.x);
                    var radius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](grid.radius) ? grid.radius : Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100), this.pixelRadius);
                    var gridInnerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](grid.innerRadius, this.pixelRadius);
                    grid.zIndex = 0;
                    var innerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isNumber"](gridInnerRadius) ? gridInnerRadius : this.innerRadius, this.pixelRadius, true);
                    grid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                }
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions a tick element.
             *
             * @ignore Exclude from docs
             * @param {AxisTick}  tick         Tick element
             * @param {number}    position     Starting position
             * @param {number}    endPosition  End position
             */
            AxisRendererCircular.prototype.updateTickElement = function (tick, position, endPosition) {
                position = position + (endPosition - position) * tick.location;
                var point = this.positionToPoint(position);
                if (tick.element) {
                    var radius = this.pixelRadius;
                    var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["DEGREES"] * Math.atan2(point.y, point.x);
                    var tickLength = tick.length;
                    if (tick.inside) {
                        tickLength = -tickLength;
                    }
                    tick.zIndex = 1;
                    tick.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: (radius + tickLength) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: (radius + tickLength) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                }
                this.toggleVisibility(tick, position, 0, 1);
            };
            /**
             * Updates and positions a label element.
             *
             * @ignore Exclude from docs
             * @param {AxisLabel}  label        Label element
             * @param {number}     position     Starting position
             * @param {number}     endPosition  Ending position
             */
            AxisRendererCircular.prototype.updateLabelElement = function (label, position, endPosition, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](location)) {
                    location = label.location;
                }
                position = position + (endPosition - position) * location;
                var point = this.positionToPoint(position);
                label.fixPoint(point, this.pixelRadius);
                label.zIndex = 2;
                this.positionItem(label, point);
                this.toggleVisibility(label, position, this.minLabelPosition, this.maxLabelPosition);
            };
            /**
             * Checks if point is within bounds of a container.
             *
             * @ignore Exclude from docs
             * @param  {IPoint}   point Point coordinates
             * @return {boolean}         Fits?
             */
            AxisRendererCircular.prototype.fitsToBounds = function (point) {
                return true;
            };
            Object.defineProperty(AxisRendererCircular.prototype, "startAngle", {
                /**
                 * @return {number} Start angle
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Start angle of the axis in degrees (0-360).
                 *
                 * @param {number}  value  Start angle
                 */
                set: function (value) {
                    // do not normalize angel here!
                    if (this.setPropertyValue("startAngle", value)) {
                        if (this.axis) {
                            this.axis.invalidate();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererCircular.prototype, "endAngle", {
                /**
                 * @return {number} End angle
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * End angle of the axis in degrees (0-360).
                 *
                 * @param {number}  value  End angle
                 */
                set: function (value) {
                    // do not normalize angel here!
                    if (this.setPropertyValue("endAngle", value)) {
                        if (this.axis) {
                            this.axis.invalidate();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  startPosition  Starting position
             * @param  {number}  endPosition    End position
             * @return {string}                 SVG path
             */
            AxisRendererCircular.prototype.getPositionRangePath = function (startPosition, endPosition, radius, innerRadius, cornerRadius) {
                var path = "";
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isNumber"](startPosition) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isNumber"](endPosition)) {
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](radius)) {
                        radius = this.radius;
                    }
                    startPosition = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["max"](startPosition, this.axis.start);
                    endPosition = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["min"](endPosition, this.axis.end);
                    if (endPosition < startPosition) {
                        endPosition = startPosition;
                    }
                    var pixelRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](radius, this.pixelRadius);
                    var pixelInnerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](innerRadius, this.pixelRadius, true);
                    var startAngle = this.positionToAngle(startPosition);
                    var endAngle = this.positionToAngle(endPosition);
                    var arc = endAngle - startAngle;
                    path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["arc"](startAngle, arc, pixelRadius, pixelInnerRadius, pixelRadius, cornerRadius);
                }
                return path;
            };
            /**
             * Returns a new grid element, suitable for this Axis Renderer type.
             *
             * @return {GridCircular} Grid element
             */
            AxisRendererCircular.prototype.createGrid = function () {
                return new _GridCircular__WEBPACK_IMPORTED_MODULE_3__["GridCircular"]();
            };
            /**
             * Returns a new fill element, suitable for this Axis Renderer type.
             *
             * @return {AxisFillCircular} Fill element
             */
            AxisRendererCircular.prototype.createFill = function (axis) {
                return new _AxisFillCircular__WEBPACK_IMPORTED_MODULE_2__["AxisFillCircular"](axis);
            };
            /**
             * Returns a new label element, suitable for this Axis Renderer type.
             *
             * @return {AxisLabelCircular} Label element
             */
            AxisRendererCircular.prototype.createLabel = function () {
                return new _AxisLabelCircular__WEBPACK_IMPORTED_MODULE_4__["AxisLabelCircular"]();
            };
            return AxisRendererCircular;
        }(_AxisRenderer__WEBPACK_IMPORTED_MODULE_1__["AxisRenderer"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["AxisRendererCircular"] = AxisRendererCircular;
        //# sourceMappingURL=AxisRendererCircular.js.map
        /***/ 
    }),
    /* 856 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisFillCircular", function () { return AxisFillCircular; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisFill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(842);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Provides fill element functionality for circular Axes.
         *
         * @see {@link IAxisFillCircularEvents} for a list of available events
         * @see {@link IAxisFillCircularAdapters} for a list of available Adapters
         * @todo Needs description
         */
        var AxisFillCircular = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisFillCircular, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Axis
             */
            function AxisFillCircular(axis) {
                var _this = _super.call(this, axis) || this;
                _this.className = "AxisFillCircular";
                _this.element = _this.paper.add("path");
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the fill element.
             *
             * @ignore Exclude from docs
             */
            AxisFillCircular.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this.axis) {
                    var renderer = this.axis.renderer;
                    this.fillPath = renderer.getPositionRangePath(this.startPosition, this.endPosition, this.radius, _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](this.innerRadius) ? this.innerRadius : renderer.innerRadius, this.cornerRadius);
                    this.path = this.fillPath;
                }
            };
            Object.defineProperty(AxisFillCircular.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the fill. Relative ([[Percent]]) or absolute (pixels).
                 *
                 * @param {number | Percent}  value  Inner radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisFillCircular.prototype, "radius", {
                /**
                 * @return {number} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the fill. Relative ([[Percent]]) or absolute (pixels).
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisFillCircular.prototype, "cornerRadius", {
                /**
                 * @return {number} Corner radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadius");
                },
                /**
                 * Corner radius for the fill. In pixels.
                 *
                 * @param {number}  value  Corner radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return AxisFillCircular;
        }(_AxisFill__WEBPACK_IMPORTED_MODULE_1__["AxisFill"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["AxisFillCircular"] = AxisFillCircular;
        //# sourceMappingURL=AxisFillCircular.js.map
        /***/ 
    }),
    /* 857 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridCircular", function () { return GridCircular; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(843);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * A module defining functionality for circular axis grid elements.
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a circular grid element for circular-type axis.
         *
         * @see {@link IGridCircularEvents} for a list of available events
         * @see {@link IGridCircularAdapters} for a list of available Adapters
         * @todo Review: container is better, as we'll be able to attach something to the GridCircular, also with 3d charts we might need some additional elements
         */
        var GridCircular = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GridCircular, _super);
            /**
             * Constructor
             */
            function GridCircular() {
                var _this = _super.call(this) || this;
                _this.className = "GridCircular";
                _this.pixelPerfect = false;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(GridCircular.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the circular grid. (absolute or relative)
                 *
                 * @param {number | Percent} value Inner radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(GridCircular.prototype, "radius", {
                /**
                 * @return {number} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the circular grid. (absolute or relative)
                 *
                 * @param {number | Percent} value Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            return GridCircular;
        }(_Grid__WEBPACK_IMPORTED_MODULE_1__["Grid"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["GridCircular"] = GridCircular;
        //# sourceMappingURL=GridCircular.js.map
        /***/ 
    }),
    /* 858 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisLabelCircular", function () { return AxisLabelCircular; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(844);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(795);
        /**
         * Axis Label module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Use to create labels on circular axis.
         *
         * @see {@link IAxisLabelCircularEvents} for a list of available events
         * @see {@link IAxisLabelCircularAdapters} for a list of available Adapters
         */
        var AxisLabelCircular = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisLabelCircular, _super);
            /**
             * Constructor
             */
            function AxisLabelCircular() {
                var _this = _super.call(this) || this;
                /**
                 *
                 * @type {number}
                 * @ignore
                 */
                _this.fdx = 0;
                /**
                 *
                 * @type {number}
                 * @ignore
                 */
                _this.fdy = 0;
                _this.className = "AxisLabelCircular";
                _this.padding(0, 0, 0, 0);
                _this.location = 0.5;
                _this.radius = 0;
                _this.isMeasured = false;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(AxisLabelCircular.prototype, "relativeRotation", {
                /**
                 * @return {number} Rotation angle
                 */
                get: function () {
                    return this.getPropertyValue("relativeRotation");
                },
                /**
                 * Relative rotation of the label.
                 *
                 * It is an angle to circle. In case 90, labels will be positioned like rays
                 * of light, if 0 - positione along the circle.
                 *
                 * @param {number} value Rotation angle
                 */
                set: function (value) {
                    this.setPropertyValue("relativeRotation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisLabelCircular.prototype, "radius", {
                /**
                 * @return {number} Distance (px)
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Distance from axis circle to label in pixels or percent.
                 *
                 * @param {number} value Distance (px or percent)
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * returns label radius in pixels
             */
            AxisLabelCircular.prototype.pixelRadius = function (axisRadius) {
                var sign = 1;
                if (this.inside) {
                    sign = -1;
                }
                return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.radius, axisRadius) * sign;
            };
            /**
             * [fixPoint description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {IPoint}  point       Label affixation point
             * @param  {number}  axisRadius  Distance from point (px)
             * @return {IPoint}              [description]
             */
            AxisLabelCircular.prototype.fixPoint = function (point, axisRadius) {
                var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["DEGREES"] * Math.atan2(point.y, point.x);
                if (this.invalid) {
                    this.validate(); //@todo" check if we need this
                }
                var relativeRotation = this.relativeRotation;
                // we don't use valign for labels because then they would jump while animating. instead we modify dy depending on a y position
                // this math makes dy to be 1 at the top of the circle, 0.5 at the middle and 1 at the bottom
                // @todo with this math doesn't work well with inside = true
                this.dy = -this._measuredHeight * (1 - (point.y + axisRadius) / (2 * axisRadius));
                // simmilar with dx
                this.dx = -this._measuredWidth * (1 - (point.x + axisRadius) / (2 * axisRadius));
                var labelRadius = this.pixelRadius(axisRadius);
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](relativeRotation)) {
                    var pixelWidth = this.bbox.width;
                    var pixelHeight = this.bbox.height;
                    if (angle > 90 || angle < -90) {
                        if (relativeRotation == -90) {
                            relativeRotation = 90;
                            pixelWidth = 0;
                        }
                    }
                    else {
                        if (relativeRotation == -90) {
                            pixelHeight = -pixelHeight;
                        }
                        if (relativeRotation == 90) {
                            relativeRotation = -90;
                            pixelWidth = 0;
                            pixelHeight = -pixelHeight;
                        }
                    }
                    this.rotation = relativeRotation + angle + 90;
                    var dH = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](relativeRotation) / 2;
                    var dW = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](relativeRotation) / 2;
                    var rotation = this.rotation;
                    this.dx = pixelHeight * dH * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](rotation) - pixelWidth * dW * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](rotation);
                    this.dy = -pixelHeight * dH * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](rotation) - pixelWidth * dW * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](rotation);
                    var pixelPaddingBottom = this.pixelPaddingBottom;
                    var pixelPaddingTop = this.pixelPaddingTop;
                    var pixelPaddingLeft = this.pixelPaddingLeft;
                    var pixelPaddingRight = this.pixelPaddingRight;
                    if (!this.inside) {
                        labelRadius += (pixelHeight + pixelPaddingBottom + pixelPaddingTop) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](relativeRotation) + (pixelWidth + pixelPaddingLeft + pixelPaddingRight) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](relativeRotation);
                    }
                    else {
                        if (angle > 90 || angle < -90) {
                            labelRadius -= (pixelPaddingBottom + pixelPaddingTop) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](relativeRotation) + (pixelPaddingLeft + pixelPaddingRight) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](relativeRotation);
                        }
                        else {
                            labelRadius += (pixelPaddingBottom + this.bbox.height + pixelPaddingTop) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](relativeRotation) + (pixelPaddingLeft + pixelPaddingRight + this.bbox.width) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](relativeRotation);
                        }
                    }
                }
                this.fdx = this.dx;
                this.fdy = this.dy;
                point.x += _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](angle) * labelRadius;
                point.y += _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](angle) * labelRadius;
                return point;
            };
            return AxisLabelCircular;
        }(_AxisLabel__WEBPACK_IMPORTED_MODULE_1__["AxisLabel"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["AxisLabelCircular"] = AxisLabelCircular;
        //# sourceMappingURL=AxisLabelCircular.js.map
        /***/ 
    }),
    /* 859 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartDataItem", function () { return ChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Chart", function () { return Chart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(845);
        /* harmony import */ var _core_DataItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(860);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * [[Chart]] class provides base functionality for all chart types to inherit.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[Chart]].
         *
         * @see {@link DataItem}
         */
        var ChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ChartDataItem, _super);
            /**
             * Constructor
             */
            function ChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return ChartDataItem;
        }(_core_DataItem__WEBPACK_IMPORTED_MODULE_6__["DataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for all Charts.
         *
         * @see {@link IChartEvents} for a list of available Events
         * @see {@link IChartAdapters} for a list of available Adapters
         */
        var Chart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Chart, _super);
            /**
             * Constructor
             */
            function Chart() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A reference to chart's [[Legend]].
                 * @ignore
                 * @type {Legend}
                 */
                _this._legend = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "Chart";
                // Create a list of titles
                var template = new _core_elements_Label__WEBPACK_IMPORTED_MODULE_5__["Label"]();
                _this.titles = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](template);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.titles));
                _this._disposers.push(template);
                // Chart component is also a container. it holds _chartAndLegendCont and titles
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                _this.layout = "vertical";
                // Chart and legend
                var chartAndLegendContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_4__["Container"]);
                chartAndLegendContainer.shouldClone = false;
                chartAndLegendContainer.layout = "vertical";
                chartAndLegendContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                chartAndLegendContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                _this.chartAndLegendContainer = chartAndLegendContainer;
                // Chart container holds all the elements of a chart, extept titles and legend
                var chartContainer = chartAndLegendContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_4__["Container"]);
                chartContainer.shouldClone = false;
                chartContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                chartContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                _this.chartContainer = chartContainer;
                _this.showOnInit = true;
                _this._disposers.push(_this._legend);
                // Add title list events to apply certain formatting options and to make
                // the chart reference them as accessible screen reader labels
                _this.titles.events.on("inserted", function (label) {
                    _this.processTitle(label);
                    _this.updateReaderTitleReferences();
                }, _this, false);
                _this.titles.events.on("removed", function (label) {
                    _this.updateReaderTitleReferences();
                }, _this, false);
                // Accessibility
                // It seems we can't set focusable on the whole chart because it seems to
                // mess up the whole focus event system - getting a focus on an inside
                // object also trigger focus on parent
                //this.focusable = true;
                _this.role = "region";
                _this.defaultState.transitionDuration = 1;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            Chart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Chart");
                }
            };
            /**
             * Initiates drawing of the chart.
             *
             * @ignore Exclude from docs
             */
            Chart.prototype.draw = function () {
                this.fixLayout();
                _super.prototype.draw.call(this);
            };
            /**
             * Updates legend's hierarchy based on the position.
             */
            Chart.prototype.fixLayout = function () {
                var legend = this.legend;
                if (legend) {
                    var chartAndLegendContainer = this.chartAndLegendContainer;
                    var chartContainer = this.chartContainer;
                    chartContainer.x = undefined;
                    chartContainer.y = undefined;
                    legend.x = undefined;
                    legend.y = undefined;
                    switch (legend.position) {
                        case "left":
                            chartAndLegendContainer.layout = "horizontal";
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](legend.width)) {
                                legend.width = 200;
                            }
                            //legend.maxWidth = legend.width;
                            legend.toBack();
                            break;
                        case "right":
                            chartAndLegendContainer.layout = "horizontal";
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](legend.width)) {
                                legend.width = 200;
                            }
                            //legend.maxWidth = legend.width;
                            legend.toFront();
                            break;
                        case "top":
                            chartAndLegendContainer.layout = "vertical";
                            legend.maxWidth = undefined;
                            legend.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                            legend.toBack();
                            break;
                        case "bottom":
                            chartAndLegendContainer.layout = "vertical";
                            legend.maxWidth = undefined;
                            legend.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_7__["percent"])(100);
                            legend.toFront();
                    }
                }
            };
            /**
             * Setups the legend to use the chart's data.
             */
            Chart.prototype.feedLegend = function () {
                // Nothing here. This method is provided only as a "placeholder" for
                // extending classes to override
            };
            /**
             * Adds a new title to the chart when it is inserted into chart's titles
             * list.
             * @param  {IListEvents<Label>["inserted"]}  event  An event object which is triggered when inserting into titles list
             * @return {Label}                               Label object
             */
            Chart.prototype.processTitle = function (event) {
                var title = event.newValue;
                title.parent = this;
                title.toBack();
                title.shouldClone = false;
                title.align = "center";
                // Need to explicitly apply the `id` attribute so it can be referenced by
                // `aria-labelledby`
                title.uidAttr();
                return title;
            };
            /**
             * Checks if chart has any title elements. If it does, we will use them in an
             * `aria-labelledby` attribute so that screen readers can use them to properly
             * describe the chart when it is focused or hovered.
             *
             * @ignore Exclude from docs
             */
            Chart.prototype.updateReaderTitleReferences = function () {
                if (this.titles.length) {
                    var titleIds_1 = [];
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.titles.iterator(), function (title) {
                        titleIds_1.push(title.uid);
                    });
                    this.setSVGAttribute({ "aria-labelledby": titleIds_1.join(" ") });
                }
                else {
                    this.removeSVGAttribute("aria-labelledby");
                }
            };
            Object.defineProperty(Chart.prototype, "legend", {
                /**
                 * @return {Legend} Legend
                 */
                get: function () {
                    return this._legend.get();
                },
                /**
                 * Holds the instance of chart's [[Leged]].
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/legend/} for more information about legends
                 * @param {Legend} Legend
                 */
                set: function (legend) {
                    this.setLegend(legend);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Prepares the legend instance for use in this chart.
             *
             * @param {Legend}  legend  Legend
             */
            Chart.prototype.setLegend = function (legend) {
                var _this = this;
                if (this._legend.get() !== legend) {
                    if (legend) {
                        // Set legend options
                        legend.parent = this.chartAndLegendContainer;
                        this._legend.set(legend, legend.events.on("propertychanged", function (event) {
                            if (event.property == "position" || event.property == "width") {
                                _this.fixLayout();
                            }
                        }, undefined, false));
                    }
                    else {
                        this._legend.reset();
                    }
                    this.feedLegend();
                }
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            Chart.prototype.processConfig = function (config) {
                if (config) {
                    // Set up legend
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.legend) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.legend.type)) {
                        config.legend.type = "Legend";
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * Copies all properties from another instance of [[Series]].
             *
             * @param {Series}  source  Source series
             */
            Chart.prototype.copyFrom = function (source) {
                this.titles.copyFrom(source.titles);
                if (source.legend) {
                    this.legend = source.legend.clone();
                }
                _super.prototype.copyFrom.call(this, source);
            };
            return Chart;
        }(_core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]));
        //# sourceMappingURL=Chart.js.map
        /***/ 
    }),
    /* 860 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataItem", function () { return DataItem; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(770);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(785);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _utils_Array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(755);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(761);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * Defines functionality for "Data Item"
         *
         * A Data Item can be any object that can hold data. For example [[LineSeries]]
         * holds a number of values, that comprise a line graph. Each of those values
         * (data points) is a {DataItem}.
         *
         * Furthermore the [[LineSeries]] itself can be represented as a entry in the
         * legend. Since legend needs access to Line Series' value, a DataItem is
         * created for the series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * DataItem represents single element in data, for example a data point in a
         * Serial Chart Series, e.g. a column.
         *
         * DataItem defines relationship between structured data, required for specific
         * chart type or task, and raw source data.
         *
         * It also implements required calculations, updates related visual elements,
         * etc.
         *
         * @todo Description
         * @important
         */
        var DataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DataItem, _super);
            /**
             * Constructor
             * @todo Adding events to disposers produces errors in some cases, which means that chart is using disposed Data Items which is not right
             */
            function DataItem() {
                var _this = _super.call(this) || this;
                /**
                 * Holds Adapter.
                 *
                 * @type {Adapter<DataItem, IDataItemAdapters>}
                 */
                _this.adapter = new _utils_Adapter__WEBPACK_IMPORTED_MODULE_2__["Adapter"](_this);
                /**
                 * This Data Item is currently disabled.
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._disabled = false;
                /**
                 * Indicates whether Data Item has any properties set.
                 *
                 * If it does not have any, the code can use this property to check whether
                 * they need to apply costly operation of re-applying properties, whenever
                 * Data Item-related element is redrawn, e.g. series.
                 *
                 * @type {boolean}
                 */
                _this.hasProperties = false;
                /**
                 * An object containing calculated values.
                 */
                _this.values = {};
                /**
                 * An object container current working values.
                 */
                //public readonly workingValues: { [index: string]: { [index: string]: number } } = {};
                /**
                 * An object containing categories.
                 */
                _this.categories = {};
                /**
                 * An object containing dates.
                 */
                _this.dates = {};
                /**
                 * An object containing locations for the Data Item.
                 *
                 * A location is a position within date or category, or, in some other cases,
                 * where there is no single point but rather some period.
                 */
                _this.locations = {};
                /**
                 * Current working locations.
                 */
                _this.workingLocations = {};
                /**
                 * An object containing Data Item specific appearance properties in key-value
                 * pairs.
                 *
                 * Sometimes a single Data Item needs to apply different properties than the
                 * rest of the data [[Series]] it is part of. E.g. a single column,
                 * represented by a Data Item needs to be filled with a different color than
                 * the reset of the [[ColumnSeries]] it belongs to.
                 *
                 * That's where Data Item's `properties` come into play.
                 *
                 * Please note that you should set Data Item-specific properties using
                 * `setProperty()` method, rather than access `properties` object directly.
                 */
                _this.properties = {};
                /**
                 * A list of [[Sprite]] elements that are associated with this Data Item.
                 *
                 * E.g. an [[Axis]] Data Item has several separate elements associated with
                 * it, like [[AxisTick]], [[AxisLabel]], and [[Grid]].
                 *
                 * Data Item keeps track of all of them, so it can toggle all related visual
                 * elements when it itself is toggled.
                 *
                 * @type {Sprite[]}
                 */
                _this.sprites = [];
                /**
                 * Identifies if this object is a "template" and should not be treated as
                 * real object that is drawn or actually used in the chart.
                 *
                 * @type {boolean}
                 */
                _this.isTemplate = false;
                /**
                 * Is Data Item currently visible?
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._visible = true;
                /**
                 * Is Data Item currently hidden?
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._hidden = false;
                /**
                 * Should this Data Item be used when calculating data ranges and scales?
                 *
                 * @ignore Exclude from docs
                 * @type {boolean}
                 */
                _this._ignoreMinMax = false;
                /**
                 * Some of the Data Item's data fields may contain an array of children. This
                 * property contains an object indicating which fields hold an array, so that
                 * they can be processed properly.
                 *
                 * @ignore Exclude from docs
                 */
                _this.hasChildren = {};
                /**
                 * Indicates whether Data Item is currently animiting from visible to hidden
                 * state.
                 *
                 * @type {boolean}
                 */
                _this.isHiding = false;
                /**
                 *
                 * @ignore Exclude from docs
                 */
                _this._valueAnimations = {};
                /**
                 *
                 * @ignore Exclude from docs
                 */
                _this._locationAnimations = {};
                _this.className = "DataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(DataItem.prototype, "index", {
                /**
                 * Data Item's position index in Component's data.
                 *
                 * @return {number} Index
                 */
                get: function () {
                    if (this.component) {
                        return this.component.dataItems.indexOf(this);
                    }
                    else {
                        return -1;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "animations", {
                /**
                 * A list of [[Animations]] objects currently mutating Data Item's values.
                 *
                 * @return {Array<Animation>} [description]
                 */
                get: function () {
                    if (!this._animations) {
                        this._animations = [];
                        this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["AnimationDisposer"](this._animations));
                    }
                    return this._animations;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "visible", {
                /**
                 * Returns `true` if this Data Item is currently visible.
                 *
                 * @return {boolean} Visible?
                 */
                get: function () {
                    if (this._hidden) {
                        return false;
                    }
                    return this._visible;
                },
                /**
                 * Sets visibility of the Data Item.
                 *
                 * @param {boolean} value Visible?
                 */
                set: function (value) {
                    if (value) {
                        this.hidden = false;
                    }
                    if (this._visible != value) {
                        this.setVisibility(value);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "hidden", {
                /**
                 * Returns `true` if this Data Item is currently hidden.
                 *
                 * @return {boolean} Hidden?
                 */
                get: function () {
                    return this._hidden;
                },
                /**
                 * Sets hidden flag for data item. Mostly used to initially hide data item.
                 *
                 * @param {boolean} value Hidden?
                 */
                set: function (value) {
                    if (this._hidden != value) {
                        this._hidden = value;
                        if (value) {
                            this.setVisibility(false);
                        }
                        else {
                            this.setVisibility(true, true);
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "__disabled", {
                /**
                 * Is this Data Item currently disabled?
                 *
                 * @ignore Exclude from docs
                 * @param {boolean}
                 */
                get: function () {
                    return this._disabled;
                },
                /**
                 * Disables all Sprites associated with this Data Item.
                 *
                 * @ignore Exclude from docs
                 * @param {boolean}
                 */
                set: function (value) {
                    //	if (this._disabled != value) { // not good
                    this._disabled = value;
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                        sprite.__disabled = value;
                    });
                    //	}
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets visibility of the Data Item.
             *
             * @param {boolean} value Data Item
             */
            DataItem.prototype.setVisibility = function (value, noChangeValues) {
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                    if (value) {
                        sprite.visible = sprite.defaultState.properties.visible;
                    }
                    else {
                        if (sprite.hiddenState) {
                            sprite.visible = sprite.hiddenState.properties.visible;
                        }
                        else {
                            sprite.visible = false;
                        }
                    }
                });
                this._visible = value;
                if (this.events.isEnabled("visibilitychanged")) {
                    var event_1 = {
                        type: "visibilitychanged",
                        target: this,
                        visible: value
                    };
                    this.events.dispatchImmediately("visibilitychanged", event_1);
                }
            };
            /**
             * Shows the Data Item and related visual elements.
             *
             * @param {number}    duration  Animation duration (ms)
             * @param {number}    delay     Delay animation (ms)
             * @param {string[]}  fields    A list of fields to set values of
             */
            DataItem.prototype.show = function (duration, delay, fields) {
                var _this = this;
                if (!this.hidden) {
                    this.setVisibility(true, true);
                    this.isHiding = false;
                    if (this._hideDisposer) {
                        this.removeDispose(this._hideDisposer);
                    }
                    var animation_1;
                    if (fields) {
                        _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](fields, function (field) {
                            animation_1 = _this.setWorkingValue(field, _this.values[field].value, duration, delay);
                        });
                    }
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                        var animation = sprite.show(duration);
                        if (animation != null && !animation.isFinished()) {
                            _this._disposers.push(animation);
                            if (delay != null && delay > 0) {
                                animation.delay(delay);
                            }
                        }
                    });
                    return animation_1;
                }
            };
            /**
             * Destroys this object and all related data.
             */
            DataItem.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                    sprite.dispose();
                });
                this.sprites = [];
            };
            /**
             * Hides the Data Item and related visual elements.
             *
             * @param {number}    duration  Animation duration (ms)
             * @param {number}    delay     Delay animation (ms)
             * @param {number}    toValue   A value to set to `fields` when hiding
             * @param {string[]}  fields    A list of data fields to set value to `toValue`
             */
            DataItem.prototype.hide = function (duration, delay, toValue, fields) {
                var _this = this;
                this.isHiding = true;
                _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                    var animation = sprite.hide(duration);
                    if (animation != null && !animation.isFinished()) {
                        _this._disposers.push(animation);
                        if (delay != null && delay > 0) {
                            animation.delay(delay);
                        }
                    }
                });
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](toValue) && fields) {
                    var animation_2;
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](fields, function (field) {
                        var anim = _this.setWorkingValue(field, toValue, duration, delay);
                        if (anim) {
                            animation_2 = anim;
                        }
                    });
                    if (animation_2 && !animation_2.isFinished()) {
                        this._hideDisposer = animation_2.events.on("animationended", function () {
                            _this.setVisibility(false, true);
                            _this.isHiding = false;
                        });
                        this._disposers.push(this._hideDisposer);
                        return animation_2;
                    }
                    else {
                        this.isHiding = false;
                        this.setVisibility(false, true);
                    }
                }
                else {
                    this.isHiding = false;
                    this.setVisibility(false);
                }
            };
            /**
             * Returns a duration (ms) the Data Item should take to animate from one
             * value to another.
             *
             * If the duration is not specified via parameter, this method will try to
             * request a default duration from the related `Component`.
             *
             * @param  {number}  duration  Default duration (ms)
             * @return {number}            Duration (ms)
             */
            DataItem.prototype.getDuration = function (duration) {
                var component = this.component;
                if (component) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](duration)) {
                        duration = component.interpolationDuration;
                    }
                }
                if (duration != null) {
                    return this.adapter.apply("duration", duration);
                }
            };
            /**
             * Returns a numeric value for specific data field.
             *
             * If `calculated` is not set, it will return a raw value, as it is in
             * source data.
             *
             * If `calculated` is set, it will return a pre-calculated specific value.
             *
             * @param  {string}           name        Data field name
             * @param  {CalculatedValue}  calculated  A calculated value name
             * @return {Optional<number>}             Value
             */
            DataItem.prototype.getValue = function (name, calculated) {
                if (name && this.component) {
                    if (!calculated) {
                        calculated = this.component.dataFields[name + "Show"];
                        if (!calculated) {
                            calculated = "value";
                        }
                    }
                    var value = this.values[name][calculated];
                    if (this.adapter.isEnabled("value")) {
                        return this.adapter.apply("value", {
                            value: value,
                            field: name
                        }).value;
                    }
                    else {
                        return value;
                    }
                }
            };
            /**
             * Returns a current working value for a specific data field.
             *
             * The actual value may differ from the one returned by `getValue()`. The
             * latter returns static values from the data source.
             *
             * `getWorkingValue()` returns current value, which is usually different if
             * Data Item is animating from one state to another.
             *
             * @param  {string}           name        Data field name
             * @param  {CalculatedValue}  calculated  A calculated value name
             * @return {Optional<number>}             Value
             */
            DataItem.prototype.getWorkingValue = function (name) {
                if (name && this.component) {
                    var realName = this.component.dataFields[name + "Show"];
                    if (!realName) {
                        realName = "workingValue";
                    }
                    return this.adapter.apply("workingValue", {
                        workingValue: this.values[name][realName],
                        field: name
                    }).workingValue;
                }
            };
            /**
             * Sets a numeric value for specific data field.
             *
             * @param {string}           name        Data field name
             * @param {number}           value       Value
             * @param {CalculatedValue}  calculated  Calculated data field name
             * @param {number}           duration    Duration (ms) to animate to new value to
             * @param {number}           delay       Delay animation (ms)
             */
            DataItem.prototype.setValue = function (name, value, duration, delay) {
                var currentValue = this.values[name].value;
                var newDuration = this.getDuration(duration);
                value = _utils_Type__WEBPACK_IMPORTED_MODULE_7__["toNumber"](value);
                if (currentValue !== value) {
                    this.values[name].value = value;
                    if (this.events.isEnabled("valuechanged")) {
                        var event_2 = {
                            type: "valuechanged",
                            target: this,
                            property: name
                        };
                        this.events.dispatchImmediately("valuechanged", event_2);
                    }
                    if (this.component) {
                        this.component.handleDataItemValueChange(this);
                    }
                }
                this.setWorkingValue(name, value, newDuration, delay);
            };
            DataItem.prototype.setCalculatedValue = function (name, value, calculated) {
                var currentValue = this.values[name][calculated];
                if (currentValue !== value && _utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](value)) {
                    this.values[name][calculated] = value;
                    if (this.events.isEnabled("calculatedvaluechanged")) {
                        var event_3 = {
                            type: "calculatedvaluechanged",
                            target: this,
                            property: name
                        };
                        this.events.dispatchImmediately("calculatedvaluechanged", event_3);
                    }
                    if (this.component) {
                        this.component.handleDataItemCalculatedValueChange(this);
                    }
                }
            };
            /**
             * Set current working numeric value for a specific data field.
             *
             * @param  {string}           name        Data field name
             * @param  {number}           value       Value
             * @param  {CalculatedValue}  calculated  Calculated data field name
             * @param  {number}           duration    Duration (ms) to animate to new value to
             * @param  {number}           delay       Delay animation (ms)
             * @return {Optional<Animation>}          An [[Animation]] object used for transition to new values
             */
            DataItem.prototype.setWorkingValue = function (name, value, duration, delay) {
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.values[name].value)) {
                    var newDuration = this.getDuration(duration);
                    var workingValue = this.values[name].workingValue;
                    if (newDuration != null && newDuration > 0 && _utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](workingValue) && this.component) { // sometimes NaN is passed, so only change this to != null if all cases of NaN are handled, otherwise animation won't stop
                        if (workingValue != value) {
                            var animation = this.animate({ childObject: this.values[name], property: "workingValue", from: workingValue, to: value, dummyData: name }, newDuration, this.component.interpolationEasing);
                            if (delay != null) {
                                animation.delay(delay);
                            }
                            animation.events.on("animationstarted", this.handleInterpolationProgress, this);
                            animation.events.on("animationprogress", this.handleInterpolationProgress, this);
                            animation.events.on("animationended", this.handleInterpolationProgress, this);
                            this._valueAnimations[name] = animation;
                            return animation;
                        }
                        else {
                            var valueAnimation = this._valueAnimations[name];
                            if (valueAnimation) {
                                valueAnimation.stop();
                            }
                            this.values[name].workingValue = value;
                        }
                    }
                    else {
                        var valueAnimation = this._valueAnimations[name];
                        if (valueAnimation) {
                            valueAnimation.stop();
                        }
                        this.values[name].workingValue = value;
                        if (this.events.isEnabled("workingvaluechanged")) {
                            var event_4 = {
                                type: "workingvaluechanged",
                                target: this,
                                property: name
                            };
                            this.events.dispatchImmediately("workingvaluechanged", event_4);
                        }
                        if (this.component) {
                            this.component.handleDataItemWorkingValueChange(this);
                        }
                    }
                }
            };
            /**
             * Sets a relative location for a data field.
             *
             * A location is always relative on a 0 to 1 scale, with 0 being beginning,
             * 0.5 middle and 1 end.
             *
             * @todo Rewiew description
             * @param {string}  name      Data field name
             * @param {number}  value     Location (0-1)
             * @param {number}  duration  Duration (ms) to animate to new value to
             * @param {number}  delay     Delay animation (ms)
             */
            DataItem.prototype.setLocation = function (name, value, duration, delay) {
                var currentLocation = this.locations[name];
                if (currentLocation !== value) {
                    this.locations[name] = value;
                    if (this.events.isEnabled("locationchanged")) {
                        var event_5 = {
                            type: "locationchanged",
                            target: this,
                            property: name
                        };
                        this.events.dispatchImmediately("locationchanged", event_5);
                    }
                    if (this.component) {
                        this.component.handleDataItemValueChange(this); // correct
                    }
                    this.setWorkingLocation(name, value, duration, delay);
                }
            };
            /**
             * Sets a current working location for a data field.
             *
             * @todo Rewiew description
             * @param {string}  name      Data field name
             * @param {number}  value     Location (0-1)
             * @param {number}  duration  Duration (ms) to animate to new value to
             * @param {number}  delay     Delay animation (ms)
             */
            DataItem.prototype.setWorkingLocation = function (name, value, duration, delay) {
                var newDuration = this.getDuration(duration);
                var workingLocation = this.workingLocations[name];
                if (newDuration != null && newDuration > 0 && _utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](workingLocation) && this.component) { // sometimes NaN is passed, so only change this to != null if all cases of NaN are handled, otherwise animation won't stop
                    if (workingLocation != value) {
                        var animation = this.animate({ childObject: this.workingLocations, property: name, from: workingLocation, to: value, dummyData: name }, newDuration, this.component.interpolationEasing);
                        if (delay != null) {
                            animation.delay(delay);
                        }
                        animation.events.on("animationstarted", this.handleInterpolationProgress, this);
                        animation.events.on("animationprogress", this.handleInterpolationProgress, this);
                        animation.events.on("animationended", this.handleInterpolationProgress, this);
                        this._locationAnimations[name] = animation;
                        return animation;
                    }
                    else {
                        var locationAnimation = this._locationAnimations[name];
                        if (locationAnimation) {
                            locationAnimation.stop();
                        }
                        this.workingLocations[name] = value;
                    }
                }
                else {
                    var locationAnimation = this._locationAnimations[name];
                    if (locationAnimation) {
                        locationAnimation.stop();
                    }
                    this.workingLocations[name] = value;
                    if (this.events.isEnabled("workinglocationchanged")) {
                        var event_6 = {
                            type: "workinglocationchanged",
                            target: this,
                            property: name
                        };
                        this.events.dispatchImmediately("workinglocationchanged", event_6);
                    }
                    if (this.component) {
                        this.component.handleDataItemWorkingLocationChange(this);
                    }
                }
            };
            /**
             * Sets Date value to a data field.
             *
             * @param {string}  name      Data field name
             * @param {Date}    date      Date object
             * @param {number}  duration  Duration (ms) to animate to new value to
             */
            DataItem.prototype.setDate = function (name, date, duration) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isDate"](date) && this.component) {
                    date = this.component.dateFormatter.parse(date);
                }
                var currentDate = this.dates[name];
                if (currentDate !== date) {
                    this.dates[name] = date;
                    this.setValue(name, date.getTime(), duration);
                }
            };
            /**
             * Returns a Date value of the data field.
             *
             * @param  {string}  name  Data field name
             * @return {Date}          Date object
             */
            DataItem.prototype.getDate = function (name) {
                return this.adapter.apply("date", {
                    date: this.dates[name],
                    field: name
                }).date;
            };
            /**
             * Sets a Data Item-specific visual properties to apply to related elements.
             *
             * @param {string}  name   Property name
             * @param {any}     value  Property value
             */
            DataItem.prototype.setProperty = function (name, value) {
                if (this.properties[name] !== value) {
                    this.hasProperties = true;
                    this.properties[name] = value;
                    if (this.events.isEnabled("propertychanged")) {
                        var event_7 = {
                            type: "propertychanged",
                            target: this,
                            property: name,
                            value: value
                        };
                        this.events.dispatchImmediately("propertychanged", event_7);
                    }
                    if (this.component) {
                        this.component.handleDataItemPropertyChange(this);
                    }
                }
            };
            /**
             * Sets a related category for this Data Item.
             *
             * @todo Review description
             * @param {string}  name   Data field name
             * @param {string}  value  Category
             */
            DataItem.prototype.setCategory = function (name, value) {
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isString"](value)) {
                    value = _utils_Type__WEBPACK_IMPORTED_MODULE_7__["castString"](value);
                }
                if (this.categories[name] !== value) {
                    this.categories[name] = value;
                }
            };
            /**
             * Clones the Data Item, including all related data.
             *
             * @return {this} New Data Item clone
             */
            DataItem.prototype.clone = function (cloneId) {
                var dataItem = _super.prototype.clone.call(this, cloneId);
                if (this.dataContext) {
                    dataItem.dataContext = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copy"](this.dataContext, {});
                }
                _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copyProperties"](this.locations, dataItem.locations);
                _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copyProperties"](this.properties, dataItem.properties);
                _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copyProperties"](this.categories, dataItem.categories);
                _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copyProperties"](this.values, dataItem.values);
                _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["copyProperties"](this.dates, dataItem.dates);
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["each"](this.values, function (name, value) {
                    //for (let name in this.values) {
                    dataItem.values[name] = _utils_Object__WEBPACK_IMPORTED_MODULE_6__["copy"](value);
                });
                dataItem.events.copyFrom(this.events);
                dataItem.component = this.component;
                return dataItem;
            };
            Object.defineProperty(DataItem.prototype, "opacity", {
                /**
                 * Sets opacity for all Data Item's related elements (Sprites).
                 *
                 * @param {number} value Opacity (0-1)
                 */
                set: function (value) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["each"](this.sprites, function (sprite) {
                        sprite.opacity = value;
                    });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "ignoreMinMax", {
                /**
                 * Exclude from min/max calculations?
                 * @return {boolean} Exclude from min/max calculations?
                 */
                get: function () {
                    return this._ignoreMinMax;
                },
                /**
                 * Sets whether this data point should not be included in the scale and
                 * minimum/maximum calculations.
                 *
                 * E.g. some we may want to exclude a particular data point from influencing
                 * [[ValueAxis]] scale.
                 *
                 * @param {boolean}  value  Exclude from min/max calculations?
                 */
                set: function (value) {
                    this._ignoreMinMax = value;
                    if (this.events.isEnabled("propertychanged")) {
                        var event_8 = {
                            type: "propertychanged",
                            target: this,
                            property: "ignoreMinMax",
                            value: value
                        };
                        this.events.dispatchImmediately("propertychanged", event_8);
                    }
                    if (this.component) {
                        this.component.handleDataItemPropertyChange(this);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and starts an [[Animation]] to interpolate (morph) Data Item's
             * properties and/or values.
             *
             * @see {@link Animation}
             * @param  {IAnimationOptions[] | IAnimationOptions}  animationOptions  Animation options
             * @param  {number}                                   duration          Animation duration (ms)
             * @param  {function}                                 easing            Easing function
             * @return {Animation}                                                  Animation
             */
            DataItem.prototype.animate = function (animationOptions, duration, easing) {
                return new _utils_Animation__WEBPACK_IMPORTED_MODULE_3__["Animation"](this, animationOptions, duration, easing).start();
            };
            /**
             * Handles intermediate steps when Data Item is interpolating (morphing) from
             * one value to another.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Animation, IAnimationEvents>["animationstarted" | "animationended" | "animationprogress"]} event Event object
             */
            DataItem.prototype.handleInterpolationProgress = function (event) {
                var animation = event.target;
                // it's always only one options, no need cycle
                var animationOptions = animation.animationOptions[0];
                if (animationOptions) {
                    if (this.events.isEnabled("workingvaluechanged")) {
                        var event_9 = {
                            type: "workingvaluechanged",
                            target: this,
                            property: animationOptions.dummyData
                        };
                        this.events.dispatchImmediately("workingvaluechanged", event_9);
                    }
                    if (this.component) {
                        this.component.handleDataItemWorkingValueChange(this);
                    }
                }
            };
            /**
             * Checks whether Data Item has values set for all of the data fields,
             * supplied via argument.
             *
             * @ignore Exclude from docs
             * @param  {string[]}  fields  Field list to check
             * @return {boolean}           Has values for all fields?
             */
            DataItem.prototype.hasValue = function (fields) {
                // todo: what about categories?
                for (var i = 0, len = fields.length; i < len; i++) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this.values[fields[i]].value)) {
                        return false;
                    }
                }
                return true;
            };
            Object.defineProperty(DataItem.prototype, "depth", {
                /**
                 * Depth of the Data Item.
                 *
                 * In nested data structures, like TreeMap, this indicates the level this
                 * data point is at, in relation to the parent Data Item.
                 *
                 * @return {number} Depth
                 */
                get: function () {
                    if (!this.parent) {
                        return 0;
                    }
                    else {
                        return this.parent.depth + 1;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DataItem.prototype, "dataContext", {
                /**
                 * Sets to a reference to an original object from Component's data.
                 *
                 * @return {Object} [description]
                 */
                get: function () {
                    return this._dataContext;
                },
                /**
                 * A reference to an original object in Component's data, that this Data Item
                 * is derived from.
                 *
                 * @param {Object} value Original data object
                 */
                set: function (value) {
                    this._dataContext = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * adds a sprite to dataItem.sprites array
             * @ignore
             */
            DataItem.prototype.addSprite = function (sprite) {
                if (sprite.dataItem && sprite.dataItem != this) {
                    _utils_Array__WEBPACK_IMPORTED_MODULE_5__["remove"](sprite.dataItem.sprites, sprite);
                }
                if (!this.visible) {
                    sprite.hide(0);
                }
                if (this.isHiding) {
                    sprite.hide();
                }
                this.sprites.push(sprite);
                sprite.dataItem = this;
            };
            return DataItem;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObjectEvents"]));
        //# sourceMappingURL=DataItem.js.map
        /***/ 
    }),
    /* 861 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LegendDataItem", function () { return LegendDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LegendSettings", function () { return LegendSettings; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Legend", function () { return Legend; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_DataItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(860);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(862);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(845);
        /* harmony import */ var _core_utils_Keyboard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(792);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(784);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(754);
        /* harmony import */ var _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(803);
        /**
         * Legend-related functionality.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[Legend]].
         *
         * @see {@link DataItem}
         */
        var LegendDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LegendDataItem, _super);
            /**
             * Constructor
             */
            function LegendDataItem() {
                var _this = _super.call(this) || this;
                /**
                 * @ignore
                 */
                _this.childrenCreated = false;
                _this.className = "LegendDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(LegendDataItem.prototype, "label", {
                get: function () {
                    var _this = this;
                    if (!this._label) {
                        var label_1 = this.component.labels.create();
                        this._label = label_1;
                        this.addSprite(label_1);
                        this._disposers.push(label_1);
                        label_1.parent = this.itemContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__["Disposer"](function () {
                            _this.component.labels.removeValue(label_1);
                        }));
                    }
                    return this._label;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LegendDataItem.prototype, "valueLabel", {
                get: function () {
                    var _this = this;
                    if (!this._valueLabel) {
                        var valueLabel_1 = this.component.valueLabels.create();
                        this._valueLabel = valueLabel_1;
                        this.addSprite(valueLabel_1);
                        this._disposers.push(valueLabel_1);
                        valueLabel_1.parent = this.itemContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__["Disposer"](function () {
                            _this.component.valueLabels.removeValue(valueLabel_1);
                        }));
                    }
                    return this._valueLabel;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LegendDataItem.prototype, "itemContainer", {
                get: function () {
                    var _this = this;
                    if (!this._itemContainer) {
                        var itemContainer_1 = this.component.itemContainers.create();
                        this._itemContainer = itemContainer_1;
                        this.addSprite(itemContainer_1);
                        this._disposers.push(itemContainer_1);
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__["Disposer"](function () {
                            _this.component.itemContainers.removeValue(itemContainer_1);
                        }));
                        if (this.dataContext.uidAttr) {
                            itemContainer_1.readerControls = this.dataContext.uidAttr();
                            itemContainer_1.readerLabelledBy = this.dataContext.uidAttr();
                        }
                        var sprite = this.dataContext;
                        if (sprite instanceof _core_DataItem__WEBPACK_IMPORTED_MODULE_2__["DataItem"] || sprite instanceof _core_Sprite__WEBPACK_IMPORTED_MODULE_13__["Sprite"]) {
                            itemContainer_1.addDisposer(sprite.events.on("visibilitychanged", function (ev) {
                                itemContainer_1.readerChecked = ev.visible;
                                itemContainer_1.events.disableType("toggled");
                                itemContainer_1.isActive = !ev.visible;
                                itemContainer_1.events.enableType("toggled");
                            }, undefined, false));
                            sprite.addDisposer(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__["Disposer"](function () {
                                if (_this.component) {
                                    _this.component.dataItems.remove(_this);
                                }
                            }));
                            if (sprite instanceof _core_Sprite__WEBPACK_IMPORTED_MODULE_13__["Sprite"]) {
                                itemContainer_1.addDisposer(sprite.events.on("hidden", function (ev) {
                                    itemContainer_1.readerChecked = true;
                                    itemContainer_1.events.disableType("toggled");
                                    itemContainer_1.isActive = true;
                                    itemContainer_1.events.enableType("toggled");
                                }, undefined, false));
                                itemContainer_1.addDisposer(sprite.events.on("shown", function (ev) {
                                    itemContainer_1.readerChecked = false;
                                    itemContainer_1.events.disableType("toggled");
                                    itemContainer_1.isActive = false;
                                    itemContainer_1.events.enableType("toggled");
                                }, undefined, false));
                            }
                        }
                    }
                    return this._itemContainer;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LegendDataItem.prototype, "marker", {
                get: function () {
                    var _this = this;
                    if (!this._marker) {
                        var marker_1 = this.component.markers.create();
                        this._marker = marker_1;
                        marker_1.parent = this.itemContainer;
                        this.addSprite(marker_1);
                        this._disposers.push(marker_1);
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_14__["Disposer"](function () {
                            _this.component.markers.removeValue(marker_1);
                        }));
                    }
                    return this._marker;
                },
                enumerable: true,
                configurable: true
            });
            return LegendDataItem;
        }(_core_DataItem__WEBPACK_IMPORTED_MODULE_2__["DataItem"]));
        /**
         * ============================================================================
         * REQUISITES
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a class that carries legend settings.
         *
         * A legend might change its settings dynamically. Legend can also be shared
         * by several elements, requiring different settings.
         *
         * Having legend's settings in a separate object is a good way to "hot swap"
         * a set of settings for the legend.
         */
        var LegendSettings = /** @class */ (function () {
            function LegendSettings() {
                /**
                 * Should marker be created for each legend item.
                 *
                 * @type {boolean}
                 */
                this.createMarker = true;
            }
            return LegendSettings;
        }());
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * [[Legend]] class is used to create legend for the chart.
         *
         * @see {@link ILegendEvents} for a list of available events
         * @see {@link ILegendAdapters} for a list of available Adapters
         * @todo Verify/implement dynamic updating of legend items once the properties of related Series change
         */
        var Legend = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Legend, _super);
            /**
             * Constructor
             */
            function Legend() {
                var _this = _super.call(this) || this;
                _this.className = "Legend";
                // Set defaults
                _this.layout = "grid";
                _this.setPropertyValue("useDefaultMarker", false);
                _this.setPropertyValue("contentAlign", "center");
                // Create a template container and list for legend items
                var itemContainer = new _core_Container__WEBPACK_IMPORTED_MODULE_5__["Container"]();
                itemContainer.applyOnClones = true;
                itemContainer.padding(10, 0, 10, 0);
                itemContainer.margin(0, 10, 0, 0);
                itemContainer.layout = "horizontal";
                itemContainer.clickable = true;
                itemContainer.focusable = true;
                itemContainer.role = "checkbox";
                itemContainer.togglable = true;
                itemContainer.cursorOverStyle = _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_15__["MouseCursorStyle"].pointer;
                itemContainer.background.fillOpacity = 0; // creates hit area
                // Add click/tap event to toggle item
                // not good to listen to "toggled" as we will get to stackoverflow
                itemContainer.events.on("toggled", function (ev) {
                    _this.toggleDataItem(ev.target.dataItem);
                }, _this);
                // Add focus event so that we can track which object is currently in focus
                // for keyboard toggling
                itemContainer.events.on("focus", function (ev) {
                    _this.focusedItem = ev.target.dataItem;
                });
                itemContainer.events.on("blur", function (ev) {
                    _this.focusedItem = undefined;
                });
                // Create container list using item template we just created
                _this.itemContainers = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](itemContainer);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.itemContainers));
                _this._disposers.push(_this.itemContainers.template);
                // Set up global keyboard events for toggling elements
                _this._disposers.push(Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_9__["getInteraction"])().body.events.on("keyup", function (ev) {
                    if (_core_utils_Keyboard__WEBPACK_IMPORTED_MODULE_7__["keyboard"].isKey(ev.event, "enter") && _this.focusedItem) {
                        _this.toggleDataItem(_this.focusedItem);
                    }
                }, _this));
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_11__["InterfaceColorSet"]();
                // Create a template container and list for the a marker
                var marker = new _core_Container__WEBPACK_IMPORTED_MODULE_5__["Container"]();
                marker.width = 23;
                marker.height = 23;
                marker.interactionsEnabled = false;
                marker.applyOnClones = true;
                marker.setStateOnChildren = true;
                marker.background.fillOpacity = 0;
                marker.background.strokeOpacity = 0;
                marker.propertyFields.fill = "fill";
                marker.valign = "middle";
                var disabledColor = interfaceColors.getFor("disabledBackground");
                marker.events.on("childadded", function (event) {
                    var child = event.newValue;
                    var activeState = child.states.create("active");
                    activeState.properties.stroke = disabledColor;
                    activeState.properties.fill = disabledColor;
                });
                _this.markers = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](marker);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.markers));
                _this._disposers.push(_this.markers.template);
                // Create a legend background element
                var rectangle = marker.createChild(_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_4__["RoundedRectangle"]);
                rectangle.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                rectangle.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                rectangle.applyOnClones = true;
                rectangle.propertyFields.fill = "fill";
                rectangle.strokeOpacity = 0;
                // Create a template container and list for item labels
                var label = new _core_elements_Label__WEBPACK_IMPORTED_MODULE_6__["Label"]();
                label.text = "{name}";
                label.margin(0, 5, 0, 5);
                label.valign = "middle";
                label.applyOnClones = true;
                label.states.create("active").properties.fill = interfaceColors.getFor("disabledBackground");
                _this.labels = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](label);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.labels));
                _this._disposers.push(_this.labels.template);
                label.interactionsEnabled = false;
                // Create a template container and list for item value labels
                var valueLabel = new _core_elements_Label__WEBPACK_IMPORTED_MODULE_6__["Label"]();
                valueLabel.margin(0, 5, 0, 0);
                valueLabel.valign = "middle";
                valueLabel.width = 50; // to avoid rearranging legend entries when value changes.
                valueLabel.align = "right";
                valueLabel.textAlign = "end";
                valueLabel.applyOnClones = true;
                valueLabel.states.create("active").properties.fill = interfaceColors.getFor("disabledBackground");
                valueLabel.interactionsEnabled = false;
                _this.valueLabels = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](valueLabel);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.valueLabels));
                _this._disposers.push(_this.valueLabels.template);
                _this.position = "bottom"; // don't use setPropertyValue here!
                // Create a state for disabled legend items
                itemContainer.states.create("active");
                itemContainer.setStateOnChildren = true;
                // Apply accessibility settings
                _this.role = "group";
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            Legend.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Legend");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {LegendDataItem} Data Item
             */
            Legend.prototype.createDataItem = function () {
                return new LegendDataItem();
            };
            /**
             * [validateDataElement description]
             *
             * @ignore Exclude from docs
             * @param {LegendDataItem} dataItem Data item
             * @todo Description
             * @todo Figure out how to update appearance of legend item without losing focus
             * @todo Update legend marker appearance as apperance of related series changes
             */
            Legend.prototype.validateDataElement = function (dataItem) {
                _super.prototype.validateDataElement.call(this, dataItem);
                // Get data item (legend item's) container
                var container = dataItem.itemContainer;
                var marker = dataItem.marker;
                var label = dataItem.label;
                var valueLabel = dataItem.valueLabel;
                // Set parent and update current state
                container.parent = this;
                container.readerChecked = dataItem.dataContext.visible;
                // Tell series its legend data item
                dataItem.dataContext.legendDataItem = dataItem;
                // If we are not using default markers, create a unique legend marker based
                // on the data item type
                if (dataItem.dataContext.createLegendMarker && !this.useDefaultMarker) {
                    if (!dataItem.childrenCreated) {
                        dataItem.dataContext.createLegendMarker(marker);
                        dataItem.childrenCreated = true;
                    }
                }
                if (valueLabel.invalid) {
                    valueLabel.validate();
                }
                if (valueLabel.currentText == "" || valueLabel.currentText == undefined) {
                    valueLabel.__disabled = true;
                }
                else {
                    valueLabel.__disabled = false;
                }
                var visible = dataItem.dataContext.visible;
                if (visible === undefined) {
                    visible = true;
                }
                visible = _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["toBoolean"](visible);
                dataItem.dataContext.visible = visible;
                container.events.disableType("toggled");
                container.isActive = !visible;
                container.events.enableType("toggled");
            };
            Object.defineProperty(Legend.prototype, "position", {
                /**
                 * @return {LegendPosition} Position
                 */
                get: function () {
                    return this.getPropertyValue("position");
                },
                /**
                 * Position of the legend.
                 *
                 * Options: "left", "right", "top", "bottom" (default), or "absolute".
                 *
                 * @default "bottom"
                 * @param {LegendPosition}  value  Position
                 */
                set: function (value) {
                    if (this.setPropertyValue("position", value)) {
                        if (value == "left" || value == "right") {
                            this.margin(10, 20, 10, 20);
                            this.valign = "middle";
                            this.itemContainers.template.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                            this.valueLabels.template.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                            this.labels.template.truncate = true;
                            this.labels.template.fullWords = false;
                        }
                        else {
                            this.itemContainers.template.width = undefined;
                            this.itemContainers.template.maxWidth = undefined;
                            this.valueLabels.template.width = 50;
                            this.labels.template.truncate = false;
                            this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                        }
                        this.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Legend.prototype, "useDefaultMarker", {
                /**
                 * @return {boolean} Use default marker?
                 */
                get: function () {
                    return this.getPropertyValue("useDefaultMarker");
                },
                /**
                 * Should legend try to mirror the look of the related item when building
                 * the marker for legend item?
                 *
                 * If set to `true` it will try to make the marker look like its related
                 * item.
                 *
                 * E.g. if an item is for a Line Series, it will display a line of the
                 * same thickness, color, and will use the same bullets if series have them.
                 *
                 * @default false
                 * @param {boolean} value Use default marker?
                 */
                set: function (value) {
                    this.setPropertyValue("useDefaultMarker", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Toggles a legend item.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]} item Legend item
             * @todo Maybe do it with togglable instead
             */
            Legend.prototype.toggleDataItem = function (item) {
                var dataContext = item.dataContext;
                if (!dataContext.visible || dataContext.isHiding || (dataContext instanceof _core_Sprite__WEBPACK_IMPORTED_MODULE_13__["Sprite"] && dataContext.isHidden)) {
                    item.itemContainer.isActive = false;
                    if (dataContext.hidden === true) {
                        dataContext.hidden = false;
                    }
                    if (dataContext.show) {
                        dataContext.show();
                    }
                    else {
                        dataContext.visible = true;
                    }
                }
                else {
                    item.itemContainer.isActive = true;
                    if (dataContext.hide) {
                        dataContext.hide();
                    }
                    else {
                        dataContext.visible = false;
                    }
                }
            };
            Object.defineProperty(Legend.prototype, "preloader", {
                /**
                 * Override preloader method so that legend does not accidentally show its
                 * own preloader.
                 *
                 * @ignore Exclude from docs
                 * @return {Preloader} Always `undefined`
                 */
                get: function () {
                    return;
                },
                enumerable: true,
                configurable: true
            });
            return Legend;
        }(_core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["Legend"] = Legend;
        //# sourceMappingURL=Legend.js.map
        /***/ 
    }),
    /* 862 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RoundedRectangle", function () { return RoundedRectangle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Rounded rectangle module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a rectangle with rounded corners.
         *
         * @see {@link IRoundedRectangleEvents} for a list of available events
         * @see {@link IRoundedRectangleAdapters} for a list of available Adapters
         */
        var RoundedRectangle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RoundedRectangle, _super);
            /**
             * Constructor
             */
            function RoundedRectangle() {
                var _this = _super.call(this) || this;
                _this.className = "RoundedRectangle";
                _this.element = _this.paper.add("path");
                //this.pixelPerfect = false;
                _this.cornerRadius(3, 3, 3, 3);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            RoundedRectangle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.innerWidth;
                var h = this.innerHeight;
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](w) && _utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](h)) {
                    var maxcr = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["min"](Math.abs(w / 2), Math.abs(h / 2));
                    var crtl = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["fitToRange"](this.cornerRadiusTopLeft, 0, maxcr);
                    var crtr = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["fitToRange"](this.cornerRadiusTopRight, 0, maxcr);
                    var crbr = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["fitToRange"](this.cornerRadiusBottomRight, 0, maxcr);
                    var crbl = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["fitToRange"](this.cornerRadiusBottomLeft, 0, maxcr);
                    var lineT = "M" + crtl + ",0 L" + (w - crtr) + ",0";
                    var lineB = " L" + crbl + "," + h;
                    var lineL = " L0," + crtl;
                    var lineR = " L" + w + "," + (h - crbr);
                    var arcTR = " a" + crtr + "," + crtr + " 0 0 1 " + crtr + "," + crtr;
                    var arcBR = " a" + crbr + "," + crbr + " 0 0 1 -" + crbr + "," + crbr;
                    var arcBL = " a" + crbl + "," + crbl + " 0 0 1 -" + crbl + ",-" + crbl;
                    var arcTL = " a" + crtl + "," + crtl + " 0 0 1 " + crtl + ",-" + crtl;
                    var path = lineT + arcTR + lineR + arcBR + lineB + arcBL + lineL + arcTL + " Z";
                    this.path = path;
                }
            };
            /**
             * Sets radius for all four corners at ones.
             *
             * All numbers are in pixels.
             *
             * @param {number}  tl  Top-left corner
             * @param {number}  tr  Top-right corner
             * @param {number}  bl  Bottom-left corner
             * @param {number}  br  Bottom-right corner
             */
            RoundedRectangle.prototype.cornerRadius = function (tl, tr, bl, br) {
                this.cornerRadiusTopLeft = tl;
                this.cornerRadiusTopRight = tr;
                this.cornerRadiusBottomLeft = bl;
                this.cornerRadiusBottomRight = br;
            };
            Object.defineProperty(RoundedRectangle.prototype, "cornerRadiusTopLeft", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadiusTopLeft");
                },
                /**
                 * Radius of the top-left corner in pixels.
                 *
                 * @default 3
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadiusTopLeft", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RoundedRectangle.prototype, "cornerRadiusTopRight", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadiusTopRight");
                },
                /**
                 * Radius of the top-right corner in pixels.
                 *
                 * @default 3
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadiusTopRight", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RoundedRectangle.prototype, "cornerRadiusBottomRight", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadiusBottomRight");
                },
                /**
                 * Radius of the bottom-right corner in pixels.
                 *
                 * @default 3
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadiusBottomRight", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RoundedRectangle.prototype, "cornerRadiusBottomLeft", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadiusBottomLeft");
                },
                /**
                 * Radius of the bottom-left corner in pixels.
                 *
                 * @default 3
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadiusBottomLeft", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Measures the element.
             *
             * @ignore Exclude from docs
             */
            RoundedRectangle.prototype.measureElement = function () {
                this._bbox = { x: 0, y: 0, width: this.innerWidth, height: this.innerHeight };
            };
            return RoundedRectangle;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["RoundedRectangle"] = RoundedRectangle;
        //# sourceMappingURL=RoundedRectangle.js.map
        /***/ 
    }),
    /* 863 */ ,
    /* 864 */ ,
    /* 865 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function () { return Button; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(845);
        /* harmony import */ var _elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(862);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /**
         * Functionality for drawing simple buttons.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Button class is capable of drawing a simple rectangular button with
         * optionally rounded corners and an icon in it.
         *
         * @see {@link IButtonEvents} for a list of available events
         * @see {@link IButtonAdapters} for a list of available Adapters
         */
        var Button = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Button, _super);
            /**
             * Constructor
             */
            function Button() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "Button";
                _this.tooltipY = 0;
                // Set defaults
                _this.iconPosition = "left";
                _this.layout = "horizontal";
                _this.contentAlign = "center";
                _this.contentValign = "middle";
                _this.padding(8, 16, 8, 16);
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                // Create background
                var background = _this.background;
                background.fill = interfaceColors.getFor("secondaryButton");
                background.stroke = interfaceColors.getFor("secondaryButtonStroke");
                background.fillOpacity = 1;
                background.strokeOpacity = 1;
                background.cornerRadius(3, 3, 3, 3);
                // Create the label element
                _this.label = new _Label__WEBPACK_IMPORTED_MODULE_2__["Label"]();
                _this.label.fill = interfaceColors.getFor("secondaryButtonText");
                ;
                // Create default states
                var hoverState = background.states.create("hover");
                hoverState.properties.fillOpacity = 1;
                hoverState.properties.fill = interfaceColors.getFor("secondaryButtonHover");
                var downState = background.states.create("down");
                downState.transitionDuration = 100;
                downState.properties.fill = interfaceColors.getFor("secondaryButtonDown");
                downState.properties.fillOpacity = 1;
                // Set up accessibility
                // A button should be always focusable
                _this.role = "button";
                _this.focusable = true;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Button.prototype, "icon", {
                /**
                 * @return {Sprite} Icon Sprite
                 */
                get: function () {
                    return this.getPropertyValue("icon");
                },
                /**
                 * A [[Sprite]] to be used as an icon on button.
                 *
                 * @param {Sprite} icon Icon Sprite
                 */
                set: function (icon) {
                    var currentIcon = this.getPropertyValue("icon");
                    if (currentIcon) {
                        //this._icon.dispose();
                        //this.removeDispose(currentIcon);
                        currentIcon.parent = undefined;
                    }
                    if (icon) {
                        this.setPropertyValue("icon", icon);
                        icon.parent = this;
                        icon.interactionsEnabled = false;
                        this.iconPosition = this.iconPosition;
                        this._disposers.push(icon);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Button.prototype, "iconPosition", {
                /**
                 * @return {"left" | "right"} Icon position
                 */
                get: function () {
                    return this.getPropertyValue("iconPosition");
                },
                /**
                 * Icon position: "left" or "right".
                 *
                 * @default "left"
                 * @param {"left" | "right"}  position  Icon position
                 */
                set: function (position) {
                    this.setPropertyValue("iconPosition", position);
                    if (this.icon) {
                        if (position == "left") {
                            this.icon.toBack();
                        }
                        else {
                            this.icon.toFront();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Button.prototype, "label", {
                /**
                 * @return {Optional<Label>} Label element
                 */
                get: function () {
                    return this._label;
                },
                /**
                 * [[Label]] element to be used for text.
                 *
                 * @param {Optional<Label>}  label element
                 */
                set: function (label) {
                    if (this._label) {
                        //this._label.dispose();
                        this.removeDispose(this._label);
                    }
                    this._label = label;
                    if (label) {
                        label.parent = this;
                        label.interactionsEnabled = false;
                        this._disposers.push(this._label);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates a background element for the button.
             *
             * @ignore Exclude from docs
             * @return {RoundedRectangle} Background element
             */
            Button.prototype.createBackground = function () {
                return new _elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_3__["RoundedRectangle"]();
            };
            return Button;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["Button"] = Button;
        //# sourceMappingURL=Button.js.map
        /***/ 
    }),
    /* 866 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Circle", function () { return Circle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /**
         * Functionality for drawing circles.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to create a circle
         * @see {@link ICircleEvents} for a list of available events
         * @see {@link ICircleAdapters} for a list of available Adapters
         */
        var Circle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Circle, _super);
            /**
             * Constructor
             */
            function Circle() {
                var _this = _super.call(this) || this;
                _this.className = "Circle";
                _this.element = _this.paper.add("circle");
                _this.setPercentProperty("radius", Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100));
                _this.setPropertyValue("horizontalCenter", "middle");
                _this.setPropertyValue("verticalCenter", "middle");
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the circle.
             */
            Circle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                this.element.attr({ "r": this.pixelRadius });
            };
            Object.defineProperty(Circle.prototype, "radius", {
                /**
                 * @return {number} Radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Radius of the circle.
                 *
                 * Can be either absolute (pixels) or relative ([Percent]).
                 *
                 * @param {number | Percent}  value  Radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Circle.prototype, "pixelRadius", {
                /**
                 * Radius of the circle in pixels.
                 *
                 * This is a read-only property. To set radius in pixels, use `radius`
                 * property.
                 *
                 * @readonly
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.radius, _utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.innerWidth / 2, this.innerHeight / 2));
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates bounding box.
             *
             * @ignore Exclude from docs
             */
            Circle.prototype.measureElement = function () {
                var pixelRadius = this.pixelRadius;
                this._bbox = {
                    x: -pixelRadius,
                    y: -pixelRadius,
                    width: pixelRadius * 2,
                    height: pixelRadius * 2
                };
            };
            return Circle;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Circle"] = Circle;
        //# sourceMappingURL=Circle.js.map
        /***/ 
    }),
    /* 867 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ellipse", function () { return Ellipse; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(866);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Ellipse module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws an ellipse
         * @see {@link IEllipseEvents} for a list of available events
         * @see {@link IEllipseAdapters} for a list of available Adapters
         */
        var Ellipse = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Ellipse, _super);
            /**
             * Constructor
             */
            function Ellipse() {
                var _this = _super.call(this) || this;
                _this.className = "Ellipse";
                _this.element = _this.paper.add("ellipse");
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the ellipsis.
             */
            Ellipse.prototype.draw = function () {
                _super.prototype.draw.call(this);
                this.element.attr({ "rx": this.radius });
                this.element.attr({ "ry": this.radiusY });
            };
            Object.defineProperty(Ellipse.prototype, "radiusY", {
                /**
                 * @return {number} Vertical radius
                 */
                get: function () {
                    return this.innerHeight / 2;
                },
                /**
                 * Vertical radius.
                 *
                 * It's a relative size to the `radius`.
                 *
                 * E.g. 0.8 will mean the height of the ellipsis will be 80% of it's
                 * horizontal radius.
                 *
                 * @param {number}  value  Vertical radius
                 */
                set: function (value) {
                    this.height = value * 2;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Ellipse.prototype, "radius", {
                /**
                 * @return {number} Horizontal radius
                 */
                get: function () {
                    return this.innerWidth / 2;
                },
                /**
                 * Horizontal radius.
                 *
                 * @param {number}  value  Horizontal radius
                 */
                set: function (value) {
                    this.width = value * 2;
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            return Ellipse;
        }(_Circle__WEBPACK_IMPORTED_MODULE_1__["Circle"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Ellipse"] = Ellipse;
        //# sourceMappingURL=Ellipse.js.map
        /***/ 
    }),
    /* 868 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Image", function () { return Image; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _utils_DOM__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(779);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Functionality for adding images in SVG tree.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to add `<image>` elements to SVG.
         *
         * @see {@link IImageEvents} for a list of available events
         * @see {@link IImageAdapters} for a list of available Adapters
         */
        var Image = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Image, _super);
            /**
             * Constructor
             */
            function Image() {
                var _this = _super.call(this) || this;
                _this.className = "Image";
                _this.element = _this.paper.add("image");
                _this.applyTheme();
                _this.width = 50;
                _this.height = 50;
                return _this;
            }
            /**
             * Draws an `<image>` element.
             *
             * @ignore Exclude from docs
             */
            Image.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this.href) {
                    var width = this.innerWidth;
                    var height = this.innerHeight;
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.widthRatio)) {
                        width = height * this.widthRatio;
                        this.width = width;
                    }
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.heightRatio)) {
                        height = width * this.heightRatio;
                        this.height = height;
                    }
                    this.element.attr({
                        "width": width,
                        "height": height
                    });
                    this.element.attrNS(_utils_DOM__WEBPACK_IMPORTED_MODULE_3__["XLINK"], "xlink:href", this.href);
                }
            };
            Object.defineProperty(Image.prototype, "href", {
                /**
                 * @return {string} Image URI
                 */
                get: function () {
                    return this.getPropertyValue("href");
                },
                /**
                 * An image URI.
                 *
                 * @param {string}  value  Image URI
                 */
                set: function (value) {
                    this.setPropertyValue("href", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Image.prototype, "widthRatio", {
                /**
                 * @return {number} Ratio
                 */
                get: function () {
                    return this.getPropertyValue("widthRatio");
                },
                /**
                 * Sets image `width` relatively to its `height`.
                 *
                 * If image's `height = 100` and `widthRatio = 0.5` the actual width will be
                 * `50`.
                 *
                 * @param {number}  value  Ratio
                 */
                set: function (value) {
                    this.setPropertyValue("widthRatio", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Image.prototype, "heightRatio", {
                /**
                 * @return {number} Ratio
                 */
                get: function () {
                    return this.getPropertyValue("heightRatio");
                },
                /**
                 * Sets image `height` relatively to its `width`.
                 *
                 * If image's `width = 100` and `heightRatio = 0.5` the actual height will be
                 * `50`.
                 *
                 * @param {number}  value  Ratio
                 */
                set: function (value) {
                    this.setPropertyValue("heightRatio", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Image.prototype, "bbox", {
                /**
                 * Returns bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                get: function () {
                    return {
                        x: 0,
                        y: 0,
                        width: this.pixelWidth,
                        height: this.pixelHeight
                    };
                },
                enumerable: true,
                configurable: true
            });
            return Image;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Image"] = Image;
        //# sourceMappingURL=Image.js.map
        /***/ 
    }),
    /* 869 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointedRectangle", function () { return PointedRectangle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PointedShape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(870);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(756);
        /**
         * Pointed rectangle module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a rectangle with a pointer.
         *
         * @see {@link IPointedRectangleEvents} for a list of available events
         * @see {@link IPointedRectangleAdapters} for a list of available Adapters
         */
        var PointedRectangle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PointedRectangle, _super);
            /**
             * Constructor
             */
            function PointedRectangle() {
                var _this = _super.call(this) || this;
                _this.className = "PointedRectangle";
                _this.element = _this.paper.add("path");
                _this.cornerRadius = 0;
                _this.cornerRadius = 6;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            PointedRectangle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var cr = this.cornerRadius;
                var w = this.innerWidth;
                var h = this.innerHeight;
                if (w > 0 && h > 0) {
                    var x = this.pointerX;
                    var y = this.pointerY;
                    var bwh = this.pointerBaseWidth / 2;
                    var maxcr = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["min"](w / 2, h / 2);
                    var crtl = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](cr, 0, maxcr);
                    var crtr = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](cr, 0, maxcr);
                    var crbr = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](cr, 0, maxcr);
                    var crbl = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](cr, 0, maxcr);
                    // corner coordinates
                    // top left
                    var xtl = 0;
                    var ytl = 0;
                    // top right
                    var xtr = w;
                    var ytr = 0;
                    // bottom right
                    var xbr = w;
                    var ybr = h;
                    // bottom left
                    var xbl = 0;
                    var ybl = h;
                    var lineT = void 0;
                    var lineR = void 0;
                    var lineB = void 0;
                    var lineL = void 0;
                    // find stem base side: http://$math.stackexchange.com/questions/274712/calculate-on-which-side-of-straign-line-is-dot-located
                    // d=(x−x1)(y2−y1)−(y−y1)(x2−x1)
                    var d1 = (x - xtl) * (ybr - ytl) - (y - ytl) * (xbr - xtl);
                    var d2 = (x - xbl) * (ytr - ybl) - (y - ybl) * (xtr - xbl);
                    // top
                    if (d1 > 0 && d2 > 0) {
                        var stemX = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](x, crtl + bwh, w - bwh - crtr);
                        y = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](y, -Infinity, 0);
                        lineT = "M" + crtl + ",0 L" + (stemX - bwh) + ",0 L" + x + "," + y + " L" + (stemX + bwh) + ",0 L" + (w - crtr) + ",0";
                    }
                    else {
                        lineT = "M" + crtl + ",0 L" + (w - crtr) + ",0";
                    }
                    // bottom
                    if (d1 < 0 && d2 < 0) {
                        var stemX = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](x, crbl + bwh, w - bwh - crbr);
                        y = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](y, h, Infinity);
                        lineB = " L" + (w - crbr) + "," + h + " L" + (stemX + bwh) + "," + h + " L" + x + "," + y + " L" + (stemX - bwh) + "," + h + " L" + crbl + "," + h;
                    }
                    else {
                        lineB = " L" + crbl + "," + h;
                    }
                    // left
                    if (d1 < 0 && d2 > 0) {
                        var stemY = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](y, crtl + bwh, h - crbl - bwh);
                        x = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](x, -Infinity, 0);
                        lineL = " L0," + (h - crbl) + " L0," + (stemY + bwh) + " L" + x + "," + y + " L0," + (stemY - bwh) + " L0," + crtl;
                    }
                    else {
                        lineL = " L0," + crtl;
                    }
                    // right
                    if (d1 > 0 && d2 < 0) {
                        var stemY = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](y, crtr + bwh, h - bwh - crbr);
                        x = _utils_Math__WEBPACK_IMPORTED_MODULE_2__["fitToRange"](x, w, Infinity);
                        lineR = " L" + w + "," + crtr + " L" + w + "," + (stemY - bwh) + " L" + x + "," + y + " L" + w + "," + (stemY + bwh) + " L" + w + "," + (h - crbr);
                    }
                    else {
                        lineR = " L" + w + "," + (h - crbr);
                    }
                    var arcTR = " a" + crtr + "," + crtr + " 0 0 1 " + crtr + "," + crtr;
                    var arcBR = " a" + crbr + "," + crbr + " 0 0 1 -" + crbr + "," + crbr;
                    var arcBL = " a" + crbl + "," + crbl + " 0 0 1 -" + crbl + ",-" + crbl;
                    var arcTL = " a" + crtl + "," + crtl + " 0 0 1 " + crtl + ",-" + crtl;
                    this.path = lineT + arcTR + lineR + arcBR + lineB + arcBL + lineL + arcTL;
                }
            };
            Object.defineProperty(PointedRectangle.prototype, "cornerRadius", {
                /**
                 * @return {number} Corner radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadius");
                },
                /**
                 * Radius of rectangle's border in pixels.
                 *
                 * @default 0
                 * @param {number}  value  Corner radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return PointedRectangle;
        }(_PointedShape__WEBPACK_IMPORTED_MODULE_1__["PointedShape"]));
        //# sourceMappingURL=PointedRectangle.js.map
        /***/ 
    }),
    /* 870 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointedShape", function () { return PointedShape; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(757);
        /**
         * Pointed shape module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a shape with a pointer.
         *
         * @see {@link IPointedShapeEvents} for a list of available events
         * @see {@link IPointedShapeAdapters} for a list of available Adapters
         */
        var PointedShape = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PointedShape, _super);
            /**
             * Constructor
             */
            function PointedShape() {
                var _this = _super.call(this) || this;
                _this.className = "PointedShape";
                _this.pointerBaseWidth = 15;
                _this.pointerLength = 10;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            PointedShape.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](this.pointerX)) {
                    this.pointerX = this.pixelWidth / 2;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_2__["isNumber"](this.pointerY)) {
                    this.pointerY = this.pixelHeight + 10;
                }
            };
            Object.defineProperty(PointedShape.prototype, "pointerBaseWidth", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.getPropertyValue("pointerBaseWidth");
                },
                /**
                 * A width of the pinter's (stem's) thick end (base) in pixels.
                 *
                 * @default 15
                 * @param {number}  value  Width (px)
                 */
                set: function (value) {
                    this.setPropertyValue("pointerBaseWidth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PointedShape.prototype, "pointerLength", {
                /**
                 * @return {number} Length (px)
                 */
                get: function () {
                    return this.getPropertyValue("pointerLength");
                },
                /**
                 * A length of the pinter (stem) in pixels.
                 *
                 * @default 10
                 * @param {number}  value  Length (px)
                 */
                set: function (value) {
                    this.setPropertyValue("pointerLength", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PointedShape.prototype, "pointerX", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    return this.getPropertyValue("pointerX");
                },
                /**
                 * X coordinate the shape is pointing to.
                 *
                 * @param {number}  value  X
                 */
                set: function (value) {
                    this.setPropertyValue("pointerX", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PointedShape.prototype, "pointerY", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    return this.getPropertyValue("pointerY");
                },
                /**
                 * Y coordinate the shape is pointing to.
                 *
                 * @param {number}  value  Y
                 */
                set: function (value) {
                    this.setPropertyValue("pointerY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return PointedShape;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        //# sourceMappingURL=PointedShape.js.map
        /***/ 
    }),
    /* 871 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Polyarc", function () { return Polyarc; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Polyline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(872);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Module for a multi-part arched line.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a multi-part arched line.
         *
         * @see {@link IPolyarcEvents} for a list of available events
         * @see {@link IPolyarcAdapters} for a list of available Adapters
         */
        var Polyarc = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Polyarc, _super);
            /**
             * Constructor
             */
            function Polyarc() {
                var _this = _super.call(this) || this;
                _this.className = "Polyarc";
                _this.controlPointDistance = 0.5;
                _this.controlPointPosition = 0.5;
                _this.applyTheme();
                return _this;
            }
            /**
             * Creats and adds an SVG path for the arc.
             *
             * @ignore Exclude from docs
             */
            Polyarc.prototype.makePath = function () {
                this._distance = 0;
                var segments = this.segments;
                if (segments && segments.length > 0) {
                    var path = "";
                    this._realSegments = [];
                    for (var i = 0, len = segments.length; i < len; i++) {
                        var points = segments[i];
                        var realPoints = [];
                        this._realSegments.push(realPoints);
                        if (points.length > 0) {
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](points[0]);
                            for (var p = 1; p < points.length; p++) {
                                var pointA = points[p - 1];
                                var pointB = points[p];
                                var distanceAB = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"](pointB, pointA);
                                var cpDistance = distanceAB * this.controlPointDistance;
                                var controlPointPosition = this.controlPointPosition;
                                var angle = -_core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getAngle"](pointA, pointB);
                                var cpx = pointA.x + (pointB.x - pointA.x) * controlPointPosition * 0.5 - cpDistance * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](angle);
                                var cpy = pointA.y + (pointB.y - pointA.y) * controlPointPosition * 0.5 - cpDistance * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](angle);
                                var controlPoint1 = { x: cpx, y: cpy };
                                var cpx2 = pointA.x + (pointB.x - pointA.x) * controlPointPosition * 1.5 - cpDistance * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](angle);
                                var cpy2 = pointA.y + (pointB.y - pointA.y) * controlPointPosition * 1.5 - cpDistance * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](angle);
                                var controlPoint2 = { x: cpx2, y: cpy2 };
                                path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["cubicCurveTo"](pointB, controlPoint1, controlPoint2);
                                // we add a lot of points in order to get the position/angle later
                                var stepCount = Math.ceil(distanceAB);
                                var prevPoint = pointA;
                                if (stepCount > 0) {
                                    for (var i_1 = 0; i_1 <= stepCount; i_1++) {
                                        var point = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getPointOnCubicCurve"](pointA, pointB, controlPoint1, controlPoint2, i_1 / stepCount);
                                        realPoints.push(point);
                                        this._distance += _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"](prevPoint, point);
                                        prevPoint = point;
                                    }
                                }
                                else {
                                    realPoints.push(pointA);
                                }
                            }
                        }
                    }
                    this.path = path;
                }
            };
            Object.defineProperty(Polyarc.prototype, "controlPointPosition", {
                /**
                 * @return {number} Position (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("controlPointPosition");
                },
                /**
                 * Relative position along the line the control point is. (0-1)
                 *
                 * @default 0.5
                 * @param {number}  value  Position (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("controlPointPosition", value);
                    this.makePath();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Polyarc.prototype, "controlPointDistance", {
                /**
                 * @return {number} Distance (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("controlPointDistance");
                },
                /**
                 * Relative distance of the control point. (0-1)
                 *
                 * Default is half the length of the line. (0.5)
                 *
                 * @default 0.5
                 * @param {number}  value  Distance (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("controlPointDistance", value);
                    this.makePath();
                },
                enumerable: true,
                configurable: true
            });
            return Polyarc;
        }(_Polyline__WEBPACK_IMPORTED_MODULE_1__["Polyline"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Polyarc"] = Polyarc;
        //# sourceMappingURL=Polyarc.js.map
        /***/ 
    }),
    /* 872 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Polyline", function () { return Polyline; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /**
         * Polyline module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a polyline.
         *
         * @see {@link IPolylineEvents} for a list of available events
         * @see {@link IPolylineAdapters} for a list of available Adapters
         */
        var Polyline = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Polyline, _super);
            /**
             * Constructor
             */
            function Polyline() {
                var _this = _super.call(this) || this;
                /**
                 * [_distance description]
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._distance = 0;
                _this.className = "Polyline";
                _this.element = _this.paper.add("path");
                _this.shapeRendering = "auto";
                _this.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_2__["color"])();
                _this.strokeOpacity = 1;
                _this.applyTheme();
                return _this;
            }
            /**
             * Creats and adds an SVG path for the arc.
             *
             * @ignore Exclude from docs
             */
            Polyline.prototype.makePath = function () {
                this._distance = 0;
                var segments = this.segments;
                if (segments && segments.length > 0) {
                    var path = "";
                    for (var i = 0, len = segments.length; i < len; i++) {
                        var points = segments[i];
                        if (points.length > 0) {
                            path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](points[0]);
                            for (var p = 1; p < points.length; p++) {
                                var point = points[p];
                                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"](point);
                                this._distance += _utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](points[p - 1], point);
                            }
                        }
                    }
                    this.path = path;
                }
                this._realSegments = segments;
            };
            Object.defineProperty(Polyline.prototype, "segments", {
                /**
                 * @return {Optional<IPoint[]>} Segments
                 */
                get: function () {
                    return this.getPropertyValue("segments");
                },
                /**
                 * A list of segment coordinates for the multi-part line.
                 *
                 * @todo Example
                 * @param {Optional<IPoint[][]>}  segments  Segments
                 */
                set: function (segments) {
                    this.setPropertyValue("segments", segments);
                    this.makePath();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Polyline.prototype, "distance", {
                /**
                 * [distance description]
                 *
                 * @todo Description
                 * @return {number} [description]
                 */
                get: function () {
                    return this._distance;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position along the line (0-1) into pixel coordinates.
             *
             * @param  {number}             position  Position (0-1)
             * @return {IOrientationPoint}            Coordinates
             */
            Polyline.prototype.positionToPoint = function (position) {
                var deltaAngle = 0;
                if (position < 0) {
                    position = Math.abs(position);
                    deltaAngle = 180;
                }
                var segments = this._realSegments;
                if (segments) {
                    var totalDistance = this.distance;
                    var currentDistance = 0;
                    var distanceAB = void 0;
                    var positionA = 0;
                    var positionB = 0;
                    var pointA = void 0;
                    var pointB = void 0;
                    for (var s = 0; s < segments.length; s++) {
                        var points = segments[s];
                        if (points.length > 1) {
                            for (var p = 1; p < points.length; p++) {
                                pointA = points[p - 1];
                                pointB = points[p];
                                positionA = currentDistance / totalDistance;
                                distanceAB = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](pointA, pointB);
                                currentDistance += distanceAB;
                                positionB = currentDistance / totalDistance;
                                if (positionA <= position && positionB > position) {
                                    s = segments.length;
                                    break;
                                }
                            }
                        }
                        else if (points.length == 1) {
                            pointA = points[0];
                            pointB = points[0];
                            positionA = 0;
                            positionB = 1;
                        }
                    }
                    if (pointA && pointB) {
                        var positionAB = (position - positionA) / (positionB - positionA);
                        var midPoint = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["getMidPoint"](pointA, pointB, positionAB);
                        return { x: midPoint.x, y: midPoint.y, angle: deltaAngle + _utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](pointA, pointB) };
                    }
                }
                return { x: 0, y: 0, angle: 0 };
            };
            return Polyline;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Polyline"] = Polyline;
        //# sourceMappingURL=Polyline.js.map
        /***/ 
    }),
    /* 873 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Polygon", function () { return Polygon; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _utils_Morpher__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(874);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * Polygon module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a polygon.
         *
         * @see {@link IPolygonEvents} for a list of available events
         * @see {@link IPolygonAdapters} for a list of available Adapters
         */
        var Polygon = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Polygon, _super);
            /**
             * Constructor
             */
            function Polygon() {
                var _this = _super.call(this) || this;
                _this.className = "Polygon";
                _this.element = _this.paper.add("path");
                _this.shapeRendering = "auto";
                _this._currentPoints = [];
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Polygon.prototype, "points", {
                /**
                 * @return {IPoint[]} Polygon points
                 */
                get: function () {
                    return this.getPropertyValue("points");
                },
                /**
                 * An array of X/Y coordinates for each elbow of the polygon.
                 *
                 * @todo Example
                 * @param {IPoint[][][]}  points  Polygon points
                 */
                set: function (points) {
                    this.setPropertyValue("points", points, true);
                    this._currentPoints = this.points;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Polygon.prototype, "currentPoints", {
                /**
                 * @return {IPoint[]} Polygon points
                 */
                get: function () {
                    return this._currentPoints;
                },
                /**
                 * Current points. Used when morphing the element, so that original `points`
                 * are not overwritten.
                 *
                 * @param {IPoint[][][]}  points  Polygon points
                 */
                set: function (points) {
                    if (this._currentPoints != points) {
                        this._currentPoints = points;
                        this.draw();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Polygon.prototype.draw = function () {
                var path = "";
                var points = this._currentPoints;
                var left;
                var right;
                var top;
                var bottom;
                if (points.length > 0) {
                    // separate areas
                    for (var i = 0, len = points.length; i < len; i++) {
                        // surface
                        var surface = points[i][0];
                        var hole = points[i][1];
                        if (surface && surface.length > 0) {
                            var point = surface[0];
                            path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](point);
                            for (var s = 0; s < surface.length; s++) {
                                point = surface[s];
                                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"](point);
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](right) || (right < point.x)) {
                                    right = point.x;
                                }
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](left) || (left > point.x)) {
                                    left = point.x;
                                }
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](top) || (top > point.y)) {
                                    top = point.y;
                                }
                                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](bottom) || (bottom < point.y)) {
                                    bottom = point.y;
                                }
                            }
                        }
                        // hole
                        if (hole && hole.length > 0) {
                            var point = hole[0];
                            path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](point);
                            for (var h = 0, hlen = hole.length; h < hlen; h++) {
                                point = hole[h];
                                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"](point);
                            }
                        }
                    }
                    if (path) {
                        path += _rendering_Path__WEBPACK_IMPORTED_MODULE_4__["closePath"]();
                    }
                    this.bbox.x = left;
                    this.bbox.y = top;
                    this.bbox.width = right - left;
                    this.bbox.height = bottom - top;
                }
                this.path = path;
            };
            /**
             * Measures element
             */
            Polygon.prototype.measureElement = function () {
                // Overriding to avoid extra measurement.
            };
            Object.defineProperty(Polygon.prototype, "centerPoint", {
                /**
                 * A calculated center point for the shape.
                 *
                 * @readonly
                 * @return {IPoint} Center
                 */
                get: function () {
                    return { x: this.bbox.x + this.bbox.width / 2, y: this.bbox.y + this.bbox.height / 2 };
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Polygon.prototype, "morpher", {
                /**
                 * A [[Morpher]] instance that is used to morph polygon into some other
                 * shape.
                 *
                 * @readonly
                 * @return {Morpher} Morpher instance
                 */
                get: function () {
                    if (!this._morpher) {
                        this._morpher = new _utils_Morpher__WEBPACK_IMPORTED_MODULE_2__["Morpher"](this);
                        this._disposers.push(this._morpher);
                    }
                    return this._morpher;
                },
                enumerable: true,
                configurable: true
            });
            return Polygon;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Polygon"] = Polygon;
        //# sourceMappingURL=Polygon.js.map
        /***/ 
    }),
    /* 874 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Morpher", function () { return Morpher; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(785);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(787);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * Morpher module contains functionality that allows morphing one polygon to
         * another.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * Morpher can be used to morph one polygon to some other polygon.
         */
        var Morpher = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Morpher, _super);
            /**
             * Constructor.
             *
             * @param {IMorphable} morphable An object to morph
             */
            function Morpher(morphable) {
                var _this = _super.call(this) || this;
                /**
                 * A storage for measurements.
                 *
                 * @type {IRectangle[]}
                 */
                _this._bboxes = [];
                /**
                 * Duration of the morphing animation in milliseconds.
                 *
                 * @type {number}
                 */
                _this.morphDuration = 800;
                /**
                 * An easing function to use for morphing animation.
                 *
                 * @see {@link Ease}
                 * @type {Function}
                 */
                _this.morphEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_4__["cubicOut"];
                /**
                 * If set to `true`, all separate parts of the multi-part polygon will
                 * morph into a single circle or polygon when using built-in methods
                 * `morphToCircle()` or `morphToPolygon()`.
                 *
                 * Otherwise each separate part of polygon will morph to individual target
                 * circle or polgyon.
                 *
                 * @type {boolean}
                 */
                _this.morphToSingle = true;
                /**
                 * A ratio to scale morphed object in relation to the source object.
                 *
                 * @type {number}
                 */
                _this.scaleRatio = 1;
                _this.className = "Morpher";
                _this.morphable = morphable;
                _this.applyTheme();
                return _this;
            }
            /**
             * Morphs a polygon to another polygon.
             *
             * @param {IPoint[][][]}        toPoints  Corner points of the target shape
             * @param {number}              duration  Duration in milliseconds
             * @param {(number) => number}  easing    Easing function
             * @return {Animation}                    Animation
             */
            Morpher.prototype.morphToPolygon = function (toPoints, duration, easing) {
                var points = this.morphable.currentPoints;
                this.sortPoints(points);
                this.sortPoints(toPoints);
                this._morphFromPointsReal = [];
                this._morphToPointsReal = [];
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](duration)) {
                    duration = this.morphDuration;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](easing)) {
                    easing = this.morphEasing;
                }
                this._morphFromPointsReal = this.normalizePoints(toPoints, points);
                this._morphToPointsReal = this.normalizePoints(points, toPoints);
                this.morphable.currentPoints = this._morphFromPointsReal;
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_2__["Animation"](this, { property: "morphProgress", from: 0, to: 1 }, duration, easing);
                this._disposers.push(animation);
                animation.start();
                return animation;
            };
            /**
             * [normalizePoints description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {IPoint[][][]}  pointsA  Point A
             * @param  {IPoint[][][]}  pointsB  Point B
             * @return {IPoint[]}               Normalized points
             */
            Morpher.prototype.normalizePoints = function (pointsA, pointsB) {
                for (var i = 0, len = pointsA.length; i < len; i++) {
                    var surfaceA = pointsA[i][0];
                    var holeA = pointsA[i][1];
                    var bboxA = _utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getBBox"](surfaceA));
                    var middleX = bboxA.x + bboxA.width;
                    var middleY = bboxA.y + bboxA.height;
                    // check if we have the same in PointsB
                    if (!pointsB[i]) {
                        pointsB[i] = [];
                    }
                    // check if we have surface in pointsB
                    if (surfaceA && !pointsB[i][0]) {
                        pointsB[i][0] = [{ x: middleX, y: middleY }, { x: middleX, y: middleY }];
                    }
                    if (pointsB[i][0]) {
                        pointsB[i][0] = this.addPoints(pointsB[i][0], surfaceA.length);
                        var distance = Infinity;
                        var splitAt = 0;
                        for (var a = 0; a < pointsB[i][0].length; a++) {
                            var newDistance = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"](pointsB[i][0][a], surfaceA[0]);
                            if (newDistance < distance) {
                                splitAt = a;
                                distance = newDistance;
                            }
                        }
                        var partA = pointsB[i][0].slice(0, splitAt);
                        var partB = pointsB[i][0].slice(splitAt);
                        pointsB[i][0] = partB.concat(partA);
                    }
                    if (holeA) {
                        if (!pointsB[i][1]) {
                            pointsB[i][1] = [{ x: middleX, y: middleY }, { x: middleX, y: middleY }];
                        }
                        pointsB[i][1] = this.addPoints(pointsB[i][1], holeA.length);
                    }
                }
                return pointsB;
            };
            /**
             * [sortPoints description]
             *
             * @ignore Exclude from doc
             * @todo Description
             * @param {IPoint[][][]}  points  [description]
             * @return                        common bbox of points
             */
            Morpher.prototype.sortPoints = function (points) {
                points.sort(function (a, b) {
                    var bbox1 = _utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getBBox"](a[0]));
                    var bbox2 = _utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getBBox"](b[0]));
                    if (bbox1.width * bbox1.height > bbox2.width * bbox2.height) {
                        return -1;
                    }
                    else {
                        return 1;
                    }
                });
                var bboxes = [];
                for (var i = 0, len = points.length; i < len; i++) {
                    var surface = points[i][0];
                    if (surface) {
                        bboxes.push(_utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getBBox"](surface)));
                    }
                }
                return _utils_Math__WEBPACK_IMPORTED_MODULE_3__["getCommonRectangle"](bboxes);
            };
            /**
             * Morphs polygon to a circle (it is actually a polygon which makes a circle).
             *
             * @param  {number}              radius    Target circle radius (px)
             * @param  {number}              duration  Duration (ms)
             * @param  {(number) => number}  easing    Easing function
             * @return {Animation}                     Animation
             */
            Morpher.prototype.morphToCircle = function (radius, duration, easing) {
                var points = this.morphable.points;
                var commonBBox = this.sortPoints(points);
                this._morphFromPointsReal = [];
                this._morphToPointsReal = [];
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](duration)) {
                    duration = this.morphDuration;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](easing)) {
                    easing = this.morphEasing;
                }
                // surface
                for (var i = 0, len = points.length; i < len; i++) {
                    var surface = points[i][0];
                    var hole = points[i][1];
                    this._morphFromPointsReal[i] = [];
                    this._morphToPointsReal[i] = [];
                    if (surface) {
                        var toPoints = surface;
                        var fromPoints = surface;
                        var bbox = _utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getBBox"](fromPoints)); // this._bboxes[i];
                        if (this.morphToSingle) {
                            bbox = _utils_Type__WEBPACK_IMPORTED_MODULE_5__["getValue"](commonBBox);
                        }
                        var middleX = bbox.x + bbox.width / 2;
                        var middleY = bbox.y + bbox.height / 2;
                        var realRadius = radius;
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](realRadius)) {
                            realRadius = Math.min(bbox.width / 2, bbox.height / 2);
                        }
                        toPoints = [];
                        // find angle for the first point
                        var startAngle = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["getAngle"]({ x: middleX, y: middleY }, surface[0]);
                        var count = 100;
                        if (surface.length > count) {
                            count = surface.length;
                        }
                        fromPoints = this.addPoints(surface, count);
                        count = fromPoints.length; // add Points might increase number a bit
                        var angle = 360 / (count - 1);
                        for (var a = 0; a < count; a++) {
                            var realAngle = angle * a + startAngle;
                            var pointOnCircle = { x: middleX + realRadius * _utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](realAngle), y: middleY + realRadius * _utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](realAngle) };
                            toPoints[a] = pointOnCircle;
                        }
                        if (hole && hole.length > 0) {
                            for (var i_1 = 0, hlen = hole.length; i_1 < hlen; i_1++) {
                                toPoints.push({ x: middleX, y: middleY });
                            }
                        }
                        this._morphFromPointsReal[i][0] = fromPoints;
                        this._morphToPointsReal[i][0] = toPoints;
                    }
                }
                this.morphable.currentPoints = this._morphFromPointsReal;
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_2__["Animation"](this, { property: "morphProgress", from: 0, to: 1 }, duration, easing);
                this._disposers.push(animation);
                animation.start();
                return animation;
            };
            /**
             * [addPoints description]
             *
             * @ignore Exclude from doc
             * @todo Description
             * @param  {IPoint[]}  points         [description]
             * @param  {number}    mustHaveCount  [description]
             * @return {IPoint[]}                 [description]
             */
            Morpher.prototype.addPoints = function (points, mustHaveCount) {
                var addToSegmentCount = Math.round(mustHaveCount / points.length);
                var newPoints = [];
                for (var i = 0, len = points.length; i < len; i++) {
                    var point0 = points[i];
                    var point1 = void 0;
                    if (i == points.length - 1) {
                        point1 = points[0];
                    }
                    else {
                        point1 = points[i + 1];
                    }
                    newPoints.push(point0);
                    for (var p = 1; p < addToSegmentCount; p++) {
                        var percent = p / addToSegmentCount;
                        var extraPoint = { x: point0.x + (point1.x - point0.x) * percent, y: point0.y + (point1.y - point0.y) * percent };
                        newPoints.push(extraPoint);
                    }
                    // stop adding in case we already added more than left in original
                    if (newPoints.length + points.length - i == mustHaveCount) {
                        addToSegmentCount = 0;
                    }
                }
                if (newPoints.length < mustHaveCount && points.length > 0) {
                    var lastPoint = points[points.length - 1];
                    for (var p = newPoints.length; p < mustHaveCount; p++) {
                        // add same as last
                        newPoints.push({ x: lastPoint.x, y: lastPoint.y });
                    }
                }
                return newPoints;
            };
            /**
             * Morphs polygon into a rectangular polygon.
             *
             * @param  {number}              width     Width of the target rectangle (px)
             * @param  {number}              height    Height of the target rectangle (px)
             * @param  {number}              duration  Duration (ms)
             * @param  {(number) => number}  easing    Easing function
             * @return {Animation}                     Animation
             */
            Morpher.prototype.morphToRectangle = function (width, height, duration, easing) {
                var points = this.morphable.points;
                this.sortPoints(points);
                this._morphFromPointsReal = [];
                this._morphToPointsReal = [];
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](duration)) {
                    duration = this.morphDuration;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](easing)) {
                    easing = this.morphEasing;
                }
                //		let biggestBBox: IRectangle = this._bboxes[this._biggestIndex];
                // surface
                for (var i = 0, len = points.length; i < len; i++) {
                    var surface = points[i][0];
                    var hole = points[i][1];
                    this._morphFromPointsReal[i] = [];
                    this._morphToPointsReal[i] = [];
                    if (surface) {
                        var toPoints = surface;
                        var fromPoints = surface;
                        var bbox = this._bboxes[i];
                        // we only work with first area. TODO: maybe we should find the biggest one?
                        if (this.morphToSingle) {
                            //if (i != this._biggestIndex) {
                            //	bbox = { x: biggestBBox.x + biggestBBox.width / 2, y: biggestBBox.y + biggestBBox.height / 2, width: 0, height: 0 };
                            //}
                        }
                        var x = bbox.x;
                        var y = bbox.y;
                        var realWidth = width;
                        var realHeight = height;
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](realWidth)) {
                            realWidth = bbox.width;
                        }
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](realHeight)) {
                            realHeight = bbox.height;
                        }
                        toPoints = [{ x: x, y: y }, { x: x + realWidth, y: y }, { x: x + realWidth, y: y + realHeight }, { x: x, y: y + realHeight }];
                        toPoints = this.addPoints(toPoints, surface.length);
                        // if polygon has less points then count, add
                        if (surface.length < 4) {
                            for (var i_2 = surface.length; i_2 < 4; i_2++) {
                                toPoints.push({ x: surface[i_2].x, y: surface[i_2].y });
                            }
                        }
                        if (hole && hole.length > 0) {
                            var middleX = bbox.x + bbox.width / 2;
                            var middleY = bbox.y + bbox.height / 2;
                            for (var i_3 = 0, hlen = hole.length; i_3 < hlen; i_3++) {
                                toPoints.push({ x: middleX, y: middleY });
                            }
                        }
                        this._morphFromPointsReal[i][0] = fromPoints;
                        this._morphToPointsReal[i][0] = toPoints;
                    }
                }
                this.morphable.currentPoints = this._morphFromPointsReal;
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_2__["Animation"](this, { property: "morphProgress", from: 0, to: 1 }, duration, easing);
                this._disposers.push(animation);
                animation.start();
                return animation;
            };
            Object.defineProperty(Morpher.prototype, "morphProgress", {
                /**
                 * Returns the progress of morph transition.
                 *
                 * @return {Optional<number>} Progress (0-1)
                 */
                get: function () {
                    return this._morphProgress;
                },
                /**
                 * Progress of the morph transition.
                 *
                 * Setting this will also trigger actual transformation.
                 *
                 * @param {number}  value  Progress (0-1)
                 */
                set: function (value) {
                    this._morphProgress = value;
                    var currentPoints = [];
                    if (value != null) {
                        var fromPoints = this._morphFromPointsReal;
                        var toPoints = this._morphToPointsReal;
                        if (fromPoints != null && toPoints != null) {
                            for (var i = 0, len = fromPoints.length; i < len; i++) {
                                var currentArea = [];
                                currentPoints.push(currentArea);
                                var surfaceFrom = fromPoints[i][0];
                                var holeFrom = fromPoints[i][1];
                                var surfaceTo = toPoints[i][0];
                                var holeTo = toPoints[i][1];
                                if (surfaceFrom && surfaceFrom.length > 0 && surfaceTo && surfaceTo.length > 0) {
                                    var currentSurface = [];
                                    for (var i_4 = 0, slen = surfaceFrom.length; i_4 < slen; i_4++) {
                                        var point0 = surfaceFrom[i_4];
                                        var point1 = surfaceTo[i_4];
                                        var currentPoint = { x: point0.x + (point1.x * this.scaleRatio - point0.x) * value, y: point0.y + (point1.y * this.scaleRatio - point0.y) * value };
                                        currentSurface.push(currentPoint);
                                    }
                                    currentArea[0] = currentSurface;
                                }
                                if (holeFrom && holeFrom.length > 0 && holeTo && holeTo.length > 0) {
                                    var currentHole = [];
                                    for (var i_5 = 0, hlen = holeFrom.length; i_5 < hlen; i_5++) {
                                        var point0 = holeFrom[i_5];
                                        var point1 = holeTo[i_5];
                                        var currentPoint = { x: point0.x + (point1.x * this.scaleRatio - point0.x) * value, y: point0.y + (point1.y * this.scaleRatio - point0.y) * value };
                                        currentHole.push(currentPoint);
                                    }
                                    currentArea[1] = currentHole;
                                }
                            }
                        }
                    }
                    this.morphable.currentPoints = currentPoints;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Restores the polygon to its original appearance.
             *
             * @param {number}              duration  Duration (ms)
             * @param {(number) => number}  easing    Easing function
             * @return {Animation}                    Animation
             */
            Morpher.prototype.morphBack = function (duration, easing) {
                this._morphToPointsReal = this._morphFromPointsReal;
                this._morphFromPointsReal = this.morphable.currentPoints;
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](duration)) {
                    duration = this.morphDuration;
                }
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](easing)) {
                    easing = this.morphEasing;
                }
                var animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_2__["Animation"](this, { property: "morphProgress", from: 0, to: 1 }, duration, easing);
                this._disposers.push(animation);
                animation.start();
                return animation;
            };
            Object.defineProperty(Morpher.prototype, "animations", {
                /**
                 * Returns a list of morph animations currently being played.
                 *
                 * @return {Array<Animation>} List of animations
                 */
                get: function () {
                    if (!this._animations) {
                        this._animations = [];
                        this._disposers.push(new _utils_Animation__WEBPACK_IMPORTED_MODULE_2__["AnimationDisposer"](this._animations));
                    }
                    return this._animations;
                },
                enumerable: true,
                configurable: true
            });
            return Morpher;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=Morpher.js.map
        /***/ 
    }),
    /* 875 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Polyspline", function () { return Polyspline; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Polyline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(872);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Polyspline (smoothed line) module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a polysline. (smoothed multi-sigment line)
         *
         * @see {@link IPolysplineEvents} for a list of available events
         * @see {@link IPolysplineAdapters} for a list of available Adapters
         */
        var Polyspline = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Polyspline, _super);
            /**
             * Constructor
             */
            function Polyspline() {
                var _this = _super.call(this) || this;
                _this.className = "Polyspline";
                _this.tensionX = 0.5;
                _this.tensionY = 0.5;
                _this.applyTheme();
                return _this;
            }
            /**
             * Creats and adds an SVG path for the arc.
             *
             * @ignore Exclude from docs
             */
            Polyspline.prototype.makePath = function () {
                this._distance = 0;
                var segments = this.segments;
                var tensionX = this.tensionX;
                var tensionY = this.tensionY;
                if (segments && segments.length > 0) {
                    var path = "";
                    this._realSegments = [];
                    for (var i = 0, len = segments.length; i < len; i++) {
                        var points = segments[i];
                        var realPoints = [];
                        this._realSegments.push(realPoints);
                        if (points.length > 0) {
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](points[0]);
                            for (var p = 0; p < points.length - 1; p++) {
                                var p0 = points[p - 1];
                                var p1 = points[p];
                                var p2 = points[p + 1];
                                var p3 = points[p + 2];
                                if (p === 0) {
                                    p0 = points[p];
                                }
                                else if (p == points.length - 2) {
                                    p3 = points[p + 1];
                                }
                                if (!p3) {
                                    p3 = p2;
                                }
                                var controlPointA = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getCubicControlPointA"](p0, p1, p2, p3, tensionX, tensionY);
                                var controlPointB = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getCubicControlPointB"](p0, p1, p2, p3, tensionX, tensionY);
                                path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["cubicCurveTo"](p2, controlPointA, controlPointB);
                                // now split to small segments so that we could have positionToPoint later
                                var stepCount = Math.ceil(_core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"](p1, p2)) / 2;
                                var prevPoint = p1;
                                if (stepCount > 0) {
                                    for (var s = 0; s <= stepCount; s++) {
                                        var point = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getPointOnCubicCurve"](p1, p2, controlPointA, controlPointB, s / stepCount);
                                        realPoints.push(point);
                                        this._distance += _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"](prevPoint, point);
                                        //path += $path.lineTo(point);
                                        prevPoint = point;
                                    }
                                }
                                else {
                                    realPoints.push(p0);
                                }
                            }
                        }
                    }
                    this.path = path;
                }
            };
            Object.defineProperty(Polyspline.prototype, "tensionX", {
                /**
                 * @return {number} Tension
                 */
                get: function () {
                    return this.getPropertyValue("tensionX");
                },
                /**
                 * Horizontal tension for the spline.
                 *
                 * Used by the line smoothing algorithm.
                 *
                 * @default 0.5
                 * @param {number}  value  Tension
                 */
                set: function (value) {
                    this.setPropertyValue("tensionX", value);
                    this.makePath();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Polyspline.prototype, "tensionY", {
                /**
                 * @return {number} Tension
                 */
                get: function () {
                    return this.getPropertyValue("tensionY");
                },
                /**
                 * Vertical tension for the spline.
                 *
                 * Used by the line smoothing algorithm.
                 *
                 * @default 0.5
                 * @param {number}  value  Tensions
                 */
                set: function (value) {
                    this.setPropertyValue("tensionY", value, true);
                    this.makePath();
                },
                enumerable: true,
                configurable: true
            });
            return Polyspline;
        }(_Polyline__WEBPACK_IMPORTED_MODULE_1__["Polyline"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Polyspline"] = Polyspline;
        //# sourceMappingURL=Polyspline.js.map
        /***/ 
    }),
    /* 876 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Preloader", function () { return Preloader; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(800);
        /* harmony import */ var _Slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(877);
        /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(845);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /**
         * Preloader module.
         *
         * Preloader is a progress indicator.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A class used to draw and display progress indicator.
         *
         * @see {@link IPreloaderEvents} for a list of available events
         * @see {@link IPreloaderAdapters} for a list of available Adapters
         */
        var Preloader = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Preloader, _super);
            /**
             * Constructor
             */
            function Preloader() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "Preloader";
                // Set dimensions
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__["InterfaceColorSet"]();
                // Create main container
                var sliceContainer = _this.createChild(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]);
                sliceContainer.shouldClone = false;
                // Add background (100%) slice
                var backgroundSlice = sliceContainer.createChild(_Slice__WEBPACK_IMPORTED_MODULE_3__["Slice"]);
                backgroundSlice.shouldClone = false;
                backgroundSlice.radius = 53;
                backgroundSlice.arc = 360;
                backgroundSlice.fill = interfaceColors.getFor("fill");
                backgroundSlice.fillOpacity = 0.8;
                backgroundSlice.innerRadius = 42;
                backgroundSlice.isMeasured = false;
                _this.backgroundSlice = backgroundSlice;
                // Add progress slice
                var progressSlice = sliceContainer.createChild(_Slice__WEBPACK_IMPORTED_MODULE_3__["Slice"]);
                progressSlice.shouldClone = false;
                progressSlice.radius = 50;
                progressSlice.innerRadius = 45;
                progressSlice.fill = interfaceColors.getFor("alternativeBackground");
                progressSlice.fillOpacity = 0.2;
                progressSlice.isMeasured = false;
                _this.progressSlice = progressSlice;
                // Add text label element
                var label = sliceContainer.createChild(_Label__WEBPACK_IMPORTED_MODULE_4__["Label"]);
                label.shouldClone = false;
                label.horizontalCenter = "middle";
                label.verticalCenter = "middle";
                label.isMeasured = false;
                label.fill = interfaceColors.getFor("text");
                label.align = "center";
                label.valign = "middle";
                label.fillOpacity = 0.4;
                _this.label = label;
                // Set defaults
                _this.background.opacity = 1;
                _this.background.fill = interfaceColors.getFor("background");
                _this.contentAlign = "center";
                _this.contentValign = "middle";
                _this.delay = 500;
                // Create hidden state
                var hiddenState = _this.states.create("hidden");
                hiddenState.properties.opacity = 0;
                // Hide by default
                _this.visible = false;
                _this.hide(0);
                _this.__disabled = true;
                // Make it disposable
                // @todo Maybe it's enough to just dispose `sliceContainer`?
                _this._disposers.push(_this.backgroundSlice);
                _this._disposers.push(_this.progressSlice);
                _this._disposers.push(_this.label);
                _this._disposers.push(sliceContainer);
                return _this;
            }
            Object.defineProperty(Preloader.prototype, "progress", {
                /**
                 * @return {number} Progress (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("progress");
                },
                /**
                 * Current preload progress. (0-1)
                 *
                 * * 0 - 0%
                 * * 0.5 - 50%
                 * * 1 - 100%
                 *
                 * Setting this to a value less than 1, will automatically reveal the
                 * preloader, while setting it to 1 (100%) will hide it.
                 *
                 * @param {number} value Progress (0-1)
                 */
                set: function (value) {
                    var _this = this;
                    this.__disabled = false;
                    this.setPropertyValue("progress", value);
                    /*if (!this.visible && value == 1) {
                        return;
                    }*/
                    this.progressSlice.arc = 360 * value;
                    if (this.label) {
                        this.label.text = Math.round(value * 100) + "%";
                    }
                    if (value >= 1) {
                        // Cancel the timeout
                        if (this._started) {
                            this._started = undefined;
                        }
                        // TODO remove closure ?
                        _Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].events.once("enterframe", function () {
                            var animation = _this.hide();
                            if (animation && !animation.isFinished()) {
                                animation.events.once("animationended", function () {
                                    _this.__disabled = true;
                                });
                            }
                            else {
                                _this.__disabled = true;
                            }
                        });
                        this.interactionsEnabled = false;
                        this.setPropertyValue("progress", 0);
                    }
                    else if (value > 0) {
                        if (this.delay) {
                            if (!this._started) {
                                this._started = new Date().getTime();
                            }
                            else if ((this._started + this.delay) >= new Date().getTime()) {
                                this.__disabled = false;
                                this.show();
                                this.interactionsEnabled = true;
                            }
                        }
                        else {
                            this.__disabled = false;
                            this.show();
                            this.interactionsEnabled = true;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Preloader.prototype, "delay", {
                /**
                 * @return {number} Delay (ms)
                 */
                get: function () {
                    return this.getPropertyValue("delay");
                },
                /**
                 * Delay display of preloader by X milliseconds.
                 *
                 * When loading starts (`progress` is set to <1) and finishes (`progress` is
                 * set to 1) before `delay` ms, the loader is never shown.
                 *
                 * This is used to avoid brief flashing of the preload for very quick loads.
                 *
                 * @default 1000
                 * @param {number}  value  Delay (ms)
                 */
                set: function (value) {
                    this.setPropertyValue("delay", value);
                },
                enumerable: true,
                configurable: true
            });
            return Preloader;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=Preloader.js.map
        /***/ 
    }),
    /* 877 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Slice", function () { return Slice; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(802);
        /**
         * Slice module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a wedged semi-circle - slice. Usually used for Pie/Donut charts.
         *
         * @see {@link ISliceEvents} for a list of available events
         * @see {@link ISliceAdapters} for a list of available Adapters
         */
        var Slice = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Slice, _super);
            /**
             * Constructor
             */
            function Slice() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "Slice";
                // Set defaults
                _this.setPropertyValue("cornerRadius", 0);
                _this.setPropertyValue("startAngle", 0);
                _this.setPercentProperty("innerRadius", 0);
                _this.setPercentProperty("radius", 0);
                _this.setPropertyValue("arc", 0);
                _this.setPropertyValue("shiftRadius", 0);
                _this.strokeOpacity = 1;
                _this.setPropertyValue("layout", "none");
                // Create a slice wedge element
                _this.slice = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.slice.isMeasured = false;
                _this._disposers.push(_this.slice);
                //this.element.attr({ "stroke-linejoin": "round" });
                //this.element.attr({ "stroke-linecap": "round" });
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Slice.prototype.draw = function () {
                _super.prototype.draw.call(this);
                this.slice.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["arc"](this.startAngle, this.arc, this.radius, this.pixelInnerRadius, this.radiusY, this.cornerRadius, this.innerCornerRadius);
                this.slice.invalidate();
                this.shiftRadius = this.shiftRadius;
                if (this.realFill instanceof _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_8__["RadialGradient"]) {
                    this.updateGradient(this.realFill);
                }
                if (this.realStroke instanceof _rendering_fills_RadialGradient__WEBPACK_IMPORTED_MODULE_8__["RadialGradient"]) {
                    this.updateGradient(this.realStroke);
                }
            };
            Slice.prototype.updateGradient = function (gradient) {
                gradient.element.attr({ "gradientUnits": "userSpaceOnUse" });
                gradient.element.attr({ "r": this.radius });
                gradient.cx = 0;
                gradient.cy = 0;
                gradient.element.attr({ radius: this.radius });
            };
            Object.defineProperty(Slice.prototype, "bbox", {
                /**
                 * Returns bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                get: function () {
                    if (this.definedBBox) {
                        return this.definedBBox;
                    }
                    if (this.isMeasured) {
                        var innerRect = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getArcRect"](this.startAngle, this.startAngle + this.arc, this.pixelInnerRadius);
                        var outerRect = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getArcRect"](this.startAngle, this.startAngle + this.arc, this.radius);
                        return _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getCommonRectangle"]([innerRect, outerRect]);
                    }
                    else {
                        return { x: 0, y: 0, width: 0, height: 0 };
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "startAngle", {
                /**
                 * @return {number} Angle (0-360)
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * The angle at which left edge of the slice is drawn. (0-360)
                 *
                 * 0 is to the right of the center.
                 *
                 * @param {number}  value  Angle (0-360)
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", _utils_Math__WEBPACK_IMPORTED_MODULE_4__["normalizeAngle"](value), true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "arc", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this.getPropertyValue("arc");
                },
                /**
                 * [arc description]
                 *
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                        value = 0;
                    }
                    this.setPropertyValue("arc", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "radius", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    var radius = this.getPropertyValue("radius");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](radius)) {
                        radius = 0;
                    }
                    return radius;
                },
                /**
                 * Radius of the slice in pixels.
                 *
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("radius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "radiusY", {
                /**
                 * @return {number} Vertical radius (0-1)
                 */
                get: function () {
                    var value = this.getPropertyValue("radiusY");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                        value = this.radius;
                    }
                    return value;
                },
                /**
                 * Vertical radius for creating skewed slices.
                 *
                 * This is relevant to `radius`, e.g. 0.5 will set vertical radius to half
                 * the `radius`.
                 *
                 * @param {number} value Vertical radius (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("radiusY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "innerRadius", {
                /**
                 * @return {number | Percent} Radius (px or %)
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the slice for creating cut out (donut) slices.
                 *
                 * @default 0
                 * @param {number | Percent}  value  Radius (px or %)
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "pixelInnerRadius", {
                /**
                 * @return {number} Radius px
                 */
                get: function () {
                    return _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["relativeToValue"](this.innerRadius, this.radius);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "cornerRadius", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("cornerRadius");
                },
                /**
                 * Radius of slice's outer corners in pixels.
                 *
                 * @default 0
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("cornerRadius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "innerCornerRadius", {
                /**
                 * @return {number} Radius (px)
                 */
                get: function () {
                    return this.getPropertyValue("innerCornerRadius");
                },
                /**
                 * Radius of slice's inner corners in pixels.
                 *
                 * @default 0
                 * @param {number}  value  Radius (px)
                 */
                set: function (value) {
                    this.setPropertyValue("innerCornerRadius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "shiftRadius", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this.getPropertyValue("shiftRadius");
                },
                /**
                 * [shiftRadius description]
                 *
                 * 0-1
                 *
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                    this.setPropertyValue("shiftRadius", value);
                    this.dx = value * this.radius * this.ix;
                    this.dy = value * this.radiusY * this.iy;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "ix", {
                /**
                 * [ix description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {number} [description]
                 */
                get: function () {
                    return _utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](this.middleAngle);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "iy", {
                /**
                 * [iy description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {number} [description]
                 */
                get: function () {
                    if (this.radius > 0) {
                        return _utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](this.middleAngle) * this.radiusY / this.radius;
                    }
                    else {
                        return _utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](this.middleAngle);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice.prototype, "middleAngle", {
                /**
                 * An angle of the slice's middle.
                 *
                 * @ignore Exclude from docs
                 * @return {number} Angle
                 */
                get: function () {
                    return this.startAngle + this.arc / 2;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * X coordinate for the slice tooltip.
             *
             * @return {number} X
             */
            Slice.prototype.getTooltipX = function () {
                var value = this.getPropertyValue("tooltipX");
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                    var innerRadius = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["relativeToValue"](this.innerRadius, this.radius);
                    value = this.ix * (innerRadius + (this.radius - innerRadius) / 2);
                }
                return value;
            };
            /**
             * Y coordinate for the slice tooltip.
             *
             * @return {number} Y
             */
            Slice.prototype.getTooltipY = function () {
                var value = this.getPropertyValue("tooltipY");
                if (!_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                    var innerRadius = _utils_Utils__WEBPACK_IMPORTED_MODULE_7__["relativeToValue"](this.innerRadius, this.radius);
                    value = this.iy * (innerRadius + (this.radius - innerRadius) / 2);
                }
                return value;
            };
            return Slice;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Slice"] = Slice;
        //# sourceMappingURL=Slice.js.map
        /***/ 
    }),
    /* 878 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResizeButton", function () { return ResizeButton; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(865);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(800);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /**
         * Resize button module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a draggable resize/grip button.
         *
         * @see {@link IResizeButtonEvents} for a list of available events
         * @see {@link IResizeButtonAdapters} for a list of available Adapters
         */
        var ResizeButton = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ResizeButton, _super);
            /**
             * Constructor
             */
            function ResizeButton() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "ResizeButton";
                // Set defaults
                _this.orientation = "horizontal";
                _this.layout = "absolute";
                _this.horizontalCenter = "middle";
                _this.verticalCenter = "middle";
                _this.draggable = true;
                _this.padding(8, 8, 8, 8);
                _this.background.cornerRadius(20, 20, 20, 20);
                // Create an icon
                var icon = new _Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]();
                icon.element = _this.paper.add("path");
                var path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"]({ x: -2, y: -6 });
                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"]({ x: -2, y: 6 });
                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"]({ x: 2, y: -6 });
                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"]({ x: 2, y: 6 });
                icon.path = path;
                icon.pixelPerfect = true;
                icon.padding(0, 4, 0, 4);
                icon.stroke = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__["InterfaceColorSet"]().getFor("alternativeText");
                icon.strokeOpacity = 0.7;
                //icon.align = "center";
                //icon.valign = "middle";
                _this.icon = icon;
                _this.label.dispose();
                _this.label = undefined;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ResizeButton.prototype, "orientation", {
                /**
                 * Use for setting of direction (orientation) of the resize button.
                 *
                 * Available options: "horizontal", "vertical".
                 *
                 * @param {Orientation} value Orientation
                 */
                set: function (value) {
                    var icon = this.icon;
                    if (icon) {
                        if (value == "horizontal") {
                            icon.rotation = 0;
                        }
                        else {
                            icon.rotation = -90;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            return ResizeButton;
        }(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["ResizeButton"] = ResizeButton;
        //# sourceMappingURL=ResizeButton.js.map
        /***/ 
    }),
    /* 879 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scrollbar", function () { return Scrollbar; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _elements_ResizeButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(878);
        /* harmony import */ var _elements_Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(865);
        /* harmony import */ var _interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(784);
        /* harmony import */ var _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(803);
        /* harmony import */ var _elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(862);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(751);
        /* harmony import */ var _utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(792);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(800);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(758);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(756);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(787);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(757);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(795);
        /**
         * Provides functionality used to build scrollbars.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Scrollbar is a generic control allowing to select a range of values or pan
         * the selection.
         *
         * @see {@link IScrollbarEvents} for a list of available events
         * @see {@link IScrollbarAdapters} for a list of available Adapters
         */
        var Scrollbar = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Scrollbar, _super);
            /**
             * Construtor
             */
            function Scrollbar() {
                var _this = _super.call(this) || this;
                /**
                 * A value of previously selected lower value, used for doubleclick function.
                 *
                 * @type {number}
                 */
                _this._prevStart = 0;
                /**
                 * A value of previously selected upper value, used for doubleclick function.
                 *
                 * @type {number}
                 */
                _this._prevEnd = 1;
                /**
                 * Indicates if the Scrollbar is currently "busy" (animating and or
                 * performing zoom by user interaction).
                 *
                 * @type {boolean}
                 */
                _this._isBusy = false;
                /**
                 * [_skipRangeEvents description]
                 *
                 * @todo Description
                 * @type {boolean}
                 */
                _this._skipRangeEvents = false;
                /**
                 * Update the selection when dragging the grips.
                 *
                 * If set to `false` selection will be updated only when the grip is
                 * released.
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this.updateWhileMoving = true;
                _this.className = "Scrollbar";
                _this.minHeight = 12;
                _this.minWidth = 12;
                _this.animationDuration = 0;
                _this.animationEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_12__["cubicOut"];
                _this.margin(10, 10, 10, 10);
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_9__["InterfaceColorSet"]();
                // background is also container as it might contain graphs, grid, etc
                var background = _this.background;
                background.cornerRadius(10, 10, 10, 10);
                background.fill = interfaceColors.getFor("fill");
                background.fillOpacity = 0.5;
                _this.startGrip = new _elements_ResizeButton__WEBPACK_IMPORTED_MODULE_2__["ResizeButton"]();
                _this.endGrip = new _elements_ResizeButton__WEBPACK_IMPORTED_MODULE_2__["ResizeButton"]();
                // Default orientation...
                // ... is set in `applyInternalDefaults()` because it accesses `language`
                // and should only be started to access when parent is set
                // Set events
                _this.events.on("transformed", _this.updateThumb, _this);
                // Initial positions
                _this.start = 0;
                _this.end = 1;
                // Set roles
                _this.role = "scrollbar";
                _this.thumb.role = "slider";
                _this.thumb.readerLive = "polite";
                _this.startGrip.role = "slider";
                _this.endGrip.role = "slider";
                // otherwise range changed wont' be registered
                _this.events.once("inited", function () {
                    _this._previousStart = undefined;
                    _this.dispatchRangeChange();
                });
                _this.hideGrips = false;
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            Scrollbar.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!this._orientation) {
                    this.orientation = "horizontal";
                }
                // Set screen reader tetxt accordingly
                if (this.orientation === "horizontal") {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.readerTitle)) {
                        this.readerTitle = this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.thumb.readerDescription)) {
                        this.thumb.readerDescription = this.language.translate("Use left and right arrows to move selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.startGrip.readerDescription)) {
                        this.startGrip.readerDescription = this.language.translate("Use left and right arrows to move left selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.endGrip.readerDescription)) {
                        this.endGrip.readerDescription = this.language.translate("Use left and right arrows to move right selection");
                    }
                }
                else {
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.readerTitle)) {
                        this.readerTitle = this.language.translate("Use TAB select grip buttons or up and down arrows to change selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.thumb.readerDescription)) {
                        this.thumb.readerDescription = this.language.translate("Use up and down arrows to move selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.startGrip.readerDescription)) {
                        this.startGrip.readerDescription = this.language.translate("Use up and down arrows to move upper selection");
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.endGrip.readerDescription)) {
                        this.endGrip.readerDescription = this.language.translate("Use up and down arrows to move lower selection");
                    }
                }
            };
            /**
             * Validates the layout of the scrollbar's elements.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.validateLayout = function () {
                this.updateSize();
                _super.prototype.validateLayout.call(this);
                // when size changes, need to update extremes
                this.updateExtremes();
            };
            /**
             * Update background for the scrollbar.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.processBackground = function () {
                _super.prototype.processBackground.call(this);
                var background = this.background;
                background.clickable = true;
                background.events.on("hit", this.handleBgHit, this);
            };
            /**
             * Zooms to the particular place when clicked/tapped on the scrollbar
             * background.
             *
             * @ignore Exclude from docs
             * @param {ISpriteEvents["hit"]}  event  Event
             */
            Scrollbar.prototype.handleBgHit = function (event) {
                this.makeBusy();
                var point = event.spritePoint;
                point = _utils_Utils__WEBPACK_IMPORTED_MODULE_14__["spritePointToSprite"](point, this.background, this);
                var thumb = this.thumb;
                if (this.orientation == "horizontal") {
                    var thumbX = point.x - thumb.pixelWidth / 2;
                    thumbX = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](thumbX, 0, this.innerWidth - thumb.pixelWidth);
                    this._thumbAnimation = thumb.animate({ property: "x", to: thumbX }, this.animationDuration, this.animationEasing);
                }
                else {
                    var thumbY = point.y - thumb.pixelHeight / 2;
                    thumbY = _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](thumbY, 0, this.innerHeight - thumb.pixelHeight);
                    this._thumbAnimation = thumb.animate({ property: "y", to: thumbY }, this.animationDuration, this.animationEasing);
                }
                if (this.animationDuration > 0) {
                    this._thumbAnimation.events.on("animationended", this.makeUnbusy, this);
                }
                else {
                    this._thumb.validate();
                    this.makeUnbusy();
                }
            };
            /**
             * Set scrollbar as busy. (currently zooming)
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.makeBusy = function () {
                this._isBusy = true;
                this._skipRangeEvents = false;
                if (this._unbusyTimeout) {
                    this.removeDispose(this._unbusyTimeout);
                }
                this._unbusyTimeout = undefined;
                this.stopAnimations();
            };
            /**
             * Stops all animations, currently playing for the scrollbar.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.stopAnimations = function () {
                if (this._thumbAnimation) {
                    this._thumbAnimation.stop(true);
                }
                if (this._zoomAnimation) {
                    this._zoomAnimation.stop(true);
                }
            };
            /**
             * Cancels "busy" status of the Scrollbar.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.makeUnbusy = function () {
                /**
                 * We cannot make Scrollbar not busy right after release, because then axes
                 * will take over controll and Scrollbar will start to animate.
                 * Theorethically, it's not right to set timeout by `animationDuration`,
                 * however we can not know all the durations of elements we scroll, so we
                 * assume that animation duration will be the same as
                 * `interpolationDuration` or `rangeChange` duration.
                 */
                this._unbusyTimeout = this.setTimeout(this.makeUnbusyReal.bind(this), this.animationDuration * 1.1);
            };
            /**
             * [makeUnbusyReal description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.makeUnbusyReal = function () {
                this._usingGrip = undefined;
                this._isBusy = false;
                if (!this.updateWhileMoving) {
                    this.dispatchRangeChange();
                }
            };
            /**
             * Disptatches rangechanged event if it really changed
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.dispatchRangeChange = function () {
                if (this._previousEnd != this.end || this._previousStart != this.start) {
                    this._previousStart = this.start;
                    this._previousEnd = this.end;
                    this.dispatch("rangechanged");
                }
            };
            /**
             * Updates the "thumb" element. A draggable element between the grips.
             */
            Scrollbar.prototype.updateThumb = function () {
                if (!this.parent) {
                    return;
                }
                var thumb = this.thumb;
                var start = this.start;
                var end = this.end;
                var startGrip = this.startGrip;
                var endGrip = this.endGrip;
                if (this.orientation == "horizontal") {
                    var innerWidth_1 = this.innerWidth;
                    thumb.width = innerWidth_1 * (end - start);
                    thumb.maxX = innerWidth_1 - thumb.pixelWidth;
                    thumb.x = start * innerWidth_1;
                    startGrip.moveTo({ x: thumb.pixelX, y: 0 }, undefined, undefined, true); // overrides dragging
                    endGrip.moveTo({ x: thumb.pixelX + thumb.pixelWidth, y: 0 }, undefined, undefined, true);
                    startGrip.readerTitle = this.language.translate("From %1", undefined, this.adapter.apply("positionValue", {
                        value: Math.round(start * 100) + "%",
                        position: start
                    }).value);
                    endGrip.readerTitle = this.language.translate("To %1", undefined, this.adapter.apply("positionValue", {
                        value: Math.round(end * 100) + "%",
                        position: end
                    }).value);
                }
                else {
                    var innerHeight_1 = this.innerHeight;
                    thumb.height = innerHeight_1 * (end - start);
                    thumb.maxY = innerHeight_1 - thumb.pixelHeight;
                    thumb.y = (1 - end) * innerHeight_1;
                    startGrip.moveTo({ x: 0, y: thumb.pixelY + thumb.pixelHeight }, undefined, undefined, true);
                    endGrip.moveTo({ x: 0, y: thumb.pixelY }, undefined, undefined, true);
                    startGrip.readerTitle = this.language.translate("To %1", undefined, this.adapter.apply("positionValue", {
                        value: Math.round((1 - start) * 100) + "%",
                        position: (1 - start)
                    }).value);
                    endGrip.readerTitle = this.language.translate("From %1", undefined, this.adapter.apply("positionValue", {
                        value: Math.round((1 - end) * 100) + "%",
                        position: (1 - end)
                    }).value);
                }
                // Add accessibility
                thumb.readerTitle = this.language.translate("From %1 to %2", undefined, this.adapter.apply("positionValue", {
                    value: Math.round(start * 100) + "%",
                    position: start
                }).value, this.adapter.apply("positionValue", {
                    value: Math.round(end * 100) + "%",
                    position: end
                }).value);
                if (!this._skipRangeEvents && this.updateWhileMoving) {
                    this.dispatchRangeChange();
                }
            };
            /**
             * Updates extremes of the scrollbar.
             */
            Scrollbar.prototype.updateExtremes = function () {
                var orientation = this.orientation;
                var minX = 0;
                var minY = 0;
                var maxX = 0;
                var maxY = 0;
                if (orientation == "horizontal") {
                    maxX = this.innerWidth;
                    minY = maxY = this.innerHeight / 2;
                }
                else {
                    maxY = this.innerHeight;
                    minX = maxX = this.innerWidth / 2;
                }
                var startGrip = this.startGrip;
                startGrip.minX = minX;
                startGrip.maxX = maxX;
                startGrip.minY = minY;
                startGrip.maxY = maxY;
                var endGrip = this.endGrip;
                endGrip.minX = minX;
                endGrip.maxX = maxX;
                endGrip.minY = minY;
                endGrip.maxY = maxY;
                var thumb = this.thumb;
                thumb.minX = minX;
                thumb.maxX = maxX;
                thumb.minY = minY;
                thumb.maxY = maxY;
            };
            /**
             * Updates size of the scrollbar.
             */
            Scrollbar.prototype.updateSize = function () {
                var orientation = this.orientation;
                var startGrip = this.startGrip;
                if (startGrip) {
                    startGrip.orientation = orientation;
                }
                if (this.endGrip) {
                    this.endGrip.orientation = orientation;
                }
                var thumb = this.thumb;
                if (thumb) {
                    if (orientation == "horizontal") {
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this._pixelWidth)) {
                            this.width = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                        }
                        // this teorethically might be wrong, if user indeed sets height of a horizontal scrollbar in percent
                        // however without this height might be equal to 100% if previous orientation was set to horizontal
                        // so this is ok solution, in case user really wants to have scrollbar height set in percent,
                        // he should do this after orientation.
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.percentHeight)) {
                            this.height = this.minHeight;
                        }
                        thumb.height = this.innerHeight;
                        thumb.verticalCenter = "middle";
                        thumb.horizontalCenter = "left";
                    }
                    else {
                        if (!_utils_Type__WEBPACK_IMPORTED_MODULE_13__["isNumber"](this._pixelHeight)) {
                            this.height = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                        }
                        // same as above with percentHeight
                        if (_utils_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](this.percentWidth)) {
                            this.width = this.minWidth;
                        }
                        thumb.width = this.innerWidth;
                        thumb.verticalCenter = "top";
                        thumb.horizontalCenter = "middle";
                    }
                }
            };
            Object.defineProperty(Scrollbar.prototype, "start", {
                /**
                 * @return {number} Position (0-1)
                 */
                get: function () {
                    return Math.min(this.getPosition(this._start), this.getPosition(this._end));
                },
                /**
                 * ==========================================================================
                 * POSITIONS
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Relative position (0-1) of the start grip.
                 *
                 * @param {number}  position  Position (0-1)
                 */
                set: function (position) {
                    if (!this._isBusy) {
                        this.__start = position;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "__start", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this._start;
                },
                /**
                 * [__start description]
                 *
                 * @todo Description
                 * @param {number} position [description]
                 */
                set: function (position) {
                    this._start = this.getPosition(position);
                    this.updateThumb();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "end", {
                /**
                 * @return {number} Position (0-1)
                 */
                get: function () {
                    return Math.max(this.getPosition(this._start), this.getPosition(this._end));
                },
                /**
                 * Relative position (0-1) of the end grip.
                 *
                 * @param {number}  position  Position (0-1)
                 */
                set: function (position) {
                    if (!this._isBusy) {
                        this.__end = position;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "__end", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this._end;
                },
                /**
                 * [__end description]
                 *
                 * @todo Description
                 * @param {number} position [description]
                 */
                set: function (position) {
                    this._end = this.getPosition(position);
                    this.updateThumb();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "range", {
                /**
                 * Current selection range.
                 *
                 * @readonly
                 * @return {IRange} Range
                 */
                get: function () {
                    return { start: this.start, end: this.end, priority: this._usingGrip };
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Disables range change events.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.skipRangeEvents = function () {
                if (!this._isBusy) {
                    this._skipRangeEvents = true;
                }
            };
            /**
             * [fixRange description]
             *
             * @todo Description
             * @ignore Exclude from docs
             * @param {IRange}  range  Range
             */
            Scrollbar.prototype.fixRange = function (range) {
                if (range.start != _utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](this._start, 2) || range.end != _utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](this._end, 2)) {
                    this._start = range.start;
                    this._end = range.end;
                    this._skipRangeEvents = true;
                    this.updateThumb();
                    this._skipRangeEvents = false;
                    this.thumb.validate();
                }
            };
            /**
             * [getPosition description]
             *
             * @todo Description
             * @param  {number}  position  [description]
             * @return {number}            [description]
             */
            Scrollbar.prototype.getPosition = function (position) {
                return _utils_Math__WEBPACK_IMPORTED_MODULE_11__["fitToRange"](_utils_Math__WEBPACK_IMPORTED_MODULE_11__["round"](position, 4), 0, 1);
            };
            Object.defineProperty(Scrollbar.prototype, "orientation", {
                /**
                 * @return {Orientation} Orientation
                 */
                get: function () {
                    return this._orientation;
                },
                /**
                 * ==========================================================================
                 * MISC
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Orientation of the scrollbar.
                 *
                 * Available options: "horizontal" (default) and "vertical".
                 *
                 * @default "horizontal"
                 * @param {Orientation}  value  Orientation
                 */
                set: function (value) {
                    this._orientation = value;
                    // Set mouse cursors and screen reader tetxt accordingly
                    if (value === "horizontal") {
                        // Mouse styles
                        this.startGrip.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].horizontalResize;
                        this.endGrip.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].horizontalResize;
                        // Reader text
                        /*this.readerTitle = this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection");
                        this.thumb.readerDescription = this.language.translate("Use left and right arrows to move selection");
                        this.startGrip.readerDescription = this.language.translate("Use left and right arrows to move left selection");
                        this.endGrip.readerDescription = this.language.translate("Use left and right arrows to move right selection");*/
                    }
                    else {
                        // Mouse styles
                        this.startGrip.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].verticalResize;
                        this.endGrip.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].verticalResize;
                        // Reader text
                        /*this.readerTitle = this.language.translate("Use TAB select grip buttons or up and down arrows to change selection");
                        this.thumb.readerDescription = this.language.translate("Use up and down arrows to move selection");
                        this.startGrip.readerDescription = this.language.translate("Use up and down arrows to move upper selection");
                        this.endGrip.readerDescription = this.language.translate("Use up and down arrows to move lower selection");*/
                    }
                    this.updateByOrientation();
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            Scrollbar.prototype.updateByOrientation = function () {
            };
            Object.defineProperty(Scrollbar.prototype, "startGrip", {
                /**
                 * @return {ResizeButton} Grip element
                 */
                get: function () {
                    return this._startGrip;
                },
                /**
                 * ==========================================================================
                 * GRIPS
                 * ==========================================================================
                 * @hidden
                 */
                /**
                 * Start grip element. (button)
                 *
                 * @param {ResizeButton}  button  Grip element
                 */
                set: function (button) {
                    if (this._startGrip) {
                        this.removeDispose(this._startGrip);
                    }
                    this._startGrip = button;
                    this.processGrip(button);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "endGrip", {
                /**
                 * @return {ResizeButton} Grip element
                 */
                get: function () {
                    return this._endGrip;
                },
                /**
                 * End grip element. (button)
                 *
                 * @param {ResizeButton}  button  Grip element
                 */
                set: function (button) {
                    if (this._endGrip) {
                        this.removeDispose(this._endGrip);
                    }
                    this._endGrip = button;
                    this.processGrip(button);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates the grip button with properties and events.
             *
             * @ignore Exclude from docs
             * @param {ResizeButton} button Grip button
             */
            Scrollbar.prototype.processGrip = function (button) {
                button.parent = this;
                button.isMeasured = false;
                button.focusable = true;
                // Set button defaults
                button.showSystemTooltip = true;
                button.zIndex = 100;
                button.events.on("drag", this.handleGripDrag, this);
                button.events.on("dragstop", this.makeUnbusy, this);
                button.events.on("down", this.makeBusy, this);
                this._disposers.push(button);
            };
            /**
             * Updates positions of related elements after grip element is dragged.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<ResizeButton, ISpriteEvents>["drag"]}  event  Event
             */
            Scrollbar.prototype.handleGripDrag = function (event) {
                this.makeBusy();
                if (event.target === this._startGrip) {
                    this._usingGrip = "start";
                }
                else {
                    this._usingGrip = "end";
                }
                if (this.orientation == "horizontal") {
                    this._start = this.startGrip.pixelX / this.innerWidth;
                    this._end = this.endGrip.pixelX / this.innerWidth;
                }
                else {
                    this._start = 1 - this.startGrip.pixelY / this.innerHeight;
                    this._end = 1 - this.endGrip.pixelY / this.innerHeight;
                }
                this.updateThumb();
            };
            Object.defineProperty(Scrollbar.prototype, "thumb", {
                /**
                 * @return {RoundedRectangle} Thumb element
                 */
                get: function () {
                    if (!this._thumb) {
                        // Create scrollbar controls (setters will handle adding disposers)
                        var thumb = new _elements_Button__WEBPACK_IMPORTED_MODULE_3__["Button"]();
                        thumb.background.cornerRadius(10, 10, 10, 10);
                        thumb.padding(0, 0, 0, 0);
                        this.thumb = thumb;
                    }
                    return this._thumb;
                },
                /**
                 * A "thumb" element.
                 *
                 * It's a draggable square space between the grips, that can be used to
                 * pan the seleciton.
                 *
                 * @param {RoundedRectangle}  thumb  Thumb element
                 */
                set: function (thumb) {
                    var _this = this;
                    if (thumb) {
                        if (this._thumb) {
                            this.removeDispose(this._thumb);
                        }
                        this._thumb = thumb;
                        thumb.parent = this;
                        thumb.isMeasured = false;
                        thumb.inert = true;
                        thumb.draggable = true;
                        thumb.clickable = true;
                        thumb.hoverable = true;
                        thumb.focusable = true;
                        thumb.zIndex = 0;
                        // TODO remove closures ?
                        // Add events
                        // Add cursor styles to thumb
                        thumb.cursorOverStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].grab;
                        thumb.cursorDownStyle = _interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].grabbing;
                        thumb.events.on("dragstart", this.makeBusy, this);
                        thumb.events.on("dragstop", this.makeUnbusy, this);
                        thumb.events.on("positionchanged", this.handleThumbPosition, this);
                        thumb.events.on("sizechanged", this.handleThumbPosition, this);
                        thumb.events.on("doublehit", this.handleDoubleClick, this);
                        // Add event for space and ENTER to toggle full zoom out and back
                        // (same as doubleclick)
                        this._disposers.push(Object(_interaction_Interaction__WEBPACK_IMPORTED_MODULE_4__["getInteraction"])().body.events.on("keyup", function (ev) {
                            if (_utils_Keyboard__WEBPACK_IMPORTED_MODULE_8__["keyboard"].isKey(ev.event, ["space", "enter"]) && _this.thumb.isFocused) {
                                ev.event.preventDefault();
                                _this.handleDoubleClick();
                            }
                        }));
                        this._disposers.push(this._thumb);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Zooms-in and out the selection on double-click of the thumb.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.handleDoubleClick = function () {
                this.makeBusy();
                var newStart = 0;
                var newEnd = 1;
                if (this.start != 0 || this.end != 1) {
                    this._prevStart = this.start;
                    this._prevEnd = this.end;
                }
                else {
                    newStart = this._prevStart;
                    newEnd = this._prevEnd;
                }
                var zoomAnimation = this.animate([{ property: "__start", to: newStart }, { property: "__end", to: newEnd }], this.animationDuration, this.animationEasing);
                if (zoomAnimation && !zoomAnimation.isFinished()) {
                    zoomAnimation.events.on("animationended", this.makeUnbusy, this);
                    this._zoomAnimation = zoomAnimation;
                }
                else {
                    this.makeUnbusy();
                }
            };
            /**
             * Updates positions of other elements when thumb is moved.
             *
             * @ignore Exclude from docs
             */
            Scrollbar.prototype.handleThumbPosition = function () {
                var thumb = this.thumb;
                if (this.orientation == "horizontal") {
                    var innerWidth_2 = this.innerWidth;
                    var w = thumb.innerWidth;
                    var x = thumb.pixelX;
                    this._start = x / innerWidth_2;
                    this._end = (x + w) / innerWidth_2;
                    this.updateThumb();
                }
                else {
                    var innerHeight_2 = this.innerHeight;
                    var h = thumb.innerHeight;
                    var y = thumb.pixelY;
                    this._start = 1 - (y + h) / innerHeight_2;
                    this._end = 1 - y / innerHeight_2;
                    this.updateThumb();
                }
            };
            /**
             * Creates a background element for the scrollbar.
             *
             * @ignore Exclude from docs
             * @return {RoundedRectangle} Background
             */
            Scrollbar.prototype.createBackground = function () {
                return new _elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_6__["RoundedRectangle"]();
            };
            Object.defineProperty(Scrollbar.prototype, "hideGrips", {
                /**
                 * @return {boolean} Show only on hover?
                 */
                get: function () {
                    return this._hideGrips;
                },
                /**
                 * Use this property to set whether grips should be always visible (`false`),
                 * or they should just appear on scrollbar hover (`true`).
                 *
                 * @param {boolean}  value  Show only on hover?
                 */
                set: function (value) {
                    var _this = this;
                    this._hideGrips = value;
                    if (this._overDisposer) {
                        this.removeDispose(this._overDisposer);
                    }
                    if (this._outDisposer) {
                        this.removeDispose(this._outDisposer);
                    }
                    if (value) {
                        this._overDisposer = this.events.on("over", function () {
                            _this.startGrip.show();
                            _this.endGrip.show();
                        });
                        this._outDisposer = this.events.on("out", function () {
                            _this.startGrip.hide();
                            _this.endGrip.hide();
                        });
                        this.startGrip.hide();
                        this.endGrip.hide();
                    }
                    else {
                        this.startGrip.show();
                        this.endGrip.show();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "animationDuration", {
                /**
                 * @return {PointerOrientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("animationDuration");
                },
                /**
                 * Duration in milliseconds of scrollbar animation (happens when user clicks on a background of a scrollbar)
                 * @default 0
                 * @param {number} value number
                 */
                set: function (value) {
                    this.setPropertyValue("animationDuration", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Scrollbar.prototype, "animationEasing", {
                /**
                 * @return {Function}
                 */
                get: function () {
                    return this.getPropertyValue("animationEasing");
                },
                /**
                 * Animation easing function.
                 * @todo: review description and default
                 * @default $ease.cubicOut
                 * @param {Function}  value (value: number) => number
                 */
                set: function (value) {
                    this.setPropertyValue("animationEasing", value);
                },
                enumerable: true,
                configurable: true
            });
            return Scrollbar;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_7__["registry"].registeredClasses["Scrollbar"] = Scrollbar;
        //# sourceMappingURL=Scrollbar.js.map
        /***/ 
    }),
    /* 880 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Slider", function () { return Slider; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(879);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Slider is a scrollbar with just one selection grip.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a slider - a version of scrollbar with just one grip.
         *
         * @see {@link ISliderEvents} for a list of available events
         * @see {@link ISliderAdapters} for a list of available Adapters
         */
        var Slider = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Slider, _super);
            /**
             * Constructor
             */
            function Slider() {
                var _this = _super.call(this) || this;
                _this.className = "Slider";
                _this.thumb.opacity = 0;
                _this.thumb.interactionsEnabled = false;
                _this.endGrip.opacity = 0;
                _this.endGrip.interactionsEnabled = false;
                _this.startGrip.events.on("drag", function () {
                    _this.endGrip.x = _this.startGrip.x;
                    _this.endGrip.y = _this.startGrip.y;
                });
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(Slider.prototype, "__end", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this._start;
                },
                set: function (value) {
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slider.prototype, "end", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this._start;
                },
                /**
                 * Relative position (0-1) of the end grip.
                 *
                 * @param {number}  position  Position (0-1)
                 */
                set: function (position) {
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slider.prototype, "start", {
                /**
                 * @return {number} Position (0-1)
                 */
                get: function () {
                    return this._start;
                },
                /**
                 * Relative position (0-1) of the start grip.
                 *
                 * @param {number}  position  Position (0-1)
                 */
                set: function (position) {
                    if (!this._isBusy) {
                        this.__start = position;
                    }
                },
                enumerable: true,
                configurable: true
            });
            return Slider;
        }(_core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_1__["Scrollbar"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Slider"] = Slider;
        //# sourceMappingURL=Slider.js.map
        /***/ 
    }),
    /* 881 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLink", function () { return TextLink; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(845);
        /* harmony import */ var _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(803);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(800);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /**
         * A module that defines Text element used to indicate links.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a text element with a link.
         *
         * @see {@link ITextLinkEvents} for a list of available events
         * @see {@link ITextLinkAdapters} for a list of available Adapters
         */
        var TextLink = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLink, _super);
            /**
             * Constructor
             */
            function TextLink() {
                var _this = _super.call(this) || this;
                _this.className = "TextLink";
                _this.selectable = true;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_3__["InterfaceColorSet"]();
                _this.fill = interfaceColors.getFor("primaryButton").brighten(0.3);
                var hoverState = _this.states.create("hover");
                hoverState.properties.fill = interfaceColors.getFor("primaryButtonHover").brighten(0.3);
                var downState = _this.states.create("down");
                downState.properties.fill = interfaceColors.getFor("primaryButtonDown").brighten(0.3);
                _this.cursorOverStyle = _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_2__["MouseCursorStyle"].pointer;
                _this.applyTheme();
                return _this;
            }
            return TextLink;
        }(_core_elements_Label__WEBPACK_IMPORTED_MODULE_1__["Label"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["TextLink"] = TextLink;
        //# sourceMappingURL=TextLink.js.map
        /***/ 
    }),
    /* 882 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function () { return Tooltip; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _PointedRectangle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(869);
        /* harmony import */ var _elements_Label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(845);
        /* harmony import */ var _utils_Animation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(785);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(774);
        /* harmony import */ var _rendering_filters_DropShadowFilter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(883);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _utils_Ease__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(787);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(795);
        /**
         * Provides functionality used to creating and showing tooltips (balloons).
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Tooltip displays text and/or multimedia information in a balloon over chart
         * area.
         * @see {@link ITooltipEvents} for a list of available events
         * @see {@link ITooltipAdapters} for a list of available Adapters
         */
        var Tooltip = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Tooltip, _super);
            /**
             * Constructor
             */
            function Tooltip() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Holds numeric boundary values. Calculated from the `boundingContainer`.
                 *
                 * @type {IRectangle}
                 */
                _this._boundingRect = { x: -40000, y: -40000, width: 80000, height: 80000 };
                /**
                 * Coordinates tooltip's pointer (stem) should point to.
                 *
                 * @type {IPoint}
                 */
                _this._pointTo = { x: 0, y: 0 };
                /**
                 * If set to `true` the pointer/stem of the Tooltip will not go outside
                 * Tooltip's width or height depending on pointer's orientation.
                 *
                 * @default false
                 * @type {boolean}
                 */
                _this.fitPointerToBounds = false;
                /**
                 * If tooltipOrientation is vertical, it can be drawn below or above point. We need to know this when solving overlapping
                 *
                 * @type "up" | "down"
                 */
                _this._verticalOrientation = "up";
                _this.className = "Tooltip";
                _this.isMeasured = false;
                _this.getFillFromObject = true;
                _this.margin(5, 5, 5, 5);
                _this.defaultState.transitionDuration = 1;
                _this.hiddenState.transitionDuration = 1;
                // Create chrome/background
                var background = _this.background;
                background.interactionsEnabled = false;
                background.fillOpacity = 0.9;
                background.strokeWidth = 1;
                background.strokeOpacity = 1;
                background.stroke = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_5__["color"])("#ffffff");
                background.cornerRadius = 3;
                background.pointerLength = 6;
                background.pointerBaseWidth = 10;
                _this.autoTextColor = true;
                // Create text element
                var label = _this.createChild(_elements_Label__WEBPACK_IMPORTED_MODULE_3__["Label"]);
                label.shouldClone = false;
                _this.label = label;
                label.padding(7, 12, 6, 12);
                label.interactionsEnabled = false;
                label.horizontalCenter = "middle";
                label.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_5__["color"])("#ffffff");
                _this._disposers.push(label);
                _this.label.events.on("sizechanged", _this.drawBackground, _this);
                _this.label.zIndex = 1; // @todo remove this line when bg sorting is solved
                // Set defaults
                _this.pointerOrientation = "vertical";
                var dropShadow = new _rendering_filters_DropShadowFilter__WEBPACK_IMPORTED_MODULE_6__["DropShadowFilter"]();
                dropShadow.dy = 1;
                dropShadow.dx = 1;
                dropShadow.opacity = 0.5;
                _this.filters.push(dropShadow);
                _this.animationDuration = 0;
                _this.animationEasing = _utils_Ease__WEBPACK_IMPORTED_MODULE_8__["cubicOut"];
                // Set accessibility options
                _this.role = "tooltip";
                _this.visible = false;
                _this.opacity = 0;
                _this.x = 0;
                _this.y = 0;
                _this.events.on("visibilitychanged", _this.handleVisibility, _this);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Tooltip.prototype.handleVisibility = function () {
                if (this.visible) {
                    this.label.invalidate();
                }
            };
            Object.defineProperty(Tooltip.prototype, "getStrokeFromObject", {
                /**
                 * Specifies if tooltip background should get stroke color from the sprite it is pointing to.
                 *
                 * @return {boolean}
                 * @default false
                 */
                get: function () {
                    return this.getPropertyValue("getStrokeFromObject");
                },
                /**
                 * Specifies if tooltip background should get stroke color from the sprite it is pointing to.
                 *
                 * @param {value} value boolean
                 */
                set: function (value) {
                    this.setPropertyValue("getStrokeFromObject", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "autoTextColor", {
                /**
                 * @return {boolean}
                 * @default true
                 */
                get: function () {
                    return this.getPropertyValue("autoTextColor");
                },
                /**
                 * Specifies if text color should be chosen automatically for a better
                 * readability.
                 *
                 * IMPORTANT: this feature is generally ignored, if `getFillFromObject = false`.
                 *
                 * If inheriting of `fill` color from object tooltip is displayed for is
                 * disabled, this feature will not work. If you are explicitly setting a
                 * color for tooltip background, you may set a color for its label as well
                 * using `tooltip.label.fill` property.
                 *
                 *
                 * @param {value} value boolean
                 */
                set: function (value) {
                    this.setPropertyValue("autoTextColor", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "getFillFromObject", {
                /**
                 * Specifies if tooltip background should get fill color from the sprite it is pointing to.
                 *
                 * @return {boolean}
                 * @default true
                 */
                get: function () {
                    return this.getPropertyValue("getFillFromObject");
                },
                /**
                 * @param {value} value boolean
                 */
                set: function (value) {
                    this.setPropertyValue("getFillFromObject", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and returns a background element.
             *
             * @ignore Exclude from docs
             * @return {PointedRectangle} Background
             */
            Tooltip.prototype.createBackground = function () {
                return new _PointedRectangle__WEBPACK_IMPORTED_MODULE_2__["PointedRectangle"]();
            };
            Object.defineProperty(Tooltip.prototype, "pointerOrientation", {
                /**
                 * @return {PointerOrientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("pointerOrientation");
                },
                /**
                 * Pointer orientation: "horizontal" or "vertical".
                 *
                 * @default "vertical"
                 * @param {PointerOrientation}  value  Orientation
                 */
                set: function (value) {
                    this.setPropertyValue("pointerOrientation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "animationDuration", {
                /**
                 * @return {PointerOrientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("animationDuration");
                },
                /**
                 * Duration in milliseconds for the animation to take place when the tooltip
                 * is moving from one place to another.
                 *
                 * @default 0
                 * @param {number}  value  number
                 */
                set: function (value) {
                    this.setPropertyValue("animationDuration", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "animationEasing", {
                /**
                 * @return {Function}
                 */
                get: function () {
                    return this.getPropertyValue("animationEasing");
                },
                /**
                 * Tooltip animation (moving from one place to another) easing function.
                 *
                 * @default $ease.cubicOut
                 * @param {Function}  value (value: number) => number
                 */
                set: function (value) {
                    this.setPropertyValue("animationEasing", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "html", {
                /**
                 * @return {string} HTML content
                 */
                get: function () {
                    return this.label.html;
                },
                /**
                 * HTML content for the Tooltip.
                 *
                 * Provided value will be used as is, without applying any further
                 * formatting to it.
                 *
                 * @param {string}  value  HTML content
                 */
                set: function (value) {
                    if (this.label.html != value) {
                        this.label.html = value;
                        this.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "text", {
                /**
                 * @return {string} SVG text
                 */
                get: function () {
                    return this.label.text;
                },
                /**
                 * SVG text content for the Tooltip.
                 *
                 * Text can have a number of formatting options supported by
                 * [[TextFormatter]].
                 *
                 * @param {string}  value  SVG text
                 */
                set: function (value) {
                    if (this.label.text != value) {
                        this.label.text = value;
                        this.invalidate();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates the Tooltip.
             *
             * @ignore Exclude from docs
             */
            Tooltip.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var label = this.label;
                if (label.invalid) {
                    label.validate();
                }
                var x = this._pointTo.x;
                var y = this._pointTo.y;
                var boundingRect = this._boundingRect;
                var textW = label.measuredWidth;
                var textH = label.measuredHeight;
                var pointerLength = this.background.pointerLength;
                var textX;
                var textY;
                // try to handle if text is wider than br
                if (textW > boundingRect.width) {
                    var p0 = _utils_Utils__WEBPACK_IMPORTED_MODULE_9__["spritePointToDocument"]({ x: boundingRect.x, y: boundingRect.y }, this.parent);
                    var p1 = _utils_Utils__WEBPACK_IMPORTED_MODULE_9__["spritePointToDocument"]({ x: boundingRect.x + boundingRect.width, y: boundingRect.y + boundingRect.height }, this.parent);
                    var documentWidth = document.body.offsetWidth;
                    var documentHeight = document.body.offsetHeight;
                    if (p1.x > documentWidth / 2) {
                        boundingRect.x = boundingRect.width - textW;
                    }
                    else {
                        boundingRect.width = boundingRect.x + textW;
                    }
                }
                // horizontal
                if (this.pointerOrientation == "horizontal") {
                    textY = -textH / 2;
                    if (x > boundingRect.x + boundingRect.width / 2) {
                        textX = -textW / 2 - pointerLength;
                    }
                    else {
                        textX = textW / 2 + pointerLength;
                    }
                }
                // vertical pointer
                else {
                    textX = _utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](0, boundingRect.x - x + textW / 2, boundingRect.x - x + boundingRect.width - textW / 2);
                    if (y > boundingRect.y + textH + pointerLength) {
                        textY = -textH - pointerLength;
                        this._verticalOrientation = "up";
                    }
                    else {
                        textY = pointerLength;
                        this._verticalOrientation = "down";
                    }
                }
                textY = _utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](textY, boundingRect.y - y, boundingRect.y + boundingRect.height - textH - y);
                label.x = textX;
                label.y = textY;
                this.drawBackground();
            };
            /**
             * Overrides functionality from the superclass.
             *
             * @ignore Exclude from docs
             */
            Tooltip.prototype.updateBackground = function () {
                this.group.addToBack(this.background.group);
            };
            /**
             * Draws Tooltip background (chrome, background and pointer/stem).
             *
             * @ignore Exclude from docs
             */
            Tooltip.prototype.drawBackground = function () {
                var label = this.label;
                var background = this.background;
                var textWidth = label.measuredWidth;
                var textHeight = label.measuredHeight;
                var boundingRect = this._boundingRect;
                var bgWidth = textWidth;
                var bgX = label.pixelX - textWidth / 2;
                var bgHeight = textHeight;
                var bgY = label.pixelY;
                var x = this._pointTo.x;
                var y = this._pointTo.y;
                var boundX1 = boundingRect.x - x;
                var boundX2 = boundX1 + boundingRect.width;
                var boundY1 = boundingRect.y - y;
                var boundY2 = boundY1 + boundingRect.height;
                background.x = bgX;
                background.y = bgY;
                background.width = bgWidth;
                background.height = bgHeight;
                if (this.fitPointerToBounds) {
                    background.pointerX = _utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](-background.x, boundX1 - background.x, boundX2 - background.x);
                    background.pointerY = _utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](-background.y, boundY1 - background.y, boundY2 - background.y);
                }
                else {
                    background.pointerX = -background.x;
                    background.pointerY = -background.y;
                }
                background.validate();
            };
            /**
             * Set nes tooltip's anchor point and moves whole tooltip.
             *
             * @param {number}  x  X coordinate
             * @param {number}  y  Y coordinate
             */
            Tooltip.prototype.pointTo = function (point, instantly) {
                if (this._pointTo.x != point.x || this._pointTo.y != point.y) {
                    this._pointTo = point;
                    this.invalidate();
                    // this helps to avoid strange animation from nowhere on initial show or when balloon was hidden already
                    if (!this.visible || instantly) {
                        this.moveTo(this._pointTo);
                        if (this._animation) {
                            this._animation.kill();
                        }
                    }
                    else {
                        // helps to avoid flicker on top/left corner
                        if (this.pixelX == 0 && this.pixelY == 0) {
                            this.moveTo(this._pointTo);
                        }
                        else {
                            if (this._animation) {
                                this._animation.kill();
                            }
                            this._animation = new _utils_Animation__WEBPACK_IMPORTED_MODULE_4__["Animation"](this, [{ property: "x", to: point.x, from: this.pixelX }, { property: "y", to: point.y, from: this.pixelY }], this.animationDuration, this.animationEasing).start();
                        }
                    }
                }
            };
            /**
             * Sets numeric boundaries Tooltip needs to obey (so it does not go outside
             * specific area).
             *
             * @ignore Exclude from docs
             * @param {IRectangle} rectangle Boundary rectangle
             */
            Tooltip.prototype.setBounds = function (rectangle) {
                var oldRect = this._boundingRect;
                if (oldRect.x != rectangle.x || oldRect.y != rectangle.y || oldRect.width != rectangle.width || oldRect.height != rectangle.height) {
                    this._boundingRect = rectangle;
                    this.invalidate();
                }
            };
            Object.defineProperty(Tooltip.prototype, "boundingContainer", {
                /**
                 * Sets a [[Container]] instance to be used when calculating numeric
                 * boundaries for the Tooltip.
                 *
                 * @ignore Exclude from docs
                 * @param {Container}  container  Boundary container
                 */
                set: function (container) {
                    this._boundingContainer = container;
                    // TODO remove closures ?
                    container.events.on("sizechanged", this.updateBounds, this);
                    container.events.on("positionchanged", this.updateBounds, this);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates numeric boundaries for the Tooltip, based on the
             * `boundingCountrainer`.
             */
            Tooltip.prototype.updateBounds = function () {
                var boundingContainer = this._boundingContainer;
                // to global
                var rect = _utils_Utils__WEBPACK_IMPORTED_MODULE_9__["spriteRectToSvg"]({
                    x: boundingContainer.pixelX,
                    y: boundingContainer.pixelY,
                    width: boundingContainer.maxWidth,
                    height: boundingContainer.maxHeight
                }, boundingContainer);
                this.setBounds(rect);
            };
            Object.defineProperty(Tooltip.prototype, "verticalOrientation", {
                /**
                 * If tooltipOrientation is vertical, it can be drawn below or above point.
                 * We need to know this when solving overlapping.
                 *
                 * @ignore Exclude from docs
                 * @return "up" | "down"
                 */
                get: function () {
                    return this._verticalOrientation;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Tooltip.prototype, "tooltip", {
                /**
                 * To avoid stackoverflow
                 * @ignore
                 */
                get: function () {
                    return undefined;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies properties and other attributes.
             *
             * @param {Tooltip}  source  Source
             */
            Tooltip.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.label.copyFrom(source.label);
            };
            return Tooltip;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=Tooltip.js.map
        /***/ 
    }),
    /* 883 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropShadowFilter", function () { return DropShadowFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Module for "Drop Shadow" filter.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creats a "Drop Shadow" filter.
         */
        var DropShadowFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DropShadowFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function DropShadowFilter() {
                var _this = _super.call(this) || this;
                _this.className = "DropShadowFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.color = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_2__["color"])("#000");
                _this.feGaussianBlur = _this.paper.add("feGaussianBlur");
                _this.feGaussianBlur.attr({ "result": "blurOut", "in": "SourceGraphic" });
                _this.filterPrimitives.push(_this.feGaussianBlur);
                _this.feOffset = _this.paper.add("feOffset");
                _this.feOffset.attr({ "result": "offsetBlur" });
                _this.filterPrimitives.push(_this.feOffset);
                _this.feFlood = _this.paper.add("feFlood");
                _this.feFlood.attr({ "flood-color": _this.color });
                _this.filterPrimitives.push(_this.feFlood);
                _this.feComposite = _this.paper.add("feComposite");
                _this.feComposite.attr({ "in2": "offsetBlur", operator: "in" });
                _this.filterPrimitives.push(_this.feComposite);
                _this.feMerge = _this.paper.addGroup("feMerge");
                _this.feMerge.add(_this.paper.add("feMergeNode"));
                _this.feMerge.add(_this.paper.add("feMergeNode").attr({ "in": "SourceGraphic" }));
                _this.filterPrimitives.push(_this.feMerge);
                // Set default properties
                _this.width = 200;
                _this.height = 200;
                _this.blur = 1.5;
                _this.dx = 3;
                _this.dy = 3;
                _this.opacity = 0.5;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(DropShadowFilter.prototype, "color", {
                /**
                 * @return {Color} Color
                 */
                get: function () {
                    return this.properties.color;
                },
                /**
                 * Shadow color.
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.properties.color = value;
                    if (this.feFlood) {
                        this.feFlood.attr({ "flood-color": value });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DropShadowFilter.prototype, "opacity", {
                /**
                 * @return {number} Opacity (0-1)
                 */
                get: function () {
                    return this.properties.opacity;
                },
                /**
                 * Opacity of the shadow. (0-1)
                 *
                 * @param {number}  value  Opacity (0-1)
                 */
                set: function (value) {
                    this.properties.opacity = value;
                    this.feFlood.attr({ "flood-opacity": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DropShadowFilter.prototype, "dx", {
                /**
                 * @return {number} Horizontal offset (px)
                 */
                get: function () {
                    return this.properties.dx;
                },
                /**
                 * Horizontal offset in pixels.
                 *
                 * @param {number}  value  Horizontal offset (px)
                 */
                set: function (value) {
                    this.properties.dx = value;
                    this.feOffset.attr({ "dx": value / this.scale });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DropShadowFilter.prototype, "dy", {
                /**
                 * @return {number} Vertical offset (px)
                 */
                get: function () {
                    return this.properties.dy;
                },
                /**
                 * Vertical offset in pixels.
                 *
                 * @param {number} value Vertical offset (px)
                 */
                set: function (value) {
                    this.properties.dy = value;
                    this.feOffset.attr({ "dy": value / this.scale });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DropShadowFilter.prototype, "blur", {
                /**
                 * @return {number} Blur
                 */
                get: function () {
                    return this.properties.blur;
                },
                /**
                 * Blur.
                 *
                 * @param {number}  value  Blur
                 */
                set: function (value) {
                    this.properties.blur = value;
                    this.feGaussianBlur.attr({ "stdDeviation": value / this.scale });
                },
                enumerable: true,
                configurable: true
            });
            /**
             * [updateScale description]
             *
             * @todo Description
             */
            DropShadowFilter.prototype.updateScale = function () {
                this.dx = this.dx;
                this.dy = this.dy;
                this.blur = this.blur;
            };
            return DropShadowFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["DropShadowFilter"] = DropShadowFilter;
        //# sourceMappingURL=DropShadowFilter.js.map
        /***/ 
    }),
    /* 884 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Trapezoid", function () { return Trapezoid; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(852);
        /**
         * Functionality for drawing a trapezoid.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to draw a Trapezoid.
         *
         * @see {@link ITrapezoidEvents} for a list of available events
         * @see {@link ITrapezoidAdapters} for a list of available Adapters
         */
        var Trapezoid = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Trapezoid, _super);
            /**
             * Constructor
             */
            function Trapezoid() {
                var _this = _super.call(this) || this;
                _this.className = "Trapezoid";
                _this.element = _this.paper.add("path");
                _this.topSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.bottomSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.leftSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.rightSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.isMeasured = false; // todo: add measureElement
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Trapezoid.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.pixelWidth;
                var h = this.pixelHeight;
                var ts = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.topSide, w);
                var bs = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.bottomSide, w);
                var ls = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.leftSide, h);
                var rs = _utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.rightSide, h);
                // 1----2
                // |    |
                // 4----3
                var x0 = (w - ts) / 2;
                var y0 = (h - ls) / 2;
                var x1 = w - (w - ts) / 2;
                var y1 = (h - rs) / 2;
                var x2 = w - (w - bs) / 2;
                var y2 = h - (h - rs) / 2;
                var x3 = (w - bs) / 2;
                var y3 = h - (h - ls) / 2;
                var mt = "";
                var mr = "";
                var mb = "";
                var ml = "";
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](this.horizontalNeck)) {
                    var hn = this.horizontalNeck.value;
                    mt = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: w * hn, y: Math.max(y0, y1) });
                    mb = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: w * hn, y: Math.min(y2, y3) });
                }
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](this.verticalNeck)) {
                    var vn = this.verticalNeck.value;
                    mr = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: Math.min(x1, x2), y: h * vn });
                    ml = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: Math.max(x0, x3), y: h * vn });
                }
                var path = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["moveTo"]({ x: x0, y: y0 })
                    + mt
                    + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: x1, y: y1 })
                    + mr
                    + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: x2, y: y2 })
                    + mb
                    + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"]({ x: x3, y: y3 })
                    + ml;
                this.path = path;
            };
            Object.defineProperty(Trapezoid.prototype, "topSide", {
                /**
                 * @return {number} Width
                 */
                get: function () {
                    return this.getPropertyValue("topSide");
                },
                /**
                 * Wdith of the top side. Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(100)
                 * @param {number | Percent}  value  Width
                 */
                set: function (value) {
                    this.setPercentProperty("topSide", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Trapezoid.prototype, "bottomSide", {
                /**
                 * @return {number} Width
                 */
                get: function () {
                    return this.getPropertyValue("bottomSide");
                },
                /**
                 * Wdith of the bottom side. Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(100)
                 * @param {number | Percent}  value  Width
                 */
                set: function (value) {
                    this.setPercentProperty("bottomSide", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Trapezoid.prototype, "leftSide", {
                /**
                 * @return {number} Height
                 */
                get: function () {
                    return this.getPropertyValue("leftSide");
                },
                /**
                 * Height of the left side. Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(100)
                 * @param {number | Percent}  value  Height
                 */
                set: function (value) {
                    this.setPercentProperty("leftSide", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Trapezoid.prototype, "rightSide", {
                /**
                 * @return {number} Height
                 */
                get: function () {
                    return this.getPropertyValue("rightSide");
                },
                /**
                 * Height of the right side. Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(100)
                 * @param {number | Percent}  value  Height
                 */
                set: function (value) {
                    this.setPercentProperty("rightSide", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Trapezoid.prototype, "horizontalNeck", {
                /**
                 * @return {Percent} Horizontal neck position
                 */
                get: function () {
                    return this.getPropertyValue("horizontalNeck");
                },
                /**
                 * A relative vertical position of the "neck". If the top and bottom sides
                 * are of different width, and `horizontalNeck` is set, a choke point
                 * will be created at that position, creating a funnel shape.
                 *
                 * @param {Percent}  value  Horizontal neck position
                 */
                set: function (value) {
                    this.setPropertyValue("horizontalNeck", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Trapezoid.prototype, "verticalNeck", {
                /**
                 * @return {Percent} Vertical neck position
                 */
                get: function () {
                    return this.getPropertyValue("verticalNeck");
                },
                /**
                 * A relative horizontal position of the "neck". If the left and right sides
                 * are of different height, and `verticalNeck` is set, a choke point
                 * will be created at that position, creating a funnel shape.
                 *
                 * @param {Percent}  value  Vertical neck position
                 */
                set: function (value) {
                    this.setPropertyValue("verticalNeck", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Trapezoid;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Trapezoid"] = Trapezoid;
        //# sourceMappingURL=Trapezoid.js.map
        /***/ 
    }),
    /* 885 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triangle", function () { return Triangle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /**
         * Functionality for drawing triangles.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to draw a triangle.
         *
         * @see {@link ITriangleEvents} for a list of available events
         * @see {@link ITriangleAdapters} for a list of available Adapters
         */
        var Triangle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Triangle, _super);
            /**
             * Constructor
             */
            function Triangle() {
                var _this = _super.call(this) || this;
                _this.className = "Triangle";
                _this.element = _this.paper.add("path");
                _this.direction = "top";
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Triangle.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.pixelWidth;
                var h = this.pixelHeight;
                var path;
                switch (this.direction) {
                    case "right":
                        path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: 0, y: 0 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w, y: h / 2 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: 0, y: h })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                        break;
                    case "left":
                        path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: w, y: 0 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: 0, y: h / 2 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w, y: h })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                        break;
                    case "bottom":
                        path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: 0, y: 0 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w, y: 0 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w / 2, y: h })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                        break;
                    case "top":
                        path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: w / 2, y: 0 })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w, y: h })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: 0, y: h })
                            + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                        break;
                }
                this.path = path;
            };
            Object.defineProperty(Triangle.prototype, "direction", {
                /**
                 * Returns direction of a triangle
                 *
                 * @return {"left" | "right" | "top" | "bottom"} value
                 */
                get: function () {
                    return this.getPropertyValue("direction");
                },
                /**
                 * Sets direction of a triangle
                 *
                 * @param {"left" | "right" | "top" | "bottom"} value
                 */
                set: function (value) {
                    this.setPropertyValue("direction", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Triangle;
        }(_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Triangle"] = Triangle;
        //# sourceMappingURL=Triangle.js.map
        /***/ 
    }),
    /* 886 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WavedCircle", function () { return WavedCircle; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(866);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _utils_Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(795);
        /* harmony import */ var _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(851);
        /**
         * Functionality for drawing waved circles.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a waved circle.
         *
         * @see {@link IWavedCircleEvents} for a list of available events
         * @see {@link IWavedCircleAdapters} for a list of available Adapters
         */
        var WavedCircle = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](WavedCircle, _super);
            /**
             * Constructor
             */
            function WavedCircle() {
                var _this = _super.call(this) || this;
                _this.className = "WavedCircle";
                _this.element = _this.paper.add("path");
                _this.waveLength = 16;
                _this.waveHeight = 4;
                _this.fill = undefined;
                _this.fillOpacity = 0;
                _this.tension = 0.8;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the waved line.
             *
             * @ignore Exclude from docs
             */
            WavedCircle.prototype.draw = function () {
                var path = "";
                var radius = this.pixelRadius;
                if (radius > 0) {
                    var points = this.getPoints(radius);
                    path = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]) + new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__["Tension"](this.tension, this.tension).smooth(points);
                }
                var innerRadius = this.pixelInnerRadius;
                if (innerRadius > 0) {
                    var points = this.getPoints(innerRadius);
                    points.reverse();
                    path += _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]) + new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__["Tension"](this.tension, this.tension).smooth(points);
                }
                this.path = path;
            };
            /**
             * Returns points that circle consists of.
             *
             * @param  {number}    radius  Radius (px)
             * @return {IPoint[]}          Points
             */
            WavedCircle.prototype.getPoints = function (radius) {
                var circleLength = radius * Math.PI * 2;
                var halfWaveHeight = this.waveHeight / 2;
                var waveLength = circleLength / Math.round(circleLength / this.waveLength);
                var halfWaveLength = waveLength / 2;
                var points = [];
                var count = circleLength / waveLength;
                for (var i = 0; i <= count; i++) {
                    var angle1 = (i * waveLength) / circleLength * 360;
                    var angle2 = (i * waveLength + halfWaveLength) / circleLength * 360;
                    points.push({ x: (radius - halfWaveHeight) * _utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](angle1), y: (radius - halfWaveHeight) * _utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](angle1) });
                    points.push({ x: (radius + halfWaveHeight) * _utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](angle2), y: (radius + halfWaveHeight) * _utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](angle2) });
                }
                points.pop();
                return points;
            };
            Object.defineProperty(WavedCircle.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the circle in pixels (absolute) or [[Percent]] (relative).
                 *
                 * @param {number | Percent}  value  Inner radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedCircle.prototype, "pixelInnerRadius", {
                /**
                 * Calculated inner radius of the circle in pixels.
                 *
                 * @readonly
                 * @return {number} Inner radius (px)
                 */
                get: function () {
                    return _utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.innerRadius, _utils_Math__WEBPACK_IMPORTED_MODULE_4__["min"](this.innerWidth / 2, this.innerHeight / 2));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedCircle.prototype, "waveLength", {
                /**
                 * @return {number} Wave length (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveLength");
                },
                /**
                 * Wave length in pixels.
                 *
                 * @default 16
                 * @param {number}  value  Wave length (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveLength", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedCircle.prototype, "waveHeight", {
                /**
                 * @return {number} Wave height (px)
                 */
                get: function () {
                    return this.getPropertyValue("waveHeight");
                },
                /**
                 * Wave height in pixels.
                 *
                 * @default 4
                 * @param {number}  value  Wave height (px)
                 */
                set: function (value) {
                    this.setPropertyValue("waveHeight", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(WavedCircle.prototype, "tension", {
                /**
                 * @return {number} Tension
                 */
                get: function () {
                    return this.getPropertyValue("tension");
                },
                /**
                 * Tension of the wave.
                 *
                 * @default 0.8
                 * @param {number}  value  Tension
                 */
                set: function (value) {
                    this.setPropertyValue("tension", value);
                    this.invalidate();
                },
                enumerable: true,
                configurable: true
            });
            return WavedCircle;
        }(_Circle__WEBPACK_IMPORTED_MODULE_1__["Circle"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["WavedCircle"] = WavedCircle;
        //# sourceMappingURL=WavedCircle.js.map
        /***/ 
    }),
    /* 887 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZoomOutButton", function () { return ZoomOutButton; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(865);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /**
         * Zoom out button functionality.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a zoom out button.
         *
         * @see {@link IZoomOutButtonEvents} for a list of available events
         * @see {@link IZoomOutButtonAdapters} for a list of available Adapters
         */
        var ZoomOutButton = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ZoomOutButton, _super);
            /**
             * Constructor
             */
            function ZoomOutButton() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "ZoomOutButton";
                _this.padding(9, 9, 9, 9);
                //this.dx = - 5;
                //this.dy = 5;
                _this.showSystemTooltip = true;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                var background = _this.background;
                background.cornerRadius(20, 20, 20, 20);
                background.fill = interfaceColors.getFor("primaryButton");
                background.stroke = interfaceColors.getFor("primaryButtonStroke");
                background.strokeOpacity = 0;
                background.states.getKey("hover").properties.fill = interfaceColors.getFor("primaryButtonHover");
                background.states.getKey("down").properties.fill = interfaceColors.getFor("primaryButtonActive");
                // Create an icon
                var icon = new _Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]();
                icon.element = _this.paper.add("path");
                var path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"]({ x: 0, y: 0 });
                path += _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"]({ x: 11, y: 0 });
                icon.path = path;
                icon.pixelPerfect = true;
                icon.padding(8, 3, 8, 3);
                icon.stroke = interfaceColors.getFor("primaryButtonText");
                _this.icon = icon;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            ZoomOutButton.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Zoom Out");
                }
            };
            return ZoomOutButton;
        }(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ZoomOutButton"] = ZoomOutButton;
        //# sourceMappingURL=ZoomOutButton.js.map
        /***/ 
    }),
    /* 888 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlayButton", function () { return PlayButton; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(865);
        /* harmony import */ var _RoundedRectangle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(862);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _Triangle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(885);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /**
         * Play button functionality.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a zoom out button.
         *
         * @see {@link IPlayButtonEvents} for a list of available events
         * @see {@link IPlayButtonAdapters} for a list of available Adapters
         */
        var PlayButton = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PlayButton, _super);
            /**
             * Constructor
             */
            function PlayButton() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "PlayButton";
                _this.padding(12, 12, 12, 12);
                _this.showSystemTooltip = true;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                var background = _this.background;
                background.cornerRadius(25, 25, 25, 25);
                background.fill = interfaceColors.getFor("primaryButton");
                background.stroke = interfaceColors.getFor("primaryButtonStroke");
                background.strokeOpacity = 0;
                background.states.getKey("hover").properties.fill = interfaceColors.getFor("primaryButtonHover");
                background.states.getKey("down").properties.fill = interfaceColors.getFor("primaryButtonActive");
                // Create a play icon
                var playIcon = new _Triangle__WEBPACK_IMPORTED_MODULE_5__["Triangle"]();
                playIcon.direction = "right";
                playIcon.width = 9;
                playIcon.height = 11;
                playIcon.marginLeft = 1;
                playIcon.marginRight = 1;
                playIcon.horizontalCenter = "middle";
                playIcon.verticalCenter = "middle";
                playIcon.stroke = interfaceColors.getFor("primaryButtonText");
                playIcon.fill = playIcon.stroke;
                _this.icon = playIcon;
                // Create a play icon
                var stopIcon = new _RoundedRectangle__WEBPACK_IMPORTED_MODULE_2__["RoundedRectangle"]();
                stopIcon.width = 11;
                stopIcon.height = 11;
                stopIcon.horizontalCenter = "middle";
                stopIcon.verticalCenter = "middle";
                stopIcon.cornerRadius(0, 0, 0, 0);
                stopIcon.stroke = interfaceColors.getFor("primaryButtonText");
                stopIcon.fill = playIcon.stroke;
                _this.togglable = true;
                var activeState = _this.states.create("active");
                activeState.transitionDuration = 0;
                activeState.properties.icon = stopIcon;
                _this.defaultState.transitionDuration = 0;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            PlayButton.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Play");
                }
            };
            return PlayButton;
        }(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PlayButton"] = PlayButton;
        //# sourceMappingURL=PlayButton.js.map
        /***/ 
    }),
    /* 889 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cone", function () { return Cone; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _elements_Ellipse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(867);
        /* harmony import */ var _rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(890);
        /* harmony import */ var _utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _utils_Object__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(761);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(852);
        /**
         * Cone module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Builds a round cone/cylinder.
         *
         * @see {@link IConeEvents} for a list of available events
         * @see {@link IConeAdapters} for a list of available Adapters
         */
        var Cone = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Cone, _super);
            /**
             * Constructor
             */
            function Cone() {
                var _this = _super.call(this) || this;
                _this.className = "Cone";
                _this.angle = 30;
                _this.radius = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.topRadius = Object(_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.top = _this.createChild(_elements_Ellipse__WEBPACK_IMPORTED_MODULE_3__["Ellipse"]);
                _this.top.shouldClone = false;
                _this.bottom = _this.createChild(_elements_Ellipse__WEBPACK_IMPORTED_MODULE_3__["Ellipse"]);
                _this.bottom.shouldClone = false;
                _this.body = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.body.shouldClone = false;
                _this.body.setElement(_this.paper.add("path"));
                _this.layout = "none";
                _this.bodyFillModifier = new _rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_4__["LinearGradientModifier"]();
                _this.bodyFillModifier.lightnesses = [0, -0.25, 0];
                _this.body.fillModifier = _this.bodyFillModifier;
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Cone.prototype.draw = function () {
                _super.prototype.draw.call(this);
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["copyProperties"](this, this.top, _Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["copyProperties"](this, this.bottom, _Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                _utils_Object__WEBPACK_IMPORTED_MODULE_6__["copyProperties"](this, this.body, _Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                var w = this.innerWidth;
                var h = this.innerHeight;
                var bottom = this.bottom;
                var top = this.top;
                var angle = this.angle;
                var radiusBase;
                var dx;
                var dy;
                if (this.orientation == "horizontal") {
                    radiusBase = h / 2;
                    bottom.y = h / 2;
                    top.y = h / 2;
                    top.x = w;
                    dx = (90 - angle) / 90;
                    dy = 0;
                    this.bodyFillModifier.gradient.rotation = 90;
                }
                else {
                    dx = 0;
                    dy = (90 - angle) / 90;
                    radiusBase = w / 2;
                    bottom.y = h;
                    bottom.x = w / 2;
                    top.x = w / 2;
                    this.bodyFillModifier.gradient.rotation = 0;
                }
                var radius = this.radius.value * radiusBase;
                var topRadius = this.topRadius.value * radiusBase;
                bottom.radius = radius - radius * dx;
                bottom.radiusY = radius - radius * dy;
                top.radius = topRadius - topRadius * dx;
                top.radiusY = topRadius - topRadius * dy;
                var path;
                if (this.orientation == "horizontal") {
                    path = _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: 0, y: h / 2 - bottom.radiusY }) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["arcTo"](-90, -180, bottom.radius, bottom.radiusY) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: w, y: h / 2 + top.radiusY }) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["arcTo"](90, 180, top.radius, top.radiusY) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["closePath"]();
                }
                else {
                    path = _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["moveTo"]({ x: w / 2 - top.radius, y: 0 }) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["arcTo"](180, -180, top.radius, top.radiusY) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["lineTo"]({ x: w / 2 + bottom.radius, y: h }) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["arcTo"](0, 180, bottom.radius, bottom.radiusY) + _rendering_Path__WEBPACK_IMPORTED_MODULE_7__["closePath"]();
                }
                this.body.path = path;
            };
            Object.defineProperty(Cone.prototype, "angle", {
                /**
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * Angle of the point of view to the 3D element. (0-360)
                 *
                 * @default 30
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Cone.prototype, "radius", {
                /**
                 * @return {Percent} Bottom radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * A relative radius of the cone's bottom (base).
                 *
                 * It is relevant to the inner width or height of the element.
                 *
                 * @default Percent(100)
                 * @param {Percent}  value  Bottom radius
                 */
                set: function (value) {
                    this.setPropertyValue("radius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Cone.prototype, "topRadius", {
                /**
                 * @return {Percent} Top radius
                 */
                get: function () {
                    return this.getPropertyValue("topRadius");
                },
                /**
                 * A relative radius of the cone's top (tip).
                 *
                 * It is relevant to the inner width or height of the element.
                 *
                 * @default Percent(0)
                 * @param {Percent}  value  Top radius
                 */
                set: function (value) {
                    this.setPropertyValue("topRadius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Cone.prototype, "orientation", {
                /**
                 * @type {Orientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                 * Orientation of the cone
                 *
                 * @default "vertical"
                 * @param {Orientation}  value  Orientation
                 */
                set: function (value) {
                    this.setPropertyValue("orientation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Cone;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=Cone.js.map
        /***/ 
    }),
    /* 890 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinearGradientModifier", function () { return LinearGradientModifier; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _LinearGradient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(801);
        /* harmony import */ var _GradientModifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(891);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class can be used to modify linear gradient steps, changing visual
         * properties like lightness, brightness, opacity of each set.
         *
         * It can also set offsets for each gradient step.
         *
         * E.g. if I want to fill a columns in a column series to be a solid fill from
         * top to 80% of height, then gradually fades out, I can use the following
         * gradient modifier as a `fillModifier`:
         *
         * ```TypeScript
         * let fillModifier = new am4core.LinearGradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JavaScript
         * var fillModifier = new am4core.LinearGradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JSON
         * "series": [{
         *   "type": "ColumnSeries",
         *   "columns": {
         *     "fillModifier": {
         *       "type": "LinearGradientModifier",
         *       "opacities": [1, 1, 0],
         *       "offsets": [0, 0.8, 1]
         *     }
         *   }
         * }]
         * ```
         */
        var LinearGradientModifier = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LinearGradientModifier, _super);
            /**
             * Constructor.
             */
            function LinearGradientModifier() {
                var _this = _super.call(this) || this;
                _this.className = "LinearGradientModifier";
                _this.gradient = new _LinearGradient__WEBPACK_IMPORTED_MODULE_1__["LinearGradient"]();
                _this.applyTheme();
                return _this;
            }
            LinearGradientModifier.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.gradient = source.gradient.clone();
            };
            return LinearGradientModifier;
        }(_GradientModifier__WEBPACK_IMPORTED_MODULE_2__["GradientModifier"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["LinearGradientModifier"] = LinearGradientModifier;
        //# sourceMappingURL=LinearGradientModifier.js.map
        /***/ 
    }),
    /* 891 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientModifier", function () { return GradientModifier; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ColorModifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(892);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class can be used to modify linear gradient steps, changing visual
         * properties like lightness, brightness, opacity of each set.
         *
         * It can also set offsets for each gradient step.
         *
         * E.g. if I want to fill a columns in a column series to be a solid fill from
         * top to 80% of height, then gradually fades out, I can use the following
         * gradient modifier as a `fillModifier`:
         *
         * ```TypeScript
         * let fillModifier = new am4core.GradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JavaScript
         * var fillModifier = new am4core.GradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JSON
         * "series": [{
         *   "type": "ColumnSeries",
         *   "columns": {
         *     "fillModifier": {
         *       "type": "GradientModifier",
         *       "opacities": [1, 1, 0],
         *       "offsets": [0, 0.8, 1]
         *     }
         *   }
         * }]
         * ```
         */
        var GradientModifier = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GradientModifier, _super);
            /**
             * Constructor.
             */
            function GradientModifier() {
                var _this = _super.call(this) || this;
                _this.lightnesses = [];
                _this.brightnesses = [];
                _this.opacities = [];
                _this.offsets = [];
                _this.className = "GradientModifier";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(GradientModifier.prototype, "lightnesses", {
                /**
                 * @return {number[]} Lightness values
                 */
                get: function () {
                    return this._lightnesses;
                },
                /**
                 * An array of lightness values for each step.
                 *
                 * @param {number[]}  value  Lightness values
                 */
                set: function (value) {
                    this._lightnesses = value;
                    this._brightnesses = [];
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(GradientModifier.prototype, "brightnesses", {
                /**
                 * @return {number[]} Brightness values
                 */
                get: function () {
                    return this._brightnesses;
                },
                /**
                 * An array of brightness values for each step.
                 *
                 * @param {number[]}  value  Brightness values
                 */
                set: function (value) {
                    this._brightnesses = value;
                    this._lightnesses = [];
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(GradientModifier.prototype, "opacities", {
                /**
                 * @return {number[]} Opacity values
                 */
                get: function () {
                    return this._opacities;
                },
                /**
                 * An array of opacity values for each step.
                 *
                 * @param {number[]}  value  Opacity values
                 */
                set: function (value) {
                    this._opacities = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(GradientModifier.prototype, "offsets", {
                /**
                 * @return {number[]} Offsets
                 */
                get: function () {
                    return this._offsets;
                },
                /**
                 * An array of relative position (0-1) for each step.
                 *
                 * If not set, all steps will be of equal relative length.
                 *
                 * @param {number[]}  value  Offsets
                 */
                set: function (value) {
                    this._offsets = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Modifies the color based on step setting.
             *
             * @ignore Exclude from docs
             * @param  {Color}  value  Source color
             * @return {Color}         A gradient that matches set modification rules
             */
            GradientModifier.prototype.modify = function (value) {
                // Clear current gradient
                this.gradient.clear();
                // Get step count
                var count = 0;
                if (this.opacities) {
                    count = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["max"](count, this.opacities.length);
                }
                if (this.lightnesses) {
                    count = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["max"](count, this.lightnesses.length);
                }
                if (this.brightnesses) {
                    count = _utils_Math__WEBPACK_IMPORTED_MODULE_3__["max"](count, this.brightnesses.length);
                }
                // Init step values
                var opacity = 1, lightness, brightness;
                // Apply steps
                for (var i = 0; i < count; i++) {
                    // Take base color
                    var color = value;
                    // Check if there are any parameters for this step
                    if (this.opacities && _utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.opacities[i])) {
                        opacity = this.opacities[i];
                    }
                    if (this.lightnesses && _utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.lightnesses[i])) {
                        lightness = this.lightnesses[i];
                        brightness = undefined;
                    }
                    if (this.brightnesses && _utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.brightnesses[i])) {
                        brightness = this.brightnesses[i];
                        lightness = undefined;
                    }
                    // Check if we need to brighten/lighten color
                    if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](brightness)) {
                        color = value.brighten(this.brightnesses[i]);
                    }
                    else if (_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](lightness)) {
                        color = value.lighten(this.lightnesses[i]);
                    }
                    // Get offset (it's OK if it's undefined)
                    var offset = this.offsets[i];
                    // Apply step
                    this.gradient.addColor(color, opacity, offset);
                }
                return this.gradient;
            };
            GradientModifier.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this._offsets = source.offsets;
                this._brightnesses = source.brightnesses;
                this._lightnesses = source.lightnesses;
                this._opacities = source.opacities;
            };
            return GradientModifier;
        }(_ColorModifier__WEBPACK_IMPORTED_MODULE_1__["ColorModifier"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["GradientModifier"] = GradientModifier;
        //# sourceMappingURL=GradientModifier.js.map
        /***/ 
    }),
    /* 892 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorModifier", function () { return ColorModifier; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for color modifiers.
         *
         * @ignore Exclude from docs
         */
        var ColorModifier = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColorModifier, _super);
            /**
             * Constructor
             */
            function ColorModifier() {
                var _this = _super.call(this) || this;
                _this.className = "ColorModifier";
                _this.applyTheme();
                return _this;
            }
            /**
             * Modifies color value.
             *
             * @ignore Exclude from docs
             * @param  {Color}  value  Original color
             * @return {Color}         Modified
             */
            ColorModifier.prototype.modify = function (value) {
                return value;
            };
            return ColorModifier;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["ColorModifier"] = ColorModifier;
        //# sourceMappingURL=ColorModifier.js.map
        /***/ 
    }),
    /* 893 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rectangle3D", function () { return Rectangle3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(894);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /**
         * Creates a 3D rectangle.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Builds a 3D rectangle
         * @see {@link IRectangle3DEvents} for a list of available events
         * @see {@link IRectangle3DAdapters} for a list of available Adapters
         */
        var Rectangle3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Rectangle3D, _super);
            /**
             * Constructor
             */
            function Rectangle3D() {
                var _this = _super.call(this) || this;
                _this.angle = 30;
                _this.depth = 30;
                _this.className = "Rectangle3D";
                _this.layout = "none";
                var sideBack = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideBack.shouldClone = false;
                sideBack.setElement(_this.paper.add("path"));
                sideBack.isMeasured = false;
                var lightenFilterBack = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__["LightenFilter"]();
                lightenFilterBack.lightness = -0.2;
                sideBack.filters.push(lightenFilterBack);
                _this.sideBack = sideBack;
                _this._disposers.push(_this.sideBack);
                var sideBottom = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideBottom.shouldClone = false;
                sideBottom.setElement(_this.paper.add("path"));
                sideBottom.isMeasured = false;
                var lightenFilterBottom = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__["LightenFilter"]();
                lightenFilterBottom.lightness = -0.5;
                sideBottom.filters.push(lightenFilterBottom);
                _this.sideBottom = sideBottom;
                _this._disposers.push(_this.sideBottom);
                var sideLeft = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideLeft.shouldClone = false;
                sideLeft.setElement(_this.paper.add("path"));
                sideLeft.isMeasured = false;
                var lightenFilterLeft = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__["LightenFilter"]();
                lightenFilterLeft.lightness = -0.4;
                sideLeft.filters.push(lightenFilterLeft);
                _this.sideLeft = sideLeft;
                _this._disposers.push(_this.sideLeft);
                var sideRight = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideRight.shouldClone = false;
                sideRight.setElement(_this.paper.add("path"));
                sideRight.isMeasured = false;
                var lightenFilterRight = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__["LightenFilter"]();
                lightenFilterRight.lightness = -0.2;
                sideRight.filters.push(lightenFilterRight);
                _this.sideRight = sideRight;
                _this._disposers.push(_this.sideRight);
                var sideTop = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideTop.shouldClone = false;
                sideTop.setElement(_this.paper.add("path"));
                sideTop.isMeasured = false;
                var lightenFilterTop = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_3__["LightenFilter"]();
                lightenFilterTop.lightness = -0.1;
                sideTop.filters.push(lightenFilterTop);
                _this.sideTop = sideTop;
                _this._disposers.push(_this.sideTop);
                var sideFront = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                sideFront.shouldClone = false;
                sideFront.setElement(_this.paper.add("path"));
                sideFront.isMeasured = false;
                _this.sideFront = sideFront;
                _this._disposers.push(_this.sideFront);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Rectangle3D.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.innerWidth;
                var h = this.innerHeight;
                var depth = this.depth;
                var angle = this.angle;
                var sin = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](angle);
                var cos = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](angle);
                var a = { x: 0, y: 0 };
                var b = { x: w, y: 0 };
                var c = { x: w, y: h };
                var d = { x: 0, y: h };
                var ah = { x: depth * cos, y: -depth * sin };
                var bh = { x: depth * cos + w, y: -depth * sin };
                var ch = { x: depth * cos + w, y: -depth * sin + h };
                var dh = { x: depth * cos, y: -depth * sin + h };
                this.sideFront.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](a) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](b) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](c) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](d) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
                this.sideBack.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](ah) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](bh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](ch) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](dh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
                this.sideLeft.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](a) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](ah) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](dh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](d) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
                this.sideRight.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](b) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](bh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](ch) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](c) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
                this.sideBottom.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](d) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](dh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](ch) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](c) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
                this.sideTop.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](a) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](ah) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](bh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](b) + _rendering_Path__WEBPACK_IMPORTED_MODULE_5__["closePath"]();
            };
            Object.defineProperty(Rectangle3D.prototype, "depth", {
                /**
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth (Z dimension) of the 3D rectangle in pixels.
                 *
                 * @default 30
                 * @param {number}  value  Depth (px)
                 */
                set: function (value) {
                    this.setPropertyValue("depth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Rectangle3D.prototype, "angle", {
                /**
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * Angle of the point of view to the 3D element. (0-360)
                 *
                 * @default 30
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Rectangle3D;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=Rectangle3D.js.map
        /***/ 
    }),
    /* 894 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightenFilter", function () { return LightenFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Module for "Lighten" filter.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a "Lighten" filter.
         */
        var LightenFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightenFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function LightenFilter() {
                var _this = _super.call(this) || this;
                _this.className = "LightenFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.feColorMatrix = _this.paper.add("feColorMatrix");
                _this.feColorMatrix.attr({ "type": "matrix" });
                _this.filterPrimitives.push(_this.feColorMatrix);
                // Set default properties
                _this.lightness = 0;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(LightenFilter.prototype, "lightness", {
                /**
                 * @return {number} Lightness
                 */
                get: function () {
                    return this.properties["lightness"];
                },
                /**
                 * Lightness of the target colors.
                 *
                 * If `lightness` is a positive number, the filter will make all colors
                 * lighter.
                 *
                 * If `lightness` is negative, colors will be darkened.
                 *
                 * @param {number}  value  Lightness
                 */
                set: function (value) {
                    this.properties["lightness"] = value;
                    var v = value + 1;
                    this.feColorMatrix.attr({ "values": v + " 0 0 0 0 0 " + v + " 0 0 0 0 0 " + v + " 0 0 0 0 0 1 0" });
                },
                enumerable: true,
                configurable: true
            });
            return LightenFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["LightenFilter"] = LightenFilter;
        //# sourceMappingURL=LightenFilter.js.map
        /***/ 
    }),
    /* 895 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Slice3D", function () { return Slice3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(877);
        /* harmony import */ var _Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony import */ var _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(894);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(852);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * 3D slice module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to draw a 3D slice of a Pie chart.
         *
         * @see {@link ISlice3DEvents} for a list of available events
         * @see {@link ISlice3DAdapters} for a list of available Adapters
         */
        var Slice3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Slice3D, _super);
            /**
             * Constructor
             */
            function Slice3D() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "Slice3D";
                _this.layout = "none";
                // Create edge container
                var edge = _this.createChild(_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                _this.edge = edge;
                edge.shouldClone = false;
                edge.isMeasured = false;
                var lightenFilter = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_4__["LightenFilter"]();
                lightenFilter.lightness = -0.25;
                edge.filters.push(lightenFilter);
                edge.toBack();
                //edge.strokeOpacity = 0;
                _this._disposers.push(edge);
                // Set defaults
                _this.angle = 30;
                _this.depth = 20;
                // Create side A element
                var sideA = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.sideA = sideA;
                sideA.shouldClone = false;
                sideA.isMeasured = false;
                sideA.setElement(_this.paper.add("path"));
                var lightenFilterA = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_4__["LightenFilter"]();
                lightenFilterA.lightness = -0.25;
                sideA.filters.push(lightenFilterA);
                //sideA.strokeOpacity = 0;
                _this._disposers.push(sideA);
                // Crate side B element
                var sideB = _this.createChild(_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.sideB = sideB;
                sideB.shouldClone = false;
                sideB.isMeasured = false;
                sideB.setElement(_this.paper.add("path"));
                var lightenFilterB = new _rendering_filters_LightenFilter__WEBPACK_IMPORTED_MODULE_4__["LightenFilter"]();
                lightenFilterB.lightness = -0.25;
                sideB.filters.push(lightenFilterB);
                _this._disposers.push(sideB);
                //sideB.strokeOpacity = 0;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            Slice3D.prototype.draw = function () {
                _super.prototype.draw.call(this);
                // this should go here to hide 3d slices if arc = 0
                for (var i = 0, len = this.edge.children.length; i < len; i++) {
                    var slice = this.edge.children.getIndex(i);
                    if (slice instanceof _Slice__WEBPACK_IMPORTED_MODULE_1__["Slice"]) {
                        slice.radiusY = this.radiusY;
                        slice.radius = this.radius;
                        slice.fill = this.fill;
                        slice.startAngle = this.startAngle;
                        slice.arc = this.arc;
                        slice.cornerRadius = this.cornerRadius;
                        slice.innerRadius = this.innerRadius;
                        slice.strokeOpacity = 0;
                    }
                }
                if (this.arc !== 0 && this.radius > 0 && this.depth > 0) {
                    this.sideB.show(0);
                    this.sideA.show(0);
                    this.edge.show(0);
                    var startAngle = this.startAngle;
                    var arc = this.arc;
                    var innerRadius = this.pixelInnerRadius || 0;
                    var radiusY = this.radiusY || 0;
                    var cornerRadius = this.cornerRadius || 0;
                    var innerCornerRadius = this.innerCornerRadius;
                    var radius = this.radius;
                    // this is code duplicate with $path.arc. @todo to think how to avoid it
                    var endAngle = startAngle + arc;
                    var crSin = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](arc, 45) / 2);
                    innerCornerRadius = innerCornerRadius || cornerRadius;
                    var innerRadiusY = (radiusY / radius) * innerRadius;
                    var cornerRadiusY = (radiusY / radius) * cornerRadius;
                    var innerCornerRadiusY = (radiusY / radius) * innerCornerRadius;
                    cornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](cornerRadius, 0, (radius - innerRadius) / 2);
                    cornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](cornerRadiusY, 0, (radiusY - innerRadiusY) / 2);
                    innerCornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](innerCornerRadius, 0, (radius - innerRadius) / 2);
                    innerCornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](innerCornerRadiusY, 0, (radiusY - innerRadiusY) / 2);
                    cornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](cornerRadius, 0, radius * crSin);
                    cornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](cornerRadiusY, 0, radiusY * crSin);
                    innerCornerRadius = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](innerCornerRadius, 0, innerRadius * crSin);
                    innerCornerRadiusY = _utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](innerCornerRadiusY, 0, innerRadiusY * crSin);
                    //let crAngle: number = Math.asin(cornerRadius / radius / 2) * $math.DEGREES * 2;
                    //let crAngleY: number = Math.asin(cornerRadiusY / radiusY / 2) * $math.DEGREES * 2;
                    if (innerRadius < innerCornerRadius) {
                        innerRadius = innerCornerRadius;
                    }
                    if (innerRadiusY < innerCornerRadiusY) {
                        innerRadiusY = innerCornerRadiusY;
                    }
                    var crInnerAngle = Math.asin(innerCornerRadius / innerRadius / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_5__["DEGREES"] * 2;
                    var crInnerAngleY = Math.asin(innerCornerRadiusY / innerRadiusY / 2) * _utils_Math__WEBPACK_IMPORTED_MODULE_5__["DEGREES"] * 2;
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](crInnerAngle)) {
                        crInnerAngle = 0;
                    }
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](crInnerAngleY)) {
                        crInnerAngleY = 0;
                    }
                    //let middleAngle = startAngle + arc / 2;
                    //let mPoint = { x: $math.round($math.cos(middleAngle) * innerRadius, 4), y: $math.round($math.sin(middleAngle) * innerRadiusY, 4) };
                    var a0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle) * (innerRadius + innerCornerRadius), 4), y: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle) * (innerRadiusY + innerCornerRadiusY), 4) };
                    var b0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle) * (radius - cornerRadius), 4), y: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle) * (radiusY - cornerRadiusY), 4) };
                    var c0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle) * (radius - cornerRadius), 4), y: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle) * (radiusY - cornerRadiusY), 4) };
                    var d0 = { x: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle) * (innerRadius + innerCornerRadius), 4), y: _utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle) * (innerRadiusY + innerCornerRadiusY), 4) };
                    // end of duplicate
                    var h = this.depth;
                    var ah = { x: a0.x, y: a0.y - h };
                    var bh = { x: b0.x, y: b0.y - h };
                    var ch = { x: c0.x, y: c0.y - h };
                    var dh = { x: d0.x, y: d0.y - h };
                    this.sideA.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["moveTo"](a0) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](b0) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](bh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](ah) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["closePath"]();
                    this.sideB.path = _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["moveTo"](c0) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](d0) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](dh) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](ch) + _rendering_Path__WEBPACK_IMPORTED_MODULE_6__["closePath"]();
                    if (this.startAngle < 90) {
                        this.sideA.toBack();
                    }
                    else {
                        this.sideA.toFront();
                    }
                    if (this.startAngle + this.arc > 90) {
                        this.sideB.toBack();
                    }
                    else {
                        this.sideB.toFront();
                    }
                }
                else {
                    this.sideA.hide(0);
                    this.sideB.hide(0);
                    this.edge.hide(0);
                }
            };
            Object.defineProperty(Slice3D.prototype, "depth", {
                /**
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth (height) of the 3D slice in pixels.
                 *
                 * @default 20
                 * @param {number}  depth  Depth (px)
                 */
                set: function (depth) {
                    if (this.setPropertyValue("depth", depth, true)) {
                        this.edge.removeChildren();
                        var d = 3;
                        if (depth > 0) {
                            var count = Math.ceil(this.depth / d);
                            var step = depth / count;
                            for (var i = 0; i <= count; i++) {
                                var slice = this.edge.createChild(_Slice__WEBPACK_IMPORTED_MODULE_1__["Slice"]);
                                slice.isMeasured = false;
                                slice.y = -step * i;
                            }
                        }
                        this.slice.dy = -this.depth;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice3D.prototype, "angle", {
                /**
                 * @return {number} Angle
                 */
                get: function () {
                    var angle = this.getPropertyValue("angle");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](angle)) {
                        angle = 0;
                    }
                    return angle;
                },
                /**
                 * Angle of the point of view to the 3D element. (0-360)
                 *
                 * @default 30
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Slice3D.prototype, "radiusY", {
                /**
                 * @return {number} Vertical radius (0-1)
                 */
                get: function () {
                    var radiusY = this.getPropertyValue("radiusY");
                    if (!_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](radiusY)) {
                        radiusY = this.radius - this.radius * this.angle / 90;
                    }
                    return radiusY;
                },
                /**
                 * Vertical radius for creating skewed slices.
                 *
                 * This is relevant to `radius`, e.g. 0.5 will set vertical radius to half
                 * the `radius`.
                 *
                 * @param {number} value Vertical radius (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("radiusY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all properties and related data from a different instance of Axis.
             *
             * @param {this} source Source Axis
             */
            Slice3D.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.edge.copyFrom(source.edge);
                this.sideA.copyFrom(source.sideA);
                this.sideB.copyFrom(source.sideB);
            };
            return Slice3D;
        }(_Slice__WEBPACK_IMPORTED_MODULE_1__["Slice"]));
        //# sourceMappingURL=Slice3D.js.map
        /***/ 
    }),
    /* 896 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadialGradientModifier", function () { return RadialGradientModifier; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _RadialGradient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(802);
        /* harmony import */ var _GradientModifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(891);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class can be used to modify radial gradient steps, changing visual
         * properties like lightness, brightness, opacity of each set.
         *
         * It can also set offsets for each gradient step.
         *
         * E.g. if I want to fill a columns in a column series to be a solid fill from
         * top to 80% of height, then gradually fades out, I can use the following
         * gradient modifier as a `fillModifier`:
         *
         * ```TypeScript
         * let fillModifier = new am4core.LinearGradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JavaScript
         * var fillModifier = new am4core.LinearGradientModifier();
         * fillModifier.opacities = [1, 1, 0];
         * fillModifier.offsets = [0, 0.8, 1];
         * columnSeries.columns.template.fillModifier = fillModifier;
         * ```
         * ```JSON
         * "series": [{
         *   "type": "ColumnSeries",
         *   "columns": {
         *     "fillModifier": {
         *       "type": "LinearGradientModifier",
         *       "opacities": [1, 1, 0],
         *       "offsets": [0, 0.8, 1]
         *     }
         *   }
         * }]
         * ```
         */
        var RadialGradientModifier = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadialGradientModifier, _super);
            /**
             * Constructor.
             */
            function RadialGradientModifier() {
                var _this = _super.call(this) || this;
                _this.className = "RadialGradientModifier";
                _this.gradient = new _RadialGradient__WEBPACK_IMPORTED_MODULE_1__["RadialGradient"]();
                _this.applyTheme();
                return _this;
            }
            RadialGradientModifier.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.gradient = source.gradient.clone();
            };
            return RadialGradientModifier;
        }(_GradientModifier__WEBPACK_IMPORTED_MODULE_2__["GradientModifier"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["RadialGradientModifier"] = RadialGradientModifier;
        //# sourceMappingURL=RadialGradientModifier.js.map
        /***/ 
    }),
    /* 897 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinePattern", function () { return LinePattern; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Pattern__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(799);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Line pattern.
         */
        var LinePattern = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LinePattern, _super);
            /**
             * Constructor
             */
            function LinePattern() {
                var _this = _super.call(this) || this;
                _this._line = _this.paper.add("line");
                _this.addElement(_this._line);
                return _this;
            }
            /**
             * Draws the pattern.
             */
            LinePattern.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this._line) {
                    this._line.attr({ "x2": this.width * 2 }); // to solve rotation
                }
            };
            return LinePattern;
        }(_Pattern__WEBPACK_IMPORTED_MODULE_1__["Pattern"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["LinePattern"] = LinePattern;
        //# sourceMappingURL=LinePattern.js.map
        /***/ 
    }),
    /* 898 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RectPattern", function () { return RectPattern; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Pattern__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(799);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Rectangular pattern module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Rectangular pattern
         */
        var RectPattern = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RectPattern, _super);
            /**
             * Constructor
             */
            function RectPattern() {
                var _this = _super.call(this) || this;
                _this.rectHeight = 1;
                _this.rectWidth = 1;
                return _this;
            }
            /**
             * Draws the rectangular element.
             */
            RectPattern.prototype.draw = function () {
                if (this._rect) {
                    this.removeElement(this._rect);
                }
                this._rect = this.paper.add("rect");
                this._rect.attr({ "width": this.rectWidth, "height": this.rectHeight });
                this.addElement(this._rect);
                _super.prototype.draw.call(this);
            };
            Object.defineProperty(RectPattern.prototype, "rectWidth", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.properties["rectWidth"];
                },
                /**
                 * Rectangle width in pixels.
                 *
                 * @param {number} value Width (px)
                 */
                set: function (value) {
                    this.properties["rectWidth"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RectPattern.prototype, "rectHeight", {
                /**
                 * @return {number} Height (px)
                 */
                get: function () {
                    return this.properties["rectHeight"];
                },
                /**
                 * Rectangle height in pixels.
                 *
                 * @param {number} value Height (px)
                 */
                set: function (value) {
                    this.properties["rectHeight"] = value;
                    this.draw();
                },
                enumerable: true,
                configurable: true
            });
            return RectPattern;
        }(_Pattern__WEBPACK_IMPORTED_MODULE_1__["Pattern"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["RectPattern"] = RectPattern;
        //# sourceMappingURL=RectPattern.js.map
        /***/ 
    }),
    /* 899 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorizeFilter", function () { return ColorizeFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Module for "Colorize" filter.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a "Colorize" filter.
         */
        var ColorizeFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColorizeFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function ColorizeFilter() {
                var _this = _super.call(this) || this;
                _this.className = "ColorizeFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.feColorMatrix = _this.paper.add("feColorMatrix");
                _this.feColorMatrix.attr({ "type": "matrix" });
                //this.feColorMatrix.setAttribute("in", "SourceAlpha");
                _this.filterPrimitives.push(_this.feColorMatrix);
                // Set default properties
                _this.intensity = 1;
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)applies colors to the already existing filter by modifying filyer's
             * color matrix element.
             *
             * @ignore Exclude from docs
             */
            ColorizeFilter.prototype.applyFilter = function () {
                var i = this.intensity;
                var ii = 1 - i;
                var r;
                var g;
                var b;
                var color = this.color;
                if (color && color.rgb) {
                    r = color.rgb.r / 255 * i;
                    g = color.rgb.g / 255 * i;
                    b = color.rgb.b / 255 * i;
                }
                else {
                    r = 0;
                    g = 0;
                    b = 0;
                }
                this.feColorMatrix.attr({ "values": ii + " 0 0 0 " + r + " 0 " + ii + " 0 0 " + g + " 0 0 " + ii + " 0 " + b + " 0 0 0 1 0" });
            };
            Object.defineProperty(ColorizeFilter.prototype, "color", {
                /**
                 * @return {Color} Color
                 */
                get: function () {
                    return this.properties["color"];
                },
                /**
                 * Target color to apply to the element.
                 *
                 * Depending on the `intensity`, all colors of the target element will steer
                 * towards this color.
                 *
                 * E.g. setting to `am4core.color("greener")` will make all colors greener.
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.properties["color"] = value;
                    this.applyFilter();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColorizeFilter.prototype, "intensity", {
                /**
                 * @return {number} Intensity (0-1)
                 */
                get: function () {
                    return this.properties.intensity;
                },
                /**
                 * Intensity of the color (0-1).
                 *
                 * The bigger the number the more of a `color` target's colors will become.
                 *
                 * 0 means the colors will remain as they are.
                 * 1 means all colors will become the target `color`.
                 *
                 * @default 1
                 * @param {number}  value  Intensity (0-1)
                 */
                set: function (value) {
                    this.properties.intensity = value;
                    this.applyFilter();
                },
                enumerable: true,
                configurable: true
            });
            return ColorizeFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["ColorizeFilter"] = ColorizeFilter;
        //# sourceMappingURL=ColorizeFilter.js.map
        /***/ 
    }),
    /* 900 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DesaturateFilter", function () { return DesaturateFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Module for "Desaturate" filter.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creats a "Desaturate" filter
         */
        var DesaturateFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DesaturateFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function DesaturateFilter() {
                var _this = _super.call(this) || this;
                _this.className = "DesaturateFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.feColorMatrix = _this.paper.add("feColorMatrix");
                _this.feColorMatrix.attr({ "type": "saturate" });
                _this.filterPrimitives.push(_this.feColorMatrix);
                // Set default properties
                _this.width = 120;
                _this.height = 120;
                _this.saturation = 0;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(DesaturateFilter.prototype, "saturation", {
                /**
                 * @return {number} Saturation (0-1)
                 */
                get: function () {
                    return this.properties["saturation"];
                },
                /**
                 * Saturation.
                 *
                 * 0 - completely desaturated.
                 * 1 - fully saturated (gray).
                 *
                 * @param {number}  value  Saturation (0-1)
                 */
                set: function (value) {
                    this.properties["saturation"] = value;
                    this.feColorMatrix.attr({ "values": value.toString() });
                },
                enumerable: true,
                configurable: true
            });
            return DesaturateFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["DesaturateFilter"] = DesaturateFilter;
        //# sourceMappingURL=DesaturateFilter.js.map
        /***/ 
    }),
    /* 901 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlurFilter", function () { return BlurFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Module for "Blur" filter.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        ;
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a "Blur" filter.
         */
        var BlurFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](BlurFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function BlurFilter() {
                var _this = _super.call(this) || this;
                _this.className = "BlurFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.feGaussianBlur = _this.paper.add("feGaussianBlur");
                _this.feGaussianBlur.attr({ "result": "blurOut", "in": "SourceGraphic" });
                _this.filterPrimitives.push(_this.feGaussianBlur);
                // Set default properties
                _this.width = 200;
                _this.height = 200;
                _this.blur = 1.5;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(BlurFilter.prototype, "blur", {
                /**
                 * @return {number} Blur
                 */
                get: function () {
                    return this.properties.blur;
                },
                /**
                 * Blur value.
                 *
                 * The bigger the value, the blurrier the target element will become.
                 *
                 * @default 1.5
                 * @param {number} value Blur
                 */
                set: function (value) {
                    this.properties.blur = value;
                    this.feGaussianBlur.attr({ "stdDeviation": value / this.scale });
                },
                enumerable: true,
                configurable: true
            });
            return BlurFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["BlurFilter"] = BlurFilter;
        //# sourceMappingURL=BlurFilter.js.map
        /***/ 
    }),
    /* 902 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusFilter", function () { return FocusFilter; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
        /* harmony import */ var _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(800);
        /**
         * Module for "Focus" filter.
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a "Focus" filter.
         */
        var FocusFilter = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FocusFilter, _super);
            /**
             * Constructor
             * * Creates primitve (effect) elements
             * * Sets default properties
             */
            function FocusFilter() {
                var _this = _super.call(this) || this;
                _this.className = "FocusFilter";
                // Create elements
                // NOTE: we do not need to add each individual element to `_disposers`
                // because `filterPrimitives` has an event handler which automatically adds
                // anything added to it to `_disposers`
                _this.feFlood = _this.paper.add("feFlood");
                _this.feFlood.attr({ "flood-color": new _utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__["InterfaceColorSet"]().getFor("primaryButtonHover"), "result": "base" });
                _this.filterPrimitives.push(_this.feFlood);
                _this.feMorphology = _this.paper.add("feMorphology");
                _this.feMorphology.attr({ "result": "bigger", "in": "SourceGraphic", "operator": "dilate", "radius": "2" });
                _this.filterPrimitives.push(_this.feMorphology);
                _this.feColorMatrix = _this.paper.add("feColorMatrix");
                _this.feColorMatrix.attr({ "result": "mask", "in": "bigger", "type": "matrix", "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" });
                _this.filterPrimitives.push(_this.feColorMatrix);
                _this.feComposite = _this.paper.add("feComposite");
                _this.feComposite.attr({ "result": "drop", "in": "base", "in2": "mask", "operator": "in" });
                _this.filterPrimitives.push(_this.feComposite);
                _this.feBlend = _this.paper.add("feBlend");
                _this.feBlend.attr({ "in": "SourceGraphic", "in2": "drop", "mode": "normal" });
                _this.filterPrimitives.push(_this.feBlend);
                // Set default properties
                _this.width = 130;
                _this.height = 130;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(FocusFilter.prototype, "stroke", {
                /**
                 * @return {Optional<Color>} Color
                 */
                get: function () {
                    return this.properties["stroke"];
                },
                /**
                 * Stroke (outline) color.
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.properties["stroke"] = value;
                    this.feFlood.attr({ "flood-color": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FocusFilter.prototype, "strokeWidth", {
                /**
                 * @return {number} Outline thickness (px)
                 */
                get: function () {
                    return this.properties["strokeWidth"];
                },
                /**
                 * Stroke (outline) thickness in pixels.
                 *
                 * @param {number}  value  Outline thickness (px)
                 */
                set: function (value) {
                    this.properties["strokeWidth"] = value;
                    this.feMorphology.attr({ "radius": value });
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FocusFilter.prototype, "opacity", {
                /**
                 * @return {number} Outline opacity (0-1)
                 */
                get: function () {
                    return this.properties["opacity"];
                },
                /**
                 * Opacity of the outline. (0-1)
                 *
                 * @param {number}  value  Outline opacity (0-1)
                 */
                set: function (value) {
                    this.properties["opacity"] = value;
                    this.feColorMatrix.attr({ "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " + value + " 0" });
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets filter's target element.
             *
             * In addition it also disables built-in focus outline on element this
             * filter is applied to.
             *
             * @ignore Exclude from docs
             * @param {Sprite}  value  Element filter is being attached to
             */
            FocusFilter.prototype.setSprite = function (value) {
                if (this._sprite && this._sprite != value) {
                    this._sprite.group.removeStyle("outline");
                }
                value.group.addStyle({
                    "outline": "none"
                });
                _super.prototype.setSprite.call(this, value);
            };
            return FocusFilter;
        }(_Filter__WEBPACK_IMPORTED_MODULE_1__["Filter"]));
        //# sourceMappingURL=FocusFilter.js.map
        /***/ 
    }),
    /* 903 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorSet", function () { return ColorSet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
        /* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _Colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(775);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(795);
        /**
         * This module contains ColorSet object definition
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents a set of colors. Can also generate colors according to set rules.
         *
         * @important
         * @see {@link https://www.amcharts.com/docs/v4/concepts/colors/} for color-related info
         */
        var ColorSet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColorSet, _super);
            /**
             * Constructor
             */
            function ColorSet() {
                var _this = _super.call(this) || this;
                /**
                 * Holds the list of the colors in this set. (preset or auto-generated)
                 *
                 * @type {Color[]}
                 */
                _this._list = [];
                /**
                 * Current step in a color generator's cycle.
                 *
                 * @type {number}
                 */
                _this._currentStep = 0;
                /**
                 * Current pass in the color generator's cycle. Normally a generator would
                 * cycle through all available hue range, then repeat it, alternating other
                 * color properties, to generate distinctive colors.
                 *
                 * @type {number}
                 */
                _this._currentPass = 0;
                /**
                 * A base color. If there are no colors pre-set in the color list, ColorSet
                 * will use this color as a base when generating new ones, applying
                 * `stepOptions` and `passOptions` to this base color.
                 *
                 * @type {Color}
                 */
                _this.baseColor = new _Color__WEBPACK_IMPORTED_MODULE_2__["Color"]({
                    r: 103,
                    g: 183,
                    b: 220
                });
                /**
                 * Modifications to apply with each new generated color.
                 *
                 * @type {Partial<IColorSetStepOptions>}
                 */
                _this.stepOptions = {};
                /**
                 * Modifications to apply on top of `stepOptions` for each "pass" of the
                 * color generation.
                 *
                 * A "pass" is when ColorSet generates `minColors` number of colors.
                 *
                 * @type {Partial<IColorSetStepOptions>}
                 */
                _this.passOptions = {
                    brighten: -0.2
                };
                /**
                 * An index increment to use when iterating through color list.
                 *
                 * Default is 1, which means returning each and every color.
                 *
                 * Setting it to a bigger number will make ColorSet `next()` iterator skip
                 * some colors.
                 *
                 * E.g. setting to 2, will return every second color in the list.
                 *
                 * This is useful, when the color list has colors that are too close each
                 * other for contrast.
                 *
                 * However, having bigger number will mean that `next()` iterator will go
                 * through the list quicker, and the generator will kick sooner.
                 *
                 * @type {number}
                 */
                _this.step = 1;
                /**
                 * A number of colors to generate in one "pass".
                 *
                 * This setting can be automatically overridden, if ColorSet has a list of
                 * pre-set colors. In such case ColorSet will generate exactly the same
                 * number of colors with each pass as there were colors in original set.
                 *
                 * @type {number}
                 */
                _this.minColors = 20;
                /**
                 * Do not let the "lightness" of generated color to fall below this
                 * threshold.
                 *
                 * @type {number}
                 */
                _this.minLightness = 0.2;
                /**
                 * Do not let the "lightness" of generated color to get above this threshold.
                 *
                 * @type {number}
                 */
                _this.maxLightness = 0.9;
                /**
                 * Randomly shuffle generated colors.
                 *
                 * @type {boolean}
                 */
                _this.shuffle = false;
                /**
                 * When colors are generated, based on `stepOptions`, each generated color
                 * gets either lighter or darker.
                 *
                 * If this is set to `true`, color generator will switch to opposing spectrum
                 * when reaching `minLightness` or `maxLightness`.
                 *
                 * E.g. if we start off with a red color, then gradually generate lighter
                 * colors through rose shades, then switch back to dark red and gradually
                 * increase the lightness of it until it reaches the starting red.
                 *
                 * If set to `false` it will stop there and cap lightness at whatever level
                 * we hit `minLightness` or `maxLightness`, which may result in a number of
                 * the same colors.
                 *
                 * @type {boolean}
                 */
                _this.wrap = true;
                /**
                 * Re-use same colors in the pre-set list, when ColorSet runs out of colors,
                 * rather than start generating new ones.
                 *
                 * @type {boolean}
                 */
                _this.reuse = false;
                /**
                 * Saturation of colors. This will change saturation of all colors of color
                 * set.
                 *
                 * It is recommended to set this in theme, as changing it at run time won't
                 * make the items to redraw and change color.
                 *
                 * @type {boolean}
                 */
                _this.saturation = 1;
                _this.className = "ColorSet";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ColorSet.prototype, "list", {
                /**
                 * Returns current list of colors.
                 *
                 * If there are none, a new list of colors is generated, based on various
                 * ColorSet settings.
                 *
                 * @return {Color[]} Color list
                 */
                get: function () {
                    if (!this._list) {
                        this.generate(this.minColors);
                    }
                    return this._list;
                },
                /**
                 * Sets a list of pre-defined colors to use for the iterator.
                 *
                 * @param {Color[]} value Color list
                 */
                set: function (value) {
                    this._list = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns next color in the list using internal iterator counter.
             *
             * If `step` is set to something other than 1, it may return other color than
             * exact next one in the list.
             *
             * @return {Color} Color
             */
            ColorSet.prototype.next = function () {
                if (this.list.length <= this._currentStep) {
                    if (this.reuse && this._currentPass == 0 && this._list.length) {
                        this.minColors = this._list.length;
                    }
                    this.generate(this.minColors);
                }
                var color = this.list[this._currentStep];
                this._currentStep += this.step;
                return color.saturate(this.saturation);
            };
            /**
             * Returns a color at specific index in the list.
             *
             * @param  {number}  i  Index
             * @return {Color}      Color
             */
            ColorSet.prototype.getIndex = function (i) {
                if (this.list.length <= i) {
                    if (this.reuse && this._currentPass == 0 && this._list.length) {
                        this.minColors = this._list.length;
                    }
                    this.generate(this.minColors);
                    return this.getIndex(i);
                }
                return this.list[i].saturate(this.saturation);
            };
            /**
             * Resets internal iterator.
             *
             * Calling `next()` after this will return the very first color in the color
             * list, even if it was already returned before.
             */
            ColorSet.prototype.reset = function () {
                this._currentStep = 0;
            };
            /**
             * Generates colors based on the various ColorSet settings.
             *
             * @param {number} count Number of colors to generate
             */
            ColorSet.prototype.generate = function (count) {
                // Init
                var curColor = this.currentColor;
                var hsl = _Colors__WEBPACK_IMPORTED_MODULE_3__["rgbToHsl"](_Type__WEBPACK_IMPORTED_MODULE_4__["getValue"](curColor.rgb));
                var hueStep = _Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](this.stepOptions.hue) ? this.stepOptions.hue : 1 / count;
                var mods = {
                    brighten: 0,
                    lighten: 0,
                    hue: hsl.h,
                    lightness: hsl.l,
                    saturation: hsl.s
                };
                // Generate list of hues, and shuffle them
                var hues = [];
                if (this.reuse) {
                    for (var i = 0; i < count; i++) {
                        hues.push(_Colors__WEBPACK_IMPORTED_MODULE_3__["rgbToHsl"](_Type__WEBPACK_IMPORTED_MODULE_4__["getValue"](this._list[i].rgb)).h);
                    }
                }
                else {
                    for (var i = 0; i < count; i++) {
                        var h = hsl.h + hueStep * i;
                        if (this.wrap && (h > 1)) {
                            h -= 1;
                        }
                        hues.push(h);
                    }
                }
                // Shuffle colors randomly
                if (this.shuffle) {
                    hues.sort(function (a, b) {
                        return Math.random() - 0.5;
                    });
                }
                // Generate colors by rotating hue
                for (var i = 0; i < count; i++) {
                    // Update hue
                    if (this.reuse) {
                        hsl = _Colors__WEBPACK_IMPORTED_MODULE_3__["rgbToHsl"](_Type__WEBPACK_IMPORTED_MODULE_4__["getValue"](this._list[i].rgb));
                    }
                    else {
                        hsl.h = hues.shift();
                    }
                    // Apply HSL mods
                    this.applyStepOptions(hsl, mods, i + 1, this._currentPass);
                    // Convert back to Color
                    var c = Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])(_Colors__WEBPACK_IMPORTED_MODULE_3__["hslToRgb"](hsl));
                    // Apply regular color mods
                    var brighten = (this.stepOptions.brighten || 0) * (i + 1) + (this.passOptions.brighten || 0) * this._currentPass;
                    if (brighten != 0) {
                        if (this.wrap) {
                            brighten = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumberRelative"](brighten, this.minLightness, this.maxLightness);
                        }
                        else {
                            brighten = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumber"](brighten, this.minLightness, this.maxLightness);
                        }
                        c = c.brighten(brighten);
                    }
                    var lighten = (this.stepOptions.lighten || 0) * (i + 1) + (this.passOptions.lighten || 0) * this._currentPass;
                    if (lighten != 0) {
                        if (this.wrap) {
                            lighten = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumberRelative"](lighten, this.minLightness, this.maxLightness);
                        }
                        else {
                            lighten = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumber"](lighten, this.minLightness, this.maxLightness);
                        }
                        c = c.lighten(lighten);
                    }
                    this._list.push(c);
                }
                this._currentPass++;
            };
            Object.defineProperty(ColorSet.prototype, "currentColor", {
                /**
                 * Returns current last color. It's either the last color in the list of
                 * colors, or `baseColor` if list is empty.
                 *
                 * @return {Color} Color
                 */
                get: function () {
                    if (this._list.length == 0) {
                        return this.baseColor.saturate(this.saturation);
                    }
                    else {
                        return this._list[this._list.length - 1].saturate(this.saturation);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Generates modifiers for color, based on what step and pass.
             *
             * @param {iHSL}                  hsl   Curren HSL value of the color to modify
             * @param {IColorSetStepOptions}  base  The modifiers that were before modification to use as a base
             * @param {number}                step  Current step
             * @param {number}                pass  Current pass
             */
            ColorSet.prototype.applyStepOptions = function (hsl, base, step, pass) {
                // Process lightness
                hsl.l = base.lightness + (this.stepOptions.lightness || 0) * step + (this.passOptions.lightness || 0) * pass;
                if (this.wrap) {
                    if (hsl.l > 1) {
                        hsl.l = hsl.l - Math.floor(hsl.l);
                    }
                    else if (hsl.l < 0) {
                        hsl.l = -(hsl.l - Math.floor(hsl.l));
                    }
                    hsl.l = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumberRelative"](hsl.l, this.minLightness, this.maxLightness);
                }
                else {
                    if (hsl.l > 1) {
                        hsl.l = 1;
                    }
                    else if (hsl.l < 0) {
                        hsl.l = 0;
                    }
                    hsl.l = _Utils__WEBPACK_IMPORTED_MODULE_5__["fitNumber"](hsl.l, this.minLightness, this.maxLightness);
                }
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            ColorSet.prototype.processConfig = function (config) {
                if (config) {
                    // Set up axis ranges
                    if (_Type__WEBPACK_IMPORTED_MODULE_4__["hasValue"](config.list) && _Type__WEBPACK_IMPORTED_MODULE_4__["isArray"](config.list)) {
                        for (var i = 0, len = config.list.length; i < len; i++) {
                            if (!(config.list[i] instanceof _Color__WEBPACK_IMPORTED_MODULE_2__["Color"])) {
                                config.list[i] = Object(_Color__WEBPACK_IMPORTED_MODULE_2__["color"])(config.list[i]);
                            }
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return ColorSet;
        }(_Base__WEBPACK_IMPORTED_MODULE_1__["BaseObject"]));
        //# sourceMappingURL=ColorSet.js.map
        /***/ 
    }),
    /* 904 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "create", function () { return create; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFromConfig", function () { return createFromConfig; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTheme", function () { return useTheme; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unuseTheme", function () { return unuseTheme; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unuseAllThemes", function () { return unuseAllThemes; });
        /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(750);
        /* harmony import */ var _Registry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(751);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(765);
        /* harmony import */ var _rendering_Paper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(777);
        /* harmony import */ var _rendering_SVGContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(781);
        /* harmony import */ var _rendering_filters_FocusFilter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(902);
        /* harmony import */ var _elements_Preloader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(876);
        /* harmony import */ var _elements_AmChartsLogo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(905);
        /* harmony import */ var _elements_Tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(882);
        /* harmony import */ var _utils_Disposer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(754);
        /* harmony import */ var _Percent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(758);
        /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(804);
        /* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(755);
        /* harmony import */ var _Type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(757);
        /* harmony import */ var _DOM__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(779);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * INSTANTIATION FUNCTIONS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates all HTML and SVG containers needed for the chart instance, as well
         * as the new [[Sprite]] (as specified in `classType` parameter).
         *
         * @param  {Optional<HTMLElement | string>}  htmlElement  A container to creat elements in
         * @param  {T}                               classType    A class definition of the new element to create
         * @return {T}                                            Newly-created Sprite object
         */
        function createChild(htmlElement, classType) {
            var htmlContainer = _DOM__WEBPACK_IMPORTED_MODULE_14__["getElement"](htmlElement);
            if (htmlContainer) {
                htmlContainer.innerHTML = "";
                //htmlContainer.style.overflow = "hidden";
                var svgDiv_1 = new _rendering_SVGContainer__WEBPACK_IMPORTED_MODULE_4__["SVGContainer"](htmlContainer);
                var paper = new _rendering_Paper__WEBPACK_IMPORTED_MODULE_3__["Paper"](svgDiv_1.SVGContainer, "svg-" + (_rendering_SVGContainer__WEBPACK_IMPORTED_MODULE_4__["svgContainers"].length - 1));
                // the approach with masks is chosen because overflow:visible is set on SVG element in order tooltips could go outside
                // svg area - this is often needed when working with small charts.
                // main container which holds content container and tooltips container
                var container_1 = new _Container__WEBPACK_IMPORTED_MODULE_2__["Container"]();
                container_1.htmlContainer = htmlContainer;
                container_1.svgContainer = svgDiv_1;
                container_1.width = Object(_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                container_1.height = Object(_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                container_1.background.fillOpacity = 0;
                container_1.paper = paper;
                paper.append(container_1.group);
                // this is set from parent container, but this one doesn't have, so do it manually.
                container_1.relativeWidth = 1;
                container_1.relativeHeight = 1;
                svgDiv_1.container = container_1;
                // creating classType instance
                var sprite_1 = container_1.createChild(classType);
                sprite_1.topParent = container_1;
                var uid = sprite_1.uid;
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].invalidSprites[uid] = [];
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].invalidDatas[uid] = [];
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].invalidPositions[uid] = [];
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].invalidLayouts[uid] = [];
                container_1.baseId = uid;
                sprite_1.isBaseSprite = true;
                sprite_1.focusFilter = new _rendering_filters_FocusFilter__WEBPACK_IMPORTED_MODULE_5__["FocusFilter"]();
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].baseSprites.push(sprite_1);
                _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].baseSpritesByUid[uid] = sprite_1;
                sprite_1.maskRectangle = { x: 0, y: 0, width: svgDiv_1.width, height: svgDiv_1.height };
                // this solves issues with display:none, as all children are measured as 0x0
                container_1.events.on("maxsizechanged", function (event) {
                    if (event.previousWidth == 0 || event.previousHeight == 0) {
                        container_1.deepInvalidate();
                    }
                    if (sprite_1.maskRectangle) {
                        sprite_1.maskRectangle = { x: 0, y: 0, width: svgDiv_1.width, height: svgDiv_1.height };
                    }
                });
                sprite_1.addDisposer(new _utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                    _Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].baseSprites, sprite_1);
                    _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].baseSpritesByUid[sprite_1.uid] = undefined;
                }));
                // TODO figure out a better way of doing this
                sprite_1.addDisposer(container_1);
                // tooltip container
                var tooltipContainer_1 = container_1.createChild(_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                tooltipContainer_1.topParent = container_1;
                tooltipContainer_1.width = Object(_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                tooltipContainer_1.height = Object(_Percent__WEBPACK_IMPORTED_MODULE_10__["percent"])(100);
                tooltipContainer_1.isMeasured = false;
                container_1.tooltipContainer = tooltipContainer_1;
                sprite_1.tooltip = new _elements_Tooltip__WEBPACK_IMPORTED_MODULE_8__["Tooltip"]();
                sprite_1.tooltip.hide(0);
                sprite_1.tooltip.setBounds({ x: 0, y: 0, width: tooltipContainer_1.maxWidth, height: tooltipContainer_1.maxHeight });
                tooltipContainer_1.events.on("maxsizechanged", function () {
                    _Type__WEBPACK_IMPORTED_MODULE_13__["getValue"](sprite_1.tooltip).setBounds({ x: 0, y: 0, width: tooltipContainer_1.maxWidth, height: tooltipContainer_1.maxHeight });
                }, undefined, false);
                //@todo: maybe we don't need to create one by default but only on request?
                var preloader_1 = new _elements_Preloader__WEBPACK_IMPORTED_MODULE_6__["Preloader"]();
                preloader_1.events.on("inited", function () {
                    preloader_1.__disabled = true;
                }, undefined, false);
                container_1.preloader = preloader_1;
                if (!_Options__WEBPACK_IMPORTED_MODULE_11__["options"].commercialLicense) {
                    var logo_1 = tooltipContainer_1.createChild(_elements_AmChartsLogo__WEBPACK_IMPORTED_MODULE_7__["AmChartsLogo"]);
                    tooltipContainer_1.events.on("maxsizechanged", function (ev) {
                        if ((tooltipContainer_1.maxWidth <= 100) || (tooltipContainer_1.maxHeight <= 50)) {
                            logo_1.hide();
                        }
                        else if (logo_1.isHidden || logo_1.isHiding) {
                            logo_1.show();
                        }
                    }, undefined, false);
                    sprite_1.logo = logo_1;
                    logo_1.align = "left";
                    logo_1.valign = "bottom";
                }
                sprite_1.numberFormatter; // need to create one.
                // Set this as an autonomouse instance
                // Controls like Preloader, Export will use this.
                container_1.isStandaloneInstance = true;
                return sprite_1;
            }
            else {
                _System__WEBPACK_IMPORTED_MODULE_0__["system"].log("html container not found");
                throw new Error("html container not found");
            }
        }
        /**
         * A shortcut to creating a chart instance.
         *
         * The first argument is either a reference to or an id of a DOM element to be
         * used as a container for the chart.
         *
         * The second argument is the type reference of the chart type. (for plain
         * JavaScript users this can also be a string indicating chart type)
         *
         * ```TypeScript
         * let chart = am4core.create("chartdiv", am4charts.PieChart);
         * ```
         * ```JavaScript
         * // Can pass in chart type reference like this:
         * var chart = am4core.create("chartdiv", am4charts.PieChart);
         *
         * // ... or chart class type as a string:
         * var chart = am4core.create("chartdiv", "PieChart");
         * ```
         *
         * @param  {HTMLElement | string}  htmlElement  Reference or id of the target container element
         * @param  {T}                     classType    Class type of the target chart type
         * @return {T}                                  Chart instance
         */
        function create(htmlElement, classType) {
            // This is a nasty hack for the benefit of vanilla JS users, who do not
            // enjoy benefits of type-check anyway.
            // We're allowing passing in a name of the class rather than type reference
            // itself.
            var classError;
            if (_Type__WEBPACK_IMPORTED_MODULE_13__["isString"](classType)) {
                if (_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](_Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].registeredClasses[classType])) {
                    classType = _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].registeredClasses[classType];
                }
                else {
                    classType = _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].registeredClasses["Container"];
                    classError = new Error("Class [" + classType + "] is not loaded.");
                }
            }
            // Create the chart
            var chart = createChild(htmlElement, classType);
            // Error?
            if (classError) {
                chart.raiseCriticalError(classError);
            }
            return chart;
        }
        /**
         * A shortcut to creating a chart from a config object.
         *
         * Example:
         *
         * ```TypeScript
         * let chart am4core.createFromConfig({ ... }, "chartdiv", am4charts.XYChart );
         * ```
         * ```JavaScript
         * var chart am4core.createFromConfig({ ... }, "chartdiv", "XYChart" );
         * ```
         *
         * If `chartType` parameter is not supplied it must be set in a config object,
         * via reference to chart type, e.g.:
         *
         * ```TypeScript
         * {
         *   "type": am4charts.XYChart,
         *   // ...
         * }
         * ```
         * ```JavaScript
         * {
         *   "type": am4charts.XYChart,
         *   // ...
         * }
         * ```
         *
         * Or via string: (if you are using JavaScript)
         *
         * ```TypeScript
         * {
         *   "type": "XYChart",
         *   // ...
         * }
         * ```
         * ```JavaScript
         * {
         *   "type": "XYChart",
         *   // ...
         * }
         * ```
         *
         * A `container` can either be a reference to an HTML container to put chart
         * in, or it's unique id.
         *
         * If `container` is not specified, it must be included in the config object:
         *
         * ```TypeScript
         * {
         *   "type": "XYChart",
         *   "container": "chartdiv",
         *   // ...
         * }
         * ```
         * ```JavaScript
         * {
         *   "type": "XYChart",
         *   "container": "chartdiv",
         *   // ...
         * }
         * ```
         *
         * @param  {any}                   config       Config object in property/value pairs
         * @param  {string | HTMLElement}  htmlElement  Container reference or ID
         * @param  {typeof Chart}          objectType   Chart type
         * @return {Chart}                              A newly created chart instance
         * @todo Throw exception if type is not correct
         */
        function createFromConfig(config, htmlElement, classType) {
            // Extract chart type from config if necessary
            if (!_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](classType)) {
                classType = config.type;
                delete config.type;
            }
            // Extract element from config if necessary
            if (!_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](htmlElement)) {
                htmlElement = config.container;
                delete config.container;
            }
            // Check if we need to extract actual type reference
            var finalType;
            var classError;
            if (_Type__WEBPACK_IMPORTED_MODULE_13__["isString"](classType) && _Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](_Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].registeredClasses[classType])) {
                finalType = _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].registeredClasses[classType];
            }
            else if (typeof classType !== "function") {
                finalType = _Container__WEBPACK_IMPORTED_MODULE_2__["Container"];
                classError = new Error("Class [" + classType + "] is not loaded.");
            }
            else {
                finalType = classType;
            }
            // Check if maybe we have `geodata` set as string, which would mean that
            // we need to try to refer to a loaded map with a global variable, like
            // `am4geodata_xxx`
            if (_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](config["geodata"]) && _Type__WEBPACK_IMPORTED_MODULE_13__["isString"](config["geodata"])) {
                // Check if there's a map loaded by such name
                if (_Type__WEBPACK_IMPORTED_MODULE_13__["hasValue"](window["am4geodata_" + config["geodata"]])) {
                    config["geodata"] = window["am4geodata_" + config["geodata"]];
                }
                // Nope. Let's try maybe we got JSON as string?
                else {
                    try {
                        config["geodata"] = JSON.parse(config["geodata"]);
                    }
                    catch (e) {
                        // No go again. Error out.
                        classError = new Error("<code>geodata</code> is incorrect or the map file is not loaded.");
                    }
                }
            }
            // Create the chart
            var chart = createChild(htmlElement, finalType);
            // Set config
            if (classError) {
                chart.raiseCriticalError(classError);
            }
            else {
                chart.config = config;
            }
            return chart;
        }
        /**
         * Applies a theme to System, and subsequently all chart instances created
         * from that point forward.
         *
         * amCharts supports multiple themes. Calling `useTheme` multiple times will
         * make the System apply multiple themes, rather than overwrite previously
         * set one.
         *
         * This enables combining features from multiple themes on the same chart.
         * E.g.:
         *
         * ```TypeScript
         * am4core.useTheme(am4themes.material);
         * am4core.useTheme(am4themes.animated);
         * ```
         * ```JavaScript
         * am4core.useTheme(am4themes.material);
         * am4core.useTheme(am4themes.animated);
         * ```
         *
         * The above will apply both the Material color and animation options to all
         * charts created.
         *
         * @param {ITheme}  value  A reference to a theme
         */
        function useTheme(value) {
            _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].themes.push(value);
        }
        /**
         * Removes a theme from "active themes" list, so it won't get applied to any
         * charts created subsequently.
         *
         * @param {ITheme}  value  A reference to a theme
         */
        function unuseTheme(value) {
            _Array__WEBPACK_IMPORTED_MODULE_12__["remove"](_Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].themes, value);
        }
        /**
         * Removes all "active" themes. Any charts created subsequently will not have
         * any theme applied to them.
         */
        function unuseAllThemes() {
            _Registry__WEBPACK_IMPORTED_MODULE_1__["registry"].themes = [];
        }
        //# sourceMappingURL=Instance.js.map
        /***/ 
    }),
    /* 905 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmChartsLogo", function () { return AmChartsLogo; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(800);
        /* harmony import */ var _Polyspline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(875);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(774);
        /* harmony import */ var _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(801);
        /* harmony import */ var _rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(900);
        /**
         * AmChartsLogo module.
         *
         * AmChartsLogo shows amCharts logo for non-commercial users of a library.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A class used to draw and display progress indicator.
         *
         * @see {@link IAmChartsLogoEvents} for a list of available events
         * @see {@link IAmChartsLogoAdapters} for a list of available Adapters
         * @ignore Exclude from docs
         */
        var AmChartsLogo = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AmChartsLogo, _super);
            /**
             * Constructor
             */
            function AmChartsLogo() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "AmChartsLogo";
                _this.valign = "bottom";
                var d = 0.3;
                _this.opacity = 0.3;
                _this.defaultState.properties.opacity = 0.4;
                _this.url = "https://www.amcharts.com/";
                _this.urlTarget = "_blank";
                _this.showSystemTooltip = true;
                _this.readerTitle = "Chart created using amCharts library";
                _this.width = 220 * d;
                _this.height = 70 * d;
                _this.background.opacity = 0;
                var aColor = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_4__["color"])("#474758");
                if (new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_2__["InterfaceColorSet"]().getFor("background").alternative.hex == "#ffffff") {
                    aColor = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_4__["color"])("#ffffff");
                }
                var aGradient = new _rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_5__["LinearGradient"]();
                aGradient.addColor(aColor);
                aGradient.addColor(aColor, 1, 0.75);
                aGradient.addColor(Object(_utils_Color__WEBPACK_IMPORTED_MODULE_4__["color"])("#3cabff"), 1, 0.755);
                aGradient.rotation = -10;
                var aStroke = aGradient;
                var m = _this.createChild(_Polyspline__WEBPACK_IMPORTED_MODULE_3__["Polyspline"]);
                m.shouldClone = false;
                m.isMeasured = false;
                m.segments = [[{ x: 50 * d, y: 50 * d }, { x: 90 * d, y: 50 * d }, { x: 120 * d, y: 20 * d }, { x: 135 * d, y: 35 * d }, { x: 150 * d, y: 20 * d }, { x: 180 * d, y: 50 * d }, { x: 200 * d, y: 50 * d }]];
                m.strokeWidth = 6 * d;
                m.tensionX = 0.8;
                m.tensionY = 1;
                m.stroke = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_4__["color"])("#3cabff");
                var a = _this.createChild(_Polyspline__WEBPACK_IMPORTED_MODULE_3__["Polyspline"]);
                a.shouldClone = false;
                a.isMeasured = false;
                a.segments = [[{ x: 20 * d, y: 50 * d }, { x: 50 * d, y: 50 * d }, { x: 90 * d, y: 12 * d }, { x: 133 * d, y: 50 * d }, { x: 170 * d, y: 50 * d }, { x: 200 * d, y: 50 * d }]];
                a.strokeWidth = 6 * d;
                a.tensionX = 0.75;
                a.tensionY = 1;
                a.stroke = aStroke;
                _this._disposers.push(a);
                var desaturateFilter = new _rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_6__["DesaturateFilter"]();
                _this.filters.push(desaturateFilter);
                var desaturateFilterHover = new _rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_6__["DesaturateFilter"]();
                desaturateFilterHover.saturation = 1;
                var hoverState = _this.states.create("hover");
                hoverState.properties.opacity = 1;
                hoverState.filters.push(desaturateFilterHover);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            return AmChartsLogo;
        }(_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        //# sourceMappingURL=AmChartsLogo.js.map
        /***/ 
    }),
    /* 906 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _internal_charts_types_GaugeChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(907);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GaugeChartDataItem", function () { return _internal_charts_types_GaugeChart__WEBPACK_IMPORTED_MODULE_0__["GaugeChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GaugeChart", function () { return _internal_charts_types_GaugeChart__WEBPACK_IMPORTED_MODULE_0__["GaugeChart"]; });
        /* harmony import */ var _internal_charts_types_RadarChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(908);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarChartDataItem", function () { return _internal_charts_types_RadarChart__WEBPACK_IMPORTED_MODULE_1__["RadarChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarChart", function () { return _internal_charts_types_RadarChart__WEBPACK_IMPORTED_MODULE_1__["RadarChart"]; });
        /* harmony import */ var _internal_charts_types_XYChart__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(909);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYChartDataItem", function () { return _internal_charts_types_XYChart__WEBPACK_IMPORTED_MODULE_2__["XYChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYChart", function () { return _internal_charts_types_XYChart__WEBPACK_IMPORTED_MODULE_2__["XYChart"]; });
        /* harmony import */ var _internal_charts_types_SerialChart__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(910);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SerialChartDataItem", function () { return _internal_charts_types_SerialChart__WEBPACK_IMPORTED_MODULE_3__["SerialChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SerialChart", function () { return _internal_charts_types_SerialChart__WEBPACK_IMPORTED_MODULE_3__["SerialChart"]; });
        /* harmony import */ var _internal_charts_types_PieChart3D__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart3DDataItem", function () { return _internal_charts_types_PieChart3D__WEBPACK_IMPORTED_MODULE_4__["PieChart3DDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart3D", function () { return _internal_charts_types_PieChart3D__WEBPACK_IMPORTED_MODULE_4__["PieChart3D"]; });
        /* harmony import */ var _internal_charts_types_PieChart__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(932);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChartDataItem", function () { return _internal_charts_types_PieChart__WEBPACK_IMPORTED_MODULE_5__["PieChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function () { return _internal_charts_types_PieChart__WEBPACK_IMPORTED_MODULE_5__["PieChart"]; });
        /* harmony import */ var _internal_charts_types_SlicedChart__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(938);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SlicedChart", function () { return _internal_charts_types_SlicedChart__WEBPACK_IMPORTED_MODULE_6__["SlicedChart"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SlicedChartDataItem", function () { return _internal_charts_types_SlicedChart__WEBPACK_IMPORTED_MODULE_6__["SlicedChartDataItem"]; });
        /* harmony import */ var _internal_charts_types_FlowDiagram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(939);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramDataItem", function () { return _internal_charts_types_FlowDiagram__WEBPACK_IMPORTED_MODULE_7__["FlowDiagramDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FlowDiagram", function () { return _internal_charts_types_FlowDiagram__WEBPACK_IMPORTED_MODULE_7__["FlowDiagram"]; });
        /* harmony import */ var _internal_charts_types_SankeyDiagram__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(942);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyDiagramDataItem", function () { return _internal_charts_types_SankeyDiagram__WEBPACK_IMPORTED_MODULE_8__["SankeyDiagramDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyDiagram", function () { return _internal_charts_types_SankeyDiagram__WEBPACK_IMPORTED_MODULE_8__["SankeyDiagram"]; });
        /* harmony import */ var _internal_charts_types_ChordDiagram__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(946);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChordDiagramDataItem", function () { return _internal_charts_types_ChordDiagram__WEBPACK_IMPORTED_MODULE_9__["ChordDiagramDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChordDiagram", function () { return _internal_charts_types_ChordDiagram__WEBPACK_IMPORTED_MODULE_9__["ChordDiagram"]; });
        /* harmony import */ var _internal_charts_types_TreeMap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(950);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeMapDataItem", function () { return _internal_charts_types_TreeMap__WEBPACK_IMPORTED_MODULE_10__["TreeMapDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeMap", function () { return _internal_charts_types_TreeMap__WEBPACK_IMPORTED_MODULE_10__["TreeMap"]; });
        /* harmony import */ var _internal_charts_types_XYChart3D__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(954);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYChart3DDataItem", function () { return _internal_charts_types_XYChart3D__WEBPACK_IMPORTED_MODULE_11__["XYChart3DDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYChart3D", function () { return _internal_charts_types_XYChart3D__WEBPACK_IMPORTED_MODULE_11__["XYChart3D"]; });
        /* harmony import */ var _internal_charts_Chart__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(859);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChartDataItem", function () { return _internal_charts_Chart__WEBPACK_IMPORTED_MODULE_12__["ChartDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Chart", function () { return _internal_charts_Chart__WEBPACK_IMPORTED_MODULE_12__["Chart"]; });
        /* harmony import */ var _internal_charts_Legend__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(861);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendDataItem", function () { return _internal_charts_Legend__WEBPACK_IMPORTED_MODULE_13__["LegendDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Legend", function () { return _internal_charts_Legend__WEBPACK_IMPORTED_MODULE_13__["Legend"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendSettings", function () { return _internal_charts_Legend__WEBPACK_IMPORTED_MODULE_13__["LegendSettings"]; });
        /* harmony import */ var _internal_charts_elements_HeatLegend__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(959);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeatLegend", function () { return _internal_charts_elements_HeatLegend__WEBPACK_IMPORTED_MODULE_14__["HeatLegend"]; });
        /* harmony import */ var _internal_charts_series_Series__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(911);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SeriesDataItem", function () { return _internal_charts_series_Series__WEBPACK_IMPORTED_MODULE_15__["SeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Series", function () { return _internal_charts_series_Series__WEBPACK_IMPORTED_MODULE_15__["Series"]; });
        /* harmony import */ var _internal_charts_series_XYSeries__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(917);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYSeriesDataItem", function () { return _internal_charts_series_XYSeries__WEBPACK_IMPORTED_MODULE_16__["XYSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYSeries", function () { return _internal_charts_series_XYSeries__WEBPACK_IMPORTED_MODULE_16__["XYSeries"]; });
        /* harmony import */ var _internal_charts_series_LineSeries__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(926);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSeriesDataItem", function () { return _internal_charts_series_LineSeries__WEBPACK_IMPORTED_MODULE_17__["LineSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSeries", function () { return _internal_charts_series_LineSeries__WEBPACK_IMPORTED_MODULE_17__["LineSeries"]; });
        /* harmony import */ var _internal_charts_series_LineSeriesSegment__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(927);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSeriesSegment", function () { return _internal_charts_series_LineSeriesSegment__WEBPACK_IMPORTED_MODULE_18__["LineSeriesSegment"]; });
        /* harmony import */ var _internal_charts_series_CandlestickSeries__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(960);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CandlestickSeriesDataItem", function () { return _internal_charts_series_CandlestickSeries__WEBPACK_IMPORTED_MODULE_19__["CandlestickSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CandlestickSeries", function () { return _internal_charts_series_CandlestickSeries__WEBPACK_IMPORTED_MODULE_19__["CandlestickSeries"]; });
        /* harmony import */ var _internal_charts_series_OHLCSeries__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(962);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OHLCSeriesDataItem", function () { return _internal_charts_series_OHLCSeries__WEBPACK_IMPORTED_MODULE_20__["OHLCSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OHLCSeries", function () { return _internal_charts_series_OHLCSeries__WEBPACK_IMPORTED_MODULE_20__["OHLCSeries"]; });
        /* harmony import */ var _internal_charts_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(952);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnSeriesDataItem", function () { return _internal_charts_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_21__["ColumnSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries", function () { return _internal_charts_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_21__["ColumnSeries"]; });
        /* harmony import */ var _internal_charts_series_StepLineSeries__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(964);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepLineSeriesDataItem", function () { return _internal_charts_series_StepLineSeries__WEBPACK_IMPORTED_MODULE_22__["StepLineSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StepLineSeries", function () { return _internal_charts_series_StepLineSeries__WEBPACK_IMPORTED_MODULE_22__["StepLineSeries"]; });
        /* harmony import */ var _internal_charts_series_RadarSeries__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(925);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarSeriesDataItem", function () { return _internal_charts_series_RadarSeries__WEBPACK_IMPORTED_MODULE_23__["RadarSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarSeries", function () { return _internal_charts_series_RadarSeries__WEBPACK_IMPORTED_MODULE_23__["RadarSeries"]; });
        /* harmony import */ var _internal_charts_series_RadarColumnSeries__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(966);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarColumnSeriesDataItem", function () { return _internal_charts_series_RadarColumnSeries__WEBPACK_IMPORTED_MODULE_24__["RadarColumnSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarColumnSeries", function () { return _internal_charts_series_RadarColumnSeries__WEBPACK_IMPORTED_MODULE_24__["RadarColumnSeries"]; });
        /* harmony import */ var _internal_charts_series_PieSeries__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(935);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieSeriesDataItem", function () { return _internal_charts_series_PieSeries__WEBPACK_IMPORTED_MODULE_25__["PieSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieSeries", function () { return _internal_charts_series_PieSeries__WEBPACK_IMPORTED_MODULE_25__["PieSeries"]; });
        /* harmony import */ var _internal_charts_series_FunnelSeries__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(968);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FunnelSeries", function () { return _internal_charts_series_FunnelSeries__WEBPACK_IMPORTED_MODULE_26__["FunnelSeries"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FunnelSeriesDataItem", function () { return _internal_charts_series_FunnelSeries__WEBPACK_IMPORTED_MODULE_26__["FunnelSeriesDataItem"]; });
        /* harmony import */ var _internal_charts_series_PyramidSeries__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(971);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PyramidSeries", function () { return _internal_charts_series_PyramidSeries__WEBPACK_IMPORTED_MODULE_27__["PyramidSeries"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PyramidSeriesDataItem", function () { return _internal_charts_series_PyramidSeries__WEBPACK_IMPORTED_MODULE_27__["PyramidSeriesDataItem"]; });
        /* harmony import */ var _internal_charts_series_PictorialStackedSeries__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(972);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PictorialStackedSeries", function () { return _internal_charts_series_PictorialStackedSeries__WEBPACK_IMPORTED_MODULE_28__["PictorialStackedSeries"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PictorialStackedSeriesDataItem", function () { return _internal_charts_series_PictorialStackedSeries__WEBPACK_IMPORTED_MODULE_28__["PictorialStackedSeriesDataItem"]; });
        /* harmony import */ var _internal_charts_elements_PieTick__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(936);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieTick", function () { return _internal_charts_elements_PieTick__WEBPACK_IMPORTED_MODULE_29__["PieTick"]; });
        /* harmony import */ var _internal_charts_elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(969);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FunnelSlice", function () { return _internal_charts_elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_30__["FunnelSlice"]; });
        /* harmony import */ var _internal_charts_series_PieSeries3D__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(937);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieSeries3DDataItem", function () { return _internal_charts_series_PieSeries3D__WEBPACK_IMPORTED_MODULE_31__["PieSeries3DDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieSeries3D", function () { return _internal_charts_series_PieSeries3D__WEBPACK_IMPORTED_MODULE_31__["PieSeries3D"]; });
        /* harmony import */ var _internal_charts_series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(951);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeMapSeriesDataItem", function () { return _internal_charts_series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_32__["TreeMapSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeMapSeries", function () { return _internal_charts_series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_32__["TreeMapSeries"]; });
        /* harmony import */ var _internal_charts_series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(957);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries3DDataItem", function () { return _internal_charts_series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_33__["ColumnSeries3DDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries3D", function () { return _internal_charts_series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_33__["ColumnSeries3D"]; });
        /* harmony import */ var _internal_charts_series_ConeSeries__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(973);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConeSeriesDataItem", function () { return _internal_charts_series_ConeSeries__WEBPACK_IMPORTED_MODULE_34__["ConeSeriesDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConeSeries", function () { return _internal_charts_series_ConeSeries__WEBPACK_IMPORTED_MODULE_34__["ConeSeries"]; });
        /* harmony import */ var _internal_charts_series_CurvedColumnSeries__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(975);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CurvedColumnSeries", function () { return _internal_charts_series_CurvedColumnSeries__WEBPACK_IMPORTED_MODULE_35__["CurvedColumnSeries"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CurvedColumnSeriesDataItem", function () { return _internal_charts_series_CurvedColumnSeries__WEBPACK_IMPORTED_MODULE_35__["CurvedColumnSeriesDataItem"]; });
        /* harmony import */ var _internal_charts_axes_Axis__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(914);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisDataItem", function () { return _internal_charts_axes_Axis__WEBPACK_IMPORTED_MODULE_36__["AxisDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function () { return _internal_charts_axes_Axis__WEBPACK_IMPORTED_MODULE_36__["Axis"]; });
        /* harmony import */ var _internal_charts_axes_Grid__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(843);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function () { return _internal_charts_axes_Grid__WEBPACK_IMPORTED_MODULE_37__["Grid"]; });
        /* harmony import */ var _internal_charts_axes_AxisTick__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(846);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisTick", function () { return _internal_charts_axes_AxisTick__WEBPACK_IMPORTED_MODULE_38__["AxisTick"]; });
        /* harmony import */ var _internal_charts_axes_AxisLabel__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(844);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisLabel", function () { return _internal_charts_axes_AxisLabel__WEBPACK_IMPORTED_MODULE_39__["AxisLabel"]; });
        /* harmony import */ var _internal_charts_axes_AxisLine__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(841);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisLine", function () { return _internal_charts_axes_AxisLine__WEBPACK_IMPORTED_MODULE_40__["AxisLine"]; });
        /* harmony import */ var _internal_charts_axes_AxisFill__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(842);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisFill", function () { return _internal_charts_axes_AxisFill__WEBPACK_IMPORTED_MODULE_41__["AxisFill"]; });
        /* harmony import */ var _internal_charts_axes_AxisRenderer__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(840);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRenderer", function () { return _internal_charts_axes_AxisRenderer__WEBPACK_IMPORTED_MODULE_42__["AxisRenderer"]; });
        /* harmony import */ var _internal_charts_axes_AxisBreak__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(915);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisBreak", function () { return _internal_charts_axes_AxisBreak__WEBPACK_IMPORTED_MODULE_43__["AxisBreak"]; });
        /* harmony import */ var _internal_charts_axes_ValueAxis__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(918);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValueAxisDataItem", function () { return _internal_charts_axes_ValueAxis__WEBPACK_IMPORTED_MODULE_44__["ValueAxisDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValueAxis", function () { return _internal_charts_axes_ValueAxis__WEBPACK_IMPORTED_MODULE_44__["ValueAxis"]; });
        /* harmony import */ var _internal_charts_axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(913);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CategoryAxisDataItem", function () { return _internal_charts_axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_45__["CategoryAxisDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CategoryAxis", function () { return _internal_charts_axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_45__["CategoryAxis"]; });
        /* harmony import */ var _internal_charts_axes_CategoryAxisBreak__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(916);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CategoryAxisBreak", function () { return _internal_charts_axes_CategoryAxisBreak__WEBPACK_IMPORTED_MODULE_46__["CategoryAxisBreak"]; });
        /* harmony import */ var _internal_charts_axes_DateAxis__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(920);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateAxisDataItem", function () { return _internal_charts_axes_DateAxis__WEBPACK_IMPORTED_MODULE_47__["DateAxisDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateAxis", function () { return _internal_charts_axes_DateAxis__WEBPACK_IMPORTED_MODULE_47__["DateAxis"]; });
        /* harmony import */ var _internal_charts_axes_DurationAxis__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(977);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DurationAxisDataItem", function () { return _internal_charts_axes_DurationAxis__WEBPACK_IMPORTED_MODULE_48__["DurationAxisDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DurationAxis", function () { return _internal_charts_axes_DurationAxis__WEBPACK_IMPORTED_MODULE_48__["DurationAxis"]; });
        /* harmony import */ var _internal_charts_axes_DateAxisBreak__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(921);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateAxisBreak", function () { return _internal_charts_axes_DateAxisBreak__WEBPACK_IMPORTED_MODULE_49__["DateAxisBreak"]; });
        /* harmony import */ var _internal_charts_axes_ValueAxisBreak__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(919);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValueAxisBreak", function () { return _internal_charts_axes_ValueAxisBreak__WEBPACK_IMPORTED_MODULE_50__["ValueAxisBreak"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(848);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererX", function () { return _internal_charts_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_51__["AxisRendererX"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(854);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererY", function () { return _internal_charts_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_52__["AxisRendererY"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererRadial__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(929);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererRadial", function () { return _internal_charts_axes_AxisRendererRadial__WEBPACK_IMPORTED_MODULE_53__["AxisRendererRadial"]; });
        /* harmony import */ var _internal_charts_axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(858);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisLabelCircular", function () { return _internal_charts_axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_54__["AxisLabelCircular"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererCircular__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(855);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererCircular", function () { return _internal_charts_axes_AxisRendererCircular__WEBPACK_IMPORTED_MODULE_55__["AxisRendererCircular"]; });
        /* harmony import */ var _internal_charts_axes_AxisFillCircular__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(856);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisFillCircular", function () { return _internal_charts_axes_AxisFillCircular__WEBPACK_IMPORTED_MODULE_56__["AxisFillCircular"]; });
        /* harmony import */ var _internal_charts_axes_GridCircular__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(857);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GridCircular", function () { return _internal_charts_axes_GridCircular__WEBPACK_IMPORTED_MODULE_57__["GridCircular"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererX3D__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(955);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererX3D", function () { return _internal_charts_axes_AxisRendererX3D__WEBPACK_IMPORTED_MODULE_58__["AxisRendererX3D"]; });
        /* harmony import */ var _internal_charts_axes_AxisRendererY3D__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(956);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisRendererY3D", function () { return _internal_charts_axes_AxisRendererY3D__WEBPACK_IMPORTED_MODULE_59__["AxisRendererY3D"]; });
        /* harmony import */ var _internal_charts_elements_Tick__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(847);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tick", function () { return _internal_charts_elements_Tick__WEBPACK_IMPORTED_MODULE_60__["Tick"]; });
        /* harmony import */ var _internal_charts_elements_Bullet__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(912);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Bullet", function () { return _internal_charts_elements_Bullet__WEBPACK_IMPORTED_MODULE_61__["Bullet"]; });
        /* harmony import */ var _internal_charts_elements_LabelBullet__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(944);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelBullet", function () { return _internal_charts_elements_LabelBullet__WEBPACK_IMPORTED_MODULE_62__["LabelBullet"]; });
        /* harmony import */ var _internal_charts_elements_CircleBullet__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(978);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CircleBullet", function () { return _internal_charts_elements_CircleBullet__WEBPACK_IMPORTED_MODULE_63__["CircleBullet"]; });
        /* harmony import */ var _internal_charts_elements_ErrorBullet__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(979);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorBullet", function () { return _internal_charts_elements_ErrorBullet__WEBPACK_IMPORTED_MODULE_64__["ErrorBullet"]; });
        /* harmony import */ var _internal_charts_elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(924);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYChartScrollbar", function () { return _internal_charts_elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_65__["XYChartScrollbar"]; });
        /* harmony import */ var _internal_charts_elements_ClockHand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(930);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClockHand", function () { return _internal_charts_elements_ClockHand__WEBPACK_IMPORTED_MODULE_66__["ClockHand"]; });
        /* harmony import */ var _internal_charts_elements_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(940);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramNode", function () { return _internal_charts_elements_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_67__["FlowDiagramNode"]; });
        /* harmony import */ var _internal_charts_elements_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(941);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramLink", function () { return _internal_charts_elements_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_68__["FlowDiagramLink"]; });
        /* harmony import */ var _internal_charts_elements_SankeyNode__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(943);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyNode", function () { return _internal_charts_elements_SankeyNode__WEBPACK_IMPORTED_MODULE_69__["SankeyNode"]; });
        /* harmony import */ var _internal_charts_elements_SankeyLink__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(945);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyLink", function () { return _internal_charts_elements_SankeyLink__WEBPACK_IMPORTED_MODULE_70__["SankeyLink"]; });
        /* harmony import */ var _internal_charts_elements_ChordNode__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(947);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChordNode", function () { return _internal_charts_elements_ChordNode__WEBPACK_IMPORTED_MODULE_71__["ChordNode"]; });
        /* harmony import */ var _internal_charts_elements_ChordLink__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(948);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChordLink", function () { return _internal_charts_elements_ChordLink__WEBPACK_IMPORTED_MODULE_72__["ChordLink"]; });
        /* harmony import */ var _internal_charts_elements_NavigationBar__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(980);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavigationBarDataItem", function () { return _internal_charts_elements_NavigationBar__WEBPACK_IMPORTED_MODULE_73__["NavigationBarDataItem"]; });
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavigationBar", function () { return _internal_charts_elements_NavigationBar__WEBPACK_IMPORTED_MODULE_73__["NavigationBar"]; });
        /* harmony import */ var _internal_charts_elements_Column__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(953);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column", function () { return _internal_charts_elements_Column__WEBPACK_IMPORTED_MODULE_74__["Column"]; });
        /* harmony import */ var _internal_charts_elements_Candlestick__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(961);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Candlestick", function () { return _internal_charts_elements_Candlestick__WEBPACK_IMPORTED_MODULE_75__["Candlestick"]; });
        /* harmony import */ var _internal_charts_elements_OHLC__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(963);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OHLC", function () { return _internal_charts_elements_OHLC__WEBPACK_IMPORTED_MODULE_76__["OHLC"]; });
        /* harmony import */ var _internal_charts_elements_RadarColumn__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(967);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarColumn", function () { return _internal_charts_elements_RadarColumn__WEBPACK_IMPORTED_MODULE_77__["RadarColumn"]; });
        /* harmony import */ var _internal_charts_elements_Column3D__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(958);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column3D", function () { return _internal_charts_elements_Column3D__WEBPACK_IMPORTED_MODULE_78__["Column3D"]; });
        /* harmony import */ var _internal_charts_elements_ConeColumn__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(974);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConeColumn", function () { return _internal_charts_elements_ConeColumn__WEBPACK_IMPORTED_MODULE_79__["ConeColumn"]; });
        /* harmony import */ var _internal_charts_elements_CurvedColumn__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(976);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CurvedColumn", function () { return _internal_charts_elements_CurvedColumn__WEBPACK_IMPORTED_MODULE_80__["CurvedColumn"]; });
        /* harmony import */ var _internal_charts_cursors_XYCursor__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(922);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XYCursor", function () { return _internal_charts_cursors_XYCursor__WEBPACK_IMPORTED_MODULE_81__["XYCursor"]; });
        /* harmony import */ var _internal_charts_cursors_Cursor__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(923);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cursor", function () { return _internal_charts_cursors_Cursor__WEBPACK_IMPORTED_MODULE_82__["Cursor"]; });
        /* harmony import */ var _internal_charts_cursors_RadarCursor__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(928);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarCursor", function () { return _internal_charts_cursors_RadarCursor__WEBPACK_IMPORTED_MODULE_83__["RadarCursor"]; });
        /**
         * Module: gauge
         */
        /**
         * Elements: types
         */
        /**
         * Elements: charts
         */
        /**
         * Elements: series
         */
        /**
         * Elements: axes
         */
        /**
         * Elements: elements
         */
        /**
         * Elements: cursors
         */
        //# sourceMappingURL=charts.js.map
        /***/ 
    }),
    /* 907 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeChartDataItem", function () { return GaugeChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeChart", function () { return GaugeChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _RadarChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(908);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _elements_ClockHand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(930);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * Module for building Gauge charts.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[GaugeChart]].
         *
         * @see {@link DataItem}
         */
        var GaugeChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GaugeChartDataItem, _super);
            /**
             * Constructor
             */
            function GaugeChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "GaugeChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return GaugeChartDataItem;
        }(_RadarChart__WEBPACK_IMPORTED_MODULE_1__["RadarChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Gauge chart.
         *
         * @see {@link IGaugeChartEvents} for a list of available Events
         * @see {@link IGaugeChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/gauge-chart/} for documentation
         * @important
         */
        var GaugeChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GaugeChart, _super);
            /**
             * Constructor
             */
            function GaugeChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "GaugeChart";
                _this.startAngle = 180;
                _this.endAngle = 360;
                _this.hands = new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListTemplate"](new _elements_ClockHand__WEBPACK_IMPORTED_MODULE_3__["ClockHand"]());
                _this.hands.events.on("inserted", _this.processHand, _this, false);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListDisposer"](_this.hands));
                _this._disposers.push(_this.hands.template);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            GaugeChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Gauge chart");
                }
            };
            /**
             * Decorates a [[ClockHand]] when it is added to the chart.
             *
             * @param {IListEvents<ClockHand>["inserted"]}  event  Event
             */
            GaugeChart.prototype.processHand = function (event) {
                var hand = event.newValue;
                if (!hand.axis) {
                    hand.axis = this.xAxes.getIndex(0);
                }
            };
            return GaugeChart;
        }(_RadarChart__WEBPACK_IMPORTED_MODULE_1__["RadarChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["GaugeChart"] = GaugeChart;
        //# sourceMappingURL=GaugeChart.js.map
        /***/ 
    }),
    /* 908 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarChartDataItem", function () { return RadarChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarChart", function () { return RadarChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(909);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _series_RadarSeries__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(925);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_Circle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(866);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(751);
        /* harmony import */ var _cursors_RadarCursor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(928);
        /* harmony import */ var _axes_AxisRendererCircular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(855);
        /* harmony import */ var _axes_AxisRendererRadial__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(929);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(852);
        /**
         * Radar chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[RadarChart]].
         *
         * @see {@link DataItem}
         */
        var RadarChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarChartDataItem, _super);
            /**
             * Constructor
             */
            function RadarChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "RadarChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return RadarChartDataItem;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Radar chart.
         *
         * @see {@link IRadarChartEvents} for a list of available Events
         * @see {@link IRadarChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/radar-chart/} for documentation
         * @important
         */
        var RadarChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarChart, _super);
            /**
             * Constructor
             */
            function RadarChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Defines X axis renderer type.
                 *
                 * @type {AxisRendererCircular}
                 */
                _this._axisRendererX = _axes_AxisRendererCircular__WEBPACK_IMPORTED_MODULE_8__["AxisRendererCircular"];
                /**
                 * Defines Y axis renderer type.
                 *
                 * @type {AxisRendererRadial}
                 */
                _this._axisRendererY = _axes_AxisRendererRadial__WEBPACK_IMPORTED_MODULE_9__["AxisRendererRadial"];
                /**
                 * used by cursor. We adjust innerradius if start and end angle are close to each other
                 * @ignore Exclude from docs
                 */
                _this.innerRadiusModifyer = 1;
                _this.className = "RadarChart";
                _this.startAngle = -90;
                _this.endAngle = 270;
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(80);
                _this.innerRadius = 0;
                var radarContainer = _this.plotContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_4__["Container"]);
                radarContainer.shouldClone = false;
                radarContainer.layout = "absolute";
                radarContainer.align = "center";
                radarContainer.valign = "middle";
                _this.seriesContainer.parent = radarContainer;
                _this.radarContainer = radarContainer;
                _this.bulletsContainer.parent = radarContainer;
                _this._cursorContainer = radarContainer;
                _this._bulletMask = radarContainer.createChild(_core_elements_Circle__WEBPACK_IMPORTED_MODULE_5__["Circle"]);
                _this._bulletMask.shouldClone = false;
                _this._bulletMask.element = _this.paper.add("path");
                _this._bulletMask.opacity = 0;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            RadarChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Radar chart");
                }
            };
            /**
             * Decorates Axis with required properties for this chart.
             *
             * @param {Axis}  axis  Axis
             */
            RadarChart.prototype.processAxis = function (axis) {
                _super.prototype.processAxis.call(this, axis);
                var renderer = axis.renderer;
                renderer.gridContainer.parent = renderer;
                renderer.breakContainer.parent = renderer;
                axis.parent = this.radarContainer;
                renderer.toBack();
            };
            /**
             * Updates all X axes after range change event.
             *
             * @param {AMEvent<Axis, IComponentEvents>["datarangechanged"]}  event  Event
             */
            RadarChart.prototype.handleXAxisRangeChange = function (event) {
                _super.prototype.handleXAxisRangeChange.call(this, event);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.yAxes.iterator(), function (axis) {
                    axis.invalidate();
                });
            };
            /**
             * Updates all Y axes after range change event.
             *
             * @param {AMEvent<Axis, IComponentEvents>["datarangechanged"]}  event  Event
             */
            RadarChart.prototype.handleYAxisRangeChange = function (event) {
                _super.prototype.handleYAxisRangeChange.call(this, event);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.xAxes.iterator(), function (axis) {
                    axis.invalidate();
                });
            };
            /**
             * Creates and returns a new Cursor, of type suitable for RadarChart.
             *
             * @return {RadarCursor} Cursor
             */
            RadarChart.prototype.createCursor = function () {
                return new _cursors_RadarCursor__WEBPACK_IMPORTED_MODULE_7__["RadarCursor"]();
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            RadarChart.prototype.processConfig = function (config) {
                if (config) {
                    // Set up cursor
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.cursor) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.cursor.type)) {
                        config.cursor.type = "RadarCursor";
                    }
                    // Set up series
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](config.series)) {
                        for (var i = 0, len = config.series.length; i < len; i++) {
                            config.series[i].type = config.series[i].type || "RadarSeries";
                        }
                    }
                    // Set up axes
                    /*if ($type.hasValue(config.xAxes) && $type.isArray(config.xAxes)) {
                        for (let i = 0, len = config.xAxes.length; i < len; i++) {
                            config.xAxes[i].type = config.xAxes[i].type || "AxisRendererCircular";
                        }
                    }
                    if ($type.hasValue(config.yAxes) && $type.isArray(config.yAxes)) {
                        for (let i = 0, len = config.yAxes.length; i < len; i++) {
                            config.yAxes[i].type = config.yAxes[i].type || "AxisRendererRadial";
                        }
                    }*/
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * Does calculations before drawing the chart.
             */
            RadarChart.prototype.beforeDraw = function () {
                _super.prototype.beforeDraw.call(this);
                var radarCont = this.radarContainer;
                var plotContainer = this.plotContainer;
                var rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["getArcRect"](this.startAngle, this.endAngle, 1);
                var innerRect = { x: 0, y: 0, width: 0, height: 0 };
                var wr = plotContainer.innerWidth / rect.width;
                var hr = plotContainer.innerHeight / rect.height;
                var innerRadius = this.innerRadius;
                if (innerRadius instanceof _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["Percent"]) {
                    var value = innerRadius.value;
                    var mr = Math.min(wr, hr);
                    value = Math.max(mr * value, mr - Math.min(plotContainer.innerHeight, plotContainer.innerWidth)) / mr;
                    innerRect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["getArcRect"](this.startAngle, this.endAngle, value);
                    this.innerRadiusModifyer = value / innerRadius.value;
                    innerRadius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(value * 100);
                }
                // @todo handle this when innerRadius set in pixels (do it for pie also)
                rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["getCommonRectangle"]([rect, innerRect]);
                var maxRadius = Math.min(plotContainer.innerWidth / rect.width, plotContainer.innerHeight / rect.height);
                var diameter = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["relativeRadiusToValue"](this.radius, maxRadius) * 2 || 0;
                var radius = diameter / 2;
                var startAngle = this.startAngle;
                var endAngle = this.endAngle;
                this._pixelInnerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["relativeRadiusToValue"](innerRadius, radius);
                this._bulletMask.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_14__["arc"](startAngle, endAngle - startAngle, radius, this._pixelInnerRadius);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.xAxes.iterator(), function (axis) {
                    if (axis.renderer.useChartAngles) {
                        axis.renderer.startAngle = startAngle;
                        axis.renderer.endAngle = endAngle;
                    }
                    axis.width = diameter;
                    axis.height = diameter;
                    //axis.renderer.width = diameter;
                    //axis.renderer.height = diameter;
                    axis.renderer.pixelRadiusReal = radius;
                    axis.renderer.innerRadius = innerRadius;
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.yAxes.iterator(), function (axis) {
                    axis.renderer.startAngle = startAngle;
                    axis.renderer.endAngle = endAngle;
                    axis.width = diameter;
                    axis.height = diameter;
                    //axis.renderer.width = diameter;
                    //axis.renderer.height = diameter;
                    axis.renderer.pixelRadiusReal = radius;
                    axis.renderer.innerRadius = innerRadius;
                });
                var cursor = this.cursor;
                if (cursor) {
                    cursor.width = diameter;
                    cursor.height = diameter;
                    cursor.startAngle = startAngle;
                    cursor.endAngle = endAngle;
                }
                this.radarContainer.definedBBox = { x: radius * rect.x, y: radius * rect.y, width: radius * rect.width, height: radius * rect.height };
                this.radarContainer.validatePosition();
            };
            /**
             * Creates and returns a new Series, suitable for RadarChart.
             *
             * @return {RadarSeries} New Series
             */
            RadarChart.prototype.createSeries = function () {
                return new _series_RadarSeries__WEBPACK_IMPORTED_MODULE_3__["RadarSeries"]();
            };
            Object.defineProperty(RadarChart.prototype, "startAngle", {
                /**
                 * @return {number} Start angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Starting angle of the Radar face. (degrees)
                 *
                 * Normally, a circular radar face begins (the radial axis is drawn) at the
                 * top center. (at -90 degrees)
                 *
                 * You can use `startAngle` to change this setting.
                 *
                 * E.g. setting this to 0 will make the radial axis start horizontally to
                 * the right, as opposed to vertical.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set those to lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a radar face that
                 * looks like a quarter of a circle.
                 *
                 * @default -90
                 * @param {number}  value  Start angle (degrees)
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarChart.prototype, "endAngle", {
                /**
                 * @return {number} End angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * Starting angle of the Radar face. (degrees)
                 *
                 * Normally, a circular radar face ends (the radial axis is drawn) exactly
                 * where it has started, forming a full 360 circle. (at 270 degrees)
                 *
                 * You can use `endAngle` to end the circle somewhere else.
                 *
                 * E.g. setting this to 180 will make the radar face end at horizontal line
                 * to the left off the center.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set those to lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a radar face that
                 * looks like a quarter of a circle.
                 *
                 * @default -90
                 * @param {number}  value  End angle (degrees)
                 */
                set: function (value) {
                    this.setPropertyValue("endAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarChart.prototype, "radius", {
                /**
                 * @return {number} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the Radar face.
                 *
                 * This can either be in absolute pixel value, or relative [[Percent]].
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarChart.prototype, "pixelInnerRadius", {
                /**
                 * @return {number} Inner radius in pixels
                 */
                get: function () {
                    return this._pixelInnerRadius;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarChart.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the radar face.
                 *
                 * This can either be in absolute pixel value, or relative [[Percent]].
                 *
                 * If set in Percent, it will be relative to `radius`. (outer radius)
                 *
                 * @param {number | Percent} value Inner radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Triggers (re)rendering of the horizontal (X) axis.
             *
             * @ignore Exclude from docs
             * @param {Axis} axis Axis
             */
            RadarChart.prototype.updateXAxis = function (renderer) {
                //do not call super!
                if (renderer) {
                    renderer.processRenderer();
                }
            };
            /**
             * Triggers (re)rendering of the vertical (Y) axis.
             *
             * @ignore Exclude from docs
             * @param {Axis} axis Axis
             */
            RadarChart.prototype.updateYAxis = function (renderer) {
                // do not call super!
                if (renderer) {
                    renderer.processRenderer();
                }
            };
            return RadarChart;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["RadarChart"] = RadarChart;
        //# sourceMappingURL=RadarChart.js.map
        /***/ 
    }),
    /* 909 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYChartDataItem", function () { return XYChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYChart", function () { return XYChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _SerialChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(910);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(848);
        /* harmony import */ var _axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(854);
        /* harmony import */ var _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(913);
        /* harmony import */ var _series_XYSeries__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(917);
        /* harmony import */ var _cursors_XYCursor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(922);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(754);
        /* harmony import */ var _core_elements_ZoomOutButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(887);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(751);
        /* harmony import */ var _elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(924);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(795);
        /**
         * XY Chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[XYChart]].
         *
         * @see {@link DataItem}
         */
        var XYChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYChartDataItem, _super);
            /**
             * Constructor
             */
            function XYChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "XYChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return XYChartDataItem;
        }(_SerialChart__WEBPACK_IMPORTED_MODULE_1__["SerialChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates an XY chart, and any derivative chart, like Serial, Date-based, etc.
         *
         * Basically this is a chart type, that is used to display any chart
         * information in a square plot area.
         *
         * The horizontal and vertical scale is determined by the type of Axis.
         *
         * The plot types are determined by type of Series.
         *
         * ```TypeScript
         * // Includes
         * import * as am4core from "@amcharts/amcharts4/core";
         * import * as am4charts from "@amcharts/amcharts4/charts";
         *
         * // Create chart
         * let chart = am4core.create("chartdiv", am4charts.XYChart);
         *
         * // Add Data
         * chart.data = [{
         * "country": "USA",
         * "visits": 3025
         * }, {
         * 	"country": "China",
         * 	"visits": 1882
         * }, {
         * 	"country": "Japan",
         * 	"visits": 1809
         * }];
         *
         * // Add category axis
         * let categoryAxis = chart.xAxes.push(new am4charts.CategoryAxis());
         * categoryAxis.dataFields.category = "country";
         *
         * // Add value axis
         * let valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
         *
         * // Add series
         * let series = chart.series.push(new am4charts.ColumnSeries());
         * series.name = "Web Traffic";
         * series.dataFields.categoryX = "country";
         * series.dataFields.valueY = "visits";
         * ```
         * ```JavaScript
         * // Create chart
         * var chart = am4core.create("chartdiv", am4charts.XYChart);
         *
         * // The following would work as well:
         * // var chart = am4core.create("chartdiv", "XYChart");
         *
         * // Add Data
         * chart.data = [{
         * "country": "USA",
         * "visits": 3025
         * }, {
         * 	"country": "China",
         * 	"visits": 1882
         * }, {
         * 	"country": "Japan",
         * 	"visits": 1809
         * }];
         *
         * // Add category axis
         * var categoryAxis = chart.xAxes.push(new am4charts.CategoryAxis());
         * categoryAxis.dataFields.category = "country";
         *
         * // Add value axis
         * var valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
         *
         * // Add series
         * var series = chart.series.push(new am4charts.ColumnSeries());
         * series.name = "Web Traffic";
         * series.dataFields.categoryX = "country";
         * series.dataFields.valueY = "visits";
         * ```
         * ```JSON
         * var chart = am4core.createFromConfig({
         *
         * 	// Category axis
         * 	"xAxes": [{
         * 		"type": "CategoryAxis",
         * 		"dataFields": {
         * 			"category": "country"
         * 		}
         * 	}],
         *
         * 	// Value axis
         * 	"yAxes": [{
         * 		"type": "ValueAxis"
         * 	}],
         *
         * 	// Series
         * 	"series": [{
         * 		"type": "ColumnSeries",
         * 		"dataFields": {
         * 			"categoryX": "country",
         * 			"valueY": "visits"
         * 		},
         * 		"name": "Web Traffic"
         * 	}],
         *
         * 	// Cursor
         * 	"cursor": {},
         *
         * 	// Data
         * 	"data": [{
         * 		"country": "USA",
         * 		"visits": 3025
         * 	}, {
         * 		"country": "China",
         * 		"visits": 1882
         * 	}, {
         * 		"country": "Japan",
         * 		"visits": 1809
         * 	}]
         *
         * }, "chartdiv", "XYChart");
         * ```
         *
         *
         * @see {@link IXYChartEvents} for a list of available Events
         * @see {@link IXYChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/xy-chart/} for documentation
         * @important
         */
        var XYChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYChart, _super);
            /**
             * Constructor
             */
            function XYChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Defines the type of horizontal axis rederer.
                 *
                 * @type {typeof AxisRendererX}
                 */
                _this._axisRendererX = _axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_4__["AxisRendererX"];
                /**
                 * Defines the type of vertical axis rederer.
                 *
                 * @type {typeof AxisRendererY}
                 */
                _this._axisRendererY = _axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_5__["AxisRendererY"];
                _this.className = "XYChart";
                // Set defaults
                //this.margin(10, 10, 10, 10);
                _this.maskBullets = true;
                // Create main chart container
                var chartContainer = _this.chartContainer;
                chartContainer.layout = "vertical";
                _this.padding(15, 15, 15, 15);
                // Create top axes container
                var topAxesCont = chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                topAxesCont.shouldClone = false;
                topAxesCont.layout = "vertical";
                topAxesCont.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                topAxesCont.zIndex = 1;
                _this.topAxesContainer = topAxesCont;
                // Create vertical axes and plot area container
                // Plot area and vertical axes share the whole width of the chart,
                // so we need to put then into a separate container so that layouting
                // engine takes care of the positioning
                var yAxesAndPlotCont = chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                yAxesAndPlotCont.shouldClone = false;
                yAxesAndPlotCont.layout = "horizontal";
                yAxesAndPlotCont.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                yAxesAndPlotCont.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                yAxesAndPlotCont.zIndex = 0;
                _this.yAxesAndPlotContainer = yAxesAndPlotCont;
                // Create a container for bottom axes
                var bottomAxesCont = chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                bottomAxesCont.shouldClone = false;
                bottomAxesCont.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                bottomAxesCont.layout = "vertical";
                bottomAxesCont.zIndex = 1;
                _this.bottomAxesContainer = bottomAxesCont;
                // Create a container for left-side axes
                var leftAxesCont = yAxesAndPlotCont.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                leftAxesCont.shouldClone = false;
                leftAxesCont.layout = "horizontal";
                leftAxesCont.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                leftAxesCont.contentAlign = "right";
                leftAxesCont.events.on("transformed", _this.updateXAxesMargins, _this, false);
                leftAxesCont.zIndex = 1;
                _this.leftAxesContainer = leftAxesCont;
                // Create a container for plot area
                var plotCont = yAxesAndPlotCont.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                plotCont.shouldClone = false;
                plotCont.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                plotCont.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                // Create transparend background for plot container so that hover works
                // on all of it
                plotCont.background.fillOpacity = 0;
                _this.plotContainer = plotCont;
                // must go below plot container
                _this.mouseWheelBehavior = "none";
                _this._cursorContainer = plotCont;
                // Create a container for right-side axes
                var rightAxesCont = yAxesAndPlotCont.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                rightAxesCont.shouldClone = false;
                rightAxesCont.layout = "horizontal";
                rightAxesCont.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                rightAxesCont.zIndex = 1;
                rightAxesCont.events.on("transformed", _this.updateXAxesMargins, _this, false);
                _this.rightAxesContainer = rightAxesCont;
                _this.seriesContainer.parent = plotCont;
                _this.bulletsContainer.parent = plotCont;
                var zoomOutButton = plotCont.createChild(_core_elements_ZoomOutButton__WEBPACK_IMPORTED_MODULE_10__["ZoomOutButton"]);
                zoomOutButton.shouldClone = false;
                zoomOutButton.align = "right";
                zoomOutButton.valign = "top";
                zoomOutButton.zIndex = Number.MAX_SAFE_INTEGER;
                zoomOutButton.marginTop = 5;
                zoomOutButton.marginRight = 5;
                zoomOutButton.hide(0);
                _this.zoomOutButton = zoomOutButton;
                _this._bulletMask = _this.plotContainer;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            XYChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                this.zoomOutButton.exportable = false;
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("X/Y chart");
                }
            };
            /**
             * Draws the chart.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.draw = function () {
                _super.prototype.draw.call(this);
                this.seriesContainer.toFront();
                this.bulletsContainer.toFront();
                if (this.maskBullets) {
                    this.bulletsContainer.mask = this._bulletMask;
                }
                this.updateSeriesLegend();
            };
            /**
             * Triggers a redrawing of all chart's series.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.updatePlotElements = function () {
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                    series.invalidate();
                });
            };
            /**
             * Triggers data (re)validation which in turn can cause a redraw of the
             * whole chart or just aprticular series / elements.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.validateData = function () {
                // tell axes that data changed
                if (this._parseDataFrom == 0) {
                    // commented, because series does this.
                    //$iter.each(this.xAxes.iterator(), (axis) => {
                    //axis.dataChangeUpdate();
                    //});
                    //$iter.each(this.yAxes.iterator(), (axis) => {
                    //axis.dataChangeUpdate();
                    //});
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                        series.dataChangeUpdate();
                    });
                }
                _super.prototype.validateData.call(this);
            };
            /**
             * Updates margins for horizontal axes based on settings and available space.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.updateXAxesMargins = function () {
                var leftAxesWidth = this.leftAxesContainer.measuredWidth;
                var rightAxesWidth = this.rightAxesContainer.measuredWidth;
                var bottomAxesCont = this.bottomAxesContainer;
                if (bottomAxesCont.paddingLeft != leftAxesWidth || bottomAxesCont.paddingRight != rightAxesWidth) {
                    bottomAxesCont.paddingLeft = leftAxesWidth;
                    bottomAxesCont.paddingRight = rightAxesWidth;
                }
                var topAxesCont = this.topAxesContainer;
                if (topAxesCont.paddingLeft != leftAxesWidth || topAxesCont.paddingRight != rightAxesWidth) {
                    topAxesCont.paddingLeft = leftAxesWidth;
                    topAxesCont.paddingRight = rightAxesWidth;
                }
            };
            /**
             * Triggers an update on the horizontal axis when one of its properties
             * change.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Axis, ISpriteEvents>["propertychanged"]} event An event object
             */
            XYChart.prototype.handleXAxisChange = function (event) {
                this.updateXAxis(event.target);
            };
            /**
             * Triggers an update on the vertical axis when one of its properties
             * change.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Axis, ISpriteEvents>["propertychanged"]} event An event object
             */
            XYChart.prototype.handleYAxisChange = function (event) {
                this.updateYAxis(event.target);
            };
            /**
             * Sets up a new horizontal (X) axis when it is added to the chart.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Axis>["inserted"]}  event  Axis insert event
             */
            XYChart.prototype.processXAxis = function (event) {
                var axis = event.newValue;
                axis.chart = this;
                axis.renderer = new this._axisRendererX();
                axis.axisLetter = "X";
                axis.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleXAxisChange, this);
                axis.events.on("datarangechanged", this.handleXAxisRangeChange, this, false);
                // Although axis does not use data directly, we set dataProvider here
                // (but not add to chart data users) to hold up rendering before data
                // is parsed (system handles this)
                axis.dataProvider = this;
                this.updateXAxis(axis.renderer);
                this.processAxis(axis);
            };
            /**
             * Sets up a new vertical (Y) axis when it is added to the chart.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Axis>["inserted"]} event Axis insert event
             */
            XYChart.prototype.processYAxis = function (event) {
                var axis = event.newValue;
                axis.chart = this;
                axis.renderer = new this._axisRendererY();
                axis.axisLetter = "Y";
                axis.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleYAxisChange, this);
                axis.events.on("datarangechanged", this.handleYAxisRangeChange, this, false);
                // Although axis does not use data directly, we set dataProvider here
                // (but not add to chart data users) to hold up rendering before data
                // is parsed (system handles this)
                axis.dataProvider = this;
                this.updateYAxis(axis.renderer);
                this.processAxis(axis);
            };
            /**
             * Updates horizontal (X) scrollbar and other horizontal axis whenever axis'
             * value range changes.
             *
             * @param {AMEvent<Axis, IComponentEvents>["datarangechanged"]} event Range change event
             */
            XYChart.prototype.handleXAxisRangeChange = function (event) {
                var range = this.getCommonAxisRange(this.xAxes);
                if (this.scrollbarX) {
                    this.zoomAxes(this.xAxes, range, true);
                }
                this.toggleZoomOutButton();
                this.updateScrollbar(this.scrollbarX, range);
            };
            /**
             * Shows or hides the Zoom Out button depending on whether the chart is fully
             * zoomed out or not.
             */
            XYChart.prototype.toggleZoomOutButton = function () {
                if (this.zoomOutButton) {
                    var show_1 = false;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["eachContinue"](this.xAxes.iterator(), function (axis) {
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["round"](axis.start, 3) != 0 || _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["round"](axis.end, 3) != 1) {
                            show_1 = true;
                            return false;
                        }
                        return true;
                    });
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["eachContinue"](this.yAxes.iterator(), function (axis) {
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["round"](axis.start, 3) != 0 || _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["round"](axis.end, 3) != 1) {
                            show_1 = true;
                            return false;
                        }
                        return true;
                    });
                    if (!this.seriesAppeared) {
                        show_1 = false;
                    }
                    if (show_1) {
                        this.zoomOutButton.show();
                    }
                    else {
                        this.zoomOutButton.hide();
                    }
                }
            };
            /**
             * @ignore
             * moved this check to a separate method so that we could override it in TreeMapSeries
             */
            XYChart.prototype.seriesAppeared = function () {
                var appeared = false;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                    if (!series.appeared) {
                        appeared = false;
                        return false;
                    }
                });
                return appeared;
            };
            /**
             * Updates vertical (Y) scrollbar and other horizontal axis whenever axis'
             * value range changes.
             *
             * @param {AMEvent<Axis, IComponentEvents>["datarangechanged"]} event Range change event
             */
            XYChart.prototype.handleYAxisRangeChange = function (event) {
                var range = this.getCommonAxisRange(this.yAxes);
                if (this.scrollbarY) {
                    this.zoomAxes(this.yAxes, range, true);
                }
                this.toggleZoomOutButton();
                this.updateScrollbar(this.scrollbarY, range);
            };
            /**
             * Updates a relative scrollbar whenever data range of the axis changes.
             *
             * @param {Scrollbar}  scrollbar  Scrollbar instance
             * @param {IRange}     range      New data (values) range of the axis
             */
            XYChart.prototype.updateScrollbar = function (scrollbar, range) {
                if (scrollbar) {
                    scrollbar.skipRangeEvents();
                    scrollbar.start = range.start;
                    scrollbar.end = range.end;
                }
            };
            /**
             * Returns a common range of values between a list of axes.
             *
             * This is used to synchronize the zoom between multiple axes.
             *
             * @ignore Exclude from docs
             * @param  {List<Axis>}  axes  A list of axes
             * @return {IRange}            Common value range
             */
            XYChart.prototype.getCommonAxisRange = function (axes) {
                var start;
                var end;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](axes.iterator(), function (axis) {
                    var axisStart = axis.start;
                    var axisEnd = axis.end;
                    if (axis.renderer.inversed) {
                        axisStart = 1 - axis.end;
                        axisEnd = 1 - axis.start;
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNumber"](start) || (axisStart < start)) {
                        start = axisStart;
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNumber"](end) || (axisEnd > end)) {
                        end = axisEnd;
                    }
                });
                return { start: start, end: end };
            };
            /**
             * Triggers (re)rendering of the horizontal (X) axis.
             *
             * @ignore Exclude from docs
             * @param {Axis}  axis  Axis
             */
            XYChart.prototype.updateXAxis = function (renderer) {
                var axis = renderer.axis;
                if (renderer.opposite) {
                    axis.parent = this.topAxesContainer;
                    axis.toFront();
                }
                else {
                    axis.parent = this.bottomAxesContainer;
                    axis.toBack();
                }
                if (axis.renderer) {
                    axis.renderer.processRenderer();
                }
            };
            /**
             * Triggers (re)rendering of the vertical (Y) axis.
             *
             * @ignore Exclude from docs
             * @param {Axis}  axis  Axis
             */
            XYChart.prototype.updateYAxis = function (renderer) {
                var axis = renderer.axis;
                if (renderer.opposite) {
                    axis.parent = this.rightAxesContainer;
                    axis.toBack();
                }
                else {
                    axis.parent = this.leftAxesContainer;
                    axis.toFront();
                }
                if (axis.renderer) {
                    axis.renderer.processRenderer();
                }
            };
            /**
             * Decorates an Axis for use with this chart, e.g. sets proper renderer
             * and containers for placement.
             *
             * @param {Axis}  axis  Axis
             */
            XYChart.prototype.processAxis = function (axis) {
                var _this = this;
                // Value axis does not use data directly, only category axis does
                if (axis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__["CategoryAxis"]) {
                    this._dataUsers.moveValue(axis);
                }
                var renderer = axis.renderer;
                renderer.gridContainer.parent = this.plotContainer;
                renderer.gridContainer.toBack();
                renderer.breakContainer.parent = this.plotContainer;
                renderer.breakContainer.toFront();
                renderer.breakContainer.zIndex = 10;
                axis.addDisposer(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                    _this.dataUsers.removeValue(axis);
                }));
                this.plotContainer.events.on("maxsizechanged", function () {
                    if (_this.inited) {
                        axis.invalidateDataItems();
                    }
                }, axis, false);
            };
            Object.defineProperty(XYChart.prototype, "xAxes", {
                /**
                 * A list of horizontal (X) axes.
                 *
                 * @return {List<Axis>} List of axes
                 */
                get: function () {
                    if (!this._xAxes) {
                        this._xAxes = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        this._xAxes.events.on("inserted", this.processXAxis, this, false);
                        this._xAxes.events.on("removed", this.handleAxisRemoval, this, false);
                    }
                    return this._xAxes;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            XYChart.prototype.handleAxisRemoval = function (event) {
                var axis = event.oldValue;
                this.dataUsers.removeValue(axis); // need to remove, as it might not be disposed
                if (axis.autoDispose) {
                    axis.dispose();
                }
            };
            Object.defineProperty(XYChart.prototype, "yAxes", {
                /**
                 * A list of vertical (Y) axes.
                 *
                 * @return {List<Axis>} List of axes
                 */
                get: function () {
                    if (!this._yAxes) {
                        this._yAxes = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        this._yAxes.events.on("inserted", this.processYAxis, this, false);
                        this._yAxes.events.on("removed", this.handleAxisRemoval, this, false);
                    }
                    return this._yAxes;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates a new [[XYSeries]] object with required parameters when it is
             * added to the chart.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<XYSeries>["inserted"]}  event  Event
             */
            XYChart.prototype.handleSeriesAdded = function (event) {
                try {
                    _super.prototype.handleSeriesAdded.call(this, event);
                    var series = event.newValue;
                    series.xAxis; // this is enough to get axis, handled in getter
                    series.yAxis; // this is enough to get axis, handled in getter
                    if (series.fill == undefined) {
                        series.fill = this.colors.next();
                    }
                    if (series.stroke == undefined) {
                        series.stroke = series.fill;
                    }
                }
                catch (e) {
                    this.raiseCriticalError(e);
                }
            };
            Object.defineProperty(XYChart.prototype, "cursor", {
                /**
                 * @return {XYCursor} Cursor
                 */
                get: function () {
                    return this._cursor;
                },
                /**
                 * Chart's [[Cursor]].
                 *
                 * @param {XYCursor}  cursor  Cursor
                 */
                set: function (cursor) {
                    if (this._cursor != cursor) {
                        if (this._cursor) {
                            this.removeDispose(this._cursor);
                        }
                        this._cursor = cursor;
                        if (cursor) {
                            // TODO this is wrong, fix it
                            this._disposers.push(cursor);
                            cursor.chart = this;
                            cursor.parent = this._cursorContainer;
                            cursor.events.on("cursorpositionchanged", this.handleCursorPositionChange, this, false);
                            cursor.events.on("zoomstarted", this.handleCursorZoomStart, this, false);
                            cursor.events.on("zoomended", this.handleCursorZoomEnd, this, false);
                            cursor.events.on("panstarted", this.handleCursorPanStart, this, false);
                            cursor.events.on("panning", this.handleCursorPanning, this, false);
                            cursor.events.on("panended", this.handleCursorPanEnd, this, false);
                            cursor.events.on("behaviorcanceled", this.handleCursorCanceled, this, false);
                            cursor.events.on("hidden", this.handleHideCursor, this, false);
                            cursor.zIndex = Number.MAX_SAFE_INTEGER - 1;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and returns a new [[Cursor]] suitable for this chart type.
             *
             * @return {this} New cursor
             */
            XYChart.prototype.createCursor = function () {
                return new _cursors_XYCursor__WEBPACK_IMPORTED_MODULE_8__["XYCursor"]();
            };
            /**
             * Performs tasks when the cursor's position changes, e.g. shows proper
             * tooltips on axes and series.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.handleCursorPositionChange = function () {
                if (this.cursor.visible && !this.cursor.isHiding) {
                    var xPosition = this.cursor.xPosition;
                    var yPosition = this.cursor.yPosition;
                    this.showAxisTooltip(this.xAxes, xPosition);
                    this.showAxisTooltip(this.yAxes, yPosition);
                    this.showSeriesTooltip({
                        x: xPosition,
                        y: yPosition
                    });
                }
            };
            /**
             * Hides all cursor-related tooltips when the cursor itself is hidden.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.handleHideCursor = function () {
                this.hideObjectTooltip(this.xAxes);
                this.hideObjectTooltip(this.yAxes);
                this.hideObjectTooltip(this.series);
                this.updateSeriesLegend();
            };
            /**
             * Updates values for each series' legend item.
             *
             * @ignore Exclude from docs
             */
            XYChart.prototype.updateSeriesLegend = function () {
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                    series.updateLegendValue();
                });
            };
            /**
             * Hides a tooltip for a list of objects.
             *
             * @ignore Exclude from docs
             * @param {List<Sprite>}  sprites  A list of sprites to hide tooltip for
             */
            XYChart.prototype.hideObjectTooltip = function (sprites) {
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](sprites.iterator(), function (sprite) {
                    sprite.hideTooltip(0);
                });
            };
            /**
             * Shows a tooltip for all chart's series, using specific coordinates as a
             * reference point.
             *
             * The tooltip might be shown at different coordinates depending on the
             * actual data point's position, overlapping with other tooltips, etc.
             *
             * @ignore Exclude from docs
             * @param {IPoint}  position  Reference point
             */
            XYChart.prototype.showSeriesTooltip = function (position) {
                var _this = this;
                if (!position) {
                    this.series.each(function (series) {
                        series.hideTooltip();
                    });
                    return;
                }
                var topLeft = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["spritePointToSvg"]({ x: -0.5, y: -0.5 }, this.plotContainer);
                var bottomRight = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["spritePointToSvg"]({ x: this.plotContainer.pixelWidth + 0.5, y: this.plotContainer.pixelHeight + 0.5 }, this.plotContainer);
                var seriesPoints = [];
                this.series.each(function (series) {
                    //if (series.tooltipText || series.tooltipHTML) { // not good, bullets are not hovered then
                    series.tooltip.setBounds({ x: 0, y: 0, width: _this.pixelWidth, height: _this.pixelHeight });
                    var point = series.showTooltipAtPosition(position.x, position.y);
                    if (point && _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["isInRectangle"](point, { x: topLeft.x, y: topLeft.y, width: bottomRight.x - topLeft.x, height: bottomRight.y - topLeft.y })) {
                        seriesPoints.push({ point: point, series: series });
                    }
                    //}
                });
                seriesPoints.sort(function (a, b) {
                    if (a.point.y > b.point.y) {
                        return 1;
                    }
                    else if (a.point.y < b.point.y) {
                        return -1;
                    }
                    else {
                        return 0;
                    }
                });
                if (seriesPoints.length > 0) {
                    var top_1 = topLeft.y;
                    var bottom = bottomRight.y;
                    var topSeriesPoints = [];
                    var botSeriesPoints = [];
                    for (var i = 0, len = seriesPoints.length; i < len; i++) {
                        if (seriesPoints[i].point.y < top_1 + (bottom - top_1) / 2) {
                            topSeriesPoints.push(seriesPoints[i]);
                        }
                        else {
                            botSeriesPoints.push(seriesPoints[i]);
                        }
                    }
                    var nextY = top_1;
                    //@todo: solve overlapping when tooltips are close to center
                    for (var i = 0, len = topSeriesPoints.length; i < len; i++) {
                        var series = topSeriesPoints[i].series;
                        var pointY = topSeriesPoints[i].point.y;
                        var tooltip = series.tooltip;
                        tooltip.setBounds({ x: 0, y: nextY, width: this.pixelWidth, height: bottom });
                        if (tooltip.invalid) {
                            tooltip.validate();
                        }
                        tooltip.toBack();
                        //@labeltodo
                        nextY = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["spritePointToSvg"]({ x: 0, y: tooltip.label.pixelY + tooltip.label.measuredHeight - tooltip.pixelY + pointY + tooltip.pixelMarginBottom }, tooltip).y;
                    }
                    var nextHeight = bottom;
                    for (var i = botSeriesPoints.length - 1; i >= 0; i--) {
                        var series = botSeriesPoints[i].series;
                        var tooltip = series.tooltip;
                        var pointY = botSeriesPoints[i].point.y;
                        tooltip.setBounds({ x: 0, y: 0, width: this.pixelWidth, height: nextHeight });
                        if (tooltip.invalid) {
                            tooltip.validate();
                        }
                        tooltip.toBack();
                        //@labeltodo
                        nextHeight = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["spritePointToSvg"]({ x: 0, y: tooltip.label.pixelY - tooltip.pixelY + pointY - tooltip.pixelMarginTop }, tooltip).y;
                    }
                }
            };
            /**
             * Shows tooltips for a list of axes at specific position.
             *
             * Position might be X coordinate for horizontal axes, and Y coordinate for
             * vertical axes.
             *
             * @ignore Exclude from docs
             * @param {List<Axis>}  axes      List of axes to show tooltip on
             * @param {number}      position  Position (px)
             */
            XYChart.prototype.showAxisTooltip = function (axes, position) {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](axes.iterator(), function (axis) {
                    if (_this.dataItems.length > 0 || axis.dataItems.length > 0) {
                        axis.showTooltipAtPosition(position);
                    }
                });
            };
            /**
             * Recalculates the value range for the axis taking into account zoom level & inversed.
             *
             * @param  {Axis}    axis   Axis
             * @param  {IRange}  range  Range
             * @return {IRange}         Modified range
             */
            XYChart.prototype.getUpdatedRange = function (axis, range) {
                if (!axis) {
                    return;
                }
                var start;
                var end;
                var inversed = axis.renderer.inversed;
                if (axis.renderer instanceof _axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_5__["AxisRendererY"]) {
                    range = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["invertRange"](range);
                }
                if (inversed) {
                    _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["invertRange"](range);
                    start = 1 - axis.end;
                    end = 1 - axis.start;
                }
                else {
                    start = axis.start;
                    end = axis.end;
                }
                var difference = end - start;
                return {
                    start: start + range.start * difference,
                    end: start + range.end * difference
                };
            };
            /**
             * Performs zoom and other operations when user finishes zooming using chart
             * cursor, e.g. zooms axes.
             *
             * @param {IXYCursorEvents["zoomended"]} event Cursor's event
             */
            XYChart.prototype.handleCursorZoomEnd = function (event) {
                var cursor = this.cursor;
                var behavior = cursor.behavior;
                if (behavior == "zoomX" || behavior == "zoomXY") {
                    var xRange = cursor.xRange;
                    if (xRange && this.xAxes.length > 0) {
                        xRange = this.getUpdatedRange(this.xAxes.getIndex(0), xRange);
                        xRange.priority = "start";
                        this.zoomAxes(this.xAxes, xRange);
                    }
                }
                if (behavior == "zoomY" || behavior == "zoomXY") {
                    var yRange = cursor.yRange;
                    if (yRange && this.yAxes.length > 0) {
                        yRange = this.getUpdatedRange(this.yAxes.getIndex(0), yRange);
                        yRange.priority = "start";
                        this.zoomAxes(this.yAxes, yRange);
                    }
                }
                this.handleHideCursor();
            };
            /**
             * Performs zoom and other operations when user is panning chart plot using chart cursor.
             *
             * @param {IXYCursorEvents["panning"]} event Cursor's event
             */
            XYChart.prototype.handleCursorPanStart = function (event) {
                var xAxis = this.xAxes.getIndex(0);
                if (xAxis) {
                    this._panStartXRange = { start: xAxis.start, end: xAxis.end };
                }
                var yAxis = this.yAxes.getIndex(0);
                if (yAxis) {
                    this._panStartYRange = { start: yAxis.start, end: yAxis.end };
                }
            };
            /**
             * Performs zoom and other operations when user ends panning
             *
             * @param {IXYCursorEvents["panning"]} event Cursor's event
             */
            XYChart.prototype.handleCursorPanEnd = function (event) {
                var cursor = this.cursor;
                var behavior = cursor.behavior;
                if (this._panEndXRange && (behavior == "panX" || behavior == "panXY")) {
                    var panEndRange = this._panEndXRange;
                    var delta = 0;
                    if (panEndRange.start < 0) {
                        delta = panEndRange.start;
                    }
                    if (panEndRange.end > 1) {
                        delta = panEndRange.end - 1;
                    }
                    this.zoomAxes(this.xAxes, { start: panEndRange.start - delta, end: panEndRange.end - delta }, false, true);
                    this._panEndXRange = undefined;
                    this._panStartXRange = undefined;
                }
                if (this._panEndYRange && (behavior == "panY" || behavior == "panXY")) {
                    var panEndRange = this._panEndYRange;
                    var delta = 0;
                    if (panEndRange.start < 0) {
                        delta = panEndRange.start;
                    }
                    if (panEndRange.end > 1) {
                        delta = panEndRange.end - 1;
                    }
                    this.zoomAxes(this.yAxes, { start: panEndRange.start - delta, end: panEndRange.end - delta }, false, true);
                    this._panEndYRange = undefined;
                    this._panStartYRange = undefined;
                }
            };
            XYChart.prototype.handleCursorCanceled = function () {
                this._panEndXRange = undefined;
                this._panStartXRange = undefined;
            };
            /**
             * Performs zoom and other operations when user is panning chart plot using chart cursor.
             *
             * @param {IXYCursorEvents["panning"]} event Cursor's event
             */
            XYChart.prototype.handleCursorPanning = function (event) {
                var cursor = this.cursor;
                var behavior = cursor.behavior;
                var maxPanOut = cursor.maxPanOut;
                if (this._panStartXRange && (behavior == "panX" || behavior == "panXY")) {
                    var panStartRange = this._panStartXRange;
                    var range = cursor.xRange;
                    var difference = panStartRange.end - panStartRange.start;
                    var delta = range.start;
                    var newStart = Math.max(-maxPanOut, delta + panStartRange.start);
                    var newEnd = Math.min(range.start + panStartRange.end, 1 + maxPanOut);
                    if (newStart <= 0) {
                        newEnd = newStart + difference;
                    }
                    if (newEnd >= 1) {
                        newStart = newEnd - difference;
                    }
                    var newRange = {
                        start: newStart,
                        end: newEnd
                    };
                    this._panEndXRange = newRange;
                    this.zoomAxes(this.xAxes, newRange);
                }
                if (this._panStartYRange && (behavior == "panY" || behavior == "panXY")) {
                    var panStartRange = this._panStartYRange;
                    var range = cursor.yRange;
                    var difference = panStartRange.end - panStartRange.start;
                    var delta = range.start;
                    var newStart = Math.max(-maxPanOut, delta + panStartRange.start);
                    var newEnd = Math.min(range.start + panStartRange.end, 1 + maxPanOut);
                    if (newStart <= 0) {
                        newEnd = newStart + difference;
                    }
                    if (newEnd >= 1) {
                        newStart = newEnd - difference;
                    }
                    var newRange = {
                        start: newStart,
                        end: newEnd
                    };
                    this._panEndYRange = newRange;
                    this.zoomAxes(this.yAxes, newRange);
                }
                this.handleHideCursor();
            };
            /**
             * Performs zoom and other operations when user starts zooming using chart
             * cursor, e.g. zooms axes.
             *
             * @param {IXYCursorEvents["zoomended"]} event Cursor's event
             */
            XYChart.prototype.handleCursorZoomStart = function (event) {
                // Nothing here
                // This method is here only as a "placeholder" for extending classes to
                // override if necessary
            };
            Object.defineProperty(XYChart.prototype, "scrollbarX", {
                /**
                 * @return {Scrollbar} Scrollbar
                 */
                get: function () {
                    return this._scrollbarX;
                },
                /**
                 * Horizontal (X) scrollbar.
                 *
                 * @param {Scrollbar} scrollbar Scrollbar
                 */
                set: function (scrollbar) {
                    var _this = this;
                    if (this._scrollbarX) {
                        this.removeDispose(this._scrollbarX);
                    }
                    this._scrollbarX = scrollbar;
                    if (scrollbar) {
                        this._disposers.push(scrollbar);
                        scrollbar.parent = this.topAxesContainer;
                        scrollbar.startGrip.exportable = false;
                        scrollbar.endGrip.exportable = false;
                        scrollbar.toBack();
                        scrollbar.orientation = "horizontal";
                        scrollbar.events.on("rangechanged", this.handleXScrollbarChange, this, false);
                        // accessibility related
                        scrollbar.adapter.add("positionValue", function (arg) {
                            var xAxis = _this.xAxes.getIndex(0);
                            if (xAxis) {
                                arg.value = xAxis.getPositionLabel(arg.position);
                            }
                            return arg;
                        });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYChart.prototype, "scrollbarY", {
                /**
                 * @return {Scrollbar} Scrollbar
                 */
                get: function () {
                    return this._scrollbarY;
                },
                /**
                 * Vertical (Y) scrollbar.
                 *
                 * @param {Scrollbar} scrollbar Scrollbar
                 */
                set: function (scrollbar) {
                    var _this = this;
                    if (this._scrollbarY) {
                        this.removeDispose(this._scrollbarY);
                    }
                    this._scrollbarY = scrollbar;
                    if (scrollbar) {
                        this._disposers.push(scrollbar);
                        scrollbar.parent = this.rightAxesContainer;
                        scrollbar.startGrip.exportable = false;
                        scrollbar.endGrip.exportable = false;
                        scrollbar.toFront();
                        scrollbar.orientation = "vertical";
                        scrollbar.events.on("rangechanged", this.handleYScrollbarChange, this, false);
                        // accessibility related
                        scrollbar.adapter.add("positionValue", function (arg) {
                            var yAxis = _this.yAxes.getIndex(0);
                            if (yAxis) {
                                arg.value = yAxis.getPositionLabel(arg.position);
                            }
                            return arg;
                        });
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Zooms axes affected by the horizontal (X) scrollbar when the selection
             * on it changes.
             *
             * @param {AMEvent<Scrollbar, IScrollbarEvents>["rangechanged"]} event Scrollbar range change event
             */
            XYChart.prototype.handleXScrollbarChange = function (event) {
                var scrollbar = event.target;
                var range = this.zoomAxes(this.xAxes, scrollbar.range);
                scrollbar.fixRange(range);
            };
            /**
             * Zooms axes affected by the vertical (Y) scrollbar when the selection
             * on it changes.
             *
             * @param {AMEvent<Scrollbar, IScrollbarEvents>["rangechanged"]} event Scrollbar range change event
             */
            XYChart.prototype.handleYScrollbarChange = function (event) {
                var scrollbar = event.target;
                var range = this.zoomAxes(this.yAxes, scrollbar.range);
                scrollbar.fixRange(range);
            };
            /**
             * Zooms axes that are affected by to specific relative range.
             *
             * @param  {List<Axis>}  axes       List of axes to zoom
             * @param  {IRange}      range      Range of values to zoom to (0-1)
             * @param  {boolean}     instantly  If set to `true` will skip zooming animation
             * @return {IRange}                 Recalculated range that is common to all involved axes
             */
            XYChart.prototype.zoomAxes = function (axes, range, instantly, round) {
                var realRange = { start: 0, end: 1 };
                this.showSeriesTooltip(); // hides
                if (!this.dataInvalid) {
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](axes.iterator(), function (axis) {
                        if (axis.renderer.inversed) {
                            range = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["invertRange"](range);
                        }
                        axis.hideTooltip(0);
                        if (round) {
                            var diff = range.end - range.start;
                            range.start = axis.roundPosition(range.start + 0.0001, 0);
                            range.end = range.start + diff;
                        }
                        var axisRange = axis.zoom(range, instantly, instantly);
                        if (axis.renderer.inversed) {
                            axisRange = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["invertRange"](axisRange);
                        }
                        realRange = axisRange;
                    });
                }
                return realRange;
            };
            Object.defineProperty(XYChart.prototype, "maskBullets", {
                /**
                 * @return {boolean} Mask bullet container?
                 */
                get: function () {
                    return this.getPropertyValue("maskBullets");
                },
                /**
                 * Indicates if bullet container is masked.
                 *
                 * If it is set to `true`, any bullets that do not fit into bullet container
                 * will be clipped off. Settting to `false` will allow bullets to "spill out"
                 * of the plot area so they are not cut off.
                 *
                 * @param {boolean} value Mask bullet container?
                 */
                set: function (value) {
                    this.setPropertyValue("maskBullets", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Handles mouse wheel event.
             *
             * @param {AMEvent<Sprite, ISpriteEvents>["wheel"]}  event  Original event
             */
            XYChart.prototype.handleWheel = function (event) {
                var plotContainer = this.plotContainer;
                var svgPoint = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["documentPointToSvg"](event.point, this.htmlContainer);
                var plotPoint = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_17__["svgPointToSprite"](svgPoint, plotContainer);
                var shift = event.shift.y;
                var rangeX = this.getCommonAxisRange(this.xAxes);
                var rangeY = this.getCommonAxisRange(this.yAxes);
                var shiftStep = 0.05;
                var maxPanOut = 0;
                var mouseWheelBehavior = this.mouseWheelBehavior;
                if (mouseWheelBehavior == "panX" || mouseWheelBehavior == "panXY") {
                    var differenceX = rangeX.end - rangeX.start;
                    var newStartX = Math.max(-maxPanOut, rangeX.start + shiftStep * shift / 100);
                    var newEndX = Math.min(rangeX.end + shiftStep * shift / 100, 1 + maxPanOut);
                    if (newStartX <= 0) {
                        newEndX = newStartX + differenceX;
                    }
                    if (newEndX >= 1) {
                        newStartX = newEndX - differenceX;
                    }
                    this.zoomAxes(this.xAxes, { start: newStartX, end: newEndX });
                }
                if (mouseWheelBehavior == "panY" || mouseWheelBehavior == "panXY") {
                    shift *= -1;
                    var differenceY = rangeY.end - rangeY.start;
                    var newStartY = Math.max(-maxPanOut, rangeY.start + shiftStep * shift / 100);
                    var newEndY = Math.min(rangeY.end + shiftStep * shift / 100, 1 + maxPanOut);
                    if (newStartY <= 0) {
                        newEndY = newStartY + differenceY;
                    }
                    if (newEndY >= 1) {
                        newStartY = newEndY - differenceY;
                    }
                    this.zoomAxes(this.yAxes, { start: newStartY, end: newEndY });
                }
                if (mouseWheelBehavior == "zoomX" || mouseWheelBehavior == "zoomXY") {
                    var locationX = plotPoint.x / plotContainer.maxWidth;
                    var newStartX = Math.max(-maxPanOut, rangeX.start - shiftStep * shift / 100 * locationX);
                    newStartX = Math.min(newStartX, locationX);
                    var newEndX = Math.min(rangeX.end + shiftStep * shift / 100 * (1 - locationX), 1 + maxPanOut);
                    newEndX = Math.max(newEndX, locationX);
                    this.zoomAxes(this.xAxes, { start: newStartX, end: newEndX });
                }
                if (mouseWheelBehavior == "zoomY" || mouseWheelBehavior == "zoomXY") {
                    var locationY = plotPoint.y / plotContainer.maxHeight;
                    var newStartY = Math.max(-maxPanOut, rangeY.start - shiftStep * shift / 100 * (1 - locationY));
                    newStartY = Math.min(newStartY, locationY);
                    var newEndY = Math.min(rangeY.end + shiftStep * shift / 100 * locationY, 1 + maxPanOut);
                    newEndY = Math.max(newEndY, locationY);
                    this.zoomAxes(this.yAxes, { start: newStartY, end: newEndY });
                }
            };
            Object.defineProperty(XYChart.prototype, "mouseWheelBehavior", {
                /**
                 * @return {"zoomX" | "zoomY" | "zoomXY" | "panX" | "panY"  | "panXY" | "none"}  Mouse wheel behavior
                 */
                get: function () {
                    return this.getPropertyValue("mouseWheelBehavior");
                },
                /**
                 * Specifies action for when mouse wheel is used when over the chart.
                 *
                 * Options: Options: `"zoomX"`, `"zoomY"`, `"zoomXY"`, `"panX"`, `"panY"`, `"panXY"`, `"none"` (default).
                 *
                 * @default "none"
                 * @param {"zoomX" | "zoomY" | "zoomXY" | "panX" | "panY"  | "panXY" | "none"} mouse wheel behavior
                 */
                set: function (value) {
                    if (this.setPropertyValue("mouseWheelBehavior", value)) {
                        if (value != "none") {
                            this._mouseWheelDisposer = this.plotContainer.events.on("wheel", this.handleWheel, this, false);
                            this._disposers.push(this._mouseWheelDisposer);
                        }
                        else {
                            if (this._mouseWheelDisposer) {
                                this.plotContainer.wheelable = false;
                                this.plotContainer.hoverable = false;
                                this._mouseWheelDisposer.dispose();
                            }
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * This function is called by the [[DataSource]]'s `dateFields` adapater
             * so that particular chart types can popuplate this setting with their
             * own type-speicifc data fields so they are parsed properly.
             *
             * @param  {string[]}  fields  Array of date fields
             * @return {string[]}          Array of date fields populated with chart's date fields
             */
            XYChart.prototype.dataSourceDateFields = function (fields) {
                var _this = this;
                // Process parent
                fields = _super.prototype.dataSourceDateFields.call(this, fields);
                // Check if we have any series with date-fields
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                    fields = _this.populateDataSourceFields(fields, series.dataFields, ["dateX", "dateY", "openDateX", "openDateY"]);
                });
                return fields;
            };
            /**
             * This function is called by the [[DataSource]]'s `numberFields` adapater
             * so that particular chart types can popuplate this setting with their
             * own type-specific data fields so they are parsed properly.
             *
             * @param  {string[]}  value  Array of number fields
             * @return {string[]}         Array of number fields populated with chart's number fields
             */
            XYChart.prototype.dataSourceNumberFields = function (fields) {
                var _this = this;
                fields = _super.prototype.dataSourceDateFields.call(this, fields);
                // Check if we have any series with date-fields
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_15__["each"](this.series.iterator(), function (series) {
                    fields = _this.populateDataSourceFields(fields, series.dataFields, ["valueX", "valueY", "openValueX", "openValueY"]);
                });
                return fields;
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            XYChart.prototype.processConfig = function (config) {
                if (config) {
                    // Save axis ranges for later processing
                    var xAxes = [];
                    var yAxes = [];
                    // Set up axes
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.xAxes) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isArray"](config.xAxes)) {
                        for (var i = 0, len = config.xAxes.length; i < len; i++) {
                            if (!config.xAxes[i].type) {
                                throw Error("[XYChart error] No type set for xAxes[" + i + "].");
                            }
                            else if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.xAxes[i]["axisRanges"])) {
                                xAxes.push({
                                    axisRanges: config.xAxes[i]["axisRanges"],
                                    index: i
                                });
                                delete (config.xAxes[i]["axisRanges"]);
                            }
                        }
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.yAxes) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isArray"](config.yAxes)) {
                        for (var i = 0, len = config.yAxes.length; i < len; i++) {
                            if (!config.yAxes[i].type) {
                                throw Error("[XYChart error] No type set for yAxes[" + i + "].");
                            }
                            else if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.yAxes[i]["axisRanges"])) {
                                yAxes.push({
                                    axisRanges: config.yAxes[i]["axisRanges"],
                                    index: i
                                });
                                delete (config.yAxes[i]["axisRanges"]);
                            }
                        }
                    }
                    // Set up series
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isArray"](config.series)) {
                        for (var i = 0, len = config.series.length; i < len; i++) {
                            config.series[i].type = config.series[i].type || "LineSeries";
                        }
                    }
                    // Set up cursor
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.cursor) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.cursor.type)) {
                        config.cursor.type = "XYCursor";
                    }
                    // Set up scrollbars
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.scrollbarX) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.scrollbarX.type)) {
                        config.scrollbarX.type = "Scrollbar";
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.scrollbarY) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](config.scrollbarY.type)) {
                        config.scrollbarY.type = "Scrollbar";
                    }
                    _super.prototype.processConfig.call(this, config);
                    // Finish up with ranges.
                    // We need to do this here because series are processed last in JSON
                    // config. Therefore their respective objects are not yet are available
                    // when axis (and respectively their ranges) are being processed.
                    if (yAxes.length) {
                        for (var i = 0, len = yAxes.length; i < len; i++) {
                            this.yAxes.getIndex(yAxes[i].index).config = {
                                axisRanges: yAxes[i].axisRanges
                            };
                        }
                    }
                    if (xAxes.length) {
                        for (var i = 0, len = xAxes.length; i < len; i++) {
                            this.xAxes.getIndex(xAxes[i].index).config = {
                                axisRanges: xAxes[i].axisRanges
                            };
                        }
                    }
                }
            };
            /**
             * This function is used to sort element's JSON config properties, so that
             * some properties that absolutely need to be processed last, can be put at
             * the end.
             *
             * @ignore Exclude from docs
             * @param  {string}  a  Element 1
             * @param  {string}  b  Element 2
             * @return {Ordering}   Sorting number
             */
            XYChart.prototype.configOrder = function (a, b) {
                if (a == b) {
                    return 0;
                }
                // Must come last
                else if (a == "scrollbarX") {
                    return 1;
                }
                else if (b == "scrollbarX") {
                    return -1;
                }
                else if (a == "scrollbarY") {
                    return 1;
                }
                else if (b == "scrollbarY") {
                    return -1;
                }
                else if (a == "series") {
                    return 1;
                }
                else if (b == "series") {
                    return -1;
                }
                else {
                    return _super.prototype.configOrder.call(this, a, b);
                }
            };
            /**
             * Creates a new Series of type suitable for this chart.
             *
             * @return {this} New series
             */
            XYChart.prototype.createSeries = function () {
                return new _series_XYSeries__WEBPACK_IMPORTED_MODULE_7__["XYSeries"]();
            };
            Object.defineProperty(XYChart.prototype, "zoomOutButton", {
                /**
                 * @return {Button} Zoom out button
                 */
                get: function () {
                    return this._zoomOutButton;
                },
                /**
                 * A [[Button]] element that is used for zooming out the chart.
                 *
                 * This button appears only when chart is zoomed in, and disappears
                 * autoamatically when it is zoome dout.
                 *
                 * @param {Button}  button  Zoom out button
                 */
                set: function (button) {
                    var _this = this;
                    this._zoomOutButton = button;
                    if (button) {
                        button.events.on("hit", function () {
                            _this.zoomAxes(_this.xAxes, { start: 0, end: 1 });
                            _this.zoomAxes(_this.yAxes, { start: 0, end: 1 });
                        }, undefined, false);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all parameters from another [[XYChart]].
             *
             * @param {XYChart} source Source XYChart
             */
            XYChart.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.xAxes.copyFrom(source.xAxes);
                this.yAxes.copyFrom(source.yAxes);
                this.zoomOutButton.copyFrom(source.zoomOutButton);
                //@todo copy all container properties
            };
            /**
             * @ignore
             */
            XYChart.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                var scrollbarX = this.scrollbarX;
                if (scrollbarX && scrollbarX instanceof _elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_13__["XYChartScrollbar"]) {
                    scrollbarX.scrollbarChart.disposeData();
                }
                var scrollbarY = this.scrollbarY;
                if (scrollbarY && scrollbarY instanceof _elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_13__["XYChartScrollbar"]) {
                    scrollbarY.scrollbarChart.disposeData();
                }
                this.xAxes.each(function (axis) {
                    axis.disposeData();
                });
                this.yAxes.each(function (axis) {
                    axis.disposeData();
                });
            };
            /**
             * Adds one or several (array) of data items to the existing data.
             *
             * @param {Object | Object[]} rawDataItem One or many raw data item objects
             */
            XYChart.prototype.addData = function (rawDataItem, removeCount) {
                _super.prototype.addData.call(this, rawDataItem, removeCount);
                if (this.scrollbarX instanceof _elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_13__["XYChartScrollbar"]) {
                    this.scrollbarX.scrollbarChart.addData(rawDataItem, removeCount);
                }
                if (this.scrollbarY instanceof _elements_XYChartScrollbar__WEBPACK_IMPORTED_MODULE_13__["XYChartScrollbar"]) {
                    this.scrollbarY.scrollbarChart.addData(rawDataItem, removeCount);
                }
            };
            return XYChart;
        }(_SerialChart__WEBPACK_IMPORTED_MODULE_1__["SerialChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_12__["registry"].registeredClasses["XYChart"] = XYChart;
        //# sourceMappingURL=XYChart.js.map
        /***/ 
    }),
    /* 910 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerialChartDataItem", function () { return SerialChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerialChart", function () { return SerialChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Chart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(859);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony import */ var _series_Series__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(911);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(903);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(754);
        /**
         * Serial chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[SerialChart]].
         *
         * @see {@link DataItem}
         */
        var SerialChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SerialChartDataItem, _super);
            /**
             * Constructor
             */
            function SerialChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "SerialChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return SerialChartDataItem;
        }(_Chart__WEBPACK_IMPORTED_MODULE_1__["ChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for all series-based charts, like XY, Pie, etc.
         *
         * Is not useful on its own.
         *
         * @see {@link ISerialChartEvents} for a list of available Events
         * @see {@link ISerialChartAdapters} for a list of available Adapters
         */
        var SerialChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SerialChart, _super);
            /**
             * Constructor
             */
            function SerialChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "SerialChart";
                _this.colors = new _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_6__["ColorSet"]();
                // Create a container for series
                var seriesContainer = _this.chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                seriesContainer.shouldClone = false;
                seriesContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                seriesContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                seriesContainer.isMeasured = false;
                seriesContainer.layout = "none";
                seriesContainer.zIndex = 2;
                _this.seriesContainer = seriesContainer;
                // Create a container for bullets
                var bulletsContainer = _this.chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                bulletsContainer.shouldClone = false;
                bulletsContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                bulletsContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                bulletsContainer.isMeasured = false;
                bulletsContainer.zIndex = 3;
                bulletsContainer.layout = "none";
                _this.bulletsContainer = bulletsContainer;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            SerialChart.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                if (this.colors) {
                    this.colors.dispose();
                }
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor
             */
            SerialChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Serial chart");
                }
            };
            Object.defineProperty(SerialChart.prototype, "series", {
                /**
                 * A list of chart's series.
                 *
                 * @return {List} Chart's series
                 */
                get: function () {
                    var _this = this;
                    if (!this._series) {
                        this._series = new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListTemplate"](this.createSeries());
                        this._series.events.on("inserted", function (event) {
                            _this.handleSeriesAdded(event);
                        }, undefined, false);
                        this._series.events.on("removed", function (event) {
                            var series = event.oldValue;
                            _this.dataUsers.removeValue(series);
                            _this.dataUsers.each(function (dataUser) {
                                dataUser.invalidateDataItems();
                            });
                            if (series.autoDispose) {
                                series.dispose();
                            }
                            _this.feedLegend();
                        }, undefined, false);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListDisposer"](this._series));
                        this._disposers.push(this._series.template);
                    }
                    return this._series;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates a new [[Series]] object with required parameters when it is
             * added to the chart.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Series>["inserted"]}  event  Event
             */
            SerialChart.prototype.handleSeriesAdded = function (event) {
                var _this = this;
                var series = event.newValue;
                series.chart = this;
                series.parent = this.seriesContainer;
                series.bulletsContainer.parent = this.bulletsContainer;
                this._dataUsers.moveValue(series);
                series.addDisposer(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_10__["Disposer"](function () {
                    _this.dataUsers.removeValue(series);
                }));
                this.feedLegend();
            };
            /**
             * Setups the legend to use the chart's data.
             */
            SerialChart.prototype.feedLegend = function () {
                var legend = this.legend;
                if (legend) {
                    var legendData_1 = [];
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                        if (!series.hiddenInLegend) {
                            legendData_1.push(series);
                        }
                    });
                    legend.dataFields.name = "name";
                    legend.data = legendData_1;
                }
            };
            /**
             * Creates and returns a new Series, suitable for this chart type.
             *
             * @return {this} New series
             */
            SerialChart.prototype.createSeries = function () {
                return new _series_Series__WEBPACK_IMPORTED_MODULE_4__["Series"]();
            };
            Object.defineProperty(SerialChart.prototype, "colors", {
                /**
                 * @return {ColorSet} Color list
                 */
                get: function () {
                    return this.getPropertyValue("colors");
                },
                /**
                 * Chart's color list.
                 *
                 * This list can be used by a number of serial items, like applying a new
                 * color for each Series added. Or, applying a new color for each slice
                 * of a Pie chart.
                 *
                 * Please see [[ColorSet]] for information on how you can set up to generate
                 * unique colors.
                 *
                 * A theme you are using may override default pre-defined colors.
                 *
                 * @param {ColorSet} value Color list
                 */
                set: function (value) {
                    this.setPropertyValue("colors", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all parameters from another [[SerialChart]].
             *
             * @param {SerialChart} source Source SerialChart
             */
            SerialChart.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.series.copyFrom(source.series);
            };
            return SerialChart;
        }(_Chart__WEBPACK_IMPORTED_MODULE_1__["Chart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_7__["registry"].registeredClasses["SerialChart"] = SerialChart;
        //# sourceMappingURL=SerialChart.js.map
        /***/ 
    }),
    /* 911 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SeriesDataItem", function () { return SeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Series", function () { return Series; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(760);
        /* harmony import */ var _core_DataItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(860);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(882);
        /* harmony import */ var _elements_Bullet__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(912);
        /* harmony import */ var _Legend__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(861);
        /* harmony import */ var _core_Options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(804);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Ease__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(787);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(755);
        /* harmony import */ var _core_utils_Colors__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(775);
        /**
         * Functionality for any series-based elements, like Line Series (graphs),
         * Pie slice lists, etc.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[Series]].
         *
         * @see {@link DataItem}
         */
        var SeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SeriesDataItem, _super);
            /**
             * Constructor
             */
            function SeriesDataItem() {
                var _this = _super.call(this) || this;
                /**
                 * A dictionary of data items bullets, where key is uid of a bullet template.
                 *
                 * @ignore Exclude from docs
                 * @todo review description
                 * @type {Dictionary}
                 */
                _this.bullets = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                _this.className = "SeriesDataItem";
                //@todo Should we make `bullets` list disposable?
                _this._disposers.push(new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["DictionaryDisposer"](_this.bullets));
                _this.values.value = {};
                _this.values.value = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(SeriesDataItem.prototype, "value", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.value.value;
                },
                /**
                 * data items's numeric value.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("value", value);
                },
                enumerable: true,
                configurable: true
            });
            return SeriesDataItem;
        }(_core_DataItem__WEBPACK_IMPORTED_MODULE_5__["DataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines base class for any kind of serial data.
         *
         * @see {@link ISeriesEvents} for a list of available Events
         * @see {@link ISeriesAdapters} for a list of available Adapters
         * @todo Separate axis-related stuff to some other class so that MapSeries would not have unrelated stuff
         */
        var Series = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Series, _super);
            /**
             * Constructor
             */
            function Series() {
                var _this = _super.call(this) || this;
                /**
                 * Should this series excluded from the axis scale calculations?
                 *
                 * @default false
                 * @type {boolean}
                 */
                _this._ignoreMinMax = false;
                /**
                 * Should series' bullets?
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this._showBullets = true;
                /**
                 * Settings for the appearance of the related legend items.
                 */
                _this.legendSettings = new _Legend__WEBPACK_IMPORTED_MODULE_9__["LegendSettings"]();
                /**
                 * Lowest overal values by type.
                 *
                 * @type {Dictionary}
                 */
                _this._tmin = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * Highest overal values by type.
                 *
                 * @type {Dictionary}
                 */
                _this._tmax = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * Lowest values in current selection by type.
                 *
                 * @type {Dictionary}
                 */
                _this._smin = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * Highest values in current selection by type.
                 *
                 * @type {Dictionary}
                 */
                _this._smax = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * [dataItemsByAxis description]
                 *
                 * Both by category and date.
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {Dictionary}
                 */
                _this.dataItemsByAxis = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]();
                /**
                 * Normally series items are focusable using keyboard, so that people can
                 * select them with a TAB key. However, if there are a lot of data points on
                 * screen it might be long and useless to tab through all o fthem.
                 *
                 * This is where `skipFocusThreshold` comes in. If there are more items than
                 * the value set here, we will not make those focusable and rather let screen
                 * reader software rely on the series summary, or authors provide alternative
                 * detailed information display, such as HTML table.
                 *
                 * Different series might have different threshold defaults.
                 *
                 * @type {Number}
                 */
                _this.skipFocusThreshold = 20;
                /**
                 * As calculating totals is expensive operation and not often needed, by default we do not do it. In case you use percent for your charts, you must set this to true.
                 * Pie chart, which uses percent sets this to true by default.
                 * @todo review description
                 * @type {boolean}
                 */
                _this.calculatePercent = false;
                /**
                 * Specifies if series should be automatically disposed when removing from chart's series list.
                 * @default true
                 */
                _this.autoDispose = true;
                _this.className = "Series";
                _this.isMeasured = false;
                _this.layout = "none";
                _this.shouldClone = false;
                _this.setPropertyValue("hidden", false);
                _this.axisRanges = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                _this.axisRanges.events.on("inserted", _this.processAxisRange, _this, false);
                _this.minBulletDistance = 0; // otherwise we'll have a lot of cases when people won't see bullets and think it's a bug
                _this.mainContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                _this.mainContainer.shouldClone = false;
                _this.mainContainer.mask = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this._disposers.push(_this.mainContainer);
                // all bullets should go on top of lines/fills. So we add a separate container for bullets and later set it's parent to chart.bulletsContainer
                var bulletsContainer = _this.mainContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                _this._shouldBeReady.push(bulletsContainer);
                bulletsContainer.shouldClone = false;
                bulletsContainer.layout = "none";
                bulletsContainer.virtualParent = _this;
                _this._disposers.push(bulletsContainer);
                _this.bulletsContainer = bulletsContainer;
                _this.tooltip = new _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_7__["Tooltip"]();
                _this.tooltip.virtualParent = _this;
                _this._disposers.push(_this.tooltip);
                _this.hiddenState.transitionEasing = _core_utils_Ease__WEBPACK_IMPORTED_MODULE_15__["cubicIn"];
                // this data item holds sums, averages, etc
                _this.dataItem = _this.createDataItem();
                _this._disposers.push(_this.dataItem);
                _this.dataItem.component = _this;
                _this.showOnInit = true;
                // Apply accessibility
                _this.role = "group";
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            Series.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {SeriesDataItem} Data Item
             */
            Series.prototype.createDataItem = function () {
                return new SeriesDataItem();
            };
            Object.defineProperty(Series.prototype, "chart", {
                /**
                 * @return {this} Chart
                 */
                get: function () {
                    return this._chart;
                },
                /**
                 * Chart series is used on.
                 *
                 * @param {this["_chart"]}  value  Chart
                 */
                set: function (value) {
                    this._chart = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Positions bullet.
             *
             * @param {Bullet}  bullet  Bullet
             */
            Series.prototype.positionBullet = function (bullet) {
                // Placeholder method for extending classes to override.
            };
            /**
             * Decorates newly created bullet after it has been instert into the list.
             *
             * @param {IListEvents<Bullet>["inserted"]}  event  List event
             * @todo investigate why itemReaderText is undefined
             */
            Series.prototype.processBullet = function (event) {
                var bullet = event.newValue;
                bullet.isTemplate = true;
                // Add accessibility options to bullet
                // If there are relatively few bullets, make them focusable
                if (this.itemsFocusable()) {
                    bullet.focusable = true;
                }
            };
            /**
             * removes bullets
             *
             * @param {IListEvents<Bullet>["inserted"]}  event  List event
             */
            Series.prototype.removeBullet = function (event) {
                var bullet = event.oldValue;
                this.dataItems.each(function (dataItem) {
                    var eachBullet = dataItem.bullets.getKey(bullet.uid);
                    if (eachBullet) {
                        eachBullet.dispose();
                    }
                });
                this.invalidate();
            };
            /**
             * Validates data items.
             *
             * @ignore Exclude from docs
             */
            Series.prototype.validateDataItems = function () {
                _super.prototype.validateDataItems.call(this);
                this.processValues(false);
            };
            /**
             * Returns first value for the specific key in the series.
             *
             * @param  {string}  key  Key
             * @return {number}       Value
             * @todo Description
             * @todo Convert to propert object property iterator
             */
            Series.prototype.getFirstValue = function (key, startIndex) {
                // find first
                /*
                return $iter.findMap(this.dataItems.iterator(), (dataItem) => {
                    for (let key in dataItem.values) {
                        let value: number = dataItem.values[key].workingValue;
                        if ($type.isNumber(value)) {
                            return value;
                        }
                    }
        
                    return null;
                });*/
                if (startIndex > 0 && startIndex < this.dataItems.length - 1) {
                    startIndex++;
                }
                for (var i = startIndex; i >= 0; i--) {
                    var dataItem = this.dataItems.getIndex(i);
                    var value = dataItem.values[key].workingValue;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](value)) {
                        return value;
                    }
                }
                return null;
            };
            /**
             * [rangeChangeUpdate description]
             *
             * @todo Description
             */
            Series.prototype.rangeChangeUpdate = function () {
                _super.prototype.rangeChangeUpdate.call(this);
                this.processValues(true);
            };
            /**
             * [processValues description]
             *
             * @todo Description
             * @todo Convert to propert object property iterator
             * @param {OrderedList<this["_dataItem"]>} dataItems [description]
             */
            Series.prototype.processValues = function (working) {
                var dataItems = this.dataItems;
                var count = {};
                var sum = {};
                var low = {};
                var high = {};
                var open = {};
                var close = {};
                var previous = {};
                var first = {};
                //let duration: number = 0; // todo: check if series uses selection.change or selection.change.percent and set duration to interpolationduration
                var startIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["max"](0, this._workingStartIndex);
                startIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["min"](startIndex, this.dataItems.length);
                var endIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_14__["min"](this._workingEndIndex, this.dataItems.length);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](startIndex)) {
                    startIndex = 0;
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](endIndex)) {
                    endIndex = this.dataItems.length;
                }
                if (startIndex > 0) {
                    var dataItem_1 = dataItems.getIndex(startIndex - 1);
                    for (var key in dataItem_1.values) {
                        var value = dataItem_1.values[key].workingValue;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](value)) {
                            // save previous
                            previous[key] = value;
                        }
                    }
                }
                for (var i = startIndex; i < endIndex; i++) {
                    var dataItem_2 = dataItems.getIndex(i);
                    for (var key in dataItem_2.values) {
                        var value = dataItem_2.values[key].workingValue;
                        //if (i >= startIndex && i <= endIndex) { // do not add to count, sum etc if it is not within start/end index
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](value)) {
                            // count values
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](count[key])) {
                                count[key] = 0;
                            }
                            count[key]++;
                            // sum values
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](sum[key])) {
                                sum[key] = 0;
                            }
                            sum[key] += value;
                            // open
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](open[key])) {
                                open[key] = value;
                            }
                            // close
                            close[key] = value;
                            // low
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](low[key])) {
                                low[key] = value;
                            }
                            else {
                                if (low[key] > value) {
                                    low[key] = value;
                                }
                            }
                            // high
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](high[key])) {
                                high[key] = value;
                            }
                            else {
                                if (high[key] < value) {
                                    high[key] = value;
                                }
                            }
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](first[key])) {
                                first[key] = this.getFirstValue(key, startIndex);
                            }
                            // change
                            dataItem_2.setCalculatedValue(key, value - first[key], "change");
                            // change from start percent
                            // will fail if first value is 0
                            dataItem_2.setCalculatedValue(key, (value - first[key]) / first[key] * 100, "changePercent");
                            // previous change
                            var prevValue = previous[key];
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](prevValue)) {
                                prevValue = value;
                            }
                            dataItem_2.setCalculatedValue(key, value - prevValue, "previousChange");
                            // previous change percent
                            dataItem_2.setCalculatedValue(key, (value - prevValue) / prevValue * 100, "previousChangePercent");
                            // save previous
                            previous[key] = value;
                        }
                    }
                }
                if (this.calculatePercent) {
                    var _loop_1 = function (i) {
                        var dataItem_3 = dataItems.getIndex(i);
                        _core_utils_Object__WEBPACK_IMPORTED_MODULE_17__["each"](dataItem_3.values, function (key) {
                            var ksum = sum[key];
                            var value = dataItem_3.values[key].workingValue;
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](value) && ksum > 0) {
                                // this hack is made in order to make it possible to animate single slice to 0
                                // if there is only one slice left, percent value is always 100%, so it won't animate
                                // so we use real value of a slice instead of current value
                                if (value == ksum) {
                                    ksum = dataItem_3.values[key].value;
                                }
                                var percent = value / ksum * 100;
                                dataItem_3.setCalculatedValue(key, percent, "percent");
                            }
                        });
                    };
                    for (var i = startIndex; i < endIndex; i++) {
                        _loop_1(i);
                    }
                }
                // calculate one before first (cant do that in cycle, as we don't know open yet
                // when drawing line chart we should draw line to the invisible data point to the left, otherwise the line will always look like it starts from the selected point
                // so we do startIndex - 1
                if (startIndex > 0) {
                    var zeroItem_1 = dataItems.getIndex(startIndex - 1);
                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_17__["each"](zeroItem_1.values, function (key) {
                        //for (let key in zeroItem.values) {
                        var value = zeroItem_1.values[key].value;
                        // change
                        zeroItem_1.setCalculatedValue(key, value - open[key], "change");
                        // change percent
                        zeroItem_1.setCalculatedValue(key, (value - open[key]) / open[key] * 100, "changePercent");
                        //}
                    });
                }
                // we save various data like sum, average to dataPoint of the series
                var dataItem = this.dataItem;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_17__["each"](dataItem.values, function (key) {
                    dataItem.setCalculatedValue(key, sum[key], "sum");
                    dataItem.setCalculatedValue(key, sum[key] / count[key], "average");
                    dataItem.setCalculatedValue(key, open[key], "open");
                    dataItem.setCalculatedValue(key, close[key], "close");
                    dataItem.setCalculatedValue(key, low[key], "low");
                    dataItem.setCalculatedValue(key, high[key], "high");
                    dataItem.setCalculatedValue(key, count[key], "count");
                });
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            Series.prototype.validate = function () {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](this.axisRanges.iterator(), function (axisRange) {
                    //axisRange.contents.disposeChildren(); // not good for columns, as they are reused
                    //			axisRange.appendChildren();
                    axisRange.validate();
                });
                _super.prototype.validate.call(this);
                this.bulletsContainer.fill = this.fill;
                this.bulletsContainer.stroke = this.stroke;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](this.dataItems.iterator(), function (dataItem) {
                    if (dataItem.index < _this.startIndex || dataItem.index >= _this.endIndex) {
                        dataItem.bullets.each(function (key, bullet) {
                            bullet.__disabled = true;
                        });
                    }
                });
                this.updateTooltipBounds();
            };
            /**
             * @ignore
             */
            Series.prototype.updateTooltipBounds = function () {
                if (this.topParent) {
                    this.tooltip.setBounds({ x: 0, y: 0, width: this.topParent.maxWidth, height: this.topParent.maxHeight });
                }
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {SeriesDataItem}  dataItem  Data item
             */
            Series.prototype.validateDataElement = function (dataItem) {
                var _this = this;
                _super.prototype.validateDataElement.call(this, dataItem);
                if (this._showBullets) {
                    this.bulletsContainer.visible = true;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](this.bullets.iterator(), function (bulletTemplate) {
                        // always better to use the same, this helps to avoid redrawing
                        var bullet = dataItem.bullets.getKey(bulletTemplate.uid);
                        if (!bullet) {
                            bullet = bulletTemplate.clone();
                        }
                        var currentDataItem = bullet.dataItem;
                        if (currentDataItem != dataItem) {
                            // set to undefined in order not to reuse
                            if (currentDataItem) {
                                currentDataItem.bullets.setKey(bulletTemplate.uid, undefined);
                            }
                            dataItem.addSprite(bullet);
                            // Add accessibility to bullet
                            var readerText_1 = _this.itemReaderText || ("{" + bullet.xField + "}: {" + bullet.yField + "}");
                            if (bullet.focusable) {
                                bullet.events.once("focus", function (ev) {
                                    bullet.readerTitle = _this.populateString(readerText_1, bullet.dataItem);
                                }, undefined, false);
                                bullet.events.once("blur", function (ev) {
                                    bullet.readerTitle = "";
                                }, undefined, false);
                            }
                            if (bullet.hoverable) {
                                bullet.events.once("over", function (ev) {
                                    bullet.readerTitle = _this.populateString(readerText_1, bullet.dataItem);
                                }, undefined, false);
                                bullet.events.once("out", function (ev) {
                                    bullet.readerTitle = "";
                                }, undefined, false);
                            }
                            if (bullet.isDynamic) {
                                dataItem.events.on("workingvaluechanged", bullet.deepInvalidate, bullet, false);
                                //dataItem.events.on("calculatedvaluechanged", bullet.deepInvalidate, bullet, false);
                                _this.dataItem.events.on("workingvaluechanged", bullet.deepInvalidate, bullet, false);
                            }
                            bullet.deepInvalidate();
                        }
                        bullet.parent = _this.bulletsContainer;
                        bullet.visible = true;
                        dataItem.bullets.setKey(bulletTemplate.uid, bullet);
                        // pass max w/h so we'd know if we should show/hide somethings
                        bullet.maxWidth = dataItem.itemWidth;
                        bullet.maxHeight = dataItem.itemHeight;
                        bullet.__disabled = false;
                        _this.positionBullet(bullet);
                    });
                }
                else {
                    this.bulletsContainer.visible = false;
                }
            };
            /**
             * [handleDataItemWorkingValueChange description]
             *
             * @ignore Exclude from docs
             */
            Series.prototype.handleDataItemWorkingValueChange = function (dataItem) {
                if (!this.dataRangeInvalid) {
                    this.invalidateProcessedData();
                }
            };
            Object.defineProperty(Series.prototype, "ignoreMinMax", {
                /**
                 * @return {boolean} Exclude from calculations?
                 */
                get: function () {
                    return this._ignoreMinMax;
                },
                /**
                 * Should this series excluded from the axis scale calculations?
                 *
                 * @default false
                 * @param {boolean}  value  Exclude from calculations?
                 */
                set: function (value) {
                    this._ignoreMinMax = value;
                    this.invalidateDataItems();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Create a mask for the series.
             *
             * @ignore Exclude from docs
             */
            Series.prototype.createMask = function () {
                // A placeholder method for extending classes to override.
            };
            /**
             * Process axis range after it has been added to the list.
             *
             * @param {IListEvents<AxisDataItem>["inserted"]}  event  Event
             */
            Series.prototype.processAxisRange = function (event) {
                // create container if not existing
                if (!this.rangesContainer) {
                    this.rangesContainer = this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                    this.rangesContainer.shouldClone = false;
                    this.rangesContainer.isMeasured = false;
                }
                var axisRange = event.newValue;
                if (axisRange) {
                    axisRange.contents.parent = this.rangesContainer;
                    axisRange.isRange = true;
                }
            };
            /**
             * [getAxisField description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {Axis}    axis  [description]
             * @return {string}        [description]
             */
            Series.prototype.getAxisField = function (axis) {
                return;
            };
            /**
             * Shows the tooltip at specific position.
             *
             * @ignore Exclude from docs
             * @param {number}  xPosition  X
             * @param {number}  yPosition  Y
             */
            Series.prototype.showTooltipAtPosition = function (xPosition, yPosition) {
                // Placeholder method for extending classes to override.
            };
            Object.defineProperty(Series.prototype, "minBulletDistance", {
                /**
                 * @return {number} Distance (px)
                 */
                get: function () {
                    return this.getPropertyValue("minBulletDistance");
                },
                /**
                 * Minimal distance between two adjacent bullets in pixels.
                 *
                 * If bullet is closer, it will be skipped and not shown.
                 *
                 * This allows to avoid crammed up graphs wil a lot of bullets.
                 *
                 * @default 0
                 * @param {number}  value  Distance (px)
                 */
                set: function (value) {
                    this.setPropertyValue("minBulletDistance", value);
                    this.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Series.prototype, "bullets", {
                /**
                 * A list of bullets that will be added to each and every items in the
                 * series.
                 *
                 * You can push any object that is a descendant of a [[Bullet]] here. All
                 * items added to this list will be copied and used as a bullet on all data
                 * items, including their properties, events, etc.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/bullets/} for more info about the concept of Bullets
                 * @return {ListTemplate<Bullet>} List of bullets.
                 */
                get: function () {
                    if (!this._bullets) {
                        this._bullets = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](new _elements_Bullet__WEBPACK_IMPORTED_MODULE_8__["Bullet"]());
                        this._bullets.template.virtualParent = this;
                        this._bullets.events.on("inserted", this.processBullet, this, false);
                        this._bullets.events.on("removed", this.removeBullet, this, false);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](this._bullets));
                        this._disposers.push(this._bullets.template);
                    }
                    return this._bullets;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Binds related legend data item's visual settings to this series' visual
             * settings.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            Series.prototype.createLegendMarker = function (marker) {
                // This is a placeholder method for extending classes to override.
            };
            Object.defineProperty(Series.prototype, "hiddenInLegend", {
                /**
                 * @return {boolean} Hidden in legend?
                 */
                get: function () {
                    return this.getPropertyValue("hiddenInLegend");
                },
                /**
                 * Should the series be hidden in legend?
                 *
                 * @param {boolean} value Hidden in legend?
                 */
                set: function (value) {
                    this.setPropertyValue("hiddenInLegend", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Series.prototype, "name", {
                /**
                 * @return {string} Name
                 */
                get: function () {
                    return this.adapter.apply("name", this._title);
                },
                /**
                 * Series' name.
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this._title = value;
                    this.readerTitle = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Series.prototype, "itemReaderText", {
                /**
                 * @return {string} Screen reader text template
                 */
                get: function () {
                    // Get explicitly set reader text
                    var readerText = this._itemReaderText;
                    // Not set? Let's try something else
                    if (!readerText) {
                        // Tooltip text?
                        if (this.tooltipText) {
                            readerText = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_16__["plainText"](this.tooltipText);
                        }
                        else if (this.tooltipHTML) {
                            readerText = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_16__["plainText"](this.tooltipHTML);
                        }
                    }
                    return this.adapter.apply("itemReaderText", readerText);
                },
                /**
                 * Screen reader text to be applied to each individual data item, such
                 * as bullets, columns or slices.
                 *
                 * The template can contain field reference meta codes, i.e. `{dateX}`,
                 * `{valueY}`, etc.
                 *
                 * Any text formatting options, e.g. `[bold]` will be ignored.
                 *
                 * @param {string} value Screen reader text template
                 */
                set: function (value) {
                    this._itemReaderText = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns if number of data items in the series are beyond non-focusable
             * count and should not be available for TAB-through.
             *
             * @ignore Exclude from docs
             * @return {boolean} Items focusable?
             */
            Series.prototype.itemsFocusable = function () {
                return this.dataItems.length >= this.skipFocusThreshold ? false : true;
            };
            Object.defineProperty(Series.prototype, "legendDataItem", {
                /**
                 * @return {LegendDataItem<Series, ISeriesEvents>} Data item
                 */
                get: function () {
                    return this._legendDataItem;
                },
                /**
                 * Legend data item that corresponds to this series.
                 *
                 * @param {LegendDataItem<Series, ISeriesEvents>}  value  Data item
                 */
                set: function (value) {
                    this._legendDataItem = value;
                    this._legendDataItem.itemContainer.deepInvalidate();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates corresponding legend data item with current values.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            Series.prototype.updateLegendValue = function (dataItem) {
                // if this series has legend item
                if (this.legendDataItem) {
                    var legendSettings = this.legendSettings;
                    var legendDataItem = this.legendDataItem;
                    var label = legendDataItem.label;
                    var valueLabel = legendDataItem.valueLabel;
                    // update legend
                    if (dataItem) {
                        if (valueLabel) {
                            if (legendSettings.itemValueText) {
                                valueLabel.text = legendSettings.itemValueText;
                            }
                            valueLabel.dataItem = dataItem;
                        }
                        if (label) {
                            if (legendSettings.itemLabelText) {
                                label.text = legendSettings.itemLabelText;
                            }
                            label.dataItem = this.dataItem;
                        }
                    }
                    else {
                        if (label) {
                            // if itemLabelText is set, means we have to reset label even if labelText is not set
                            if (legendSettings.labelText || legendSettings.itemLabelText != undefined) {
                                label.text = legendSettings.labelText;
                            }
                            label.dataItem = this.dataItem;
                        }
                        if (valueLabel) {
                            if (legendSettings.valueText || legendSettings.itemValueText != undefined) {
                                valueLabel.text = legendSettings.valueText;
                            }
                            valueLabel.dataItem = this.dataItem;
                        }
                    }
                }
            };
            /**
             * Copies all properties from another instance of [[Series]].
             *
             * @param {Series}  source  Source series
             */
            Series.prototype.copyFrom = function (source) {
                this.bullets.copyFrom(source.bullets);
                this.bulletsContainer.copyFrom(source.bulletsContainer);
                this.calculatePercent = source.calculatePercent;
                _super.prototype.copyFrom.call(this, source);
            };
            /**
             * Displays a modal or console message with error, and halts any further
             * processing of this element.
             *
             * @param {Error} e Error
             */
            Series.prototype.raiseCriticalError = function (e) {
                this._chart.modal.content = e.message;
                this._chart.modal.closable = false;
                this._chart.modal.open();
                this._chart.disabled = true;
                if (_core_Options__WEBPACK_IMPORTED_MODULE_10__["options"].verbose) {
                    console.log(e);
                }
            };
            /**
             * Applies filters to the element.
             *
             * @ignore Exclude from docs
             */
            Series.prototype.applyFilters = function () {
                var _this = this;
                _super.prototype.applyFilters.call(this);
                this.bulletsContainer.filters.clear();
                // copyFrom of a list copies, does not clone
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](this.filters.iterator(), function (filter) {
                    _this.bulletsContainer.filters.push(filter.clone());
                });
            };
            Object.defineProperty(Series.prototype, "heatRules", {
                /**
                 * @todo Description
                 */
                get: function () {
                    var _this = this;
                    if (!this._heatRules) {
                        this._heatRules = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        this._heatRules.events.on("inserted", function (event) {
                            var heatRule = event.newValue;
                            var target = heatRule.target;
                            if (target) {
                                var dataField_1 = heatRule.dataField;
                                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](dataField_1)) {
                                    dataField_1 = "value";
                                }
                                var min_1 = heatRule.min;
                                var max_1 = heatRule.max;
                                var seriesDataItem_1 = _this.dataItem;
                                var property_1 = heatRule.property;
                                var minValue = _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["toNumber"](heatRule.minValue);
                                var maxValue = _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["toNumber"](heatRule.maxValue);
                                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](minValue) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](maxValue)) {
                                    _this.dataItem.events.on("calculatedvaluechanged", function (event) {
                                        if (event.property == dataField_1) {
                                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](_this.dataItems.iterator(), function (dataItem) {
                                                var foundSprite = false;
                                                _core_utils_Array__WEBPACK_IMPORTED_MODULE_19__["each"](dataItem.sprites, function (sprite) {
                                                    if (sprite.clonedFrom == target) {
                                                        var anySprite = sprite;
                                                        anySprite[property_1] = anySprite[property_1];
                                                        foundSprite = true;
                                                    }
                                                });
                                                if (!foundSprite) {
                                                    _core_utils_Array__WEBPACK_IMPORTED_MODULE_19__["each"](dataItem.sprites, function (sprite) {
                                                        if (sprite instanceof _core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]) {
                                                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](sprite.children.iterator(), function (child) {
                                                                if (child.className == target.className) {
                                                                    var anyChild = child;
                                                                    anyChild[property_1] = anyChild[property_1];
                                                                }
                                                                // giveup here
                                                                else if (child instanceof _core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]) {
                                                                    child.deepInvalidate();
                                                                }
                                                            });
                                                        }
                                                    });
                                                }
                                            });
                                        }
                                    });
                                }
                                _this.dataItems.template.events.on("workingvaluechanged", function (event) {
                                    if (event.property == dataField_1) {
                                        var dataItem = event.target;
                                        var foundSprite_1 = false;
                                        _core_utils_Array__WEBPACK_IMPORTED_MODULE_19__["each"](dataItem.sprites, function (sprite) {
                                            if (sprite.clonedFrom == target) {
                                                var anySprite = sprite;
                                                anySprite[property_1] = anySprite[property_1];
                                                foundSprite_1 = true;
                                            }
                                        });
                                        if (!foundSprite_1) {
                                            _core_utils_Array__WEBPACK_IMPORTED_MODULE_19__["each"](dataItem.sprites, function (sprite) {
                                                if (sprite instanceof _core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]) {
                                                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_13__["each"](sprite.children.iterator(), function (child) {
                                                        if (child.className == target.className) {
                                                            var anyChild = child;
                                                            anyChild[property_1] = anyChild[property_1];
                                                        }
                                                        // givup here
                                                        else if (child instanceof _core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]) {
                                                            child.deepInvalidate();
                                                        }
                                                    });
                                                }
                                            });
                                        }
                                    }
                                });
                                target.adapter.add(property_1, function (value, ruleTarget, property) {
                                    var minValue = _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["toNumber"](heatRule.minValue);
                                    var maxValue = _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["toNumber"](heatRule.maxValue);
                                    if (ruleTarget instanceof _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]) {
                                        var anySprite = ruleTarget;
                                        var propertyField = anySprite.propertyFields[property];
                                        if (propertyField && ruleTarget.dataItem) {
                                            var dataContext = ruleTarget.dataItem.dataContext;
                                            if (dataContext && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](dataContext[propertyField])) {
                                                return value;
                                            }
                                        }
                                    }
                                    var dataItem = ruleTarget.dataItem;
                                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](minValue)) {
                                        minValue = seriesDataItem_1.values[dataField_1].low;
                                    }
                                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](maxValue)) {
                                        maxValue = seriesDataItem_1.values[dataField_1].high;
                                    }
                                    if (dataItem) {
                                        var fieldValues = dataItem.values[dataField_1];
                                        if (fieldValues) {
                                            var workingValue = fieldValues.workingValue;
                                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](min_1) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](max_1) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](minValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](maxValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](workingValue)) {
                                                var percent = (workingValue - minValue) / (maxValue - minValue);
                                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isNumber"](min_1)) {
                                                    return min_1 + (max_1 - min_1) * percent;
                                                }
                                                else if (min_1 instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_12__["Color"]) {
                                                    return new _core_utils_Color__WEBPACK_IMPORTED_MODULE_12__["Color"](_core_utils_Colors__WEBPACK_IMPORTED_MODULE_20__["interpolate"](min_1.rgb, max_1.rgb, percent));
                                                }
                                            }
                                        }
                                    }
                                    return value;
                                });
                            }
                        });
                    }
                    return this._heatRules;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            Series.prototype.processConfig = function (config) {
                var heatRules;
                if (config) {
                    // Set up bullets
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](config.bullets) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isArray"](config.bullets)) {
                        for (var i = 0, len = config.bullets.length; i < len; i++) {
                            var bullets = config.bullets[i];
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](bullets.type)) {
                                bullets.type = "Bullet";
                            }
                        }
                    }
                    // Let's take heatRules out of the config, so that we can process
                    // them later, when bullets are already there
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](config.heatRules) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isArray"](config.heatRules)) {
                        heatRules = config.heatRules;
                        delete config.heatRules;
                    }
                }
                _super.prototype.processConfig.call(this, config);
                // Process heat rules again, when all other elements are ready
                if (heatRules) {
                    for (var i = 0, len = heatRules.length; i < len; i++) {
                        var rule = heatRules[i];
                        // Resolve target
                        var target = this;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](rule.target) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["isString"](rule.target)) {
                            // Check if we can find this element by id
                            if (this.map.hasKey(rule.target)) {
                                target = this.map.getKey(rule.target);
                            }
                            else {
                                var parts = rule.target.split(".");
                                for (var x = 0; x < parts.length; x++) {
                                    if (target instanceof _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]) {
                                        var listitem = target.getIndex(_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["toNumber"](parts[x]));
                                        if (!listitem) {
                                            target = target[parts[x]];
                                        }
                                        else {
                                            target = listitem;
                                        }
                                    }
                                    else {
                                        target = target[parts[x]];
                                    }
                                }
                            }
                        }
                        rule.target = target;
                        // Resolve colors and percents
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](rule.min)) {
                            rule.min = this.maybeColorOrPercent(rule.min);
                        }
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_18__["hasValue"](rule.max)) {
                            rule.max = this.maybeColorOrPercent(rule.max);
                        }
                    }
                    _super.prototype.processConfig.call(this, {
                        heatRules: heatRules
                    });
                }
            };
            /**
             * Returns visibility value
             * @ignore
             */
            /*
                protected getVisibility(): boolean {
                    let hidden = this.getPropertyValue("hidden");
                    if (hidden) {
                        return false;
                    }
                    else {
                        return super.getVisibility();
                    }
                }*/
            /**
             * This function is used to sort element's JSON config properties, so that
             * some properties that absolutely need to be processed last, can be put at
             * the end.
             *
             * @ignore Exclude from docs
             * @param  {string}  a  Element 1
             * @param  {string}  b  Element 2
             * @return {Ordering}   Sorting number
             */
            Series.prototype.configOrder = function (a, b) {
                if (a == b) {
                    return 0;
                }
                // Must come last
                else if (a == "heatRules") {
                    return 1;
                }
                else if (b == "heatRules") {
                    return -1;
                }
                else {
                    return _super.prototype.configOrder.call(this, a, b);
                }
            };
            return Series;
        }(_core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]));
        /**
         * Register class, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_11__["registry"].registeredClasses["Series"] = Series;
        _core_Registry__WEBPACK_IMPORTED_MODULE_11__["registry"].registeredClasses["SeriesDataItem"] = SeriesDataItem;
        //# sourceMappingURL=Series.js.map
        /***/ 
    }),
    /* 912 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bullet", function () { return Bullet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * Module that defines everything related to building bullets.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates bullets.
         *
         * @see {@link IBulletEvents} for a list of available events
         * @see {@link IBulletAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var Bullet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Bullet, _super);
            /**
             * Constructor
             */
            function Bullet() {
                var _this = _super.call(this) || this;
                _this.className = "Bullet";
                _this.isMeasured = false;
                _this.tooltipX = 0;
                _this.tooltipY = 0;
                _this.layout = "none";
                _this.applyOnClones = true;
                _this.copyToLegendMarker = true;
                return _this;
            }
            Object.defineProperty(Bullet.prototype, "locationX", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("locationX");
                },
                /**
                 * Relative horizontal location within cell. (0-1)
                 *
                 * @param {number}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("locationX", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Bullet.prototype, "locationY", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("locationY");
                },
                /**
                 * Relative vertical location within cell. (0-1)
                 *
                 * @param {number}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("locationY", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Bullet.prototype, "xField", {
                /**
                 * @return {string} [description]
                 */
                get: function () {
                    return this.getPropertyValue("xField");
                },
                /**
                 * [xField description]
                 *
                 * @todo Description
                 * @param {string}  value  [description]
                 */
                set: function (value) {
                    this.setPropertyValue("xField", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Bullet.prototype, "yField", {
                /**
                 * @return {string} [description]
                 */
                get: function () {
                    return this.getPropertyValue("yField");
                },
                /**
                 * [yField description]
                 *
                 * Description
                 * @param {string}  value  [description]
                 */
                set: function (value) {
                    this.setPropertyValue("yField", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Bullet.prototype, "isDynamic", {
                /**
                 * @return {boolean} Redraw on data change?
                 */
                get: function () {
                    return this.getPropertyValue("isDynamic");
                },
                /**
                 * Indicates if the bullet is "dynamic".
                 *
                 * In most cases the bullets remain the same, even if the underlying data
                 * changes.
                 *
                 * However, in cases where bullet also displays a label, or its size depends
                 * on data, it also needs to be redrawn when the underlying data changes.
                 *
                 * Only those bullets that have set `isDynamic = true` will be redrawn each
                 * time data changes. Regular bullets will be reused as they are.
                 *
                 * @default false
                 * @param {boolean}  value  Redraw on data change?
                 */
                set: function (value) {
                    this.setPropertyValue("isDynamic", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Bullet.prototype, "copyToLegendMarker", {
                /**
                 * @return {boolean} Redraw on data change?
                 */
                get: function () {
                    return this.getPropertyValue("copyToLegendMarker");
                },
                /**
                 * Indicates if the bullet should be copied to legend marker
                 *
                 * @default false
                 * @param {boolean}  value  Redraw on data change?
                 */
                set: function (value) {
                    this.setPropertyValue("copyToLegendMarker", value);
                },
                enumerable: true,
                configurable: true
            });
            return Bullet;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["Bullet"] = Bullet;
        //# sourceMappingURL=Bullet.js.map
        /***/ 
    }),
    /* 913 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CategoryAxisDataItem", function () { return CategoryAxisDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CategoryAxis", function () { return CategoryAxis; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Axis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(914);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(760);
        /* harmony import */ var _CategoryAxisBreak__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(916);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /**
         * Category axis module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[CategoryAxis]].
         *
         * @see {@link DataItem}
         */
        var CategoryAxisDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CategoryAxisDataItem, _super);
            /**
             * Constructor
             */
            function CategoryAxisDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "CategoryAxisDataItem";
                _this.text = "{category}";
                _this.locations.category = 0;
                _this.locations.endCategory = 1;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(CategoryAxisDataItem.prototype, "category", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.properties["category"];
                },
                /**
                 * Category.
                 *
                 * @param {string}  value  Category
                 */
                set: function (value) {
                    this.setProperty("category", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisDataItem.prototype, "endCategory", {
                /**
                 * @return {string} End category
                 */
                get: function () {
                    return this.properties["endCategory"];
                },
                /**
                 * End category.
                 *
                 * Used for items that span several categories, like [[CategoryAxisBreak]].
                 *
                 * @param {string}  value  End category
                 */
                set: function (value) {
                    this.setProperty("endCategory", value);
                },
                enumerable: true,
                configurable: true
            });
            return CategoryAxisDataItem;
        }(_Axis__WEBPACK_IMPORTED_MODULE_1__["AxisDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to create a category-based axis for the chart.
         *
         * ```TypeScript
         * // Create the axis
         * let xAxis = chart.xAxes.push(new am4charts.CategoryAxis());
         *
         * // Set settings
         * xAxis.title.text = "Clients";
         * ```
         * ```JavaScript
         * // Create the axis
         * var valueAxis = chart.xAxes.push(new am4charts.CategoryAxis());
         *
         * // Set settings
         * valueAxis.title.text = "Clients";
         * ```
         * ```JSON
         * "xAxes": [{
         *   "type": "CategoryAxis",
         *   "title": {
         *     "text": "Clients"
         *   }
         * }]
         * ```
         *
         * @see {@link ICategoryAxisEvents} for a list of available Events
         * @see {@link ICategoryAxisAdapters} for a list of available Adapters
         * @important
         */
        var CategoryAxis = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CategoryAxis, _super);
            /**
             * Constructor
             */
            function CategoryAxis() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A collection that holds Axis' data items sorted by each category.
                 *
                 * @type {Dictionary}
                 */
                _this.dataItemsByCategory = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["Dictionary"]();
                _this.className = "CategoryAxis";
                // Set field name
                _this.axisFieldName = "category";
                _this._lastDataItem = _this.createDataItem();
                _this._lastDataItem.component = _this;
                _this._disposers.push(_this._lastDataItem);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty [[DataItem]] of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {CategoryAxisDataItem} Data Item
             */
            CategoryAxis.prototype.createDataItem = function () {
                return new CategoryAxisDataItem();
            };
            /**
             * Returns a new/empty [[AxisBreak]] of the appropriate type.
             *
             * @return {CategoryAxisBreak} Axis break
             */
            CategoryAxis.prototype.createAxisBreak = function () {
                return new _CategoryAxisBreak__WEBPACK_IMPORTED_MODULE_4__["CategoryAxisBreak"]();
            };
            /**
             * Validates the data range.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            CategoryAxis.prototype.validateDataRange = function () {
                var _this = this;
                var dataCount = this.dataItems.length;
                var startIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](Math.floor(this.start * dataCount - 1), 0, dataCount);
                var endIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](Math.ceil(this.end * dataCount), 0, dataCount);
                if (this.renderer.invalid) {
                    this.renderer.validate();
                }
                // find frequency at which we'll show items
                var maxCount = this.renderer.axisLength / this.renderer.minGridDistance;
                var frequency = Math.min(this.dataItems.length, Math.ceil((endIndex - startIndex) / maxCount));
                this._startIndex = Math.floor(startIndex / frequency) * frequency;
                this._endIndex = Math.ceil(this.end * dataCount);
                this.fixAxisBreaks();
                if (this._startIndex == this._endIndex) {
                    this._endIndex++;
                }
                this._frequency = frequency;
                _super.prototype.validateDataRange.call(this);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._series.iterator(), function (series) {
                    if ((series.xAxis instanceof CategoryAxis) && (series.yAxis instanceof CategoryAxis)) {
                        series.invalidateDataRange();
                    }
                    else {
                        series.start = _this.start;
                        series.end = _this.end;
                        // range might not change, but axis breaks might.
                        if (_this.axisBreaks.length > 0) {
                            series.invalidateDataRange();
                        }
                    }
                });
            };
            /**
             * Validates the whole axis. Causes it to redraw.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            CategoryAxis.prototype.validate = function () {
                var _this = this;
                _super.prototype.validate.call(this);
                if (this.axisLength <= 0) {
                    return;
                }
                this.maxZoomFactor = this.dataItems.length;
                if (this.dataItems.length <= 0) {
                    this.maxZoomFactor = 1;
                }
                this.resetIterators();
                // it's important to use protected variables here, as getters will return 0 - length
                // TODO use iterator instead
                // @ todo: not solved cat axis item fading
                var startIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["max"](0, this._startIndex - this._frequency);
                var endIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.dataItems.length, this._endIndex + this._frequency);
                var itemIndex = 0;
                for (var i = 0; i < startIndex; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    dataItem.__disabled = true;
                }
                for (var i = endIndex, len = this.dataItems.length; i < len; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    dataItem.__disabled = true;
                }
                for (var i = startIndex; i < endIndex; i++) {
                    if (i < this.dataItems.length) {
                        var dataItem = this.dataItems.getIndex(i);
                        if (i / this._frequency == Math.round(i / this._frequency)) {
                            var axisBreak = this.isInBreak(i);
                            if (!axisBreak) {
                                this.appendDataItem(dataItem);
                                this.validateDataElement(dataItem, itemIndex);
                            }
                            itemIndex++;
                        }
                        else {
                            //previously we disabled all before, but this is better for cpu
                            this.validateDataElement(dataItem, itemIndex); // helps to solve shrinking
                            dataItem.__disabled = true;
                        }
                    }
                }
                this.appendDataItem(this._lastDataItem);
                this.validateDataElement(this._lastDataItem, itemIndex + 1, this.dataItems.length);
                var axisBreaks = this.axisBreaks;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](axisBreaks.iterator(), function (axisBreak) {
                    var adjustedStartValue = axisBreak.adjustedStartValue;
                    var adjustedEndValue = axisBreak.adjustedEndValue;
                    if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["intersect"]({ start: adjustedStartValue, end: adjustedEndValue }, { start: _this._startIndex, end: _this._endIndex })) {
                        var frequency = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](Math.ceil(_this._frequency / axisBreak.breakSize), 1, adjustedEndValue - adjustedStartValue);
                        var itemIndex_1 = 0;
                        // TODO use iterator instead
                        for (var b = adjustedStartValue; b <= adjustedEndValue; b = b + frequency) {
                            var dataItem = _this.dataItems.getIndex(b);
                            _this.appendDataItem(dataItem);
                            _this.validateDataElement(dataItem, itemIndex_1);
                            itemIndex_1++;
                        }
                    }
                });
                this.ghostLabel.invalidate(); // solves font issue
            };
            /**
             * [validateDataElement description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {CategoryAxisDataItem}  dataItem   [description]
             * @param {number}                itemIndex  [description]
             */
            CategoryAxis.prototype.validateDataElement = function (dataItem, itemIndex, index) {
                _super.prototype.validateDataElement.call(this, dataItem);
                //dataItem.__disabled = false;
                var renderer = this.renderer;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](index)) {
                    index = this.categoryToIndex(dataItem.category);
                }
                var endIndex = this.categoryToIndex(dataItem.endCategory);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](endIndex)) {
                    endIndex = index;
                }
                var position = this.indexToPosition(index, dataItem.locations.category);
                var endPosition = this.indexToPosition(endIndex, dataItem.locations.endCategory);
                dataItem.position = position;
                var fillEndIndex;
                var fillPosition;
                var fillEndPosition;
                if (dataItem.isRange) {
                    fillEndIndex = endIndex;
                    fillPosition = this.indexToPosition(index, dataItem.locations.category);
                    fillEndPosition = this.indexToPosition(fillEndIndex, dataItem.locations.endCategory);
                }
                else {
                    fillEndIndex = index + this._frequency;
                    fillPosition = this.indexToPosition(index, dataItem.axisFill.location);
                    fillEndPosition = this.indexToPosition(fillEndIndex, dataItem.axisFill.location);
                }
                dataItem.point = renderer.positionToPoint(position);
                var tick = dataItem.tick;
                if (tick && !tick.disabled) {
                    renderer.updateTickElement(tick, position, endPosition);
                }
                var grid = dataItem.grid;
                if (grid && !grid.disabled) {
                    renderer.updateGridElement(grid, position, endPosition);
                }
                var label = dataItem.label;
                if (label && !label.disabled) {
                    // theorethically this might result problems if category text changes, the range text won't change. But otherwise range.label.text = "custom text" wont' work, which is not intuitive.
                    if (!dataItem.isRange || label.text == undefined) {
                        dataItem.text = dataItem.text;
                    }
                    renderer.updateLabelElement(label, position, endPosition);
                }
                var fill = dataItem.axisFill;
                if (fill && !fill.disabled) {
                    renderer.updateFillElement(fill, fillPosition, fillEndPosition);
                    if (!dataItem.isRange) {
                        this.fillRule(dataItem, itemIndex);
                    }
                }
                var mask = dataItem.mask;
                if (mask) {
                    renderer.updateFillElement(mask, fillPosition, fillEndPosition);
                }
            };
            /**
             * Processes the axis data item.
             *
             * @ignore Exclude from docs
             * @param {CategoryAxisDataItem}  dataItem     Data item
             * @param {Object}                dataContext  The raw data that corresponds to this data item
             */
            CategoryAxis.prototype.processDataItem = function (dataItem, dataContext) {
                // creat a collection for fast access
                _super.prototype.processDataItem.call(this, dataItem, dataContext);
                // check if such category already exists
                var existingDataItem = this.dataItemsByCategory.getKey(dataItem.category);
                if (existingDataItem != dataItem) {
                    this.dataItems.remove(existingDataItem);
                }
                this.dataItemsByCategory.setKey(dataItem.category, dataItem);
            };
            /**
             * Converts a category index to an actual screen coordinate on the axis.
             *
             * `location` identifies relative location within category. 0 - beginning,
             * 0.5 - middle, 1 - end, and anything inbetween.
             *
             * @param  {number}                     index     Index
             * @param  {AxisItemLocation | number}  location  Location (0-1)
             * @return {number}                               Position (px)
             */
            CategoryAxis.prototype.indexToPosition = function (index, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](location)) {
                    location = 0.5;
                }
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var difference = this.adjustDifference(startIndex, endIndex);
                var startLocation = this.startLocation;
                var endLocation = this.endLocation;
                difference -= startLocation;
                difference -= (1 - endLocation);
                var axisBreaks = this.axisBreaks;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["eachContinue"](axisBreaks.iterator(), function (axisBreak) {
                    var breakStartIndex = axisBreak.adjustedStartValue;
                    var breakEndIndex = axisBreak.adjustedEndValue;
                    if (index < startIndex) {
                        return false;
                    }
                    if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["intersect"]({ start: breakStartIndex, end: breakEndIndex }, { start: startIndex, end: endIndex })) {
                        breakStartIndex = Math.max(startIndex, breakStartIndex);
                        breakEndIndex = Math.min(endIndex, breakEndIndex);
                        var breakSize = axisBreak.breakSize;
                        // value to the right of break end
                        if (index > breakEndIndex) {
                            startIndex += (breakEndIndex - breakStartIndex) * (1 - breakSize);
                        }
                        // value to the left of break start
                        else if (index < breakStartIndex) {
                        }
                        // value within break
                        else {
                            index = breakStartIndex + (index - breakStartIndex) * breakSize;
                        }
                    }
                    return true;
                });
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"]((index + location - startLocation - startIndex) / difference, 5);
            };
            /**
             * Converts a string category name to relative position on axis.
             *
             * `location` identifies relative location within category. 0 - beginning,
             * 0.5 - middle, 1 - end, and anything inbetween.
             *
             * @param  {string}            category  Category name
             * @param  {AxisItemLocation}  location  Location (0-1)
             * @return {number}                      Position
             */
            CategoryAxis.prototype.categoryToPosition = function (category, location) {
                var index = this.categoryToIndex(category);
                return this.indexToPosition(index, location);
            };
            /**
             * Converts a string category name to a orientation point (x, y, angle) on axis
             *
             * `location` identifies relative location within category. 0 - beginning,
             * 0.5 - middle, 1 - end, and anything inbetween.
             * @param  {string}            category  Category name
             * @param  {AxisItemLocation}  location  Location (0-1)
             * @return {IOrientationPoint}  Orientation point
             */
            CategoryAxis.prototype.categoryToPoint = function (category, location) {
                var position = this.categoryToPosition(category, location);
                var point = this.renderer.positionToPoint(position);
                var angle = this.renderer.positionToAngle(position);
                return { x: point.x, y: point.y, angle: angle };
            };
            /**
             * Converts a string category name to a orientation point (x, y, angle) on axis
             *
             * `location` identifies relative location within category. 0 - beginning,
             * 0.5 - middle, 1 - end, and anything inbetween.
             * @param  {string}            category  Category name
             * @param  {AxisItemLocation}  location  Location (0-1)
             * @return {IOrientationPoint}  Orientation point
             */
            CategoryAxis.prototype.anyToPoint = function (category, location) {
                return this.categoryToPoint(category, location);
            };
            /**
             * Converts a string category name to relative position on axis.
             *
             * An alias to `categoryToPosition()`.
             *
             * @param  {string}            category  Category name
             * @param  {AxisItemLocation}  location  Location (0-1)
             * @return {number}                      Relative position
             */
            CategoryAxis.prototype.anyToPosition = function (category, location) {
                return this.categoryToPosition(category, location);
            };
            /**
             * Converts named category to an index of data item it corresponds to.
             *
             * @param  {string}  category  Category
             * @return {number}            Data item index
             */
            CategoryAxis.prototype.categoryToIndex = function (category) {
                var dataItem = this.dataItemsByCategory.getKey(category);
                if (dataItem) {
                    return dataItem.index;
                }
            };
            /**
             * Zooms the axis to specific named ctaegories.
             *
             * @param {string}  startCategory  Start category
             * @param {string}  endCategory    End category
             */
            CategoryAxis.prototype.zoomToCategories = function (startCategory, endCategory) {
                this.zoomToIndexes(this.categoryToIndex(startCategory), this.categoryToIndex(endCategory) + 1);
            };
            /**
             * [getAnyRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {string}           start         [description]
             * @param  {string}           end           [description]
             * @param  {AxisItemLocation} startLocation [description]
             * @param  {AxisItemLocation} endLocation   [description]
             * @return {string}                         [description]
             */
            CategoryAxis.prototype.getAnyRangePath = function (start, end, startLocation, endLocation) {
                var startPos = this.categoryToPosition(start, startLocation);
                var endPos = this.categoryToPosition(end, endLocation);
                return this.getPositionRangePath(startPos, endPos); // Base class (Axis) gets range shape from AxisRenderer
            };
            /**
             * Takes an absolute position (px) within axis and adjust it to a specific
             * `location` within category it corresponds to.
             *
             * @param  {number}            position  Source position (px)
             * @param  {AxisItemLocation}  location  Location within category (0-1)
             * @return {number}                      Adjusted position (px)
             */
            CategoryAxis.prototype.roundPosition = function (position, location) {
                var index = this.positionToIndex(position);
                return this.indexToPosition(index, location);
            };
            /**
             * Returns a data item from Series that corresponds to a specific absolute
             * position on the Axis.
             *
             * @param  {XYSeries}          series    Target series
             * @param  {number}            position  Position (px)
             * @return {XYSeriesDataItem}            Series data item
             */
            CategoryAxis.prototype.getSeriesDataItem = function (series, position) {
                return series.dataItems.getIndex(this.positionToIndex(position));
            };
            /**
             * Returns the X coordinate for series' data item.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {SeriesDataItem}  dataItem  Data item
             * @param  {string}          key       Category
             * @param  {number}          location  Location (0-1)
             * @return {number}                    X coordinate (px)
             */
            CategoryAxis.prototype.getX = function (dataItem, key, location) {
                var position;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["hasValue"](key)) {
                    position = this.categoryToPosition(dataItem.categories[key], location);
                }
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNaN"](position)) {
                    return this.basePoint.x;
                }
                else {
                    return this.renderer.positionToPoint(position).x;
                }
            };
            /**
             * Returns the Y coordinate for series' data item.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {SeriesDataItem}  dataItem  Data item
             * @param  {string}          key       Category
             * @param  {number}          location  Location (0-1)
             * @return {number}                    Y coordinate (px)
             */
            CategoryAxis.prototype.getY = function (dataItem, key, location) {
                var position;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["hasValue"](key)) {
                    position = this.categoryToPosition(dataItem.categories[key], location);
                }
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNaN"](position)) {
                    return this.basePoint.y;
                }
                else {
                    return this.renderer.positionToPoint(position).y;
                }
            };
            /**
             * Returns an angle for series data item.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Category
             * @param  {number}            location  Location (0-1)
             * @param  {string}            stackKey  Stack key (?)
             * @return {number}                      Angle
             */
            CategoryAxis.prototype.getAngle = function (dataItem, key, location, stackKey) {
                return this.positionToAngle(this.categoryToPosition(dataItem.categories[key], location));
            };
            /**
             * Returns an absolute pixel coordinate of the start of the cell (category),
             * that specific position value falls into.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {number}  position  Position (px)
             * @return {number}            Cell start position (px)
             */
            CategoryAxis.prototype.getCellStartPosition = function (position) {
                return this.roundPosition(position, 0);
            };
            /**
             * Returns an absolute pixel coordinate of the end of the cell (category),
             * that specific position value falls into.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {number}  position  Position (px)
             * @return {number}            Cell end position (px)
             */
            CategoryAxis.prototype.getCellEndPosition = function (position) {
                return this.roundPosition(position, 1);
            };
            /**
             * Returns text to show in a category tooltip, based on specific position
             * within axis.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (px)
             * @return {string}            Label (category)
             */
            CategoryAxis.prototype.getTooltipText = function (position) {
                var dataItem = this.dataItems.getIndex(this.positionToIndex(position));
                if (dataItem) {
                    return this.adapter.apply("getTooltipText", dataItem.category);
                }
            };
            /**
             * Returns an index of the category that corresponds to specific pixel
             * position within axis.
             *
             * @param  {number}  position  Position (px)
             * @return {number}            Category index
             */
            CategoryAxis.prototype.positionToIndex = function (position) {
                position = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](position, 10);
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var difference = endIndex - startIndex;
                var axisBreaks = this.axisBreaks;
                var index = null;
                // in case we have some axis breaks
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["eachContinue"](axisBreaks.iterator(), function (axisBreak) {
                    var breakStartPosition = axisBreak.startPosition;
                    var breakEndPosition = axisBreak.endPosition;
                    var breakStartIndex = axisBreak.adjustedStartValue;
                    var breakEndIndex = axisBreak.adjustedEndValue;
                    breakStartIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["max"](breakStartIndex, startIndex);
                    breakEndIndex = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](breakEndIndex, endIndex);
                    var breakSize = axisBreak.breakSize;
                    difference -= (breakEndIndex - breakStartIndex) * (1 - breakSize);
                    // position to the right of break end
                    if (position > breakEndPosition) {
                        startIndex += (breakEndIndex - breakStartIndex) * (1 - breakSize);
                    }
                    // position to the left of break start
                    else if (position < breakStartPosition) {
                    }
                    // value within break
                    else {
                        var breakPosition = (position - breakStartPosition) / (breakEndPosition - breakStartPosition);
                        index = breakStartIndex + Math.round(breakPosition * (breakEndIndex - breakStartIndex));
                        return false;
                    }
                    return true;
                });
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](index)) {
                    index = Math.floor(position * difference + startIndex);
                }
                if (index >= endIndex) {
                    index--;
                }
                return index;
            };
            /**
             * Returns category based on position.
             *
             * @param  {number}  position  Relative position on axis (0-1)
             * @return {string}            Position label
             */
            CategoryAxis.prototype.getPositionLabel = function (position) {
                var dataItem = this.dataItems.getIndex(this.positionToIndex(position));
                if (dataItem) { // @martynas todo: added this check, but this means that some aria label might not be received?
                    return dataItem.category;
                }
            };
            Object.defineProperty(CategoryAxis.prototype, "basePoint", {
                /**
                 * Coordinates of the actual axis start.
                 *
                 * @ignore Exclude from docs
                 * @return {IPoint} Base point
                 */
                get: function () {
                    // This makes base grid to be drawn at the end of the axis and adds extra
                    // grid which we need to nicely close the chart.
                    return this.renderer.positionToPoint(1);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Initializes Axis' renderer.
             *
             * @ignore Exclude from docs
             */
            CategoryAxis.prototype.initRenderer = function () {
                _super.prototype.initRenderer.call(this);
                var renderer = this.renderer;
                renderer.baseGrid.disabled = true;
            };
            return CategoryAxis;
        }(_Axis__WEBPACK_IMPORTED_MODULE_1__["Axis"]));
        /**
         * Register class, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["CategoryAxis"] = CategoryAxis;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["CategoryAxisDataItem"] = CategoryAxisDataItem;
        //# sourceMappingURL=CategoryAxis.js.map
        /***/ 
    }),
    /* 914 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisDataItem", function () { return AxisDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisItemLocation", function () { return AxisItemLocation; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Axis", function () { return Axis; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(765);
        /* harmony import */ var _core_DataItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(860);
        /* harmony import */ var _AxisBreak__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(915);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(845);
        /* harmony import */ var _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(882);
        /* harmony import */ var _core_utils_SortedList__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(771);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Number__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(772);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(755);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(757);
        /**
         * Base class for all Axis
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[Axis]].
         *
         * @see {@link DataItem}
         */
        var AxisDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisDataItem, _super);
            /**
             * Constructor
             */
            function AxisDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "AxisDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(AxisDataItem.prototype, "grid", {
                /**
                 * @return {Grid} Grid element
                 */
                get: function () {
                    if (!this._grid) {
                        var component_1 = this.component;
                        if (component_1) {
                            var grid_1 = component_1.renderer.grid.create();
                            this.grid = grid_1;
                            this._disposers.push(grid_1);
                            grid_1.axis = this.component;
                            this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                                component_1.renderer.grid.removeValue(grid_1);
                            }));
                        }
                    }
                    return this._grid;
                },
                /**
                 * A [[Grid]] element associated with this data item.
                 *
                 * If there is no grid element associated with data item, a new one is
                 * created and returned.
                 *
                 * @param {Grid}  grid  Grid element
                 */
                set: function (grid) {
                    if (this._grid && this._grid != grid) {
                        _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](this.sprites, this._grid);
                        this._grid.dataItem = undefined;
                    }
                    if (grid) {
                        if (grid.dataItem && grid.dataItem != this) {
                            _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](grid.dataItem.sprites, grid);
                            grid.dataItem.grid = undefined;
                        }
                        this.addSprite(grid);
                    }
                    this._grid = grid;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "tick", {
                /**
                 * @return {AxisTick} Tick element
                 */
                get: function () {
                    if (!this._tick) {
                        var component_2 = this.component;
                        if (component_2) {
                            var tick_1 = component_2.renderer.ticks.create();
                            this.tick = tick_1;
                            tick_1.axis = this.component;
                            this._disposers.push(tick_1);
                            this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                                component_2.renderer.ticks.removeValue(tick_1);
                            }));
                        }
                    }
                    return this._tick;
                },
                /**
                 * An [[AxisTick]] element associated with this data item.
                 *
                 * If there is no tick element associated with data item, a new one is
                 * created and returned.
                 *
                 * @param {AxisTick}  tick  Tick element
                 */
                set: function (tick) {
                    if (this._tick && this._tick != tick) {
                        _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](this.sprites, this._tick);
                        this._tick.dataItem = undefined;
                    }
                    if (tick) {
                        if (tick.dataItem && tick.dataItem != this) {
                            _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](tick.dataItem.sprites, tick);
                            tick.dataItem.tick = undefined;
                        }
                        this.addSprite(tick);
                    }
                    this._tick = tick;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "label", {
                /**
                 * @return {AxisLabel} Label element
                 */
                get: function () {
                    if (!this._label) {
                        var component_3 = this.component;
                        if (component_3) {
                            var label_1 = component_3.renderer.labels.create();
                            this._disposers.push(label_1);
                            this.label = label_1;
                            label_1.axis = this.component;
                            this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                                component_3.renderer.labels.removeValue(label_1);
                            }));
                        }
                    }
                    return this._label;
                },
                /**
                 * An [[AxisLabel]] element associated with this data item.
                 *
                 * If there is no label element associated with data item, a new one is
                 * created and returned.
                 *
                 * @param {AxisLabel} label Label element
                 */
                set: function (label) {
                    if (this._label && this._label != label) {
                        _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](this.sprites, this._label);
                        this._label.dataItem = undefined;
                    }
                    if (label) {
                        if (label.dataItem && label.dataItem != this) {
                            _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](label.dataItem.sprites, label);
                            label.dataItem.label = undefined;
                        }
                        this.addSprite(label);
                    }
                    this._label = label;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "axisFill", {
                /**
                 * @return {AxisFill} Label element
                 */
                get: function () {
                    if (!this._axisFill) {
                        var component_4 = this.component;
                        if (component_4) {
                            var axisFill_1 = component_4.renderer.axisFills.create();
                            this.axisFill = axisFill_1;
                            this._disposers.push(axisFill_1);
                            this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                                component_4.renderer.axisFills.removeValue(axisFill_1);
                            }));
                        }
                    }
                    return this._axisFill;
                },
                /**
                 * An [[AxisFill]] associated element with this data item.
                 *
                 * If there is no fill element associated with data item, a new one is
                 * created and returned.
                 *
                 * @param {AxisFill} label Label element
                 */
                set: function (axisFill) {
                    if (this._axisFill && this._axisFill != axisFill) {
                        _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](this.sprites, this._axisFill);
                        this._axisFill.dataItem = undefined;
                    }
                    if (axisFill) {
                        if (axisFill.dataItem && axisFill.dataItem != this) {
                            _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["remove"](axisFill.dataItem.sprites, axisFill);
                            axisFill.dataItem.axisFill = undefined;
                        }
                        axisFill.axis = this.component;
                        this.addSprite(axisFill);
                    }
                    this._axisFill = axisFill;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "text", {
                /**
                 * @return {string} Text label
                 */
                get: function () {
                    return this._text;
                },
                /**
                 * Text to be used as data item's label.
                 *
                 * @param {string} text Text label
                 */
                set: function (text) {
                    this._text = text;
                    if (this._label) { // do not use getter, it will create unwanted instances!
                        this._label.text = text;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "mask", {
                /**
                 * Data item's mask.
                 *
                 * @return {AxisFill} Mask
                 */
                get: function () {
                    return this._mask;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "contents", {
                /**
                 * Returns a [[Container]] to place all visual elements, related to data item
                 * in.
                 *
                 * If there is no Container, a new one is created.
                 *
                 * @return {Container} Contents container
                 */
                get: function () {
                    if (!this._contents) {
                        var contents = new _core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]();
                        this.addSprite(contents);
                        contents.isMeasured = false;
                        this._contents = contents;
                        var component = this.component;
                        if (component) {
                            var mask = component.renderer.axisFills.create();
                            mask.disabled = false;
                            mask.axis = component;
                            this.addSprite(mask);
                            this._mask = mask;
                            contents.mask = mask;
                        }
                    }
                    return this._contents;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisDataItem.prototype, "axisBreak", {
                /**
                 * @return {AxisBreak} Axis break
                 */
                get: function () {
                    return this._axisBreak;
                },
                /**
                 * An [[AxisBreak]] this data item falls within.
                 *
                 * @param {AxisBreak} axisBreak Axis break
                 */
                set: function (axisBreak) {
                    if (this._axisBreak) {
                        this._axisBreak.dataItems.removeValue(this);
                    }
                    if (axisBreak) {
                        axisBreak.dataItems.push(this);
                    }
                    this._axisBreak = axisBreak;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Re-draws the element.
             *
             * @ignore Exclude from docs
             */
            AxisDataItem.prototype.validate = function () {
                if (this.component) {
                    this.component.validateDataElement(this);
                }
            };
            /**
             * Appends data item's elements to the parent [[Container]].
             *
             * @ignore Exclude from docs
             */
            AxisDataItem.prototype.appendChildren = function () {
                if (this.component) {
                    this.component.appendDataItem(this);
                }
            };
            /**
             * Ordering function used in JSON setup.
             *
             * @param  {string}  a  Item A
             * @param  {string}  b  Item B
             * @return {Ordering}   Order
             */
            AxisDataItem.prototype.configOrder = function (a, b) {
                if (a == b) {
                    return 0;
                }
                else if (a == "language") {
                    return -1;
                }
                else if (b == "language") {
                    return 1;
                }
                else if (a == "component") {
                    return -1;
                }
                else if (b == "component") {
                    return 1;
                }
                else {
                    return 0;
                }
            };
            /**
             * Checks if data item has particular property set.
             *
             * @param  {string}   prop  Property name
             * @return {boolean}        Property set?
             */
            AxisDataItem.prototype.hasProperty = function (prop) {
                return prop == "component" ? true : _super.prototype.hasProperty.call(this, prop);
            };
            return AxisDataItem;
        }(_core_DataItem__WEBPACK_IMPORTED_MODULE_3__["DataItem"]));
        /**
         * ============================================================================
         * REQUISITES
         * ============================================================================
         * @hidden
         */
        /**
         * Defines named positions for data item's location within [[Axis]].
         */
        var AxisItemLocation;
        (function (AxisItemLocation) {
            AxisItemLocation[AxisItemLocation["Start"] = 0] = "Start";
            AxisItemLocation[AxisItemLocation["Middle"] = 0.5] = "Middle";
            AxisItemLocation[AxisItemLocation["End"] = 1] = "End";
        })(AxisItemLocation || (AxisItemLocation = {}));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for all Axis elements.
         *
         * @see {@link IAxisEvents} for a list of available Events
         * @see {@link IAxisAdapters} for a list of available Adapters
         */
        var Axis = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Axis, _super);
            /**
             * Constructor
             */
            function Axis() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Number of Grid elements on the axis.
                 *
                 * @type {number}
                 */
                _this._gridCount = 10;
                /**
                 * A list of [[XYSeries]] that are using this Axis.
                 *
                 * @type {List<XYSeries>}
                 */
                _this._series = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["List"]();
                /**
                 * Holds reference to a function that accepts a DataItem and its index as
                 * parameters.
                 *
                 * It can either return a fill opacity for a fill, or manipulate data item
                 * directly, to create various highlighting scenarios.
                 *
                 * For example, you can set it up to highlight only weekends on a
                 * [[DateAxis]].
                 *
                 * @type {function}
                 */
                _this.fillRule = function (dataItem, index) {
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](index)) {
                        index = dataItem.index;
                    }
                    if (index / 2 == Math.round(index / 2)) {
                        dataItem.axisFill.__disabled = true;
                        dataItem.axisFill.opacity = 0;
                    }
                    else {
                        dataItem.axisFill.opacity = 1;
                        dataItem.axisFill.__disabled = false;
                    }
                };
                /**
                 * Specifies if axis should be automatically disposed when removing from chart's axis list.
                 * @default true
                 */
                _this.autoDispose = true;
                _this.className = "Axis";
                _this.shouldClone = false;
                _this.cursorTooltipEnabled = true;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_11__["InterfaceColorSet"]();
                // Create title
                _this.title = new _core_elements_Label__WEBPACK_IMPORTED_MODULE_5__["Label"]();
                _this.title.shouldClone = false;
                _this._disposers.push(_this.title);
                _this.setPropertyValue("startLocation", 0);
                _this.setPropertyValue("endLocation", 1);
                // Data item iterator
                _this._dataItemsIterator = new _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["ListIterator"](_this.dataItems, function () { return _this.dataItems.create(); });
                _this._dataItemsIterator.createNewItems = true;
                // Create tooltip
                var tooltip = new _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_6__["Tooltip"]();
                _this._disposers.push(tooltip);
                tooltip.label.padding(5, 10, 5, 10);
                tooltip.background.pointerLength = 5;
                tooltip.fitPointerToBounds = true;
                tooltip.filters.clear();
                // Set virtual parentfor the tooltip so that it can properly inheirt
                // formatters from the axis.
                tooltip.virtualParent = _this;
                // Create background element for the tooltip
                var background = tooltip.background;
                background.cornerRadius = 0;
                background.fill = interfaceColors.getFor("alternativeBackground");
                background.stroke = background.fill;
                background.strokeWidth = 1;
                background.fillOpacity = 1;
                tooltip.label.fill = interfaceColors.getFor("alternativeText");
                _this.tooltip = tooltip;
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {AxisDataItem} Data Item
             */
            Axis.prototype.createDataItem = function () {
                return new AxisDataItem();
            };
            /**
             * Invalidates layout.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.invalidateLayout = function () {
                _super.prototype.invalidateLayout.call(this);
                // this puts series after axis in invalidation order also makes series update it's data items in case widht/height of a series is not 100%
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.series.iterator(), function (series) {
                    series.invalidateLayout();
                });
            };
            /**
             * Invalidates series of this axis.
             *
             */
            Axis.prototype.invalidateSeries = function () {
                // this puts series after axis in invalidation order also makes series update it's data items in case widht/height of a series is not 100%
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.series.iterator(), function (series) {
                    series.invalidateDataRange();
                });
            };
            /**
             * Override to cancel super call for data element validation.
             * @ignore
             */
            Axis.prototype.validateDataElements = function () {
                if (this.ghostLabel) {
                    this.renderer.updateLabelElement(this.ghostLabel, this.start, this.end);
                }
            };
            /**
             * Recalculates the number of grid items on the axis.
             */
            Axis.prototype.updateGridCount = function () {
                if (this.renderer) {
                    this._gridCount = this.axisLength / this.renderer.minGridDistance;
                }
            };
            /**
             * Redraws the element.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.validateLayout = function () {
                this.axisFullLength = this.axisLength / (this.end - this.start);
                _super.prototype.validateLayout.call(this);
                this.updateGridCount();
                this.renderer.updateAxisLine();
                this.renderer.updateTooltip();
                this.renderer.updateBaseGridElement();
                if (this._prevLength != this.axisLength) {
                    this.dispatchImmediately("lengthchanged");
                    this._prevLength = this.axisLength;
                }
            };
            /**
             * Initializes Axis' renderer.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.initRenderer = function () {
            };
            /**
             * Adds a data item to the Axis.
             *
             * @param {this["_dataItem"]} dataItem Data item
             */
            Axis.prototype.appendDataItem = function (dataItem) {
                var renderer = this.renderer;
                dataItem.tick.parent = renderer.gridContainer;
                dataItem.label.parent = renderer;
                dataItem.grid.parent = renderer.gridContainer;
                dataItem.axisFill.parent = renderer.gridContainer;
            };
            /**
             * Redraws Axis' related items.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.validate = function () {
                _super.prototype.validate.call(this);
                this.axisFullLength = this.axisLength / (this.end - this.start);
                this.validateAxisRanges();
                this.validateBreaks();
            };
            /**
             * Redars Axis ranges.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.validateAxisRanges = function () {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.axisRanges.iterator(), function (axisRange) {
                    _this.appendDataItem(axisRange);
                    _this.validateDataElement(axisRange);
                    axisRange.grid.validate();
                    axisRange.tick.validate();
                    axisRange.axisFill.validate();
                    axisRange.label.validate();
                });
            };
            /**
             * Invalidates all axis breaks, so they are redrawn.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.validateBreaks = function () {
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.axisBreaks.iterator(), function (axisBreak) {
                    axisBreak.invalidate();
                });
            };
            /**
             * Associates an Axis break with this Axis, after it is inserted into
             * `axisBreaks`.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<AxisBreak>["inserted"]} event Event
             */
            Axis.prototype.processBreak = function (event) {
                var axisBreak = event.newValue;
                axisBreak.parent = this.renderer.breakContainer;
                axisBreak.axis = this;
            };
            /**
             * Registers a [[XYSeries]] element with this Axis.
             *
             * Returns a [[Disposer]] for all events, added to Series for watching
             * changes in Axis, and vice versa.
             * @ignore
             * @param  {XYSeries}     series  Series
             * @return {IDisposer}          Event disposer
             */
            Axis.prototype.registerSeries = function (series) {
                var _this = this;
                this.series.moveValue(series);
                return new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["MultiDisposer"]([
                    new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_9__["Disposer"](function () {
                        _this.series.removeValue(series);
                    }),
                    this.events.on("lengthchanged", series.invalidate, series, false) //,
                    // TODO should these be disposed of ?
                    //series.events.on("datavalidated", this.processSeriesDataItems, this),
                    //series.events.on("visibilitychanged", this.processSeriesDataItems, this),
                    //series.events.on("hidden", this.processSeriesDataItems, this)
                ]);
            };
            Object.defineProperty(Axis.prototype, "renderer", {
                /**
                 * @return {T} Renderer
                 */
                get: function () {
                    return this._renderer;
                },
                /**
                 * An [[AxisRenderer]] to be used to render this Axis.
                 *
                 * Please note that most of the settings, related to Axis' appearance are set
                 * via its renderer. Not directly on the Axis.
                 *
                 * E.g.:
                 *
                 * ```TypeScript
                 * axis.renderer.inside = true;
                 * axis.renderer.minLabelPosition = 0.1;
                 * axis.renderer.maxLabelPosition = 0.9;
                 * ```
                 * ```JavaScript
                 * axis.renderer.inside = true;
                 * axis.renderer.minLabelPosition = 0.1;
                 * axis.renderer.maxLabelPosition = 0.9;
                 * ```
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/} for more info
                 * @param {T}  renderer  Renderer
                 */
                set: function (renderer) {
                    if (renderer != this._renderer) {
                        this._renderer = renderer;
                        renderer.chart = this.chart;
                        renderer.axis = this;
                        renderer.parent = this;
                        this.title.parent = this; // we add title to axis and set layout in renderer to avoid one extra container, as otherwise axis container would be used for holding renderer only
                        this.initRenderer();
                        var ghostLabel = this.renderer.labels.create();
                        this._disposers.push(ghostLabel);
                        ghostLabel.dataItem = this.dataItems.template.clone(); // just for the adapters not to fail
                        ghostLabel.text = "L";
                        ghostLabel.parent = this.renderer;
                        ghostLabel.fillOpacity = 0;
                        ghostLabel.opacity = 0;
                        ghostLabel.strokeOpacity = 0;
                        ghostLabel.validate();
                        this.ghostLabel = ghostLabel;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts a relative position to angle. (for circular axes)
             *
             * @param  {number} position Position (0-1)
             * @return {number}          Angle
             */
            Axis.prototype.positionToAngle = function (position) {
                return this.renderer.positionToAngle(position);
            };
            /**
             * Converts pixel coordinates to a relative position. (0-1)
             *
             * @param {IPoint}   point  Coorinates (px)
             * @return {number}         Position (0-1)
             */
            Axis.prototype.pointToPosition = function (point) {
                return this.renderer.pointToPosition(point);
            };
            /**
             * [getAnyRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {any}     start  [description]
             * @param  {any}     end    [description]
             * @return {string}         [description]
             */
            Axis.prototype.getAnyRangePath = function (start, end) {
                return this.renderer.getPositionRangePath(start, end);
            };
            /**
             * Converts any positional parameter to a relative position on axis.
             *
             * @todo Description (review)
             * @param  {any}     value  Pisition
             * @return {number}         Position (0-1)
             */
            Axis.prototype.anyToPosition = function (value) {
                return 0;
            };
            /**
             * Converts any positional parameter to a relative position on axis.
             *
             * @todo Description (review)
             * @param  {any}     value  Pisition
             * @return {IOrientationPoint}  Orientation point
             */
            Axis.prototype.anyToPoint = function (value) {
                return { x: 0, y: 0, angle: 0 };
            };
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number} startPosition [description]
             * @param  {number} endPosition   [description]
             * @return {string}               [description]
             */
            Axis.prototype.getPositionRangePath = function (startPosition, endPosition) {
                return this.renderer.getPositionRangePath(startPosition, endPosition);
            };
            Object.defineProperty(Axis.prototype, "axisLength", {
                /**
                 * Actual axis length in pixels.
                 *
                 * @return {number} Axis length (px)
                 */
                get: function () {
                    return this.renderer.axisLength;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Axis.prototype, "cursorTooltipEnabled", {
                /**
                 * @return {boolean} Display tooltip?
                 */
                get: function () {
                    return this._cursorTooltipEnabled;
                },
                /**
                 * Indicates if axis should display a tooltip for chart's cursor.
                 *
                 * @param {boolean} value Display tooltip?
                 */
                set: function (value) {
                    this._cursorTooltipEnabled = value;
                    if (value && this.renderer) {
                        this.renderer.updateTooltip();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Shows Axis tooltip at specific relative position within Axis. (0-1)
             *
             * @param {number} position Position (0-1)
             */
            Axis.prototype.showTooltipAtPosition = function (position) {
                var tooltip = this._tooltip;
                position = this.toAxisPosition(position);
                var renderer = this.renderer;
                if (tooltip && this.dataItems.length > 0) {
                    //@todo: think of how to solve this better
                    if (tooltip && !tooltip.parent) {
                        tooltip.parent = this.tooltipContainer;
                    }
                    var tooltipLocation = renderer.tooltipLocation;
                    var startPosition = this.getCellStartPosition(position);
                    var endPosition = this.getCellEndPosition(position);
                    if (this.tooltipPosition == "fixed") {
                        position = startPosition + (endPosition - startPosition) * tooltipLocation;
                    }
                    position = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["fitToRange"](position, this.start, this.end);
                    var startPoint = renderer.positionToPoint(startPosition);
                    var endPoint = renderer.positionToPoint(endPosition);
                    // save values so cursor could use them
                    this.currentItemStartPoint = startPoint;
                    this.currentItemEndPoint = endPoint;
                    if (renderer.fullWidthTooltip) {
                        tooltip.width = endPoint.x - startPoint.x;
                        tooltip.height = endPoint.y - startPoint.y;
                    }
                    var point = renderer.positionToPoint(position);
                    var globalPoint = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_14__["spritePointToSvg"](point, this.renderer.line);
                    tooltip.text = this.getTooltipText(position);
                    if (tooltip.text) {
                        tooltip.pointTo(globalPoint);
                        tooltip.show();
                    }
                    if (!this.cursorTooltipEnabled) {
                        tooltip.hide(0);
                    }
                }
            };
            /**
             * Converts relative position (0-1) to Axis position with zoom level and
             * inversed taken into account.
             *
             * @param  {number} position Global position (0-1)
             * @return {number}          Position within Axis (0-1)
             */
            Axis.prototype.toAxisPosition = function (position) {
                position = position * (this.end - this.start);
                if (this.renderer.inversed) {
                    position = this.end - position;
                }
                else {
                    position = this.start + position;
                }
                return position;
            };
            /**
             * Returns text to be used for cursor's Axis tooltip.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position coordinate (px)
             * @return {string}            Label text
             */
            Axis.prototype.getTooltipText = function (position) {
                return;
            };
            /**
             * Updates Axis' tooltip's position and possibly size, and pointer (stem)
             * place.
             *
             * @ignore Exclude from docs
             * @param {PointerOrientation}  pointerOrientation  Pointer (stem) orientation
             * @param {IRectangle}          boundingRectangle   A rectangle for tooltip to fit within
             */
            Axis.prototype.updateTooltip = function (pointerOrientation, boundingRectangle) {
                var tooltip = this._tooltip;
                if (tooltip) {
                    tooltip.pointerOrientation = pointerOrientation;
                    tooltip.setBounds(_core_utils_Utils__WEBPACK_IMPORTED_MODULE_14__["spriteRectToSvg"](boundingRectangle, this.renderer.line));
                }
            };
            /**
             * [roundPosition description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}            position  Relative position
             * @param  {AxisItemLocation}  location  Location on axis
             * @return {number}                      Rounded position
             */
            Axis.prototype.roundPosition = function (position, location) {
                return position;
            };
            /**
             * [getCellStartPosition description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number} position [description]
             * @return {number}          [description]
             */
            Axis.prototype.getCellStartPosition = function (position) {
                return position;
            };
            /**
             * [getCellEndPosition description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number} position [description]
             * @return {number}          [description]
             */
            Axis.prototype.getCellEndPosition = function (position) {
                return position;
            };
            Object.defineProperty(Axis.prototype, "axisRanges", {
                /**
                 * A list of axis ranges for this Axis.
                 *
                 * @return {ListTemplate} Axis ranges
                 */
                get: function () {
                    if (!this._axisRanges) {
                        var dataItem = this.createDataItem();
                        this._axisRanges = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListTemplate"](dataItem);
                        this._axisRanges.events.on("inserted", this.processAxisRange, this, false);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._axisRanges));
                        this._disposers.push(this._axisRanges.template);
                    }
                    return this._axisRanges;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates an axis range after it has been added to the axis range list.
             *
             * @param {IListEvents<AxisDataItem>["inserted"]} event Event
             */
            Axis.prototype.processAxisRange = function (event) {
                var axisRange = event.newValue;
                axisRange.component = this;
                axisRange.isRange = true;
            };
            Object.defineProperty(Axis.prototype, "axisBreaks", {
                /**
                 * A list of axis breaks on this Axis.
                 *
                 * @return {SortedListTemplate} Axis breaks.
                 */
                get: function () {
                    if (!this._axisBreaks) {
                        this._axisBreaks = new _core_utils_SortedList__WEBPACK_IMPORTED_MODULE_7__["SortedListTemplate"](this.createAxisBreak(), function (a, b) {
                            return _core_utils_Number__WEBPACK_IMPORTED_MODULE_15__["order"](a.adjustedStartValue, b.adjustedStartValue);
                        });
                        this._axisBreaks.events.on("inserted", this.processBreak, this, false);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["ListDisposer"](this._axisBreaks));
                        this._disposers.push(this._axisBreaks.template);
                    }
                    return this._axisBreaks;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates a new axis break.
             *
             * @return {this["_axisBreak"]} Axis break
             */
            Axis.prototype.createAxisBreak = function () {
                return new _AxisBreak__WEBPACK_IMPORTED_MODULE_4__["AxisBreak"]();
            };
            Object.defineProperty(Axis.prototype, "series", {
                /**
                 * A list of Series currently associated with this Axis.
                 *
                 * @return {List<XYSeries>} Series
                 */
                get: function () {
                    if (!this._series) {
                        this._series = new _core_utils_List__WEBPACK_IMPORTED_MODULE_8__["List"]();
                    }
                    return this._series;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes Series' data items.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.processSeriesDataItems = function () {
            };
            /**
             * Processes Series' single data item.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @param {XYSeriesDataItem} dataItem Data item
             */
            Axis.prototype.processSeriesDataItem = function (dataItem, axisLetter) {
            };
            /**
             * Post-processes Serie's data items.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.postProcessSeriesDataItems = function () {
            };
            /**
             * Post-processes Serie's single data item.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @param {XYSeriesDataItem} dataItem Data item
             */
            Axis.prototype.postProcessSeriesDataItem = function (dataItem) {
            };
            //
            /**
             * Updates Axis based on all Series that might influence it.
             *
             * Called by Series after Series data is validated.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.updateAxisBySeries = function () {
            };
            /**
             * Hides unused data items.
             *
             * @ignore Exclude from docs
             */
            Axis.prototype.hideUnusedDataItems = function () {
                var _this = this;
                // hide all unused
                var dataItemsIterator = this._dataItemsIterator;
                dataItemsIterator.createNewItems = false;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](dataItemsIterator.iterator(), function (dataItem) {
                    _this.validateDataElement(dataItem); // solves shrinking
                    dataItem.__disabled = true;
                });
                dataItemsIterator.clear();
                dataItemsIterator.createNewItems = true;
            };
            /**
             * Returns a Series' data item that corresponds to specific position on Axis.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @param  {Series}          series    Series
             * @param  {number}          position  Position (0-1)
             * @return {XYSeriesDataItem}            Data item
             */
            Axis.prototype.getSeriesDataItem = function (series, position) {
                return;
            };
            /**
             * Returns an angle that corresponds to specific position on axis.
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}          key       ???
             * @param  {number}          location  Location
             * @param  {string}          stackKey  ???
             * @return {number}                    Angle
             */
            Axis.prototype.getAngle = function (dataItem, key, location, stackKey) {
                return;
            };
            /**
             * [getX description]
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem} dataItem [description]
             * @param  {string}         key      [description]
             * @param  {number}         location [description]
             * @param  {string}         stackKey [description]
             * @return {number}                  [description]
             */
            Axis.prototype.getX = function (dataItem, key, location, stackKey) {
                return;
            };
            /**
             * [getY description]
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem} dataItem [description]
             * @param  {string}         key      [description]
             * @param  {number}         location [description]
             * @param  {string}         stackKey [description]
             * @return {number}                  [description]
             */
            Axis.prototype.getY = function (dataItem, key, location, stackKey) {
                return;
            };
            Object.defineProperty(Axis.prototype, "basePoint", {
                /**
                 * Coordinates of the actual axis start.
                 *
                 * @ignore Exclude from docs
                 * @return {IPoint} Base point coordinates
                 */
                get: function () {
                    return { x: 0, y: 0 };
                },
                enumerable: true,
                configurable: true
            });
            /**
             * [dataChangeUpdate description]
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Axis.prototype.dataChangeUpdate = function () {
            };
            /**
             * Removes axis breaks that fall between `min` and `max` (???)
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {number}  min  Start value
             * @param  {number}  max  End value
             * @return {number}       Spread o
             */
            Axis.prototype.adjustDifference = function (min, max) {
                var difference = max - min;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](difference)) {
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["eachContinue"](this.axisBreaks.iterator(), function (axisBreak) {
                        var startValue = axisBreak.adjustedStartValue;
                        var endValue = axisBreak.adjustedEndValue;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](startValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](endValue)) {
                            // breaks are sorted, we don't need go further anymore
                            if (startValue > max) {
                                return false;
                            }
                            if (endValue >= min) {
                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](startValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isNumber"](endValue)) {
                                    var breakSize = axisBreak.breakSize;
                                    var intersection = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["intersection"]({ start: startValue, end: endValue }, { start: min, end: max });
                                    if (intersection) {
                                        difference -= (intersection.end - intersection.start) * (1 - breakSize);
                                    }
                                }
                            }
                            return true;
                        }
                    });
                    return difference;
                }
            };
            /**
             * Checks if specific value falls within a break.
             *
             * Returns [[AxisBreak]] the value falls into.
             *
             * @param  {number}     value  Value to check
             * @return {AxisBreak}         Axis break
             */
            Axis.prototype.isInBreak = function (value) {
                return _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["find"](this.axisBreaks.iterator(), function (axisBreak) {
                    return value >= axisBreak.adjustedStartValue &&
                        value <= axisBreak.adjustedEndValue;
                });
            };
            /**
             * [fixAxisBreaks description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            Axis.prototype.fixAxisBreaks = function () {
                var _this = this;
                var axisBreaks = this.axisBreaks;
                if (axisBreaks.length > 0) {
                    // first make sure that startValue is <= end value
                    // This needs to make a copy of axisBreaks because it mutates the list while traversing
                    // TODO very inefficient
                    _core_utils_Array__WEBPACK_IMPORTED_MODULE_16__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["toArray"](axisBreaks.iterator()), function (axisBreak) {
                        var startValue = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["min"](axisBreak.startValue, axisBreak.endValue);
                        var endValue = _core_utils_Math__WEBPACK_IMPORTED_MODULE_13__["max"](axisBreak.startValue, axisBreak.endValue);
                        axisBreak.adjustedStartValue = startValue;
                        axisBreak.adjustedEndValue = endValue;
                        _this.axisBreaks.update(axisBreak);
                    });
                    var firstAxisBreak = axisBreaks.first;
                    var previousEndValue_1 = Math.min(firstAxisBreak.startValue, firstAxisBreak.endValue);
                    // process breaks
                    // TODO does this need to call axisBreaks.update ?
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.axisBreaks.iterator(), function (axisBreak) {
                        var startValue = axisBreak.adjustedStartValue;
                        var endValue = axisBreak.adjustedEndValue;
                        // breaks can't overlap
                        // if break starts before previous break ends
                        if (startValue < previousEndValue_1) {
                            startValue = previousEndValue_1;
                            if (endValue < previousEndValue_1) {
                                endValue = previousEndValue_1;
                            }
                        }
                        axisBreak.adjustedStartValue = startValue;
                        axisBreak.adjustedEndValue = endValue;
                    });
                }
            };
            Object.defineProperty(Axis.prototype, "startIndex", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} [description]
                 */
                get: function () {
                    return 0;
                },
                /**
                 * We need start/end indexes of axes to be 0 - `dataItems.length`.
                 *
                 * Yes, also for category axis, this helps to avoid jumping of categories
                 * while scrolling and does not do a lot of extra work as we use
                 * protected `_startIndex` and `_endIndex` when working with items.
                 *
                 * @hidden
                 */
                /**
                 * [startIndex description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Axis.prototype, "endIndex", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} [description]
                 */
                get: function () {
                    return this.dataItems.length;
                },
                /**
                 * [endIndex description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a formatted label based on position.
             *
             * Individual axis types should override this method to generate a label
             * that is relevant to axis type.
             *
             * @param  {number}  position  Relative position on axis (0-1)
             * @return {string}            Position label
             */
            Axis.prototype.getPositionLabel = function (position) {
                return Math.round(position * 100) + "%x";
            };
            Object.defineProperty(Axis.prototype, "chart", {
                /**
                 * @return {Chart} Chart
                 */
                get: function () {
                    return this._chart;
                },
                /**
                 * A Chart this Axis belongs to.
                 *
                 * @param {Chart}  value  Chart
                 */
                set: function (value) {
                    this._chart = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates a data item for a Series range.
             *
             * @param  {XYSeries}  series  Target Series
             * @return {this}            Range data item
             */
            Axis.prototype.createSeriesRange = function (series) {
                var range = this.createDataItem();
                range.component = this;
                range.axisFill.disabled = false;
                series.axisRanges.push(range);
                return range;
            };
            /**
             * Copies all properties and related data from a different instance of Axis.
             *
             * @param {this} source Source Axis
             */
            Axis.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.renderer) {
                    this.renderer.copyFrom(source.renderer);
                }
                if (source.title) {
                    this.title = source.title.clone();
                }
            };
            /**
             * Resets internal iterator.
             */
            Axis.prototype.resetIterators = function () {
                this._dataItemsIterator.reset();
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            Axis.prototype.processConfig = function (config) {
                if (config) {
                    // Set up axis ranges
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](config.axisRanges) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isArray"](config.axisRanges)) {
                        for (var i = 0, len = config.axisRanges.length; i < len; i++) {
                            var range = config.axisRanges[i];
                            // If `series` is set, we know it's a series range
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["hasValue"](range["series"])) {
                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_17__["isString"](range["series"])) {
                                    if (this.map.hasKey(range["series"])) {
                                        //range["series"] = this.map.getKey(range["series"]);
                                        config.axisRanges[i] = this.createSeriesRange(this.map.getKey(range["series"]));
                                        delete (range["series"]);
                                        config.axisRanges[i].config = range;
                                    }
                                }
                            }
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            Object.defineProperty(Axis.prototype, "startLocation", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("startLocation");
                },
                /**
                 * Axis start location. Works on Date/Category axis, doesn't work on Value axis.
                 *
                 * * 0 - Full first cell is shown.
                 * * 0.5 - Half of first cell is shown.
                 * * 1 - None of the first cell is visible. (you probably don't want that)
                 *
                 * @param {number} value Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("startLocation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(Axis.prototype, "endLocation", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("endLocation");
                },
                /**
                 * Axis end location. Works on Date/Category axis, doesn't work on Value axis.
                 *
                 * * 0 - None of the last cell is shown. (don't do that)
                 * * 0.5 - Half of the last cell is shown.
                 * * 1 - Full last cell is shown.
                 *
                 * @param {number} value Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("endLocation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return Axis;
        }(_core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].registeredClasses["Axis"] = Axis;
        _core_Registry__WEBPACK_IMPORTED_MODULE_10__["registry"].registeredClasses["AxisDataItem"] = AxisDataItem;
        //# sourceMappingURL=Axis.js.map
        /***/ 
    }),
    /* 915 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisBreak", function () { return AxisBreak; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(849);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(800);
        /**
         * Axis break module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base class to define "breaks" on axes.
         *
         * @see {@link IAxisBreakEvents} for a list of available events
         * @see {@link IAxisBreakAdapters} for a list of available Adapters
         * @important
         */
        var AxisBreak = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisBreak, _super);
            /**
             * Constructor
             */
            function AxisBreak() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Reference to parent Axis.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._axis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                /**
                 * A list of axis data items which fall within this break.
                 *
                 * @type {List<AxisDataItem>}
                 */
                _this.dataItems = new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["List"]();
                _this.className = "AxisBreak";
                // Set defaults
                _this.breakSize = 0.01;
                _this.marginLeft = -5;
                _this.marginRight = -5;
                _this.marginTop = -5;
                _this.marginBottom = -5;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__["InterfaceColorSet"]();
                // Create elements
                // (these won't be used actually, just for setting properties)
                var fillShape = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_3__["WavedLine"]();
                fillShape.fill = interfaceColors.getFor("background");
                fillShape.stroke = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["color"])();
                fillShape.fillOpacity = 0.9;
                fillShape.zIndex = 0;
                _this._fillShape = fillShape;
                var startLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_3__["WavedLine"]();
                startLine.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["color"])();
                startLine.stroke = interfaceColors.getFor("grid");
                startLine.strokeOpacity = 0.3;
                startLine.zIndex = 1;
                _this._startLine = startLine;
                var endLine = new _core_elements_WavedLine__WEBPACK_IMPORTED_MODULE_3__["WavedLine"]();
                endLine.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["color"])();
                endLine.stroke = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["color"])("#000000"); // interfaceColors.getFor("grid");
                endLine.strokeOpacity = 0.3;
                endLine.zIndex = 2;
                _this._endLine = endLine;
                _this._disposers.push(_this._axis);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            AxisBreak.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                if (this._fillShape) {
                    this._fillShape.dispose();
                }
                if (this._startLine) {
                    this._startLine.dispose();
                }
                if (this._endLine) {
                    this._endLine.dispose();
                }
            };
            Object.defineProperty(AxisBreak.prototype, "startLine", {
                /**
                 * @return {IWavedShape} Element
                 */
                get: function () {
                    return this._startLine;
                },
                /**
                 * An element used for the starting line of the break.
                 *
                 * @param {IWavedShape}  sprite  Element
                 */
                set: function (sprite) {
                    if (this._startLine) {
                        this._startLine.dispose();
                    }
                    this._startLine = sprite;
                    this.addBreakSprite(sprite);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "endLine", {
                /**
                 * @return {IWavedShape} Element
                 */
                get: function () {
                    return this._endLine;
                },
                /**
                 * An element used for the end line of the break.
                 *
                 * @param {IWavedShape} sprite Element
                 */
                set: function (sprite) {
                    if (this._endLine) {
                        this._endLine.dispose();
                    }
                    this._endLine = sprite;
                    this.addBreakSprite(sprite);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "fillShape", {
                /**
                 * @return {IWavedShape} Element
                 */
                get: function () {
                    return this._fillShape;
                },
                /**
                 * An element used for fill of the break.
                 *
                 * @param {IWavedShape} sprite Element
                 */
                set: function (sprite) {
                    if (this._fillShape) {
                        this._fillShape.dispose();
                    }
                    this._fillShape = sprite;
                    this.addBreakSprite(sprite);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Adds a break element (e.g. lines, fill) to the break, which is
             * [[Container]].
             *
             * @ignore Exclude from docs
             * @param {IWavedShape} sprite Element to add
             */
            AxisBreak.prototype.addBreakSprite = function (sprite) {
                sprite.parent = this;
                sprite.isMeasured = false;
                this._disposers.push(sprite);
            };
            Object.defineProperty(AxisBreak.prototype, "axis", {
                /**
                 * @return {Axis} Axis
                 */
                get: function () {
                    return this._axis.get();
                },
                /**
                 * An Axis this Break is associated with.
                 *
                 * @param {Axis}  axis  Axis
                 */
                set: function (axis) {
                    if (this._axis.get() !== axis) {
                        this._axis.set(axis, axis.renderer.gridContainer.events.on("transformed", this.invalidate, this, false));
                        axis.renderer.createBreakSprites(this);
                        // this can't go to copyFrom, as axis is set later
                        var breakTemplate = axis.axisBreaks.template;
                        this.startLine.copyFrom(breakTemplate.startLine);
                        this.endLine.copyFrom(breakTemplate.endLine);
                        this.fillShape.copyFrom(breakTemplate.fillShape);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "breakSize", {
                /**
                 * @return {number} Relative axis break
                 */
                get: function () {
                    return this.getPropertyValue("breakSize");
                },
                /**
                 * A size of the break relative to the actual size of the scope break spans.
                 *
                 * For example, if `breakSize = 0.1` and unbroken scope of balues it spans
                 * would be 100 pixels, the break would be 10 pixels wide.
                 *
                 * 0 means the break will completely collapse and hide the values.
                 * 1 means break would be not collapse at all, which would make it
                 * effectively useless.
                 *
                 * @default 0.01
                 * @param {number}  value  Relative axis break
                 */
                set: function (value) {
                    if (this.setPropertyValue("breakSize", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "startPoint", {
                /**
                 * Returns pixel coordinates of axis break's start.
                 *
                 * @return {IPoint} Start point
                 */
                get: function () {
                    var renderer = this.axis.renderer;
                    if (renderer) {
                        return renderer.positionToPoint(this.startPosition);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "endPoint", {
                /**
                 * Returns pixel coordinates of axis break's end.
                 *
                 * @return {IPoint} End point
                 */
                get: function () {
                    var renderer = this.axis.renderer;
                    if (renderer) {
                        return renderer.positionToPoint(this.endPosition);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "startPosition", {
                /**
                 * Returns a relative position at which axis break starts.
                 *
                 * This is a calculated position, meaning it shows relative position of the
                 * break after break is applied.
                 *
                 * @return {number} Start position
                 */
                get: function () {
                    return;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "endPosition", {
                /**
                 * Returns a relative position at which axis break ends.
                 *
                 * This is a calculated position, meaning it shows relative position of the
                 * break after break is applied.
                 *
                 * @return {number} End position
                 */
                get: function () {
                    return;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Draws the axis break.
             *
             * @ignore Exclude from docs
             */
            AxisBreak.prototype.draw = function () {
                _super.prototype.draw.call(this);
                if (this.axis) {
                    var renderer = this.axis.renderer;
                    renderer.updateBreakElement(this);
                }
            };
            Object.defineProperty(AxisBreak.prototype, "startValue", {
                /**
                 * @return {number} Starting value
                 */
                get: function () {
                    return this.getPropertyValue("startValue");
                },
                /**
                 * A starting value for the break.
                 *
                 * @param {number}  value  Starting value
                 */
                set: function (value) {
                    if (this.setPropertyValue("startValue", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisBreak.prototype, "endValue", {
                /**
                 * @return {number} End value
                 */
                get: function () {
                    return this.getPropertyValue("endValue");
                },
                /**
                 * An end value for the break.
                 *
                 * @param {number}  value  End value
                 */
                set: function (value) {
                    if (this.setPropertyValue("endValue", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            return AxisBreak;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["AxisBreak"] = AxisBreak;
        //# sourceMappingURL=AxisBreak.js.map
        /***/ 
    }),
    /* 916 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CategoryAxisBreak", function () { return CategoryAxisBreak; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisBreak__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(915);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * A module which defines functionality related to Category Axis Break.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base class to define "breaks" in axes
         * @see {@link ICategoryAxisBreakEvents} for a list of available events
         * @see {@link ICategoryAxisBreakAdapters} for a list of available Adapters
         */
        var CategoryAxisBreak = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CategoryAxisBreak, _super);
            /**
             * Constructor
             */
            function CategoryAxisBreak() {
                var _this = _super.call(this) || this;
                _this.className = "CategoryAxisBreak";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(CategoryAxisBreak.prototype, "startPosition", {
                /**
                 * Pixel position of the break's start.
                 *
                 * @return {number} Position (px)
                 * @readonly
                 */
                get: function () {
                    if (this.axis) {
                        return this.axis.indexToPosition(this.adjustedStartValue);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisBreak.prototype, "endPosition", {
                /**
                 * Pixel position of the break's end.
                 *
                 * @return {number} Position (px)
                 * @readonly
                 */
                get: function () {
                    if (this.axis) {
                        return this.axis.indexToPosition(this.adjustedEndValue);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisBreak.prototype, "startCategory", {
                /**
                 * @return {string} Start category
                 */
                get: function () {
                    return this.getPropertyValue("startCategory");
                },
                /**
                 * A category break starts on.
                 *
                 * @param {string}  value Start category
                 */
                set: function (value) {
                    if (this.setPropertyValue("startCategory", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisBreak.prototype, "endCategory", {
                /**
                 * @return {string} End category
                 */
                get: function () {
                    return this.getPropertyValue("endCategory");
                },
                /**
                 * A category break ends on.
                 *
                 * @param {string}  value  End category
                 */
                set: function (value) {
                    if (this.setPropertyValue("endCategory", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisBreak.prototype, "startValue", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    var category = this.getPropertyValue("startCategory");
                    if (category) {
                        return this.axis.categoryToIndex(category);
                    }
                    else {
                        return this.getPropertyValue("startValue");
                    }
                },
                /**
                 * An index of start category.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    if (this.setPropertyValue("startValue", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CategoryAxisBreak.prototype, "endValue", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    var category = this.getPropertyValue("endCategory");
                    if (category) {
                        return this.axis.categoryToIndex(category);
                    }
                    else {
                        return this.getPropertyValue("endValue");
                    }
                },
                /**
                 * An index of end category or a end value.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    if (this.setPropertyValue("endValue", value)) {
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            return CategoryAxisBreak;
        }(_AxisBreak__WEBPACK_IMPORTED_MODULE_1__["AxisBreak"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["CategoryAxisBreak"] = CategoryAxisBreak;
        //# sourceMappingURL=CategoryAxisBreak.js.map
        /***/ 
    }),
    /* 917 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYSeriesDataItem", function () { return XYSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYSeries", function () { return XYSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Series__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(911);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(918);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(760);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(754);
        /* harmony import */ var _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(913);
        /* harmony import */ var _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(920);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(755);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(761);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(852);
        /**
         * XY series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[XYSeries]].
         *
         * @see {@link DataItem}
         */
        var XYSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYSeriesDataItem, _super);
            /**
             * Constructor
             */
            function XYSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "XYSeriesDataItem";
                _this.values.valueX = { stack: 0 };
                _this.values.valueY = { stack: 0 };
                _this.values.openValueX = {};
                _this.values.openValueY = {};
                _this.values.dateX = {};
                _this.values.dateY = {};
                _this.values.openDateX = {};
                _this.values.openDateY = {};
                _this.setLocation("dateX", 0.5, 0);
                _this.setLocation("dateY", 0.5, 0);
                _this.setLocation("categoryX", 0.5, 0);
                _this.setLocation("categoryY", 0.5, 0);
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(XYSeriesDataItem.prototype, "valueX", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.valueX.value;
                },
                /**
                 * Item's numeric value on X value axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("valueX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "valueY", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.valueY.value;
                },
                /**
                 * Item's numeric value on Y value axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("valueY", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "dateX", {
                /**
                 * @return {Date} Date
                 */
                get: function () {
                    return this.getDate("dateX");
                },
                /**
                 * Item's date value on X date-based axis.
                 *
                 * @param {Date}  date  Date
                 */
                set: function (date) {
                    this.setDate("dateX", date);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "dateY", {
                /**
                 * @return {Date} Date
                 */
                get: function () {
                    return this.getDate("dateY");
                },
                /**
                 * Item's date value on Y date-based axis.
                 *
                 * @param {Date}  date  Date
                 */
                set: function (date) {
                    this.setDate("dateY", date);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "categoryX", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.categories.categoryX;
                },
                /**
                 * Item's category on X category axis.
                 *
                 * @param {string}  category  Category
                 */
                set: function (category) {
                    this.setCategory("categoryX", category);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "categoryY", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.categories.categoryY;
                },
                /**
                 * Item's category on Y category axis.
                 *
                 * @param {string}  category  Category
                 */
                set: function (category) {
                    this.setCategory("categoryY", category);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openValueX", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.openValueX.value;
                },
                /**
                 * Item's open numeric value on X value axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("openValueX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openValueY", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.openValueY.value;
                },
                /**
                 * Item's open numeric value on Y value axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("openValueY", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openDateX", {
                /**
                 * @return {Date} Date
                 */
                get: function () {
                    return this.getDate("openDateX");
                },
                /**
                 * Item's open date value on X date-based axis.
                 *
                 * @param {Date}  date  Date
                 */
                set: function (date) {
                    this.setDate("openDateX", date);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openDateY", {
                /**
                 * @return {Date} Date
                 */
                get: function () {
                    return this.getDate("openDateY");
                },
                /**
                 * Item's open date value on Y date-based axis.
                 *
                 * @param {Date}  date  Date
                 */
                set: function (date) {
                    this.setDate("openDateY", date);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openCategoryX", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.categories.openCategoryX;
                },
                /**
                 * Item's open category on X category axis.
                 *
                 * @param {string}  category  Category
                 */
                set: function (category) {
                    this.setProperty("openCategoryX", category);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeriesDataItem.prototype, "openCategoryY", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.categories.openCategoryY;
                },
                /**
                 * Item's open category on Y category axis.
                 *
                 * @param {string}  category  Category
                 */
                set: function (category) {
                    this.setProperty("openCategoryY", category);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Return smallest value out of all item's value fields.
             *
             * @ignore Exclude from docs
             * @param  {string[]}  fields      Fields to check in
             * @param  {boolean}   working     Include working (temporary) values
             * @param  {number}    stackValue  If item is in a stack, the value item starts as
             * @return {number}                Value
             */
            XYSeriesDataItem.prototype.getMin = function (fields, working, stackValue) {
                var _this = this;
                //if (this.visible) {  // dumped because of non smooth zooming
                var min;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](stackValue)) {
                    stackValue = 0;
                }
                _core_utils_Array__WEBPACK_IMPORTED_MODULE_13__["each"](fields, function (field) {
                    var value;
                    if (working) {
                        value = _this.getWorkingValue(field);
                    }
                    else {
                        value = _this.getValue(field);
                    }
                    value += stackValue;
                    if (value < min || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](min)) {
                        min = value;
                    }
                });
                return min;
                //}
            };
            /**
             * Return biggest value out of all item's value fields.
             *
             * @ignore Exclude from docs
             * @param  {string[]}  fields      Fields to check in
             * @param  {boolean}   working     Include working (temporary) values
             * @param  {number}    stackValue  If item is in a stack, the value item starts as
             * @return {number}                Value
             */
            XYSeriesDataItem.prototype.getMax = function (fields, working, stackValue) {
                var _this = this;
                //if (this.visible) { // dumped because of non smooth zooming
                var max;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](stackValue)) {
                    stackValue = 0;
                }
                _core_utils_Array__WEBPACK_IMPORTED_MODULE_13__["each"](fields, function (field) {
                    var value;
                    if (working) {
                        value = _this.getWorkingValue(field);
                    }
                    else {
                        value = _this.getValue(field);
                    }
                    value += stackValue;
                    if (value > max || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](max)) {
                        max = value;
                    }
                });
                return max;
                //}
            };
            return XYSeriesDataItem;
        }(_Series__WEBPACK_IMPORTED_MODULE_1__["SeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines Series for [[XYChart]].
         *
         * @see {@link IXYSeriesEvents} for a list of available Events
         * @see {@link IXYSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var XYSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYSeries, _super);
            /**
             * Constructor
             */
            function XYSeries() {
                var _this = _super.call(this) || this;
                /**
                 * X axis the series is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._xAxis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_5__["MutableValueDisposer"]();
                /**
                 * Y axis the series is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._yAxis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_5__["MutableValueDisposer"]();
                _this.className = "XYSeries";
                _this.isMeasured = false;
                _this.mainContainer.mask = new _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]();
                _this.mainContainer.mask.setElement(_this.paper.add("path"));
                _this.stacked = false;
                _this.tooltip.pointerOrientation = "horizontal";
                _this.tooltip.events.on("hidden", function () {
                    _this.returnBulletDefaultState();
                }, undefined, false);
                _this._disposers.push(_this._xAxis);
                _this._disposers.push(_this._yAxis);
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            XYSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("X/Y Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {XYSeriesDataItem} Data Item
             */
            XYSeries.prototype.createDataItem = function () {
                return new XYSeriesDataItem();
            };
            /**
             * @ignore
             */
            XYSeries.prototype.dataChangeUpdate = function () {
                this._tmin.clear();
                this._tmax.clear();
                this._smin.clear();
                this._smax.clear();
                if (this.xAxis) {
                    this.xAxis.dataChangeUpdate();
                }
                if (this.yAxis) {
                    this.yAxis.dataChangeUpdate();
                }
            };
            /**
             * (Re)validates the series' data.
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.validateData = function () {
                this.defineFields();
                if (this.data.length > 0) {
                    this.dataChangeUpdate();
                }
                _super.prototype.validateData.call(this);
                this.updateItemReaderText();
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.dataFields[this._xField]) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.dataFields[this._yField])) {
                    throw Error("Data fields for series \"" + (this.name ? this.name : this.uid) + "\" are not properly defined.");
                }
            };
            /**
             * Processes data item.
             *
             * @param {XYSeriesDataItem}  dataItem     Data item
             * @param {Object}            dataContext  Raw data
             * @param {number}            index        Index of the data item
             */
            XYSeries.prototype.processDataItem = function (dataItem, dataContext) {
                try {
                    _super.prototype.processDataItem.call(this, dataItem, dataContext);
                    dataItem.events.disable();
                    this.xAxis.processSeriesDataItem(dataItem, "X");
                    this.yAxis.processSeriesDataItem(dataItem, "Y");
                    dataItem.events.enable();
                    this.setInitialWorkingValues(dataItem);
                }
                catch (e) {
                    this._chart.raiseCriticalError(e);
                }
            };
            /**
             * Inits data item's working values.
             *
             * @param {this["_dataItem"]}  dataItem  Data item
             * @param {number}             index     Data item's index
             */
            XYSeries.prototype.setInitialWorkingValues = function (dataItem) {
            };
            /**
             * @ignore
             */
            XYSeries.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                if (this.xAxis) {
                    var dataItemsX = this.dataItemsByAxis.getKey(this.xAxis.uid);
                    if (dataItemsX) {
                        dataItemsX.clear();
                    }
                }
                if (this.yAxis) {
                    var dataItemsY = this.dataItemsByAxis.getKey(this.yAxis.uid);
                    if (dataItemsY) {
                        dataItemsY.clear();
                    }
                }
            };
            /**
             * Sets up which data fields to use for data access.
             */
            XYSeries.prototype.defineFields = function () {
                var xAxis = this.xAxis;
                var yAxis = this.yAxis;
                var xAxisFieldName = xAxis.axisFieldName;
                var xField = (xAxisFieldName + "X");
                var xOpenField = ("open" + _core_utils_Utils__WEBPACK_IMPORTED_MODULE_11__["capitalize"](xAxisFieldName) + "X");
                var yAxisFieldName = yAxis.axisFieldName;
                var yField = (yAxisFieldName + "Y");
                var yOpenField = ("open" + _core_utils_Utils__WEBPACK_IMPORTED_MODULE_11__["capitalize"](yAxisFieldName) + "Y");
                this._xField = xField;
                this._yField = yField;
                if (this.dataFields[xOpenField]) {
                    this._xOpenField = xOpenField;
                }
                if (this.dataFields[yOpenField]) {
                    this._yOpenField = yOpenField;
                }
                if (!this.dataFields[yOpenField] && this.baseAxis == this.yAxis) {
                    this._yOpenField = yField;
                }
                if (!this.dataFields[xOpenField] && this.baseAxis == this.xAxis) {
                    this._xOpenField = xField;
                }
                if (this.stacked && this.baseAxis == this.xAxis) {
                    this._xOpenField = xField;
                }
                if (this.stacked && this.baseAxis == this.yAxis) {
                    this._yOpenField = yField;
                }
                if ((this.xAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__["CategoryAxis"]) && (this.yAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__["CategoryAxis"])) {
                    if (!this._yOpenField) {
                        this._yOpenField = yField;
                    }
                }
                this._xValueFields = [];
                this._yValueFields = [];
                this.addValueField(this.xAxis, this._xValueFields, this._xField);
                this.addValueField(this.xAxis, this._xValueFields, this._xOpenField);
                this.addValueField(this.yAxis, this._yValueFields, this._yField);
                this.addValueField(this.yAxis, this._yValueFields, this._yOpenField);
            };
            /**
             * [axis description]
             *
             * @todo Description
             * @param {Axis}        axis    Axis
             * @param {Array<Key>}  fields  Fields (?)
             * @param {Key}         field   Field
             */
            XYSeries.prototype.addValueField = function (axis, fields, field) {
                if (axis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"]) {
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.dataFields[field]) && fields.indexOf(field) == -1) {
                        fields.push(field);
                    }
                }
            };
            /**
             * Sets category field from the category axis.
             *
             * User might set field for category axis only, but not for series. In such
             * case, we take field value from axis and set it for series.
             *
             * @param {Key}           field  Field
             * @param {CategoryAxis}  axis   Axis
             */
            XYSeries.prototype.setCategoryAxisField = function (field, axis) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.dataFields[field])) {
                    this.dataFields[field] = axis.dataFields.category;
                }
            };
            /**
             * Sets date field from the date axis.
             *
             * User might set field for category axis only, but not for series. In such
             * case, we take field value from axis and set it for series.
             *
             * @param {Key}       field  Field
             * @param {DateAxis}  axis   Axis
             */
            XYSeries.prototype.setDateAxisField = function (field, axis) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.dataFields[field])) {
                    this.dataFields[field] = axis.dataFields.date;
                }
            };
            /**
             * Performs after-draw tasks, e.g. creates masks.
             */
            XYSeries.prototype.afterDraw = function () {
                _super.prototype.afterDraw.call(this);
                this.createMask();
            };
            /**
             * Create a mask for the series.
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.createMask = function () {
                // this mask from which we cut out ranges. does not work well if ranges overlap.
                if (this.mainContainer.mask) {
                    var path_1 = this.getMaskPath();
                    // @todo: this approach won't work well on circluar or other non x/y axes
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](this.axisRanges.iterator(), function (range) {
                        if (range.axisFill.fillPath) {
                            range.axisFill.validate();
                            path_1 += range.axisFill.fillPath;
                        }
                    });
                    this.mainContainer.mask.path = path_1;
                }
            };
            /**
             * Returns an SVG path to use as series mask.
             *
             * @return {string} SVG path
             */
            XYSeries.prototype.getMaskPath = function () {
                return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_15__["rectToPath"]({
                    x: 0,
                    y: 0,
                    width: this.xAxis.axisLength,
                    height: this.yAxis.axisLength
                });
            };
            /**
             * Returns axis data field to use.
             *
             * @param  {Axis}    axis  Axis
             * @return {string}        Field name
             */
            XYSeries.prototype.getAxisField = function (axis) {
                if (axis == this.xAxis) {
                    return this.xField;
                }
                if (axis == this.yAxis) {
                    return this.yField;
                }
            };
            /**
             * Validates data items.
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.validateDataItems = function () {
                // this helps date axis to check which baseInterval we should use
                this.xAxis.updateAxisBySeries();
                this.yAxis.updateAxisBySeries();
                _super.prototype.validateDataItems.call(this);
                this.xAxis.postProcessSeriesDataItems();
                this.yAxis.postProcessSeriesDataItems();
            };
            /**
             * Validates data range.
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.validateDataRange = function () {
                if (this.xAxis.dataRangeInvalid) {
                    this.xAxis.validateDataRange();
                }
                if (this.yAxis.dataRangeInvalid) {
                    this.yAxis.validateDataRange();
                }
                _super.prototype.validateDataRange.call(this);
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.validate = function () {
                if (this.xAxis.invalid) {
                    this.xAxis.validate();
                }
                if (this.yAxis.invalid) {
                    this.yAxis.validate();
                }
                this._showBullets = true;
                var minBulletDistance = this.minBulletDistance;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](minBulletDistance)) {
                    if (this.baseAxis.axisLength / (this.endIndex - this.startIndex) < minBulletDistance) {
                        this._showBullets = false;
                    }
                }
                _super.prototype.validate.call(this);
            };
            Object.defineProperty(XYSeries.prototype, "xAxis", {
                /**
                 * @return {Axis} Axis
                 */
                get: function () {
                    if (this.chart) {
                        if (!this._xAxis.get()) {
                            var axis = this.chart.xAxes.getIndex(0);
                            if (!axis) {
                                throw Error("There are no X axes on chart.");
                            }
                            this.xAxis = axis;
                        }
                        return this._xAxis.get();
                    }
                },
                /**
                 * X axis the series is attached to.
                 *
                 * @param {Axis}  axis  Axis
                 */
                set: function (axis) {
                    var oldAxis = this._xAxis.get();
                    if (oldAxis != axis) {
                        if (oldAxis) {
                            this.dataItemsByAxis.removeKey(oldAxis.uid);
                            // TODO why is this here ?
                            this._xAxis.dispose();
                            // temp @todo: why it is not disposed?
                            oldAxis.series.removeValue(this);
                        }
                        this._xAxis.set(axis, axis.registerSeries(this));
                        this.dataItemsByAxis.setKey(axis.uid, new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]());
                        this.invalidateData();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "yAxis", {
                /**
                 * @return {Axis} Axis
                 */
                get: function () {
                    if (this.chart) {
                        if (!this._yAxis.get()) {
                            var axis = this.chart.yAxes.getIndex(0);
                            if (!axis) {
                                throw Error("There are no Y axes on chart.");
                            }
                            this.yAxis = axis;
                        }
                        return this._yAxis.get();
                    }
                },
                /**
                 * Y axis the series is attached to.
                 *
                 * @param {Axis}  axis  Axis
                 */
                set: function (axis) {
                    var oldAxis = this._yAxis.get();
                    if (oldAxis != axis) {
                        if (oldAxis) {
                            this.dataItemsByAxis.removeKey(oldAxis.uid);
                            // TODO why is this here ?
                            this._yAxis.dispose();
                            // temp @todo: why it is not disposed?
                            oldAxis.series.removeValue(this);
                        }
                        this._yAxis.set(axis, axis.registerSeries(this));
                        this.dataItemsByAxis.setKey(axis.uid, new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_4__["Dictionary"]());
                        this.invalidateData();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "baseAxis", {
                /**
                 * @return {Axis} Axis
                 */
                get: function () {
                    if (!this._baseAxis) {
                        if (this.yAxis instanceof _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__["DateAxis"]) {
                            this._baseAxis = this.yAxis;
                        }
                        if (this.xAxis instanceof _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__["DateAxis"]) {
                            this._baseAxis = this.xAxis;
                        }
                        if (this.yAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__["CategoryAxis"]) {
                            this._baseAxis = this.yAxis;
                        }
                        if (this.xAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_6__["CategoryAxis"]) {
                            this._baseAxis = this.xAxis;
                        }
                        if (!this._baseAxis) {
                            this._baseAxis = this.xAxis;
                        }
                    }
                    return this._baseAxis;
                },
                /**
                 * The main (base) axis.
                 *
                 * This is the axis that series fills will go to, or grow animations will
                 * happen from.
                 *
                 * @param {Axis}  value  Axis
                 */
                set: function (value) {
                    this._baseAxis = value;
                    this.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes values after data items' were added.
             *
             * @ignore Exclude from docs
             * @param {OrderedListTemplate<this["_dataItem"]>}  dataItems  Data items
             */
            XYSeries.prototype.processValues = function (working) {
                // todo: if this is stacked, ensure that series to which this one can be stacked are processed before.
                _super.prototype.processValues.call(this, working);
                var dataItems = this.dataItems;
                var minX = Infinity;
                var maxX = -Infinity;
                var minY = Infinity;
                var maxY = -Infinity;
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                for (var i = startIndex; i < endIndex; i++) {
                    var dataItem = dataItems.getIndex(i);
                    this.getStackValue(dataItem, working);
                    var stackX = dataItem.getValue("valueX", "stack");
                    var stackY = dataItem.getValue("valueY", "stack");
                    minX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["min"](dataItem.getMin(this._xValueFields, working, stackX), minX);
                    minY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["min"](dataItem.getMin(this._yValueFields, working, stackY), minY);
                    maxX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["max"](dataItem.getMax(this._xValueFields, working, stackX), maxX);
                    maxY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["max"](dataItem.getMax(this._yValueFields, working, stackY), maxY);
                    // if it's stacked, pay attention to stack value
                    if (this.stacked) {
                        if (this.baseAxis == this.xAxis) {
                            minY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["min"](minY, stackY);
                        }
                        if (this.baseAxis == this.yAxis) {
                            minX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["min"](minX, stackX);
                        }
                    }
                }
                // this is mainly for value axis to calculate total and perecent.total of each series category
                this.xAxis.processSeriesDataItems();
                this.yAxis.processSeriesDataItems();
                var xAxisId = this.xAxis.uid;
                var yAxisId = this.yAxis.uid;
                if (!working) {
                    if (this._tmin.getKey(xAxisId) != minX || this._tmax.getKey(xAxisId) != maxX || this._tmin.getKey(yAxisId) != minY || this._tmax.getKey(yAxisId) != maxY) {
                        this._tmin.setKey(xAxisId, minX);
                        this._tmax.setKey(xAxisId, maxX);
                        this._tmin.setKey(yAxisId, minY);
                        this._tmax.setKey(yAxisId, maxY);
                        this.dispatchImmediately("extremeschanged");
                    }
                }
                if (this._smin.getKey(xAxisId) != minX || this._smax.getKey(xAxisId) != maxX || this._smin.getKey(yAxisId) != minY || this._smax.getKey(yAxisId) != maxY) {
                    this._smin.setKey(xAxisId, minX);
                    this._smax.setKey(xAxisId, maxX);
                    this._smin.setKey(yAxisId, minY);
                    this._smax.setKey(yAxisId, maxY);
                    if (this.appeared) {
                        this.dispatchImmediately("selectionextremeschanged");
                    }
                }
            };
            /**
             * Hides element's [[Tooltip]].
             *
             * @see {@link Tooltip}
             */
            XYSeries.prototype.hideTooltip = function () {
                _super.prototype.hideTooltip.call(this);
                this.returnBulletDefaultState();
                this._prevTooltipDataItem = undefined;
            };
            /**
             * Shows series tooltip at specific position.
             *
             * @ignore Exclude from docs
             * @param {number}  xPosition  X
             * @param {number}  yPosition  Y
             */
            XYSeries.prototype.showTooltipAtPosition = function (xPosition, yPosition) {
                var dataItem;
                if (this.visible && !this.isHiding) {
                    var xAxis = this._xAxis.get();
                    var yAxis = this._yAxis.get();
                    if (xAxis == this.baseAxis) {
                        dataItem = xAxis.getSeriesDataItem(this, xAxis.toAxisPosition(xPosition));
                    }
                    if (yAxis == this.baseAxis) {
                        dataItem = yAxis.getSeriesDataItem(this, yAxis.toAxisPosition(yPosition));
                    }
                    this.returnBulletDefaultState(dataItem);
                    if (dataItem && dataItem.visible) {
                        this.updateLegendValue(dataItem);
                        this.tooltipDataItem = dataItem;
                        // todo: add tooltipXField and tooltipYField.
                        var tooltipXField = this.tooltipXField;
                        var tooltipYField = this.tooltipYField;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](dataItem[tooltipXField]) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](dataItem[tooltipYField])) {
                            var tooltipPoint = this.getPoint(dataItem, tooltipXField, tooltipYField, dataItem.locations[tooltipXField], dataItem.locations[tooltipYField]);
                            if (tooltipPoint) {
                                this.tooltipX = tooltipPoint.x;
                                this.tooltipY = tooltipPoint.y;
                                if (this._prevTooltipDataItem != dataItem) {
                                    this.dispatchImmediately("tooltipshownat", {
                                        type: "tooltipshownat",
                                        target: this,
                                        dataItem: dataItem
                                    });
                                    try {
                                        for (var _a = tslib__WEBPACK_IMPORTED_MODULE_0__["__values"](dataItem.bullets), _b = _a.next(); !_b.done; _b = _a.next()) {
                                            var a = _b.value;
                                            var bullet = a[1];
                                            bullet.isHover = true;
                                        }
                                    }
                                    catch (e_1_1) {
                                        e_1 = { error: e_1_1 };
                                    }
                                    finally {
                                        try {
                                            if (_b && !_b.done && (_c = _a.return))
                                                _c.call(_a);
                                        }
                                        finally {
                                            if (e_1)
                                                throw e_1.error;
                                        }
                                    }
                                    this._prevTooltipDataItem = dataItem;
                                }
                                if (this.showTooltip()) {
                                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_11__["spritePointToSvg"]({ x: tooltipPoint.x, y: tooltipPoint.y }, this);
                                }
                                return;
                            }
                        }
                    }
                    // so that if tooltip is shown on columns or bullets for it not to be hidden
                    if (!this.tooltipText) {
                        return;
                    }
                }
                this.hideTooltip();
                var e_1, _c;
            };
            /**
             * returns default state to bullets when tooltip is shown at some other data item or hidden
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.returnBulletDefaultState = function (dataItem) {
                if (this._prevTooltipDataItem && this._prevTooltipDataItem != dataItem) {
                    try {
                        for (var _a = tslib__WEBPACK_IMPORTED_MODULE_0__["__values"](this._prevTooltipDataItem.bullets), _b = _a.next(); !_b.done; _b = _a.next()) {
                            var a = _b.value;
                            var bullet = a[1];
                            if (!bullet.isDisposed()) {
                                bullet.isHover = false;
                            }
                            else {
                                this._prevTooltipDataItem = undefined;
                            }
                        }
                    }
                    catch (e_2_1) {
                        e_2 = { error: e_2_1 };
                    }
                    finally {
                        try {
                            if (_b && !_b.done && (_c = _a.return))
                                _c.call(_a);
                        }
                        finally {
                            if (e_2)
                                throw e_2.error;
                        }
                    }
                }
                var e_2, _c;
            };
            /**
             * Positions series bullet.
             *
             * @ignore Exclude from docs
             * @param {Bullet}  bullet  Bullet
             */
            XYSeries.prototype.positionBullet = function (bullet) {
                _super.prototype.positionBullet.call(this, bullet);
                var dataItem = bullet.dataItem;
                // use series xField/yField if bullet doesn't have fields set
                var xField = bullet.xField;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](xField)) {
                    xField = this.xField;
                }
                var yField = bullet.yField;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](yField)) {
                    yField = this.yField;
                }
                if ((this.xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && !dataItem.hasValue([xField])) || (this.yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && !dataItem.hasValue([yField]))) {
                    bullet.visible = false;
                }
                else {
                    var bulletLocationX = this.getBulletLocationX(bullet, xField);
                    var bulletLocationY = this.getBulletLocationY(bullet, yField);
                    var point = this.getPoint(dataItem, xField, yField, bulletLocationX, bulletLocationY);
                    if (point) {
                        var x = point.x;
                        var y = point.y;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](bullet.locationX) && this.xOpenField != this.xField) {
                            var openX = this.xAxis.getX(dataItem, this.xOpenField);
                            x = x - (x - openX) * bullet.locationX;
                        }
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](bullet.locationY) && this.yOpenField != this.yField) {
                            var openY = this.yAxis.getY(dataItem, this.yOpenField);
                            y = y - (y - openY) * bullet.locationY;
                        }
                        bullet.moveTo({ x: x, y: y });
                    }
                    else {
                        bullet.visible = false;
                    }
                }
            };
            /**
            * returns bullet x location
            * @ignore
            */
            XYSeries.prototype.getBulletLocationX = function (bullet, field) {
                var bulletLocation = bullet.locationX;
                var dataItem = bullet.dataItem;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](bulletLocation)) {
                    bulletLocation = dataItem.workingLocations[field];
                }
                return bulletLocation;
            };
            /**
            * returns bullet x location
            * @ignore
            */
            XYSeries.prototype.getBulletLocationY = function (bullet, field) {
                var bulletLocation = bullet.locationY;
                var dataItem = bullet.dataItem;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](bulletLocation)) {
                    bulletLocation = dataItem.workingLocations[field];
                }
                return bulletLocation;
            };
            Object.defineProperty(XYSeries.prototype, "stacked", {
                /**
                 * @return {boolean} Can be stacked?
                 */
                get: function () {
                    return this.getPropertyValue("stacked");
                },
                /**
                 * Can items from this series be included into stacks?
                 *
                 * @default false
                 * @param {boolean}  stacked  Can be stacked?
                 */
                set: function (stacked) {
                    this.setPropertyValue("stacked", stacked, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Shows hidden series.
             *
             * @param  {number}     duration  Duration of reveal animation (ms)
             * @return {Animation}            Animation
             */
            XYSeries.prototype.show = function (duration) {
                var _this = this;
                var fields;
                if (this.xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && this.xAxis != this.baseAxis) {
                    fields = this._xValueFields;
                }
                if (this.yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && this.yAxis != this.baseAxis) {
                    fields = this._yValueFields;
                }
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var delay = 0;
                var interpolationDuration = this.defaultState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                var anim;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["indexed"](this.dataItems.iterator()), function (a) {
                    var i = a[0];
                    var dataItem = a[1];
                    if (_this.sequencedInterpolation && interpolationDuration > 0) {
                        delay = _this.sequencedInterpolationDelay * i + interpolationDuration * (i - startIndex) / (endIndex - startIndex);
                    }
                    anim = dataItem.show(interpolationDuration, delay, fields);
                });
                var animation = _super.prototype.show.call(this, duration);
                if (anim && !anim.isFinished()) {
                    animation = anim;
                }
                return animation;
            };
            /**
             * Hides series.
             *
             * @param  {number}     duration  Duration of hiding animation (ms)
             * @return {Animation}            Animation
             */
            XYSeries.prototype.hide = function (duration) {
                var _this = this;
                var fields;
                var value;
                var xAxis = this.xAxis;
                if (xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && xAxis != this.baseAxis) {
                    fields = this._xValueFields;
                    // animate to zero if 0 is within zoomMin/zoomMax
                    if (this.stacked || (xAxis.minZoomed < 0 && xAxis.maxZoomed > 0) || this.stackedSeries) {
                        value = 0;
                    }
                    else {
                        value = xAxis.min;
                    }
                }
                var yAxis = this.yAxis;
                if (yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"] && yAxis != this.baseAxis) {
                    fields = this._yValueFields;
                    // animate to zero if 0 is within zoomMin/zoomMax
                    if (this.stacked || (yAxis.minZoomed < 0 && yAxis.maxZoomed > 0) || this.stackedSeries) {
                        value = 0;
                    }
                    else {
                        value = yAxis.min;
                    }
                }
                //if ($type.hasValue(fields)) {
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var interpolationDuration = this.hiddenState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                var delay = 0;
                var anim;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["indexed"](this.dataItems.iterator()), function (a) {
                    var i = a[0];
                    var dataItem = a[1];
                    if (interpolationDuration == 0) {
                        dataItem.hide(0, 0, value, fields);
                    }
                    else {
                        if (_this.sequencedInterpolation && interpolationDuration > 0) {
                            delay = _this.sequencedInterpolationDelay * i + interpolationDuration * (i - startIndex) / (endIndex - startIndex);
                        }
                        anim = dataItem.hide(interpolationDuration, delay, value, fields);
                    }
                });
                var animation = _super.prototype.hide.call(this, interpolationDuration);
                if (animation && !animation.isFinished()) {
                    animation.delay(delay);
                }
                if (anim && !anim.isFinished()) {
                    animation = anim;
                }
                // helps to avoid flicker. otherwise columns will show up at full size and only on next frame will animate from 0
                this.validateDataElements();
                //}
                return animation;
            };
            /**
             * [handleDataItemWorkingValueChange description]
             *
             * @ignore Exclude from docs
             */
            XYSeries.prototype.handleDataItemWorkingValueChange = function (dataItem) {
                _super.prototype.handleDataItemWorkingValueChange.call(this, dataItem);
                // to calculate stack values
                var axisSeries = this.baseAxis.series;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](axisSeries.iterator(), function (series) {
                    if (series.stacked) {
                        series.invalidateProcessedData();
                    }
                });
            };
            /**
             * [getStackValue description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            XYSeries.prototype.getStackValue = function (dataItem, working) {
                // todo: here wer stack x and y values only. question is - what should we do with other values, like openX, openY?
                // if this series is not stacked or new stack begins, return.
                var _this = this;
                if (!this.stacked) {
                    return;
                }
                else {
                    // it might seem that it's better to go through base axis series, but we do not maintain the same order as in chart.series there.
                    var chart = this.chart;
                    var index = chart.series.indexOf(this);
                    var field_1;
                    if (this.xAxis != this.baseAxis && this.xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"]) {
                        field_1 = this.xField;
                    }
                    if (this.yAxis != this.baseAxis && this.yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_3__["ValueAxis"]) {
                        field_1 = this.yField;
                    }
                    //this is good for removing series, otherwise stack values will remain the same and chart won't pay atention when adding/removing series
                    dataItem.setCalculatedValue(field_1, 0, "stack");
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["eachContinue"](chart.series.range(0, index).backwards().iterator(), function (prevSeries) {
                        // stacking is only possible if both axes are the same
                        if (prevSeries.xAxis == _this.xAxis && prevSeries.yAxis == _this.yAxis) {
                            // saving value
                            prevSeries.stackedSeries = _this;
                            var prevDataItem = prevSeries.dataItems.getIndex(dataItem.index); // indexes should match
                            if (prevDataItem.hasValue(_this._xValueFields) && prevDataItem.hasValue(_this._yValueFields)) {
                                var value = dataItem.getValue(field_1);
                                var prevValue = void 0;
                                if (working) {
                                    prevValue = prevDataItem.getWorkingValue(field_1) + prevDataItem.getValue(field_1, "stack");
                                }
                                else {
                                    prevValue = prevDataItem.getValue(field_1) + prevDataItem.getValue(field_1, "stack");
                                }
                                if ((value >= 0 && prevValue >= 0) || (value < 0 && prevValue < 0)) {
                                    //dataItem.events.disable();
                                    dataItem.setCalculatedValue(field_1, prevValue, "stack");
                                    //dataItem.events.enable();
                                    return false;
                                }
                            }
                            else if (!prevSeries.stacked) {
                                return false;
                            }
                        }
                        return true;
                    });
                }
            };
            Object.defineProperty(XYSeries.prototype, "xField", {
                /**
                 * [xField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    return this._xField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "yField", {
                /**
                 * [yField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    return this._yField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "xOpenField", {
                /**
                 * [xOpenField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    return this._xOpenField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "yOpenField", {
                /**
                 * [yOpenField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    return this._yOpenField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "tooltipXField", {
                /**
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    if (this._tooltipXField) {
                        return this._tooltipXField;
                    }
                    return this._xField;
                },
                /**
                 * [tooltipXField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @param {string} value [description]
                 */
                set: function (value) {
                    this._tooltipXField = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYSeries.prototype, "tooltipYField", {
                /**
                 * @ignore Exclude from docs
                 * @todo Description
                 * @return {string} [description]
                 */
                get: function () {
                    if (this._tooltipYField) {
                        return this._tooltipYField;
                    }
                    return this._yField;
                },
                /**
                 * [tooltipYField description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @param {string} value [description]
                 */
                set: function (value) {
                    this._tooltipYField = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns lowest value in the series for the specific axis.
             *
             * @ignore Exclude from docs
             * @param  {ValueAxis}  axis  Axis
             * @return {number}           value
             */
            XYSeries.prototype.min = function (axis) {
                return this._tmin.getKey(axis.uid);
            };
            /**
             * Returns highest value in the series for the specific axis.
             *
             * @ignore Exclude from docs
             * @param  {ValueAxis}  axis  Axis
             * @return {number}           value
             */
            XYSeries.prototype.max = function (axis) {
                return this._tmax.getKey(axis.uid);
            };
            /**
             * Returns lowest value in the series for the specific axis within current
             * selection.
             *
             * @ignore Exclude from docs
             * @param  {ValueAxis}  axis  Axis
             * @return {number}           value
             */
            XYSeries.prototype.selectionMin = function (axis) {
                var value = this._smin.getKey(axis.uid);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](value)) {
                    value = this.min(axis);
                }
                return value;
            };
            /**
             * Returns highest value in the series for the specific axis within current
             * selection.
             *
             * @ignore Exclude from docs
             * @param  {ValueAxis}  axis  Axis
             * @return {number}           value
             */
            XYSeries.prototype.selectionMax = function (axis) {
                var value = this._smax.getKey(axis.uid);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](value)) {
                    value = this.max(axis);
                }
                return value;
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            XYSeries.prototype.processConfig = function (config) {
                if (config) {
                    // Set up axes
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.xAxis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isString"](config.xAxis) && this.map.hasKey(config.xAxis)) {
                        config.xAxis = this.map.getKey(config.xAxis);
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.yAxis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isString"](config.yAxis) && this.map.hasKey(config.yAxis)) {
                        config.yAxis = this.map.getKey(config.yAxis);
                    }
                    // Set up axis ranges
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.axisRanges) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isArray"](config.axisRanges)) {
                        for (var i = 0, len = config.axisRanges.length; i < len; i++) {
                            var range = config.axisRanges[i];
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](range.type)) {
                                range.type = "AxisDataItem";
                            }
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](range.axis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isString"](range.axis) && this.map.hasKey(range.axis)) {
                                range.component = this.map.getKey(range.axis);
                            }
                            else if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](range.component) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isString"](range.component) && this.map.hasKey(range.component)) {
                                range.component = this.map.getKey(range.component);
                            }
                        }
                    }
                    // Parse date fields based on the series fields
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](config.dataFields) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isObject"](config.dataFields)) {
                        throw Error("`dataFields` is not set for series [" + this.name + "]");
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * [getPoint description]
             *
             * @todo Description
             * @param {XYSeriesDataItem}  dataItem   [description]
             * @param {string}          xKey       [description]
             * @param {string}          yKey       [description]
             * @param {number}          locationX  [description]
             * @param {number}          locationY  [description]
             * @param {string}          stackKeyX  [description]
             * @param {string}          stackKeyY  [description]
             */
            XYSeries.prototype.getPoint = function (dataItem, xKey, yKey, locationX, locationY, stackKeyX, stackKeyY) {
                var x = this.xAxis.getX(dataItem, xKey, locationX);
                var y = this.yAxis.getY(dataItem, yKey, locationY);
                x = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["fitToRange"](x, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                y = _core_utils_Math__WEBPACK_IMPORTED_MODULE_10__["fitToRange"](y, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                return { x: x, y: y };
            };
            /**
             * Updates item reader text based on the type and set up of axis.
             */
            XYSeries.prototype.updateItemReaderText = function () {
                var text = "";
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_14__["each"](this.dataFields, function (key, val) {
                    text += "{" + key + "} ";
                });
                this.itemReaderText = text;
            };
            return XYSeries;
        }(_Series__WEBPACK_IMPORTED_MODULE_1__["Series"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["XYSeries"] = XYSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["XYSeriesDataItem"] = XYSeriesDataItem;
        //# sourceMappingURL=XYSeries.js.map
        /***/ 
    }),
    /* 918 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueAxisDataItem", function () { return ValueAxisDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueAxis", function () { return ValueAxis; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Axis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(914);
        /* harmony import */ var _AxisRendererY__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(854);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _ValueAxisBreak__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(919);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(795);
        /**
         * Value Axis module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[ValueAxis]].
         *
         * @see {@link DataItem}
         */
        var ValueAxisDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ValueAxisDataItem, _super);
            /**
             * Constructor
             */
            function ValueAxisDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ValueAxisDataItem";
                _this.values.value = {};
                _this.values.endValue = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ValueAxisDataItem.prototype, "value", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values["value"].value;
                },
                /**
                 * A data point's numeric value.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("value", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxisDataItem.prototype, "endValue", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values["endValue"].value;
                },
                /**
                 * Data point's numeric end value.
                 *
                 * @param {number}  value  End value
                 */
                set: function (value) {
                    this.setValue("endValue", value);
                },
                enumerable: true,
                configurable: true
            });
            return ValueAxisDataItem;
        }(_Axis__WEBPACK_IMPORTED_MODULE_1__["AxisDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to create a value axis for the chart.
         *
         * ```TypeScript
         * // Create the axis
         * let valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
         *
         * // Set settings
         * valueAxis.title.text = "Monthly Sales";
         * ```
         * ```JavaScript
         * // Create the axis
         * var valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
         *
         * // Set settings
         * valueAxis.title.text = "Monthly Sales";
         * ```
         * ```JSON
         * "yAxes": [{
         *   "type": "ValueAxis",
         *   "title": {
         *     "text": "Monthly Sales"
         *   }
         * }]
         * ```
         *
         * @see {@link IValueAxisEvents} for a list of available Events
         * @see {@link IValueAxisAdapters} for a list of available Adapters
         * @important
         */
        var ValueAxis = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ValueAxis, _super);
            /**
             * Constructor
             */
            function ValueAxis() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * [_stepDecimalPlaces description]
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._stepDecimalPlaces = 0;
                /**
                 * Base value for the axis.
                 *
                 * @type {number}
                 */
                _this._baseValue = 0;
                /**
                 * Adjusted start in case we have breaks.
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._adjustedStart = 0;
                /**
                 * Adjusted end in case we have breaks.
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._adjustedEnd = 1;
                /**
                 * @todo Description
                 */
                _this._valueToPosition = {};
                /**
                 * @todo Description
                 */
                _this._positionToValue = {};
                _this._extremesChanged = false;
                /**
                 * Holds reference to a function that accepts a DataItem as parameter.
                 *
                 * It can either return a fill opacity for a fill, or manipulate data item
                 * directly, to create various highlighting scenarios.
                 *
                 * @type {function}
                 */
                _this.fillRule = function (dataItem) {
                    var value = dataItem.value;
                    var axis = dataItem.component;
                    if (!dataItem.axisFill.disabled) {
                        // rounding in left to solve floating point number
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](value / axis.step / 2, 5) == Math.round(value / axis.step / 2)) {
                            dataItem.axisFill.__disabled = true;
                        }
                        else {
                            dataItem.axisFill.__disabled = false;
                        }
                    }
                };
                /**
                 * As calculating totals is expensive operation and not often needed, we
                 * don't do it by default.
                 *
                 * In case you use `totalPercent` or `total` in your charts, this must be set
                 * to `true`.
                 *
                 * @default false
                 * @see {@link https://www.amcharts.com/docs/v4/chart-types/xy-chart/#100_stacks} For using `calculateTotals` for 100% stacked series.
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-strings/#Placeholders_for_numeric_values} For using `calculateTotals` in labels.
                 * @type {boolean}
                 */
                _this.calculateTotals = false;
                _this.className = "ValueAxis";
                // Set field name
                _this.axisFieldName = "value";
                // Set defaults
                _this.setPropertyValue("maxZoomFactor", 1000);
                _this.setPropertyValue("extraMin", 0);
                _this.setPropertyValue("extraMax", 0);
                _this.setPropertyValue("strictMinMax", false);
                _this.setPropertyValue("maxPrecision", Number.MAX_VALUE);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty [[DataItem]] of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {ValueAxisDataItem} Data Item
             */
            ValueAxis.prototype.createDataItem = function () {
                return new ValueAxisDataItem();
            };
            /**
             * Returns a new/empty [[AxisBreak]] of the appropriate type.
             *
             * @return {ValueAxisBreak} Axis break
             */
            ValueAxis.prototype.createAxisBreak = function () {
                return new _ValueAxisBreak__WEBPACK_IMPORTED_MODULE_5__["ValueAxisBreak"]();
            };
            /**
             * Validates Axis' data items.
             *
             * @ignore Exclude from docs
             */
            ValueAxis.prototype.validateDataItems = function () {
                this._positionToValue = {};
                _super.prototype.validateDataItems.call(this);
                this.fixAxisBreaks();
                this.getMinMax();
                // note, not zoomMin and zoomMax, but actual position
                var minZoomed = this.positionToValue(this.start);
                var maxZoomed = this.positionToValue(this.end);
                if (this.interpolationDuration > 0) {
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](minZoomed) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](maxZoomed)) {
                        this.zoomToValues(minZoomed, maxZoomed, true, true);
                    }
                }
            };
            /**
             * [dataChangeUpdate description]
             *
             * This is a placeholder to override for extending classes.
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            ValueAxis.prototype.dataChangeUpdate = function () {
                this._start = 0;
                this._end = 1;
                this._maxZoomed = this._maxDefined;
                this._minZoomed = this._minDefined;
                this._maxAdjusted = this._maxDefined;
                this._minAdjusted = this._minDefined;
            };
            /**
             * Processes data items of the related Series.
             *
             * @ignore Exclude from docs
             */
            ValueAxis.prototype.processSeriesDataItems = function () {
                // @todo: add some boolean (maybe autodedect) if we need these calculations or not. this place uses a lot of cpu
                if (this.calculateTotals) {
                    var series = this.series.getIndex(0);
                    var startIndex = series.startIndex;
                    if (series.dataItems.length > 0) {
                        if (startIndex > 0) {
                            startIndex--;
                        }
                        var endIndex = series.endIndex;
                        if (endIndex < series.dataItems.length) {
                            endIndex++;
                        }
                        // This has to be `var` in order to avoid garbage collection
                        for (var i = startIndex; i < endIndex; ++i) {
                            // This has to be `var` in order to avoid garbage collection
                            var total = {};
                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.series.iterator(), function (series) {
                                var dataItem = series.dataItems.getIndex(i);
                                if (dataItem) {
                                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_8__["each"](dataItem.values, function (key) {
                                        var value = dataItem.values[key].workingValue; // can not use getWorkingValue here!
                                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](total[key])) {
                                                total[key] = value;
                                            }
                                            else {
                                                total[key] += value;
                                            }
                                        }
                                    });
                                }
                            });
                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.series.iterator(), function (series) {
                                var dataItem = series.dataItems.getIndex(i);
                                if (dataItem) {
                                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_8__["each"](dataItem.values, function (key) {
                                        var value = dataItem.values[key].workingValue; // can not use getWorkingValue here!
                                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                                            dataItem.setCalculatedValue(key, total[key], "total");
                                            dataItem.setCalculatedValue(key, 100 * value / total[key], "totalPercent");
                                        }
                                    });
                                }
                            });
                        }
                    }
                }
            };
            /**
             * Validates the data range.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            ValueAxis.prototype.validateDataRange = function () {
                _super.prototype.validateDataRange.call(this);
                // not using default caching for a better performance
                this._valueToPosition = {};
                this._positionToValue = {};
                // it's important to fix axis breaks in the beginning, as positionToValue and adjustDifference depends on breaks values
                this.fixAxisBreaks();
                // calculate zoom values
                this.calculateZoom();
            };
            /**
             * Validates the whole axis. Causes it to redraw.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            ValueAxis.prototype.validate = function () {
                if (this.axisLength <= 0) {
                    return;
                }
                // this is moved to a separate method because it differs in DateAxis
                this.validateAxisElements();
                _super.prototype.validate.call(this);
                this.hideUnusedDataItems();
                // hide too close
                //this.hideTooCloseDataItems();
            };
            /**
             * Calculates all positions, related to axis as per current zoom.
             *
             * @ignore Exclude from docs
             */
            ValueAxis.prototype.calculateZoom = function () {
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this.min) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this.max)) {
                    var min = this.positionToValue(this.start);
                    var max = this.positionToValue(this.end);
                    var differece = this.adjustDifference(min, max);
                    var minMaxStep = this.adjustMinMax(min, max, differece, this._gridCount, true);
                    min = minMaxStep.min;
                    max = minMaxStep.max;
                    this._adjustedStart = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"]((min - this.min) / (this.max - this.min), 5);
                    this._adjustedEnd = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"]((max - this.min) / (this.max - this.min), 5);
                    this._step = minMaxStep.step;
                    this._stepDecimalPlaces = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["decimalPlaces"](this._step);
                    if (this._minZoomed != min || this._maxZoomed != max) {
                        this._minZoomed = min;
                        this._maxZoomed = max;
                        this.dispatchImmediately("selectionextremeschanged");
                    }
                }
                else {
                    this._adjustedStart = this.start;
                    this._adjustedEnd = this.end;
                }
            };
            /*
                fixAxisBreaks() {
                    let axisBreaks: List<ValueAxisBreak> = <List<ValueAxisBreak>>this.axisBreaks;
                    if (axisBreaks.length > 0) {
        
                        // first make sure that startValue is <= end value
                        for (let i: number = 0; i < axisBreaks.length; i++) {
                            let axisBreak: ValueAxisBreak = axisBreaks.get(i);
                            let startValue: number = $math.min(axisBreak.value, axisBreak.endValue);
                            let endValue: number = $math.max(axisBreak.value, axisBreak.endValue);
        
                            axisBreak.adjustedStartValue = startValue;
                            axisBreak.adjustedEndValue = endValue;
                        }
        
                        // sort by adjustedStartValue
                        this.axisBreaks.sortByKey("adjustedStartValue");
        
                        let firstAxisBreak: ValueAxisBreak = axisBreaks.get(0);
                        let previousEndValue: number = Math.min(firstAxisBreak.startValue, firstAxisBreak.endValue);
        
                        // process breaks
                        for (let i: number = 0; i < this.axisBreaks.length; i++) {
                            let axisBreak: ValueAxisBreak = axisBreaks.get(i);
        
                            let startValue: number = axisBreak.adjustedStartValue;
                            let endValue: number = axisBreak.adjustedEndValue;
        
                            // breaks can't overlap
                            // if break starts before previous break ends
                            if (startValue < previousEndValue) {
                                startValue = previousEndValue;
        
                                if (endValue < previousEndValue) {
                                    endValue = previousEndValue;
                                }
                            }
        
                            axisBreak.adjustedStartValue = startValue;
                            axisBreak.adjustedEndValue = endValue;
        
                            // break difference
                            let axisBreakDif: number = endValue - startValue;
                            let axisBreakGridCount: number = Math.ceil(axisBreakDif / this._step * axisBreak.breakSize);
        
                            // calculate min, max and step for axis break
                            let breakMinMaxStep = this.adjustMinMax(startValue, endValue, axisBreakDif, axisBreakGridCount);
                            axisBreak.adjustedStep = breakMinMaxStep.step;
                            axisBreak.adjustedMin = breakMinMaxStep.min;
                            axisBreak.adjustedMax = breakMinMaxStep.max;
                            previousEndValue = endValue;
                        }
                    }
        
                    this._difference = this.adjustDifference(this.min, this.max);
                }
            */
            /**
             * Validates Axis elements.
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            ValueAxis.prototype.validateAxisElements = function () {
                var _this = this;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this.max) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this.min)) {
                    // first regular items
                    var value_1 = this.minZoomed - this._step * 2;
                    if (!this.logarithmic) {
                        value_1 = Math.floor(value_1 / this._step) * this._step;
                    }
                    else {
                        var differencePower = Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E;
                        if (differencePower > 1) {
                            value_1 = Math.pow(10, Math.log(this.min) * Math.LOG10E);
                        }
                        else {
                            value_1 = Math.floor(this.minZoomed / this._step) * this._step;
                        }
                    }
                    var maxZoomed = this._maxZoomed + this._step;
                    this.resetIterators();
                    var dataItemsIterator_1 = this._dataItemsIterator;
                    var i = 0;
                    while (value_1 <= maxZoomed) {
                        var axisBreak = this.isInBreak(value_1);
                        if (!axisBreak) {
                            var dataItem = dataItemsIterator_1.find(function (x) { return x.value === value_1; });
                            //this.processDataItem(dataItem);
                            this.appendDataItem(dataItem);
                            dataItem.axisBreak = undefined;
                            if (dataItem.value != value_1) {
                                dataItem.value = value_1;
                                dataItem.text = this.formatLabel(value_1);
                                if (dataItem.label.invalid) {
                                    dataItem.label.validate();
                                }
                                if (dataItem.label.measuredWidth > this.ghostLabel.measuredWidth || dataItem.label.measuredHeight > this.ghostLabel.measuredHeight) {
                                    this.ghostLabel.text = dataItem.label.text;
                                }
                            }
                            this.validateDataElement(dataItem);
                            i++;
                        }
                        if (!this.logarithmic) {
                            value_1 += this._step;
                        }
                        else {
                            var differencePower = Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E;
                            if (differencePower > 1) {
                                value_1 = Math.pow(10, Math.log(this.min) * Math.LOG10E + i);
                            }
                            else {
                                value_1 += this._step;
                            }
                        }
                    }
                    var axisBreaks = this.axisBreaks;
                    // breaks later
                    var renderer_1 = this.renderer;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](axisBreaks.iterator(), function (axisBreak) {
                        if (axisBreak.breakSize > 0) {
                            // only add grid if gap is bigger then minGridDistance
                            if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"](axisBreak.startPoint, axisBreak.endPoint) > renderer_1.minGridDistance) {
                                var breakValue_1 = axisBreak.adjustedMin;
                                while (breakValue_1 <= axisBreak.adjustedMax) {
                                    if (breakValue_1 >= axisBreak.adjustedStartValue && breakValue_1 <= axisBreak.adjustedEndValue) {
                                        var dataItem = dataItemsIterator_1.find(function (x) { return x.value === breakValue_1; });
                                        //this.processDataItem(dataItem);
                                        _this.appendDataItem(dataItem);
                                        dataItem.axisBreak = axisBreak;
                                        if (dataItem.value != breakValue_1) {
                                            dataItem.value = breakValue_1;
                                            dataItem.text = _this.formatLabel(breakValue_1);
                                            if (dataItem.label.invalid) {
                                                dataItem.label.validate();
                                            }
                                        }
                                        _this.validateDataElement(dataItem);
                                    }
                                    breakValue_1 += axisBreak.adjustedStep;
                                }
                            }
                        }
                    });
                }
            };
            /**
             * Validates axis data item.
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {ValueAxisDataItem}  dataItem  Data item
             */
            ValueAxis.prototype.validateDataElement = function (dataItem) {
                _super.prototype.validateDataElement.call(this, dataItem);
                //dataItem.__disabled = false;
                var renderer = this.renderer;
                var value = dataItem.value;
                var endValue = dataItem.endValue;
                var position = this.valueToPosition(value);
                dataItem.position = position;
                var endPosition = position;
                var fillEndPosition = this.valueToPosition(value + this._step);
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](endValue)) {
                    endPosition = this.valueToPosition(endValue);
                    fillEndPosition = endPosition;
                }
                // this point is needed to calculate distance to satisfy minGridDistance
                dataItem.point = renderer.positionToPoint(position);
                var tick = dataItem.tick;
                if (tick && !tick.disabled) {
                    renderer.updateTickElement(tick, position, endPosition);
                }
                var grid = dataItem.grid;
                if (grid && !grid.disabled) {
                    renderer.updateGridElement(grid, position, endPosition);
                }
                var label = dataItem.label;
                if (label && !label.disabled) {
                    renderer.updateLabelElement(label, position, endPosition);
                }
                var fill = dataItem.axisFill;
                if (fill && !fill.disabled) {
                    renderer.updateFillElement(fill, position, fillEndPosition);
                    if (!dataItem.isRange) {
                        this.fillRule(dataItem);
                    }
                }
                var mask = dataItem.mask;
                if (mask) {
                    renderer.updateFillElement(mask, position, fillEndPosition);
                }
            };
            /**
             * Formats the value according to axis' own [[NumberFormatter]].
             *
             * @param  {number}  value  Source value
             * @return {string}         Formatted value
             */
            ValueAxis.prototype.formatLabel = function (value) {
                return this.numberFormatter.format(value);
            };
            Object.defineProperty(ValueAxis.prototype, "basePoint", {
                /**
                 * Coordinates of the actual axis start.
                 *
                 * @ignore Exclude from docs
                 * @return {IPoint} Base point
                 */
                get: function () {
                    var baseValue = this._baseValue;
                    var position = this.valueToPosition(baseValue);
                    var basePoint = this.renderer.positionToPoint(position);
                    return basePoint;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "baseValue", {
                /**
                 * @return {number} base value
                 */
                get: function () {
                    if (this.logarithmic) {
                        return this.min;
                    }
                    else {
                        return this._baseValue;
                    }
                },
                /**
                 * A base value.
                 *
                 * This is a threshold value that will divide "positive" and "negative"
                 * value ranges.
                 *
                 * Other scale-related functionality also depend on base value. E.g. stacks,
                 * value-dependent coloring, etc.
                 *
                 * @param {number} value Base value
                 */
                set: function (value) {
                    this._baseValue = value;
                    this.invalidateLayout();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts a numeric value to relative position on axis
             *
             * An alias to `valueToPosition()`.
             *
             * @param  {number}  value  Value
             * @return {number}         Position
             */
            ValueAxis.prototype.anyToPosition = function (value) {
                return this.valueToPosition(value);
            };
            /**
             * Converts a numeric value to orientation point (x, y, angle) on axis
             *
             * @param  {number}  value  Value
             * @return {IOrientationPoint}  Orientation point
             */
            ValueAxis.prototype.valueToPoint = function (value) {
                var position = this.valueToPosition(value);
                var point = this.renderer.positionToPoint(position);
                var angle = this.renderer.positionToAngle(position);
                return { x: point.x, y: point.y, angle: angle };
            };
            /**
             * Converts a numeric value to orientation (x, y, angle) point on axis
             *
             * @param  {number}  value  Value
             * @return {IOrientationPoint}  Orientation point
             */
            ValueAxis.prototype.anyToPoint = function (value) {
                return this.valueToPoint(value);
            };
            /**
             * Converts a numeric value to relative position on axis.
             *
             * @param  {number}  value  Value
             * @return {number}  relative position
             */
            ValueAxis.prototype.valueToPosition = function (value) {
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                    //let strValue: string = value.toString();
                    //let cachedPosition: number = this._valueToPosition[strValue];
                    //if ($type.isNumber(cachedPosition)) {
                    //				return cachedPosition;
                    //			}
                    //			else {
                    // todo: think if possible to take previous value and do not go through all previous breaks
                    var min_1 = this.min;
                    var max_1 = this.max;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min_1) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max_1)) {
                        var difference = this._difference;
                        if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](difference)) {
                            difference = this.adjustDifference(min_1, max_1);
                        }
                        var axisBreaks = this.axisBreaks;
                        if (axisBreaks.length > 0) {
                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["eachContinue"](axisBreaks.iterator(), function (axisBreak) {
                                var startValue = axisBreak.adjustedStartValue;
                                var endValue = axisBreak.adjustedEndValue;
                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](startValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](endValue)) {
                                    if (value < startValue) {
                                        return false;
                                    }
                                    if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["intersect"]({ start: startValue, end: endValue }, { start: min_1, end: max_1 })) { // todo: check this once and set some flag in axisBreak
                                        startValue = Math.max(startValue, min_1);
                                        endValue = Math.min(endValue, max_1);
                                        var breakSize = axisBreak.breakSize;
                                        // value to the right of break end
                                        if (value > endValue) {
                                            min_1 += (endValue - startValue) * (1 - breakSize); // todo: maybe this can be done differently?
                                        }
                                        // value to the left of break start
                                        else if (value < startValue) {
                                        }
                                        // value within break
                                        else {
                                            value = startValue + (value - startValue) * breakSize;
                                        }
                                    }
                                }
                                return true;
                            });
                        }
                        var position = void 0;
                        if (!this.logarithmic) {
                            position = (value - min_1) / difference;
                        }
                        else {
                            position = (Math.log(value) * Math.LOG10E - Math.log(this.min) * Math.LOG10E) / ((Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E));
                        }
                        position = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](position, 5);
                        //this._valueToPosition[strValue] = position;
                        return position;
                    }
                    //}
                }
                return 0;
            };
            /**
             * Converts an relative position to a corresponding value within
             * axis' scale.
             *
             * @param  {number}  position  Position (px)
             * @return {number}            Value
             */
            ValueAxis.prototype.positionToValue = function (position) {
                position = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](position, 10);
                var strPosition = position.toString();
                //let cachedValue: number = this._positionToValue[strPosition];
                //if ($type.isNumber(cachedValue)) {
                //			return cachedValue;
                //		}
                //		else {
                var min = this.min;
                var max = this.max;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max)) {
                    var difference_1 = max - min; //no need to adjust!
                    var axisBreaks = this.axisBreaks;
                    var value_2 = null;
                    // in case we have some axis breaks
                    if (axisBreaks.length > 0) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["eachContinue"](axisBreaks.iterator(), function (axisBreak) {
                            var breakStartPosition = axisBreak.startPosition;
                            var breakEndPosition = axisBreak.endPosition;
                            var breakStartValue = axisBreak.adjustedStartValue;
                            var breakEndValue = axisBreak.adjustedEndValue;
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](breakStartValue) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](breakEndValue)) {
                                if (breakStartValue > max) {
                                    return false;
                                }
                                if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["intersect"]({ start: breakStartValue, end: breakEndValue }, { start: min, end: max })) {
                                    breakStartValue = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](breakStartValue, min);
                                    breakEndValue = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["min"](breakEndValue, max);
                                    var breakSize = axisBreak.breakSize;
                                    difference_1 -= (breakEndValue - breakStartValue) * (1 - breakSize);
                                    // position to the right of break end
                                    if (position > breakEndPosition) {
                                        min += (breakEndValue - breakStartValue) * (1 - breakSize);
                                    }
                                    // position to the left of break start
                                    else if (position < breakStartPosition) {
                                    }
                                    // value within break
                                    else {
                                        var breakPosition = (position - breakStartPosition) / (breakEndPosition - breakStartPosition);
                                        value_2 = breakStartValue + breakPosition * (breakEndValue - breakStartValue);
                                        return false;
                                    }
                                }
                                return true;
                            }
                        });
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value_2)) {
                        value_2 = position * difference_1 + min;
                    }
                    //this._positionToValue[strPosition] = value;
                    return value_2;
                }
                //}
            };
            /**
             * Converts an X coordinate to a relative value in axis' scale.
             *
             * @param  {number}  x  X (px)
             * @return {number}     Value
             */
            ValueAxis.prototype.xToValue = function (x) {
                return this.positionToValue(this.pointToPosition({ x: x, y: 0 }));
            };
            /**
             * Converts an Y coordinate to a relative value in axis' scale.
             *
             * @param  {number}  y  Y (px)
             * @return {number}     Value
             */
            ValueAxis.prototype.yToValue = function (y) {
                return this.positionToValue(this.pointToPosition({ x: 0, y: y }));
            };
            /**
             * Converts pixel coordinates to a relative position. (0-1)
             *
             * @param {IPoint}   point  Coorinates (px)
             * @return {number}         Position (0-1)
             */
            ValueAxis.prototype.pointToPosition = function (point) {
                if (this.renderer instanceof _AxisRendererY__WEBPACK_IMPORTED_MODULE_2__["AxisRendererY"]) {
                    return 1 - this.renderer.pointToPosition(point);
                }
                else {
                    return this.renderer.pointToPosition(point);
                }
            };
            /**
             * Calculates smallest and biggest value for the axis scale.
             *
             * @todo Description (review)
             */
            ValueAxis.prototype.getMinMax = function () {
                var _this = this;
                this.updateGridCount();
                var min = Number.POSITIVE_INFINITY;
                var max = Number.NEGATIVE_INFINITY;
                // only if min and max are not set from outside, we go through min and max influencers
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._minDefined) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._maxDefined)) {
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.series.iterator(), function (series) {
                        if (!series.ignoreMinMax) {
                            // check min
                            var seriesMin = series.min(_this);
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](seriesMin) && (seriesMin < min)) {
                                min = seriesMin;
                            }
                            // check max
                            var seriesMax = series.max(_this);
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](seriesMax) && (seriesMax > max)) {
                                max = seriesMax;
                            }
                        }
                    });
                }
                if (this.logarithmic) {
                    if (min <= 0) {
                        throw Error("Logarithmic value axis can not have vales <= 0.");
                    }
                }
                if (min == 0 && max == 0) {
                    max = 0.9;
                    min = -0.9;
                }
                // if defined from outside
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._minDefined)) {
                    min = this._minDefined;
                }
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._maxDefined)) {
                    max = this._maxDefined;
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max)) {
                    return;
                }
                this._minReal = min;
                this._maxReal = max;
                if (min == Number.POSITIVE_INFINITY) {
                    min = undefined;
                }
                if (max == Number.NEGATIVE_INFINITY) {
                    max = undefined;
                }
                var dif = this.adjustDifference(min, max); // previously it was max-min, but not worked well
                min = this.fixMin(min);
                max = this.fixMax(max);
                // this happens if starLocation and endLocation are 0.5 and DateAxis has only one date
                if (min == max) {
                    min -= 1;
                    max += 1;
                }
                min -= (max - min) * this.extraMin;
                max += (max - min) * this.extraMax;
                var minMaxStep = this.adjustMinMax(min, max, dif, this._gridCount, this.strictMinMax);
                min = minMaxStep.min;
                max = minMaxStep.max;
                dif = max - min; //new
                // do it for the second time (importat!)
                minMaxStep = this.adjustMinMax(min, max, max - min, this._gridCount, true);
                min = minMaxStep.min;
                max = minMaxStep.max;
                // return min max if strict
                if (this.strictMinMax) {
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._minDefined)) {
                        min = this._minDefined;
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._maxDefined)) {
                        max = this._maxDefined;
                    }
                }
                // checking isNumber is good when all series are hidden
                if ((this._minAdjusted != min || this._maxAdjusted != max) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max)) {
                    var animation = this._minMaxAnimation;
                    if (this._extremesChanged && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._minAdjusted) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._maxAdjusted) && this.inited) {
                        if ((animation && !animation.isFinished()) && this._finalMax == max && this._finalMin == min) {
                            return;
                        }
                        else {
                            this._finalMin = min;
                            this._finalMax = max;
                            animation = this.animate([{ property: "_minAdjusted", from: this._minAdjusted, to: min }, { property: "_maxAdjusted", from: this._maxAdjusted, to: max }], this.rangeChangeDuration);
                            animation.events.on("animationprogress", this.validateDataItems, this);
                            animation.events.on("animationended", function () {
                                _this.validateDataItems();
                                _this.handleSelectionExtremesChange();
                            });
                            this._minMaxAnimation = animation;
                            this.validateDataItems();
                            this.handleSelectionExtremesChange();
                        }
                    }
                    else {
                        if ((animation && !animation.isFinished()) && this._finalMax == max && this._finalMin == min) {
                            return;
                        }
                        else {
                            this._minAdjusted = min;
                            this._maxAdjusted = max;
                            this._finalMin = min;
                            this._finalMax = max;
                            this.invalidateDataItems();
                            this.dispatchImmediately("extremeschanged");
                        }
                    }
                }
                this._extremesChanged = false;
            };
            /**
             * Adjusts the minimum value.
             *
             * This is a placeholder method for extending classes to override.
             *
             * For numeric values this does nothing, however for more complex types, like
             * dates, it may be necessary to adjust.
             *
             * @param  {number}  value  Value
             * @return {number}         Adjusted value
             */
            ValueAxis.prototype.fixMin = function (value) {
                return value;
            };
            /**
             * Adjusts the maximum value.
             *
             * This is a placeholder method for extending classes to override.
             *
             * For numeric values this does nothing, however for more complex types, like
             * dates, it may be necessary to adjust.
             *
             * @param  {number}  value  Value
             * @return {number}         Adjusted value
             */
            ValueAxis.prototype.fixMax = function (value) {
                return value;
            };
            /**
             * Adjusts actual min and max scale values so that the axis starts and ends
             * at "nice" values, unless `strictMinMax` is set.
             *
             * The `difference` can be something else than `max - min`, because of the
             * axis breaks.
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}      min        [description]
             * @param  {number}      max        [description]
             * @param  {number}      difference [description]
             * @param  {number}      gridCount  [description]
             * @param  {boolean}     strictMode [description]
             * @return {IMinMaxStep}            [description]
             */
            ValueAxis.prototype.adjustMinMax = function (min, max, difference, gridCount, strictMode) {
                // will fail if 0
                if (gridCount <= 1) {
                    gridCount = 1;
                }
                gridCount = Math.round(gridCount);
                var initialMin = min;
                var initialMax = max;
                // in case min and max is the same, use max
                if (difference === 0) {
                    difference = Math.abs(max);
                }
                // the number by which we need to raise 10 to get difference
                var exponent = Math.log(Math.abs(difference)) * Math.LOG10E;
                // here we find a number which is power of 10 and has the same count of numbers as difference has
                var power = Math.pow(10, Math.floor(exponent));
                // reduce this number by 10 times
                power = power / 10;
                var extra = power;
                if (strictMode) {
                    extra = 0;
                }
                if (!this.logarithmic) {
                    // round down min
                    if (strictMode) {
                        min = Math.floor(min / power) * power;
                        // round up max
                        max = Math.ceil(max / power) * power;
                    }
                    else {
                        min = Math.ceil(min / power) * power - extra;
                        // round up max
                        max = Math.floor(max / power) * power + extra;
                    }
                    // don't let min go below 0 if real min is >= 0
                    if (min < 0 && initialMin >= 0) {
                        min = 0;
                    }
                    // don't let max go above 0 if real max is <= 0
                    if (max > 0 && initialMax <= 0) {
                        max = 0;
                    }
                }
                else {
                    if (min <= 0) {
                        //throw Error("Logarithmic value axis can not have vales <= 0.");
                        min = this.baseValue;
                    }
                    // @todo: think of a better way or to restrict zooming when no series are selected
                    if (min == Infinity) {
                        min = 1;
                    }
                    if (max == -Infinity) {
                        max = 10;
                    }
                    min = Math.pow(10, Math.floor(Math.log(Math.abs(min)) * Math.LOG10E));
                    max = Math.pow(10, Math.ceil(Math.log(Math.abs(max)) * Math.LOG10E));
                }
                // repeat diff, exponent and power again with rounded values
                //difference = this.adjustDifference(min, max);
                /*
        
                        if(min > initialMin){
                            min = initialMin;
                        }
        
                        if(max < initialMax){
                            max = initialMax;
                        }
                */
                exponent = Math.log(Math.abs(difference)) * Math.LOG10E;
                power = Math.pow(10, Math.floor(exponent));
                power = power / 10;
                // approximate difference between two grid lines
                var step = Math.ceil((difference / gridCount) / power) * power;
                var stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E));
                // TODO: in v3 I had fixStepE here, ommiting it for a while, need to think about other solution
                // the step should divide by  2, 5, and 10.
                var stepDivisor = Math.ceil(step / stepPower); // number 0 - 10
                if (stepDivisor > 5) {
                    stepDivisor = 10;
                }
                else if (stepDivisor <= 5 && stepDivisor > 2) {
                    stepDivisor = 5;
                }
                // now get real step
                step = Math.ceil(step / (stepPower * stepDivisor)) * stepPower * stepDivisor;
                if (this.maxPrecision < Number.MAX_VALUE && step != _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["ceil"](step, this.maxPrecision)) {
                    step = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["ceil"](step, this.maxPrecision);
                }
                var decCount = 0;
                // in case numbers are smaller than 1
                if (stepPower < 1) {
                    // exponent is less then 1 too. Count decimals of exponent
                    decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower)) * Math.LOG10E)) + 1;
                    // round step
                    step = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](step, decCount);
                }
                if (!this.logarithmic) {
                    // final min and max
                    var minCount = Math.floor(min / step);
                    min = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](step * minCount, decCount);
                    var maxCount = void 0;
                    if (!strictMode) {
                        maxCount = Math.ceil(max / step);
                    }
                    else {
                        maxCount = Math.floor(max / step);
                    }
                    if (maxCount == minCount) {
                        maxCount++;
                    }
                    max = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](step * maxCount, decCount);
                    if (max < initialMax) {
                        max = max + step;
                    }
                    if (min > initialMin) {
                        min = min - step;
                    }
                }
                return { min: min, max: max, step: step };
            };
            Object.defineProperty(ValueAxis.prototype, "min", {
                /**
                 * @return {number} Min value
                 */
                get: function () {
                    var min = this._minAdjusted;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min)) {
                        min = this._minDefined;
                    }
                    return min;
                },
                /**
                 * A minimum value for the axis scale.
                 *
                 * This value might be auto-adjusted by the Axis in order to accomodate the
                 * grid nicely, i.e. plot area is divided by grid in nice equal cells.
                 *
                 * The above might be overridden by `strictMinMax` which will force exact
                 * user-defined min and max values to be used for scale.
                 *
                 * @param {number}  value  Min value
                 */
                set: function (value) {
                    this._minDefined = value;
                    //this.getMinMax();
                    this.invalidateDataItems();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "extraMin", {
                /**
                 * @return {number}
                 */
                get: function () {
                    return this.getPropertyValue("extraMin");
                },
                /**
                 * Allows relatively adjusting minimum value of the axis' scale.
                 *
                 * The value is relative to the actual range of values currently displayed
                 * on the axis.
                 *
                 * E.g.: 0.5 will mean half of the current range. If we have axis displaying
                 * from 100 to 200, we will now have axis displaying from 50 to 200 because
                 * we asked to expand minimum value by 50% (0.5).
                 *
                 * @param {number}
                 */
                set: function (value) {
                    if (this.setPropertyValue("extraMin", value)) {
                        this.invalidateDataItems();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "extraMax", {
                /**
                 * @return {number} Min multiplier
                 */
                get: function () {
                    return this.getPropertyValue("extraMax");
                },
                /**
                 * Allows relatively adjusting maximum value of the axis' scale.
                 *
                 * The value is relative to the actual range of values currently displayed
                 * on the axis.
                 *
                 * E.g.: 0.5 will mean half of the current range. If we have axis displaying
                 * from 100 to 200, we will now have axis displaying from 100 to 250 because
                 * we asked to expand maximum value by 50% (0.5).
                 *
                 * @param {number}
                 */
                set: function (value) {
                    if (this.setPropertyValue("extraMax", value)) {
                        this.invalidateDataItems();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "step", {
                /**
                 * Current calculated delta in values between two adjacent grid lines (step).
                 *
                 * This is a read-only value and cannot be used to set actual step.
                 *
                 * @readonly
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/axes/positioning-axis-elements/#Setting_the_density_of_the_the_grid_labels} For more information about modifying density of labels
                 * @return {number} [description]
                 */
                get: function () {
                    return this._step;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "max", {
                /**
                 * @return {number} Max value
                 */
                get: function () {
                    var max = this._maxAdjusted;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max)) {
                        max = this._maxDefined;
                    }
                    return max;
                },
                /**
                 * A maximum value for the axis scale.
                 *
                 * This value might be auto-adjusted by the Axis in order to accomodate the
                 * grid nicely, i.e. plot area is divided by grid in nice equal cells.
                 *
                 * The above might be overridden by `strictMinMax` which will force exact
                 * user-defined min and max values to be used for scale.
                 *
                 * @param {number}  value  Max value
                 */
                set: function (value) {
                    this._maxDefined = value;
                    //this.getMinMax();
                    this.invalidateDataItems();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Used for the Series to register itself as the user of this Axis.
             *
             * This will also decorate both the Series and Axis with event handlers, used
             * to redraw on Axis position/zoom change.
             *
             * A disposer for those events is returned, so that they can be disposed
             * together with Series.
             *
             * @ignore Exclude from docs
             * @param  {XYSeries}   series  Series
             * @return {IDisposer}          Disposer for events
             */
            ValueAxis.prototype.registerSeries = function (series) {
                return new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MultiDisposer"]([
                    _super.prototype.registerSeries.call(this, series),
                    series.events.on("extremeschanged", this.handleExtremesChange, this, false),
                    series.events.on("selectionextremeschanged", this.handleSelectionExtremesChange, this, false),
                    this.events.on("datarangechanged", series.invalidateDataRange, series, false),
                    this.events.on("extremeschanged", series.invalidate, series, false)
                ]);
            };
            /**
             * Perform tasks after Axis zoom.
             */
            ValueAxis.prototype.handleSelectionExtremesChange = function () {
                var _this = this;
                var selectionMin;
                var selectionMax;
                var allHidden = true;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.series.iterator(), function (series) {
                    if (!series.ignoreMinMax) {
                        if (series.visible && !series.isHiding) {
                            allHidden = false;
                        }
                        var seriesSelectionMin = series.selectionMin(_this);
                        var seriesSelectionMax = series.selectionMax(_this);
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](seriesSelectionMin)) {
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](selectionMin) || (seriesSelectionMin < selectionMin)) {
                                selectionMin = seriesSelectionMin;
                            }
                        }
                        // check max
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](seriesSelectionMax)) {
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](selectionMax) || (seriesSelectionMax > selectionMax)) {
                                selectionMax = seriesSelectionMax;
                            }
                        }
                    }
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.series.iterator(), function (series) {
                    if (!series.appeared) {
                        allHidden = true;
                    }
                });
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._minDefined)) {
                    if (this.strictMinMax) {
                        selectionMin = this._minDefined;
                    }
                    else {
                        selectionMin = this.min;
                    }
                }
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this._maxDefined)) {
                    if (this.strictMinMax) {
                        selectionMax = this._maxDefined;
                    }
                    else {
                        selectionMax = this.max;
                    }
                }
                var dif = this.adjustDifference(selectionMin, selectionMax);
                var minMaxStep = this.adjustMinMax(selectionMin, selectionMax, dif, this._gridCount);
                selectionMin = minMaxStep.min;
                selectionMax = minMaxStep.max;
                selectionMin -= (selectionMax - selectionMin) * this.extraMin;
                selectionMax += (selectionMax - selectionMin) * this.extraMax;
                selectionMin = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](selectionMin, this.min, this.max);
                selectionMax = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](selectionMax, this.min, this.max);
                // do it for the second time !important
                dif = this.adjustDifference(selectionMin, selectionMax);
                minMaxStep = this.adjustMinMax(selectionMin, selectionMax, dif, this._gridCount, true);
                selectionMin = minMaxStep.min;
                selectionMax = minMaxStep.max;
                if (this.strictMinMax) {
                    selectionMin = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](selectionMin, this._minDefined);
                    selectionMax = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["min"](selectionMax, this._maxDefined);
                }
                var start = this.valueToPosition(selectionMin);
                var end = this.valueToPosition(selectionMax);
                // in case all series are hidden or hiding, full zoomout
                if (allHidden) {
                    start = 0;
                    end = 1;
                }
                this.zoom({ start: start, end: end }, false);
            };
            Object.defineProperty(ValueAxis.prototype, "strictMinMax", {
                /**
                 * @return {boolean} Use exact values?
                 */
                get: function () {
                    return this.getPropertyValue("strictMinMax");
                },
                /**
                 * Indicates whether to blindly use exact `min` and `max` values set by user
                 * when generating Axis scale.
                 *
                 * If not set, the Axis might slightly adjust those values to accomodate a
                 * better looking grid.
                 *
                 * @default false
                 * @param {boolean} value Use exact values?
                 */
                set: function (value) {
                    if (this.setPropertyValue("strictMinMax", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "logarithmic", {
                /**
                 * @return {boolean} Logarithmic scale?
                 */
                get: function () {
                    return this.getPropertyValue("logarithmic");
                },
                /**
                 * Indicates if this axis should use a logarithmic scale.
                 *
                 * Please note that logarithmic axis can **only** accommodate values bigger
                 * than zero.
                 *
                 * Having zero or negative values will result in error and failure of the
                 * whole chart.
                 *
                 * @param {boolean} value Logarithmic scale?
                 */
                set: function (value) {
                    if (this.setPropertyValue("logarithmic", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "maxPrecision", {
                /**
                 * @return {boolean} max precision
                 */
                get: function () {
                    return this.getPropertyValue("maxPrecision");
                },
                /**
                 * Maximum number of decimals to allow when placing grid lines and labels
                 * on axis.
                 *
                 * Set it to `0` (zero) to force integer-only axis labels.
                 *
                 * @param {number}
                 */
                set: function (value) {
                    if (this.setPropertyValue("maxPrecision", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Invalidates axis data items when series extremes change
             */
            ValueAxis.prototype.handleExtremesChange = function () {
                this._extremesChanged = true;
                this.getMinMax();
                if (this.ghostLabel) {
                    var min = this.min;
                    var max = this.max;
                    var text = 0;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](min) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](max) && min.toString().length > max.toString().length) {
                        text = min;
                    }
                    else {
                        text = max;
                    }
                    this.ghostLabel.text = this.formatLabel(text);
                }
            };
            /**
             * Returns the X coordinate for series' data item's value.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @param  {string}            stackKey  ?
             * @return {number}                      X coordinate (px)
             */
            ValueAxis.prototype.getX = function (dataItem, key, location, stackKey) {
                var value = dataItem.getWorkingValue(key);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](stackKey)) {
                    stackKey = "valueX";
                }
                var stack = dataItem.getValue(stackKey, "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                    value = this.baseValue;
                    if (this.logarithmic) {
                        if (stack > 0) {
                            value = 0;
                        }
                    }
                }
                return this.renderer.positionToPoint(this.valueToPosition(value + stack)).x;
            };
            /**
             * Returns the Y coordinate for series' data item's value.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @param  {string}            stackKey  Stack ID
             * @return {number}                      Y coordinate (px)
             */
            ValueAxis.prototype.getY = function (dataItem, key, location, stackKey) {
                var value = dataItem.getWorkingValue(key);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](stackKey)) {
                    stackKey = "valueY";
                }
                var stack = dataItem.getValue(stackKey, "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                    value = this.baseValue;
                    if (this.logarithmic) {
                        if (stack > 0) {
                            value = 0;
                        }
                    }
                }
                return this.renderer.positionToPoint(this.valueToPosition(value + stack)).y;
            };
            /**
             * Returns an angle for series data item.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @param  {string}            stackKey  Stack ID
             * @return {number}                      Angle
             */
            ValueAxis.prototype.getAngle = function (dataItem, key, location, stackKey) {
                var value = dataItem.getWorkingValue(key);
                var stack = dataItem.getValue(stackKey, "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                    value = this.baseValue;
                }
                return this.positionToAngle(this.valueToPosition(value + stack));
            };
            /**
             * [getAnyRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  start     [description]
             * @param  {number}  end       [description]
             * @param  {number}  location  [description]
             * @return {string}            [description]
             */
            ValueAxis.prototype.getAnyRangePath = function (start, end, location) {
                var startPosition = this.valueToPosition(start);
                var endPosition = this.valueToPosition(end);
                return this.getPositionRangePath(startPosition, endPosition); // Base class (Axis) gets range shape from AxisRenderer
            };
            /**
             * Returns text to show in a axis tooltip, based on specific position within
             * axis.
             *
             * The label will be formatted as per [[NumberFormatter]] set for the whole
             * chart, or explicitly for this Axis.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (px)
             * @return {string}            Label (numeric value)
             */
            ValueAxis.prototype.getTooltipText = function (position) {
                var value = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](this.positionToValue(position), this._stepDecimalPlaces);
                return this.adapter.apply("getTooltipText", this.tooltip.numberFormatter.format(value));
            };
            /**
             * Zooms axis to specific values.
             *
             * @param {number}   startValue      Start value
             * @param {number}   endValue        End value
             * @param {boolean}  skipRangeEvent  Do not invoke events
             * @param {boolean}  instantly       Do not play zoom animations
             */
            ValueAxis.prototype.zoomToValues = function (startValue, endValue, skipRangeEvent, instantly) {
                var start = (startValue - this.min) / (this.max - this.min);
                var end = (endValue - this.min) / (this.max - this.min);
                this.zoom({ start: start, end: end }, skipRangeEvent, instantly);
            };
            Object.defineProperty(ValueAxis.prototype, "minZoomed", {
                /**
                 * A smallest value in axis scale within current zoom.
                 *
                 * @return {number} Min zoom value
                 */
                get: function () {
                    return _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](this.min, this._minZoomed);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxis.prototype, "maxZoomed", {
                /**
                 * A biggest value in axis scale within current zoom.
                 * @return {number} [description]
                 */
                get: function () {
                    return _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["min"](this.max, this._maxZoomed);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates positioning of Axis breaks after something changes.
             *
             * @ignore Exclude from docs
             */
            ValueAxis.prototype.fixAxisBreaks = function () {
                var _this = this;
                _super.prototype.fixAxisBreaks.call(this);
                // process breaks
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.axisBreaks.iterator(), function (axisBreak) {
                    var startValue = axisBreak.adjustedStartValue;
                    var endValue = axisBreak.adjustedEndValue;
                    // break difference
                    var axisBreakDif = endValue - startValue;
                    var axisBreakGridCount = Math.ceil(axisBreakDif / _this._step * axisBreak.breakSize);
                    // calculate min, max and step for axis break
                    var breakMinMaxStep = _this.adjustMinMax(startValue, endValue, axisBreakDif, axisBreakGridCount);
                    axisBreak.adjustedStep = breakMinMaxStep.step;
                    axisBreak.adjustedMin = breakMinMaxStep.min;
                    axisBreak.adjustedMax = breakMinMaxStep.max;
                });
                this._difference = this.adjustDifference(this.min, this.max);
            };
            /**
             * Returns value based on position.
             *
             * @param  {number}  position  Relative position on axis (0-1)
             * @return {string}            Position label
             */
            ValueAxis.prototype.getPositionLabel = function (position) {
                var value = this.positionToValue(position);
                return this.numberFormatter.format(value);
            };
            /**
             * Shows Axis tooltip at specific value
             *
             * @param {number} value Value
             */
            ValueAxis.prototype.showTooltipAt = function (value) {
                this.showTooltipAtPosition(this.valueToPosition(value));
            };
            /**
             * Copies all properties and related data from a different instance of Axis.
             *
             * @param {this} source Source Axis
             */
            ValueAxis.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.min = source.min;
                this.max = source.max;
                this.calculateTotals = source.calculateTotals;
                this._baseValue = source.baseValue;
            };
            return ValueAxis;
        }(_Axis__WEBPACK_IMPORTED_MODULE_1__["Axis"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["ValueAxis"] = ValueAxis;
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["ValueAxisDataItem"] = ValueAxisDataItem;
        //# sourceMappingURL=ValueAxis.js.map
        /***/ 
    }),
    /* 919 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueAxisBreak", function () { return ValueAxisBreak; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisBreak__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(915);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * A module which defines functionality related to Value Axis Break.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Base class to define "breaks" on value axis.
         *
         * A "break" can be used to "cut out" specific ranges of the axis scale, e.g.
         * when comparing columns with relatively similar values, it would make sense
         * to cut out their mid section, so that their tip differences are more
         * prominent.
         *
         * @see {@link IValueAxisBreakEvents} for a list of available events
         * @see {@link IValueAxisBreakAdapters} for a list of available Adapters
         * @important
         */
        var ValueAxisBreak = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ValueAxisBreak, _super);
            /**
             * Constructor
             */
            function ValueAxisBreak() {
                var _this = _super.call(this) || this;
                _this.className = "ValueAxisBreak";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ValueAxisBreak.prototype, "startPosition", {
                /**
                 * Pixel position of the break's start.
                 *
                 * @return {number} Position (px)
                 * @readonly
                 */
                get: function () {
                    if (this.axis) {
                        return this.axis.valueToPosition(this.adjustedStartValue);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ValueAxisBreak.prototype, "endPosition", {
                /**
                 * Pixel position of the break's end.
                 *
                 * @return {number} Position (px)
                 * @readonly
                 */
                get: function () {
                    if (this.axis) {
                        return this.axis.valueToPosition(this.adjustedEndValue);
                    }
                },
                enumerable: true,
                configurable: true
            });
            return ValueAxisBreak;
        }(_AxisBreak__WEBPACK_IMPORTED_MODULE_1__["AxisBreak"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["ValueAxisBreak"] = ValueAxisBreak;
        //# sourceMappingURL=ValueAxisBreak.js.map
        /***/ 
    }),
    /* 920 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateAxisDataItem", function () { return DateAxisDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateAxis", function () { return DateAxis; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ValueAxis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(918);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(760);
        /* harmony import */ var _DateAxisBreak__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(921);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(793);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(761);
        /**
         * DateAxis module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines data item for [[DateAxis]].
         *
         * @see {@link DataItem}
         */
        var DateAxisDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DateAxisDataItem, _super);
            /**
             * Constructor
             */
            function DateAxisDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "DateAxisDataItem";
                _this.applyTheme();
                _this.values.date = {};
                _this.values.endDate = {};
                return _this;
            }
            Object.defineProperty(DateAxisDataItem.prototype, "date", {
                /**
                 * @return {Date} Date
                 */
                get: function () {
                    return this.dates["date"];
                },
                /**
                 * Date position of the data item.
                 *
                 * @param {Date}  date  Date
                 */
                set: function (date) {
                    this.setDate("date", date);
                    this.value = date.getTime();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateAxisDataItem.prototype, "endDate", {
                /**
                 * @return {Date} End date
                 */
                get: function () {
                    return this.dates["endDate"];
                },
                /**
                 * End date for data item.
                 *
                 * @param {Date} date End date
                 */
                set: function (date) {
                    this.setDate("endDate", date);
                    this.endValue = date.getTime();
                },
                enumerable: true,
                configurable: true
            });
            return DateAxisDataItem;
        }(_ValueAxis__WEBPACK_IMPORTED_MODULE_1__["ValueAxisDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to create a date/time-based axis for the chart.
         *
         * ```TypeScript
         * // Create the axis
         * let xAxis = chart.xAxes.push(new am4charts.DateAxis());
         *
         * // Set settings
         * xAxis.title.text = "Time";
         * ```
         * ```JavaScript
         * // Create the axis
         * var valueAxis = chart.xAxes.push(new am4charts.DateAxis());
         *
         * // Set settings
         * valueAxis.title.text = "Time";
         * ```
         * ```JSON
         * "xAxes": [{
         *   "type": "DateAxis",
         *   "title": {
         *     "text": "Time"
         *   }
         * }]
         * ```
         *
         * @see {@link IDateAxisEvents} for a list of available Events
         * @see {@link IDateAxisAdapters} for a list of available Adapters
         * @important
         */
        var DateAxis = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DateAxis, _super);
            /**
             * Constructor
             */
            function DateAxis() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A list of date/time intervals for Date axis.
                 *
                 * This define various granularities available for the axis. For example
                 * if you have an axis spanning an hour, and space for 6 grid lines / labels
                 * the axis will choose the granularity of 10 minutes, displaying a label
                 * every 10 minutes.
                 *
                 * Default intervals:
                 *
                 * ```JSON
                 * [
                 *  { timeUnit: "millisecond", count: 1 },
                 *  { timeUnit: "millisecond", count: 5 },
                 *  { timeUnit: "millisecond", count: 10 },
                 *  { timeUnit: "millisecond", count: 50 },
                 *  { timeUnit: "millisecond", count: 100 },
                 *  { timeUnit: "millisecond", count: 500 },
                 *  { timeUnit: "second", count: 1 },
                 *  { timeUnit: "second", count: 5 },
                 *  { timeUnit: "second", count: 10 },
                 *  { timeUnit: "second", count: 30 },
                 *  { timeUnit: "minute", count: 1 },
                 *  { timeUnit: "minute", count: 5 },
                 *  { timeUnit: "minute", count: 10 },
                 *  { timeUnit: "minute", count: 30 },
                 *  { timeUnit: "hour", count: 1 },
                 *  { timeUnit: "hour", count: 3 },
                 *  { timeUnit: "hour", count: 6 },
                 *  { timeUnit: "hour", count: 12 },
                 *  { timeUnit: "day", count: 1 },
                 *  { timeUnit: "day", count: 2 },
                 *  { timeUnit: "day", count: 3 },
                 *  { timeUnit: "day", count: 4 },
                 *  { timeUnit: "day", count: 5 },
                 *  { timeUnit: "week", count: 1 },
                 *  { timeUnit: "month", count: 1 },
                 *  { timeUnit: "month", count: 2 },
                 *  { timeUnit: "month", count: 3 },
                 *  { timeUnit: "month", count: 6 },
                 *  { timeUnit: "year", count: 1 },
                 *  { timeUnit: "year", count: 2 },
                 *  { timeUnit: "year", count: 5 },
                 *  { timeUnit: "year", count: 10 },
                 *  { timeUnit: "year", count: 50 },
                 *  { timeUnit: "year", count: 100 }
                 * ]
                 * ```
                 *
                 * @type {List<ITimeInterval>}
                 */
                _this.gridIntervals = new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["List"]();
                /**
                 * A collection of date formats to use when formatting different time units
                 * on Date/time axis.
                 *
                 * Actual defaults will depend on the language locale set for the chart.
                 *
                 * To override format for a specific time unit, say days, you need to set
                 * the approperiate key to a format string. E.g.:
                 *
                 * ```TypeScript
                 * axis.dateFormats.setKey("day", "MMMM d, yyyy");
                 * ```
                 * ```JavaScript
                 * axis.dateFormats.setKey("day", "MMMM d, yyyy");
                 * ```
                 * ```JSON
                 * "xAxes": [{
                 *   "type": "DateAxis",
                 *   "dateFormats": {
                 *     "day": "MMMM d, yyyy"
                 *   }
                 * }]
                 * ```
                 *
                 * @see {@link DateFormatter}
                 * @type {Dictionary<TimeUnit, string>}
                 */
                _this.dateFormats = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["Dictionary"]();
                /**
                 * These formats are applied to labels that are first in a larger unit.
                 *
                 * For example, if we have a DateAxis with days on it, the first day of month
                 * indicates a break in month - a start of the bigger period.
                 *
                 * For those labels, `periodChangeDateFormats` are applied instead of
                 * `dateFormats`.
                 *
                 * This allows us implement convenient structures, like instead of:
                 *
                 * `Jan 1 - Jan 2 - Jan 3 - ...`
                 *
                 * We can have:
                 *
                 * `Jan - 1 - 2 - 3 - ...`
                 *
                 * This can be disabled by setting `markUnitChange = false`.
                 *
                 * @type {Dictionary<TimeUnit, string>}
                 */
                _this.periodChangeDateFormats = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["Dictionary"]();
                /**
                 * Actual interval (granularity) derived from the actual data.
                 *
                 * @type {ITimeInterval}
                 */
                _this._baseIntervalReal = { timeUnit: "day", count: 1 };
                /**
                 * [_minSeriesDifference description]
                 *
                 * @todo Description
                 * @type {number}
                 */
                _this._minSeriesDifference = Number.MAX_VALUE;
                /**
                 * A function which applies fills to axis cells.
                 *
                 * Default function fills every second fill. You can set this to a function
                 * that follows some other logic.
                 *
                 * Function should accept a [[DateAxisDataItem]] and modify its `axisFill`
                 * property accordingly.
                 *
                 * @type {function}
                 */
                _this.fillRule = function (dataItem) {
                    var value = dataItem.value;
                    var axis = dataItem.component;
                    var gridInterval = axis._gridInterval;
                    var gridDuration = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](gridInterval.timeUnit, gridInterval.count);
                    if (Math.round((value - axis.min) / gridDuration) / 2 == Math.round(Math.round((value - axis.min) / gridDuration) / 2)) {
                        dataItem.axisFill.__disabled = true;
                    }
                    else {
                        dataItem.axisFill.__disabled = false;
                    }
                };
                _this.className = "DateAxis";
                _this.setPropertyValue("markUnitChange", true);
                // Translatable defaults are applied in `applyInternalDefaults()`
                // ...
                // Define default intervals
                _this.gridIntervals.pushAll([
                    { timeUnit: "millisecond", count: 1 },
                    { timeUnit: "millisecond", count: 5 },
                    { timeUnit: "millisecond", count: 10 },
                    { timeUnit: "millisecond", count: 50 },
                    { timeUnit: "millisecond", count: 100 },
                    { timeUnit: "millisecond", count: 500 },
                    { timeUnit: "second", count: 1 },
                    { timeUnit: "second", count: 5 },
                    { timeUnit: "second", count: 10 },
                    { timeUnit: "second", count: 30 },
                    { timeUnit: "minute", count: 1 },
                    { timeUnit: "minute", count: 5 },
                    { timeUnit: "minute", count: 10 },
                    { timeUnit: "minute", count: 30 },
                    { timeUnit: "hour", count: 1 },
                    { timeUnit: "hour", count: 3 },
                    { timeUnit: "hour", count: 6 },
                    { timeUnit: "hour", count: 12 },
                    { timeUnit: "day", count: 1 },
                    { timeUnit: "day", count: 2 },
                    { timeUnit: "day", count: 3 },
                    { timeUnit: "day", count: 4 },
                    { timeUnit: "day", count: 5 },
                    { timeUnit: "week", count: 1 },
                    { timeUnit: "month", count: 1 },
                    { timeUnit: "month", count: 2 },
                    { timeUnit: "month", count: 3 },
                    { timeUnit: "month", count: 6 },
                    { timeUnit: "year", count: 1 },
                    { timeUnit: "year", count: 2 },
                    { timeUnit: "year", count: 5 },
                    { timeUnit: "year", count: 10 },
                    { timeUnit: "year", count: 50 },
                    { timeUnit: "year", count: 100 }
                ]);
                // Set field name
                _this.axisFieldName = "date";
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            DateAxis.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Set default date formats
                if (!this.dateFormats.hasKey("millisecond")) {
                    this.dateFormats.setKey("millisecond", this.language.translate("_date_millisecond"));
                }
                if (!this.dateFormats.hasKey("second")) {
                    this.dateFormats.setKey("second", this.language.translate("_date_second"));
                }
                if (!this.dateFormats.hasKey("minute")) {
                    this.dateFormats.setKey("minute", this.language.translate("_date_minute"));
                }
                if (!this.dateFormats.hasKey("hour")) {
                    this.dateFormats.setKey("hour", this.language.translate("_date_hour"));
                }
                if (!this.dateFormats.hasKey("day")) {
                    this.dateFormats.setKey("day", this.language.translate("_date_day"));
                }
                if (!this.dateFormats.hasKey("week")) {
                    this.dateFormats.setKey("week", this.language.translate("_date_day")); // not a mistake
                }
                if (!this.dateFormats.hasKey("month")) {
                    this.dateFormats.setKey("month", this.language.translate("_date_month"));
                }
                if (!this.dateFormats.hasKey("year")) {
                    this.dateFormats.setKey("year", this.language.translate("_date_year"));
                }
                if (!this.periodChangeDateFormats.hasKey("millisecond")) {
                    this.periodChangeDateFormats.setKey("millisecond", this.language.translate("_date_millisecond"));
                }
                if (!this.periodChangeDateFormats.hasKey("second")) {
                    this.periodChangeDateFormats.setKey("second", this.language.translate("_date_second"));
                }
                if (!this.periodChangeDateFormats.hasKey("minute")) {
                    this.periodChangeDateFormats.setKey("minute", this.language.translate("_date_minute"));
                }
                if (!this.periodChangeDateFormats.hasKey("hour")) {
                    this.periodChangeDateFormats.setKey("hour", this.language.translate("_date_hour"));
                }
                if (!this.periodChangeDateFormats.hasKey("day")) {
                    this.periodChangeDateFormats.setKey("day", this.language.translate("_date_day"));
                }
                if (!this.periodChangeDateFormats.hasKey("week")) {
                    this.periodChangeDateFormats.setKey("week", this.language.translate("_date_day"));
                }
                if (!this.periodChangeDateFormats.hasKey("month")) {
                    this.periodChangeDateFormats.setKey("month", this.language.translate("_date_month") + " " + this.language.translate("_date_year"));
                }
            };
            /**
             * Returns a new/empty [[DataItem]] of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {DateAxisDataItem} Data Item
             */
            DateAxis.prototype.createDataItem = function () {
                return new DateAxisDataItem();
            };
            /**
             * Returns a new/empty [[AxisBreak]] of the appropriate type.
             *
             * @return {DateAxisBreak} Axis break
             */
            DateAxis.prototype.createAxisBreak = function () {
                return new _DateAxisBreak__WEBPACK_IMPORTED_MODULE_4__["DateAxisBreak"]();
            };
            /**
             * Validates Axis' data items.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.validateDataItems = function () {
                // allows to keep selection of the same size
                var start = this.start;
                var end = this.end;
                var periodCount = (this.max - this.min) / this.baseDuration;
                _super.prototype.validateDataItems.call(this);
                this.maxZoomFactor = (this.max - this.min) / this.baseDuration;
                // allows to keep selection of the same size
                var newPeriodCount = (this.max - this.min) / this.baseDuration;
                start = start + (end - start) * (1 - periodCount / newPeriodCount);
                this.zoom({ start: start, end: end }, false, true); // added instantlyto solve zoomout problem when we have axes gaps. @todo: check how this affects maxZoomFactor
            };
            /**
             * Handles process after zoom.
             *
             * @ignore Exclude from docs
             * @todo Does nothing?
             */
            DateAxis.prototype.handleSelectionExtremesChange = function () {
            };
            /**
             * Calculates all positions, related to axis as per current zoom.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.calculateZoom = function () {
                var _this = this;
                _super.prototype.calculateZoom.call(this);
                var gridInterval = this.chooseInterval(0, this.adjustDifference(this._minZoomed, this._maxZoomed), this._gridCount);
                if (_core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](gridInterval.timeUnit, gridInterval.count) < this.baseDuration) {
                    gridInterval = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, this.baseInterval);
                }
                this._gridInterval = gridInterval;
                this._gridDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](new Date(this.min), gridInterval.timeUnit);
                this._nextGridUnit = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getNextUnit"](gridInterval.timeUnit);
                // the following is needed to avoid grid flickering while scrolling
                this._intervalDuration = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](gridInterval.timeUnit, gridInterval.count);
                var count = Math.ceil(this._difference / this._intervalDuration);
                count = Math.floor(this.start * count) - 3; // some extra is needed
                _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](this._gridDate, gridInterval.timeUnit, count * gridInterval.count);
                // tell series start/end
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    if (series.baseAxis == _this) {
                        var field_1 = series.getAxisField(_this);
                        // TODO use $type.castNumber ?
                        var startIndex = series.dataItems.findClosestIndex(_this._minZoomed, function (x) { return x[field_1]; }, "left");
                        // 1 millisecond is removed so that if only first item is selected, it would not count in the second.
                        var endIndex = series.dataItems.findClosestIndex(_this._maxZoomed - 1, function (x) { return x[field_1]; }, "left") + 1;
                        series.startIndex = startIndex;
                        series.endIndex = endIndex;
                    }
                });
            };
            /**
             * (Re)validates data.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.validateData = function () {
                _super.prototype.validateData.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.baseInterval.count)) {
                    this.baseInterval.count = 1;
                }
            };
            /**
             * [dataChangeUpdate description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            DateAxis.prototype.dataChangeUpdate = function () {
                _super.prototype.dataChangeUpdate.call(this);
                this._minSeriesDifference = Number.MAX_VALUE;
                // use day duration if only one item. as this method is called before data is processed, we check data.length and not dataItems.length
                var hasMoreThanOne = false;
                if (this.chart.data.length > 1) {
                    return;
                }
                else {
                    this.series.each(function (series) {
                        if (series.data.length > 1) {
                            hasMoreThanOne = true;
                        }
                    });
                }
                if (!hasMoreThanOne) {
                    this._minSeriesDifference = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"]("day");
                }
            };
            /**
             * [postProcessSeriesDataItems description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            DateAxis.prototype.postProcessSeriesDataItems = function () {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](series.dataItems.iterator(), function (dataItem) {
                        _this.postProcessSeriesDataItem(dataItem);
                    });
                });
                this.addEmptyUnitsBreaks();
            };
            /**
             * [postProcessSeriesDataItem description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {XYSeriesDataItem} dataItem Data item
             */
            DateAxis.prototype.postProcessSeriesDataItem = function (dataItem) {
                var _this = this;
                // we need to do this for all series data items not only added recently, as baseInterval might change
                var baseInterval = this.baseInterval;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_10__["each"](dataItem.dates, function (key) {
                    //for (let key in dataItem.dates) {
                    var date = dataItem.getDate(key);
                    var startDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](_core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](date), baseInterval.timeUnit, baseInterval.count);
                    var endDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](_core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](startDate), baseInterval.timeUnit, baseInterval.count);
                    dataItem.setCalculatedValue(key, startDate.getTime(), "open");
                    dataItem.setCalculatedValue(key, endDate.getTime(), "close");
                    var series = dataItem.component;
                    series.dataItemsByAxis.getKey(_this.uid).setKey(startDate.getTime().toString(), dataItem);
                });
            };
            /**
             * Collapses empty stretches of date/time scale by creating [[AxisBreak]]
             * elements for them.
             *
             * Can be used to automatically remove strethes without data, like weekends.
             *
             * No, need to call this manually. It will automatically be done if
             * `skipEmptyPeriods = true`.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.addEmptyUnitsBreaks = function () {
                var _this = this;
                if (this.skipEmptyPeriods && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.min) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.max)) {
                    var timeUnit = this.baseInterval.timeUnit;
                    var count = this.baseInterval.count;
                    this.axisBreaks.clear(); // TODO: what about breaks added by user?
                    var date = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](new Date(this.min), timeUnit, count);
                    var axisBreak = void 0;
                    var _loop_1 = function () {
                        _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](date, timeUnit, count);
                        var startTime = date.getTime();
                        var startTimeStr = startTime.toString();
                        var hasData = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["contains"](this_1.series.iterator(), function (series) {
                            return !!series.dataItemsByAxis.getKey(_this.uid).getKey(startTimeStr);
                        });
                        // open break if not yet opened
                        if (!hasData) {
                            if (!axisBreak) {
                                axisBreak = this_1.axisBreaks.create();
                                axisBreak.startDate = new Date(startTime);
                            }
                        }
                        else {
                            // close if already opened
                            if (axisBreak) {
                                // close at end time minus one millisecond
                                axisBreak.endDate = new Date(startTime - 1);
                                axisBreak = undefined;
                            }
                        }
                    };
                    var this_1 = this;
                    while (date.getTime() < this.max - this.baseDuration) {
                        _loop_1();
                    }
                }
            };
            /**
             * Updates positioning of Axis breaks after something changes.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.fixAxisBreaks = function () {
                var _this = this;
                _super.prototype.fixAxisBreaks.call(this);
                var axisBreaks = this._axisBreaks;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](axisBreaks.iterator(), function (axisBreak) {
                    var breakGridCount = _this._gridCount * (Math.min(_this.end, axisBreak.endPosition) - Math.max(_this.start, axisBreak.startPosition)) / (_this.end - _this.start);
                    axisBreak.gridInterval = _this.chooseInterval(0, axisBreak.adjustedEndValue - axisBreak.adjustedStartValue, breakGridCount);
                    axisBreak.gridDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](new Date(axisBreak.adjustedStartValue), axisBreak.gridInterval.timeUnit);
                });
            };
            /**
             * [getGridDate description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {Date}    date           [description]
             * @param  {number}  intervalCount  [description]
             * @return {Date}                   [description]
             */
            DateAxis.prototype.getGridDate = function (date, intervalCount) {
                var timeUnit = this._gridInterval.timeUnit;
                var realIntervalCount = this._gridInterval.count;
                // round date
                _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](date, timeUnit);
                var prevTimestamp = date.getTime();
                var newDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](date);
                // modify date by adding intervalcount
                var timestamp = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](newDate, timeUnit, intervalCount).getTime();
                // if it's axis break, get first rounded date which is not in a break
                var axisBreak = this.isInBreak(timestamp);
                if (axisBreak) {
                    newDate = this.getBreaklessDate(axisBreak, this.baseInterval.timeUnit, this.baseInterval.count);
                    timestamp = newDate.getTime();
                }
                // get duration between grid lines with break duration removed
                var durationBreaksRemoved = this.adjustDifference(prevTimestamp, timestamp);
                // calculate how many time units fit to this duration
                var countBreaksRemoved = Math.round(durationBreaksRemoved / _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](timeUnit));
                // if less units fit, add one and repeat
                if (countBreaksRemoved < realIntervalCount) {
                    return this.getGridDate(date, intervalCount + 1);
                }
                return newDate;
            };
            /**
             * [getBreaklessDate description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {DateAxisBreak}  axisBreak  [description]
             * @param  {TimeUnit}       timeUnit   [description]
             * @param  {number}         count      [description]
             * @return {Date}                      [description]
             */
            DateAxis.prototype.getBreaklessDate = function (axisBreak, timeUnit, count) {
                var date = new Date(axisBreak.endValue);
                _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](date, timeUnit, count);
                _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](date, timeUnit, count);
                var timestamp = date.getTime();
                axisBreak = this.isInBreak(timestamp);
                if (axisBreak) {
                    return this.getBreaklessDate(axisBreak, timeUnit, count);
                }
                return date;
            };
            /**
             * (Re)validates all Axis elements.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             */
            DateAxis.prototype.validateAxisElements = function () {
                var _this = this;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.max) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.min)) {
                    this.calculateZoom();
                    // first regular items
                    var timestamp = this._gridDate.getTime();
                    var timeUnit = this._gridInterval.timeUnit;
                    var intervalCount = this._gridInterval.count;
                    var prevGridDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](this._gridDate);
                    var dataItemsIterator_1 = this._dataItemsIterator;
                    this.resetIterators();
                    var _loop_2 = function () {
                        var date = this_2.getGridDate(new Date(prevGridDate), intervalCount);
                        timestamp = date.getTime();
                        var endDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](date); // you might think it's easier to add intervalduration to timestamp, however it won't work for months or years which are not of the same length
                        endDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](endDate, timeUnit, intervalCount);
                        var format = this_2.dateFormats.getKey(timeUnit);
                        if (this_2.markUnitChange && prevGridDate) {
                            if (_core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["checkChange"](date, prevGridDate, this_2._nextGridUnit)) {
                                if (timeUnit !== "year") {
                                    format = this_2.periodChangeDateFormats.getKey(timeUnit);
                                }
                            }
                        }
                        var text = this_2.dateFormatter.format(date, format);
                        var dataItem = dataItemsIterator_1.find(function (x) { return x.text === text; });
                        this_2.appendDataItem(dataItem);
                        dataItem.axisBreak = undefined;
                        dataItem.date = date;
                        dataItem.endDate = endDate;
                        dataItem.text = text;
                        prevGridDate = date;
                        this_2.validateDataElement(dataItem);
                    };
                    var this_2 = this;
                    while (timestamp <= this._maxZoomed) {
                        _loop_2();
                    }
                    // breaks later
                    var renderer_1 = this.renderer;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.axisBreaks.iterator(), function (axisBreak) {
                        if (axisBreak.breakSize > 0) {
                            var timeUnit_1 = axisBreak.gridInterval.timeUnit;
                            var intervalCount_1 = axisBreak.gridInterval.count;
                            // only add grid if gap is bigger then minGridDistance
                            if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_9__["getDistance"](axisBreak.startPoint, axisBreak.endPoint) > renderer_1.minGridDistance) {
                                var timestamp_1 = axisBreak.gridDate.getTime();
                                var prevGridDate_1;
                                var count = 0;
                                var _loop_3 = function () {
                                    var date = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](axisBreak.gridDate);
                                    timestamp_1 = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](date, timeUnit_1, intervalCount_1 * count).getTime();
                                    count++;
                                    if (timestamp_1 > axisBreak.adjustedStartValue && timestamp_1 < axisBreak.adjustedEndValue) {
                                        var endDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["copy"](date); // you might think it's easier to add intervalduration to timestamp, however it won't work for months or years which are not of the same length
                                        endDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](endDate, timeUnit_1, intervalCount_1);
                                        var format = _this.dateFormats.getKey(timeUnit_1);
                                        if (_this.markUnitChange && prevGridDate_1) {
                                            if (_core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["checkChange"](date, prevGridDate_1, _this._nextGridUnit)) {
                                                if (timeUnit_1 !== "year") {
                                                    format = _this.periodChangeDateFormats.getKey(timeUnit_1);
                                                }
                                            }
                                        }
                                        var text_1 = _this.dateFormatter.format(date, format);
                                        var dataItem = dataItemsIterator_1.find(function (x) { return x.text === text_1; });
                                        //this.processDataItem(dataItem);
                                        _this.appendDataItem(dataItem);
                                        dataItem.axisBreak = axisBreak;
                                        axisBreak.dataItems.moveValue(dataItem);
                                        dataItem.date = date;
                                        dataItem.endDate = endDate;
                                        dataItem.text = text_1;
                                        prevGridDate_1 = date;
                                        _this.validateDataElement(dataItem);
                                    }
                                };
                                while (timestamp_1 <= axisBreak.adjustedMax) {
                                    _loop_3();
                                }
                            }
                        }
                    });
                }
            };
            /**
             * Validates Axis data item.
             *
             * @ignore Exclude from docs
             * @param {DateAxisDataItem} dataItem Data item
             */
            DateAxis.prototype.validateDataElement = function (dataItem) {
                //super.validateDataElement(dataItem);
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.max) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](this.min)) {
                    var renderer = this.renderer;
                    var timestamp = dataItem.value;
                    var endTimestamp = dataItem.endValue;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](endTimestamp)) {
                        endTimestamp = timestamp;
                    }
                    var position = this.valueToPosition(timestamp);
                    var endPosition = this.valueToPosition(endTimestamp);
                    dataItem.position = position;
                    var tick = dataItem.tick;
                    if (tick && !tick.disabled) {
                        renderer.updateTickElement(tick, position, endPosition);
                    }
                    var grid = dataItem.grid;
                    if (grid && !grid.disabled) {
                        renderer.updateGridElement(grid, position, endPosition);
                    }
                    var fill = dataItem.axisFill;
                    if (fill && !fill.disabled) {
                        renderer.updateFillElement(fill, position, endPosition);
                        if (!dataItem.isRange) {
                            this.fillRule(dataItem);
                        }
                    }
                    var mask = dataItem.mask;
                    if (mask) {
                        renderer.updateFillElement(mask, position, endPosition);
                    }
                    var label = dataItem.label;
                    if (label && !label.disabled) {
                        var location_1 = label.location;
                        if (location_1 == 0) {
                            if (this._gridInterval.count == 1 && this._gridInterval.timeUnit != "week" && !dataItem.isRange) {
                                location_1 = 0.5;
                            }
                            else {
                                location_1 = 0;
                            }
                        }
                        renderer.updateLabelElement(label, position, endPosition, location_1);
                    }
                }
            };
            Object.defineProperty(DateAxis.prototype, "baseDuration", {
                /**
                 * A duration in milliseconds of the `baseInterval`.
                 *
                 * @return {number} Duration (ms)
                 */
                get: function () {
                    return _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](this.baseInterval.timeUnit, this.baseInterval.count);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Adjusts min/max values.
             *
             * @ignore Exclude from docs.
             * @todo Description (review)
             * @param  {number}       min  Min timestamp
             * @param  {number}       max  Max timestamp
             * @return {IMinMaxStep}       Adjusted min/max step
             */
            DateAxis.prototype.adjustMinMax = function (min, max) {
                return { min: min, max: max, step: this.baseDuration };
            };
            /**
             * Adjusts the minimum timestamp as per cell start location.
             *
             * @param  {number}  value  Value
             * @return {number}         Adjusted value
             */
            DateAxis.prototype.fixMin = function (value) {
                return value + this.baseDuration * this.startLocation;
            };
            /**
             * Adjusts the maximum timestamp as per cell start location.
             *
             * @param  {number}  value  Value
             * @return {number}         Adjusted value
             */
            DateAxis.prototype.fixMax = function (value) {
                return value + this.baseDuration * this.endLocation;
            };
            /**
             * [chooseInterval description]
             *
             * @ignore Exclude from docs.
             * @todo Description
             * @param  {number}         index      [description]
             * @param  {number}         duration   [description]
             * @param  {number}         gridCount  [description]
             * @return {ITimeInterval}             [description]
             */
            DateAxis.prototype.chooseInterval = function (index, duration, gridCount) {
                var gridIntervals = this.gridIntervals;
                var gridInterval = gridIntervals.getIndex(index);
                var intervalDuration = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"](gridInterval.timeUnit, gridInterval.count);
                var lastIndex = gridIntervals.length - 1;
                if (index >= lastIndex) {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, gridIntervals.getIndex(lastIndex));
                }
                var count = Math.ceil(duration / intervalDuration);
                if (duration < intervalDuration && index > 0) {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, gridIntervals.getIndex(index - 1));
                }
                if (count <= gridCount) {
                    return tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, gridIntervals.getIndex(index));
                }
                else {
                    if (index + 1 < gridIntervals.length) {
                        return this.chooseInterval(index + 1, duration, gridCount);
                    }
                    else {
                        return tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, gridIntervals.getIndex(index));
                    }
                }
            };
            /**
             * Formats the value according to axis' own [[DateFormatter]].
             *
             * @param  {number}  value  Source value
             * @return {string}         Formatted value
             */
            DateAxis.prototype.formatLabel = function (value) {
                return this.dateFormatter.format(value);
            };
            /**
             * Converts a Date to an asbolute pixel position within Axis.
             *
             * @param  {Date}    date  Date
             * @return {number}        Position (px)
             */
            DateAxis.prototype.dateToPosition = function (date) {
                return this.valueToPosition(date.getTime());
            };
            /**
             * Converts a numeric timestamp or a `Date` to a relative position on axis.
             *
             * @param  {Date | number}  date  Date or a timestamp
             * @return {number}               Relative position
             */
            DateAxis.prototype.anyToPosition = function (date) {
                if (date instanceof Date) {
                    return this.dateToPosition(date);
                }
                else {
                    return this.valueToPosition(date);
                }
            };
            /**
             * Converts date to orientation point (x, y, angle) on axis
             *
             * @param  {Date}  date Date
             * @return {IOrientationPoint} IOrientationPoint
             */
            DateAxis.prototype.dateToPoint = function (date) {
                var position = this.dateToPosition(date);
                var point = this.renderer.positionToPoint(position);
                var angle = this.renderer.positionToAngle(position);
                return { x: point.x, y: point.y, angle: angle };
            };
            /**
             * Converts a numeric value to orientation (x, y, angle) point on axis
             *
             * @param  {number}  value  Value
             * @return {IOrientationPoint}  Orientation point
             */
            DateAxis.prototype.anyToPoint = function (date) {
                if (date instanceof Date) {
                    return this.dateToPoint(date);
                }
                else {
                    return this.valueToPoint(date);
                }
            };
            /**
             * Converts pixel position within Axis to a corresponding Date.
             *
             * @param  {number}  position  Position (px)
             * @return {Date}              Date
             */
            DateAxis.prototype.positionToDate = function (position) {
                return new Date(this.positionToValue(position));
            };
            /**
             * Returns the X coordinate for series' data item's value.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @return {number}                      X coordinate (px)
             */
            DateAxis.prototype.getX = function (dataItem, key, location) {
                var value = this.getTimeByLocation(dataItem, key, location);
                //let stack: number = dataItem.getValue("valueX", "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](value)) {
                    value = this.baseValue;
                }
                return this.renderer.positionToPoint(this.valueToPosition(value)).x;
            };
            /**
             * Returns the Y coordinate for series' data item's value.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @return {number}                      Y coordinate (px)
             */
            DateAxis.prototype.getY = function (dataItem, key, location) {
                var value = this.getTimeByLocation(dataItem, key, location);
                var stack = dataItem.getValue("valueX", "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](value)) {
                    value = this.baseValue;
                }
                return this.renderer.positionToPoint(this.valueToPosition(value + stack)).y;
            };
            /**
             * Returns an angle for series data item.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {XYSeriesDataItem}  dataItem  Data item
             * @param  {string}            key       Data field to get value from
             * @param  {number}            location  Location (0-1)
             * @param  {string}            stackKey  Stack ID
             * @return {number}                      Angle
             */
            DateAxis.prototype.getAngle = function (dataItem, key, location, stackKey) {
                var value = this.getTimeByLocation(dataItem, key, location);
                var stack = dataItem.getValue(stackKey, "stack");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](value)) {
                    value = this.baseValue;
                }
                return this.positionToAngle(this.valueToPosition(value + stack));
            };
            /**
             * [getTimeByLocation description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {XYSeriesDataItem}  dataItem  [description]
             * @param  {string}            key       [description]
             * @param  {number}            location  [description]
             * @return {number}                      [description]
             */
            DateAxis.prototype.getTimeByLocation = function (dataItem, key, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](key)) {
                    return;
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](location)) {
                    location = dataItem.workingLocations[key];
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](location)) {
                        location = 0;
                    }
                }
                var startTime = dataItem.values[key]["open"];
                var endTime = dataItem.values[key]["close"];
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](startTime) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](endTime)) {
                    return startTime + (endTime - startTime) * location;
                }
            };
            /**
             * Processes a related series' data item.
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param {XYSeriesDataItem}  dataItem  Data item
             */
            DateAxis.prototype.processSeriesDataItem = function (dataItem, axisLetter) {
                var series = dataItem.component;
                var time;
                var date = dataItem["date" + axisLetter];
                if (date) {
                    time = date.getTime();
                }
                else {
                    return;
                }
                var openDate = dataItem["openDate" + axisLetter];
                var prevSeriesTime = this._prevSeriesTime;
                var openTime;
                if (openDate) {
                    openTime = openDate.getTime();
                }
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](openTime)) {
                    var difference = Math.abs(time - openTime);
                    if (this._minSeriesDifference > difference) {
                        this._minSeriesDifference = difference;
                    }
                }
                var differece = time - prevSeriesTime;
                if (differece > 0) {
                    if (this._minSeriesDifference > differece) {
                        this._minSeriesDifference = differece;
                    }
                }
                this._prevSeriesTime = time;
            };
            /**
             * [updateAxisBySeries description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            DateAxis.prototype.updateAxisBySeries = function () {
                _super.prototype.updateAxisBySeries.call(this);
                var baseInterval = this.chooseInterval(0, this._minSeriesDifference, 1);
                // handle short months
                if (this._minSeriesDifference >= _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"]("day", 27) && baseInterval.timeUnit == "week") {
                    baseInterval.timeUnit = "month";
                }
                // handle daylight saving
                if (this._minSeriesDifference >= _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["getDuration"]("hour", 23) && baseInterval.timeUnit == "hour") {
                    baseInterval.timeUnit = "day";
                }
                baseInterval.count = 1; // good
                this._baseIntervalReal = baseInterval;
                // no need to invalidate
            };
            Object.defineProperty(DateAxis.prototype, "baseInterval", {
                /**
                 * @return {ITimeInterval} Base interval
                 */
                get: function () {
                    if (this._baseInterval) {
                        return this._baseInterval;
                    }
                    else {
                        return this._baseIntervalReal;
                    }
                },
                /**
                 * A base interval (granularity) of data.
                 *
                 * Used to indicate what are the base units of your data.
                 *
                 * For example, if you have a data set that has a data point every 5 minutes,
                 * you may want to set this to `{ timeUnit: "minute", count: 5 }`.
                 *
                 * If not set, the Axis will try to determine the setting by its own, looking
                 * at actual data.
                 *
                 * @param {ITimeInterval} timeInterval base interval
                 */
                set: function (timeInterval) {
                    this._baseInterval = timeInterval;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateAxis.prototype, "skipEmptyPeriods", {
                /**
                 * @return {boolean} Remove empty stretches of time?
                 */
                get: function () {
                    return this.getPropertyValue("skipEmptyPeriods");
                },
                /**
                 * If enabled, axis will automatically collapse empty (without data points)
                 * periods of time, i.e. weekends.
                 *
                 * An "empty" period is considered a stretch of time in the length of current
                 * `baseInterval` without a single data point in it.
                 *
                 * For each such empty period, axis will automatically create an
                 * [[AxisBreak]]. By default they will be invisible. You can still configure
                 * them by accessing `axis.breaks.template`.
                 *
                 * [More info about breaks](https://www.amcharts.com/docs/v4/concepts/axes/#Breaks).
                 *
                 * Important notes:
                 * * If you set this property to `true`, you can not add your custom axis breaks to this axis anymore.
                 * * Using this feature affects performance. Use only if you need it.
                 * * Setting this to `true` will reset appearance of breaks. If you want to modify appearance, do it *after* you set `skipEmptyPeriods`.
                 *
                 * @param {boolean}  value  Remove empty stretches of time?
                 */
                set: function (value) {
                    if (this.setPropertyValue("skipEmptyPeriods", value)) {
                        this.invalidateData();
                    }
                    if (value) {
                        var breakTemplate = this.axisBreaks.template;
                        breakTemplate.startLine.disabled = true;
                        breakTemplate.endLine.disabled = true;
                        breakTemplate.fillShape.disabled = true;
                        breakTemplate.breakSize = 0;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateAxis.prototype, "tooltipDateFormat", {
                /**
                 * @return {string} Date format
                 */
                get: function () {
                    return this.getPropertyValue("tooltipDateFormat");
                },
                /**
                 * A special date format to apply axis tooltips.
                 *
                 * Will use same format as for labels, if not set.
                 *
                 * @param {string}  value  Date format
                 */
                set: function (value) {
                    this.setPropertyValue("tooltipDateFormat", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateAxis.prototype, "markUnitChange", {
                /**
                 * @return {boolean} Use different format for period beginning?
                 */
                get: function () {
                    return this.getPropertyValue("markUnitChange");
                },
                /**
                 * Use `changeDateFormats` to apply different formats to the first label in
                 * bigger time unit.
                 *
                 * @default true
                 * @param {boolean}  value  Use different format for period beginning?
                 */
                set: function (value) {
                    if (this.setPropertyValue("markUnitChange", value)) {
                        this.invalidateData();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns text to show in a tooltip, based on specific relative position within axis.
             *
             * The label will be formatted as per [[DateFormatter]] set for the whole
             * chart, or explicitly for this Axis.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position
             * @return {string}            Label (formatted date)
             */
            DateAxis.prototype.getTooltipText = function (position) {
                var text;
                var date = this.positionToDate(position);
                date = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](date, this.baseInterval.timeUnit, this.baseInterval.count);
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this.tooltipDateFormat)) {
                    text = this.dateFormatter.format(date, this.tooltipDateFormat);
                }
                else {
                    var dateFormat = this.dateFormats.getKey(this.baseInterval.timeUnit);
                    if (dateFormat) {
                        text = this.dateFormatter.format(date, dateFormat);
                    }
                    else {
                        text = this.getPositionLabel(position);
                    }
                }
                return this.adapter.apply("getTooltipText", text);
            };
            /**
             * Takes an absolute position within axis and adjust it to a specific position within base interval. (cell)
             *
             * @ignore Exclude from docs
             * @param  {number}            position Source position
             * @param  {AxisItemLocation}  location  Location in the cell
             * @return {number}            Adjusted position
             */
            DateAxis.prototype.roundPosition = function (position, location) {
                var baseInterval = this.baseInterval;
                var timeUnit = baseInterval.timeUnit;
                var count = baseInterval.count;
                var date = this.positionToDate(position);
                _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](date, timeUnit, count);
                if (location > 0) {
                    _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](date, timeUnit, location);
                }
                if (this.isInBreak(date.getTime())) {
                    while (date.getTime() < this.max) {
                        _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](date, timeUnit, count);
                        if (this.isInBreak(date.getTime())) {
                            break;
                        }
                    }
                }
                return this.dateToPosition(date);
            };
            /**
             * Returns an relative position of the start of the cell (period), that specific position value falls into.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {number}  position  Relative position
             * @return {number}            Cell start relative position
             */
            DateAxis.prototype.getCellStartPosition = function (position) {
                return this.roundPosition(position, 0);
            };
            /**
             * Returns an relative position of the end of the cell (period), that specific position value falls into.
             *
             * @ignore Exclude from docs
             * @todo Description (review)
             * @param  {number}  position  Relative position
             * @return {number}            Cell end relative position
             */
            DateAxis.prototype.getCellEndPosition = function (position) {
                return this.roundPosition(position, 1);
                //return this.dateToPosition($time.add(this.positionToDate(this.roundPosition(position, 1)), this.baseInterval.timeUnit, this.baseInterval.count));
            };
            /**
             * Returns a Series data item that corresponds to the specific pixel position
             * of the Axis.
             *
             * @param  {XYSeries}          series    Series
             * @param  {number}            position  Position (px)
             * @return {XYSeriesDataItem}            Data item
             */
            DateAxis.prototype.getSeriesDataItem = function (series, position) {
                var value = this.positionToValue(position);
                var date = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["round"](new Date(value), this.baseInterval.timeUnit, this.baseInterval.count);
                var dataItem = series.dataItemsByAxis.getKey(this.uid).getKey(date.getTime().toString());
                // todo:  alternatively we can find closiest here
                if (!dataItem) {
                    // to the left
                    var leftCount = 0;
                    var leftDataItem = void 0;
                    var leftDate = new Date(date.getTime());
                    while (leftDate.getTime() > this.minZoomed) {
                        leftDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](leftDate, this.baseInterval.timeUnit, -this.baseInterval.count);
                        leftDataItem = series.dataItemsByAxis.getKey(this.uid).getKey(leftDate.getTime().toString());
                        if (leftDataItem) {
                            break;
                        }
                        leftCount++;
                        if (leftCount > 5000) {
                            break;
                        }
                    }
                    var rightCount = 0;
                    var rightDataItem = void 0;
                    var rightDate = new Date(date.getTime());
                    while (rightDate.getTime() < this.maxZoomed) {
                        rightDate = _core_utils_Time__WEBPACK_IMPORTED_MODULE_6__["add"](rightDate, this.baseInterval.timeUnit, this.baseInterval.count);
                        rightDataItem = series.dataItemsByAxis.getKey(this.uid).getKey(rightDate.getTime().toString());
                        if (rightDataItem) {
                            break;
                        }
                        rightCount++;
                        if (rightCount > 5000) {
                            break;
                        }
                    }
                    if (leftDataItem && !rightDataItem) {
                        return leftDataItem;
                    }
                    else if (!leftDataItem && rightDataItem) {
                        return rightDataItem;
                    }
                    else if (leftDataItem && rightDataItem) {
                        if (leftCount < rightCount) {
                            return leftDataItem;
                        }
                        else {
                            return rightDataItem;
                        }
                    }
                }
                return dataItem;
            };
            /**
             * Returns a formatted date based on position in axis scale.
             *
             * @param  {number}  position  Relative position on axis (0-1)
             * @return {string}            Position label
             * @todo Better format recognition
             */
            DateAxis.prototype.getPositionLabel = function (position) {
                var date = this.positionToDate(position);
                return this.dateFormatter.format(date, this.getCurrentLabelFormat());
            };
            /**
             * Returns label date format based on currently used time units
             *
             * @return {string}  Format
             */
            DateAxis.prototype.getCurrentLabelFormat = function () {
                return this.dateFormats.getKey(this._gridInterval ? this._gridInterval.timeUnit : "day");
            };
            /**
             * Initializes an Axis renderer.
             *
             * @ignore Exclude from docs
             */
            DateAxis.prototype.initRenderer = function () {
                _super.prototype.initRenderer.call(this);
                var renderer = this.renderer;
                if (renderer) {
                    // Set defaults
                    renderer.ticks.template.location = 0;
                    renderer.grid.template.location = 0;
                    renderer.labels.template.location = 0;
                    renderer.baseGrid.disabled = true;
                }
            };
            Object.defineProperty(DateAxis.prototype, "basePoint", {
                /**
                 * Coordinates of the actual axis start.
                 *
                 * @ignore Exclude from docs
                 * @return {IPoint} Base point
                 */
                get: function () {
                    return { x: 0, y: 0 };
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Zooms axis to specific Dates.
             *
             * @param {Date}     startDate       Start date
             * @param {Date}     endValue        End date
             * @param {boolean}  skipRangeEvent  Do not invoke events
             * @param {boolean}  instantly       Do not play zoom animations
             */
            DateAxis.prototype.zoomToDates = function (startDate, endDate, skipRangeEvent, instantly) {
                startDate = this.dateFormatter.parse(startDate);
                endDate = this.dateFormatter.parse(endDate);
                this.zoomToValues(startDate.getTime(), endDate.getTime(), skipRangeEvent, instantly);
            };
            /**
             * Adds `baseInterval` to "as is" fields.
             *
             * @param  {string}   field  Field name
             * @return {boolean}         Assign as is?
             */
            DateAxis.prototype.asIs = function (field) {
                return field == "baseInterval" || _super.prototype.asIs.call(this, field);
            };
            /**
             * Copies all properties and related data from a different instance of Axis.
             *
             * @param {this} source Source Axis
             */
            DateAxis.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.dateFormats = source.dateFormats;
                this.periodChangeDateFormats = source.periodChangeDateFormats;
                if (source["_baseInterval"]) {
                    this.baseInterval = source.baseInterval;
                }
            };
            return DateAxis;
        }(_ValueAxis__WEBPACK_IMPORTED_MODULE_1__["ValueAxis"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["DateAxis"] = DateAxis;
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["DateAxisDataItem"] = DateAxisDataItem;
        //# sourceMappingURL=DateAxis.js.map
        /***/ 
    }),
    /* 921 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateAxisBreak", function () { return DateAxisBreak; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ValueAxisBreak__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(919);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /**
         * DateAxisBreak includes functionality to add breaks on a [[DateAxis]].
         *
         * A "break" can be used to "cut out" specific ranges of the axis scale, e.g.
         * weekends and holidays out of the Date-based axis.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to define breaks for [[DateAxis]].
         *
         * A "break" can be used to "cut out" specific ranges of the axis scale, e.g.
         * weekends and holidays out of the Date-based axis.
         *
         * @see {@link IDateAxisBreakEvents} for a list of available events
         * @see {@link IDateAxisBreakAdapters} for a list of available Adapters
         * @important
         */
        var DateAxisBreak = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DateAxisBreak, _super);
            /**
             * Constructor
             */
            function DateAxisBreak() {
                var _this = _super.call(this) || this;
                _this.className = "DateAxisBreak";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(DateAxisBreak.prototype, "startDate", {
                /**
                 * @return {Date} Start date
                 */
                get: function () {
                    return this.getPropertyValue("startDate");
                },
                /**
                 * Starting date for the break.
                 *
                 * @param {Date} value Start date
                 */
                set: function (value) {
                    if (this.setPropertyValue("startDate", value)) {
                        this.startValue = value.getTime();
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(DateAxisBreak.prototype, "endDate", {
                /**
                 * @return {Date} End date
                 */
                get: function () {
                    return this.getPropertyValue("endDate");
                },
                /**
                 * Ending date for the break.
                 *
                 * @param {Date} value End date
                 */
                set: function (value) {
                    if (this.setPropertyValue("endDate", value)) {
                        this.endValue = value.getTime();
                        if (this.axis) {
                            this.axis.invalidateDataRange();
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            return DateAxisBreak;
        }(_ValueAxisBreak__WEBPACK_IMPORTED_MODULE_1__["ValueAxisBreak"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["DateAxisBreak"] = DateAxisBreak;
        //# sourceMappingURL=DateAxisBreak.js.map
        /***/ 
    }),
    /* 922 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYCursor", function () { return XYCursor; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Cursor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(923);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(852);
        /**
         * Cursor for XY chart
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A cursor used on [[XYChart]].
         *
         * @see {@link IXYCursorEvents} for a list of available events
         * @see {@link IXYCursorAdapters} for a list of available Adapters
         * @todo Add description, examples
         * @todo Should we allow changing `_generalBehavior`?
         */
        var XYCursor = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYCursor, _super);
            /**
             * Constructor
             */
            function XYCursor() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Vertical cursor line element.
                 *
                 * @type {MutableValueDisposer<Sprite>}
                 */
                _this._lineX = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MutableValueDisposer"]();
                /**
                 * Horizontal cursor line element.
                 *
                 * @type {MutableValueDisposer<Sprite>}
                 */
                _this._lineY = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MutableValueDisposer"]();
                /**
                 * Horizontal [[Axis]].
                 *
                 * @type {MutableValueDisposer<Axis>}
                 */
                _this._xAxis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MutableValueDisposer"]();
                /**
                 * Vertical [[Axis]].
                 *
                 * @type {MutableValueDisposer<Axis>}
                 */
                _this._yAxis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MutableValueDisposer"]();
                _this.className = "XYCursor";
                // Defaults
                _this.behavior = "zoomX";
                _this.maxPanOut = 0.1;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_6__["InterfaceColorSet"]();
                // Create selection element
                var selection = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                selection.shouldClone = false;
                selection.fillOpacity = 0.2;
                selection.fill = interfaceColors.getFor("alternativeBackground");
                selection.isMeasured = false;
                selection.interactionsEnabled = false;
                _this.selection = selection;
                _this._disposers.push(_this.selection);
                // Create cursor's vertical line
                var lineX = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                lineX.shouldClone = false;
                lineX.stroke = interfaceColors.getFor("grid");
                lineX.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_5__["color"])();
                lineX.strokeDasharray = "3,3";
                lineX.isMeasured = false;
                lineX.strokeOpacity = 0.4;
                lineX.interactionsEnabled = false;
                _this.lineX = lineX;
                _this._disposers.push(_this.lineX);
                // Create cursor's horizontal line
                var lineY = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                lineY.shouldClone = false;
                lineY.stroke = interfaceColors.getFor("grid");
                lineY.fill = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_5__["color"])();
                lineY.strokeDasharray = "3,3";
                lineY.isMeasured = false;
                lineY.strokeOpacity = 0.4;
                lineY.interactionsEnabled = false;
                _this.lineY = lineY;
                _this._disposers.push(_this.lineY);
                // Add handler for size changes
                _this.events.on("sizechanged", _this.updateSize, _this, false);
                _this._disposers.push(_this._lineX);
                _this._disposers.push(_this._lineY);
                _this._disposers.push(_this._xAxis);
                _this._disposers.push(_this._yAxis);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Updates cursor element dimensions on size change.
             *
             * @ignore Exclude from docs
             */
            XYCursor.prototype.updateSize = function () {
                if (this.lineX) {
                    this.lineX.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["lineTo"]({ x: 0, y: this.innerHeight });
                }
                if (this.lineY) {
                    this.lineY.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["lineTo"]({ x: this.innerWidth, y: 0 });
                }
            };
            /**
             * Updates selection dimensions on size change.
             *
             * @ignore Exclude from docs
             */
            XYCursor.prototype.updateSelection = function () {
                if (this._usesSelection) {
                    var downPoint = this.downPoint;
                    if (downPoint) {
                        var point = this.point;
                        if (this.lineX) {
                            point.x = this.lineX.pixelX;
                        }
                        if (this.lineY) {
                            point.y = this.lineY.pixelY;
                        }
                        var selection = this.selection;
                        var x = Math.min(point.x, downPoint.x);
                        var y = Math.min(point.y, downPoint.y);
                        var w = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](Math.abs(downPoint.x - point.x), this._positionPrecision);
                        var h = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](Math.abs(downPoint.y - point.y), this._positionPrecision);
                        switch (this.behavior) {
                            case "zoomX":
                                y = 0;
                                h = this.pixelHeight;
                                break;
                            case "zoomY":
                                x = 0;
                                w = this.pixelWidth;
                                break;
                            case "selectX":
                                y = 0;
                                h = this.pixelHeight;
                                break;
                            case "selectY":
                                x = 0;
                                w = this.pixelWidth;
                                break;
                        }
                        selection.x = x;
                        selection.y = y;
                        selection.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["rectangle"](w, h);
                        selection.validatePosition(); // otherwise Edge shoes some incorrect size rectangle
                    }
                    else {
                        this.selection.hide();
                    }
                }
            };
            /**
             *
             * @ignore Exclude from docs
             */
            XYCursor.prototype.fixPoint = function (point) {
                point.x = Math.max(0, point.x);
                point.y = Math.max(0, point.y);
                point.x = Math.min(this.pixelWidth, point.x);
                point.y = Math.min(this.pixelHeight, point.y);
                return point;
            };
            /**
             * Places the cursor at specific point.
             *
             * @param {IPoint}   point Point to place cursor at
             */
            XYCursor.prototype.triggerMoveReal = function (point) {
                _super.prototype.triggerMoveReal.call(this, point);
                this.updateLinePositions(point);
                if (this.downPoint && _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getDistance"](this.downPoint, point) > 3) {
                    if (this._generalBehavior == "pan") {
                        this.getPanningRanges();
                        this.dispatch("panning");
                    }
                }
            };
            /**
             *
             * @ignore Exclude from docs
             */
            XYCursor.prototype.updateLinePositions = function (point) {
                point = this.fixPoint(this.point);
                if (this.lineX && this.lineX.visible && !this.xAxis) {
                    this.lineX.x = point.x;
                }
                if (this.lineY && this.lineY.visible && !this.yAxis) {
                    this.lineY.y = point.y;
                }
                this.updateSelection();
            };
            XYCursor.prototype.triggerDownReal = function (point) {
                if (this.visible && !this.isHiding) {
                    if (this.fitsToBounds(point)) {
                        this.downPoint = point;
                        this.updatePoint(point);
                        //this.updateLinePositions(point); // otherwise lines won't be in correct position and touch won't work fine
                        this.point.x = this.downPoint.x;
                        this.point.y = this.downPoint.y;
                        var selection = this.selection;
                        var selectionX = this.downPoint.x;
                        var selectionY = this.downPoint.y;
                        if (this._usesSelection) {
                            selection.x = selectionX;
                            selection.y = selectionY;
                            selection.path = "";
                            selection.show();
                        }
                        _super.prototype.triggerDownReal.call(this, point);
                    }
                    else {
                        this.downPoint = undefined;
                    }
                }
                else {
                    this.downPoint = undefined;
                }
            };
            /**
             * Updates the coordinates of where pointer down event occurred
             * (was pressed).
             */
            XYCursor.prototype.updatePoint = function (point) {
                if (this.lineX) {
                    point.x = this.lineX.pixelX;
                }
                if (this.lineY) {
                    point.y = this.lineY.pixelY;
                }
            };
            XYCursor.prototype.triggerUpReal = function (point) {
                if (this.downPoint) {
                    this.upPoint = point;
                    this.updatePoint(this.upPoint);
                    this.getRanges();
                    if (this.behavior == "selectX" || this.behavior == "selectY" || this.behavior == "selectXY") {
                        // void
                    }
                    else {
                        this.selection.hide();
                    }
                    _super.prototype.triggerUpReal.call(this, point);
                }
                this.downPoint = undefined;
                this.updateSelection();
            };
            /**
             * [getRanges description]
             *
             * @todo Description
             */
            XYCursor.prototype.getPanningRanges = function () {
                var startX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.downPoint.x / this.innerWidth, 5);
                var startY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.downPoint.y / this.innerHeight, 5);
                var currentX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.point.x / this.innerWidth, 5);
                var currentY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.point.y / this.innerHeight, 5);
                var deltaX = startX - currentX;
                var deltaY = -startY + currentY;
                this.xRange = { start: deltaX, end: 1 + deltaX };
                this.yRange = { start: deltaY, end: 1 + deltaY };
                if (this.behavior == "panX") {
                    this.yRange.start = 0;
                    this.yRange.end = 1;
                }
                if (this.behavior == "panY") {
                    this.xRange.start = 0;
                    this.xRange.end = 1;
                }
            };
            /**
             * [getRanges description]
             *
             * @todo Description
             */
            XYCursor.prototype.getRanges = function () {
                if (this.lineX) {
                    this.upPoint.x = this.lineX.pixelX;
                }
                if (this.lineY) {
                    this.upPoint.y = this.lineY.pixelY;
                }
                // @todo Is this needed?
                this.selection;
                var startX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.downPoint.x / this.innerWidth, 5);
                var endX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"]((this.upPoint.x) / this.innerWidth, 5);
                var startY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](this.downPoint.y / this.innerHeight, 5);
                var endY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"]((this.upPoint.y) / this.innerHeight, 5);
                this.xRange = { start: _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["min"](startX, endX), end: _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["max"](startX, endX) };
                this.yRange = { start: _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["min"](startY, endY), end: _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["max"](startY, endY) };
            };
            Object.defineProperty(XYCursor.prototype, "behavior", {
                /**
                 * @type {"zoomX" | "zoomY" | "zoomXY" | "selectX" | "selectY" | "selectXY" | "panX" | "panY" | "panXY" | "none"} Bheavior
                 */
                get: function () {
                    return this.getPropertyValue("behavior");
                },
                /**
                 * Cursor's behavior when it's moved with pointer down:
                 *
                 * * "zoomX" - zooms horizontally;
                 * * "zoomY" - zooms vertically;
                 * * "zoomXY" - zooms both horizontally and vertically;
                 * * "selectX" - selects a range horizontally;
                 * * "selectY" - selects a range vertically;
                 * * "selectXY" - selects a range both horizontally and vertically;
                 * * "panX" - moves (pans) current selection horizontally;
                 * * "panY" - moves (pans) current selection vertically;
                 * * "panXY" - moves (pans) current selection both horizontally and vertically;
                 * * "none" - does nothing with pointer down.
                 *
                 * E.g. "zoomXY" will mean that pressing a mouse (or touching) over plot area
                 * and dragging it will start zooming the chart.
                 *
                 * @param {"zoomX" | "zoomY" | "zoomXY" | "selectX" | "selectY" | "selectXY" | "panX" | "panY" | "panXY" | "none"} value Bheavior
                 */
                set: function (value) {
                    this.setPropertyValue("behavior", value, true);
                    this._usesSelection = false;
                    if (value.indexOf("zoom") != -1) {
                        this._generalBehavior = "zoom";
                        this._usesSelection = true;
                    }
                    if (value.indexOf("select") != -1) {
                        this._generalBehavior = "select";
                        this._usesSelection = true;
                    }
                    if (value.indexOf("pan") != -1) {
                        this._generalBehavior = "pan";
                        this._usesSelection = false;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "fullWidthLineX", {
                /**
                 * @return {boolean} Full width?
                 */
                get: function () {
                    return this.getPropertyValue("fullWidthLineX");
                },
                /**
                 * Cursor's horizontal line is expanded to take full width of the related
                 * Axis' cell/category.
                 *
                 * NOTE: this setting will work properly if `xAxis` is set and only in case
                 * `xAxis` is [[CategoryAxis]] or [[DateAxis]].
                 *
                 * @param {boolean} value Full width?
                 */
                set: function (value) {
                    this.setPropertyValue("fullWidthLineX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "fullWidthLineY", {
                /**
                 * @return {boolean} Full width?
                 */
                get: function () {
                    return this.getPropertyValue("fullWidthLineY");
                },
                /**
                 * Cursor's vertical line is expanded to take full width of the related
                 * Axis' cell/category.
                 *
                 * NOTE: this setting will work properly if `yAxis` is set and only in case
                 * `yAxis` is [[CategoryAxis]] or [[DateAxis]].
                 *
                 * @param {boolean} value Full width?
                 */
                set: function (value) {
                    this.setPropertyValue("fullWidthLineY", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "maxPanOut", {
                /**
                 * @return {number} Full width?
                 */
                get: function () {
                    return this.getPropertyValue("maxPanOut");
                },
                /**
                 * If cursor behavior is panX or panY, we allow to pan plot out of it's max bounds for a better user experience.
                 * This setting specifies relative value by how much we can pan out the plot
                 *
                 * @param {number} value
                 */
                set: function (value) {
                    this.setPropertyValue("maxPanOut", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "xAxis", {
                /**
                 * @return {Axis} X axis
                 */
                get: function () {
                    return this._xAxis.get();
                },
                /**
                 * A reference to X [[Axis]].
                 *
                 * An XY cursor can live without `xAxis` set. You set xAxis for cursor when
                 * you have axis tooltip enabled and you want cursor line to be at the same
                 * position as tooltip.
                 *
                 * This works with [[CategoryAxis]] and [[DateAxis]] but not with
                 * [[ValueAxis]].
                 *
                 * @todo Description (review)
                 * @param {Axis} axis X axis
                 */
                set: function (axis) {
                    if (this._xAxis.get() != axis) {
                        var chart = axis.chart;
                        this._xAxis.set(axis, new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MultiDisposer"]([
                            axis.tooltip.events.on("positionchanged", this.handleXTooltipPosition, this, false),
                            axis.events.on("validated", chart.handleCursorPositionChange, chart, false)
                        ]));
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "yAxis", {
                /**
                 * @return {Axis} Y Axis
                 */
                get: function () {
                    return this._yAxis.get();
                },
                /**
                 * A reference to Y [[Axis]].
                 *
                 * An XY cursor can live without `yAxis` set. You set xAxis for cursor when
                 * you have axis tooltip enabled and you want cursor line to be at the same
                 * position as tooltip.
                 *
                 * This works with [[CategoryAxis]] and [[DateAxis]] but not with
                 * [[ValueAxis]].
                 *
                 * @todo Description (review)
                 * @param {Axis} axis Y axis
                 */
                set: function (axis) {
                    if (this._yAxis.get() != axis) {
                        var chart = axis.chart;
                        this._yAxis.set(axis, new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_3__["MultiDisposer"]([
                            axis.tooltip.events.on("positionchanged", this.handleYTooltipPosition, this, false),
                            axis.events.on("validated", chart.handleCursorPositionChange, chart, false)
                        ]));
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates Cursor's position when axis tooltip changes position.
             *
             * @ignore Exclude from docs
             * @param {ISpriteEvents["positionchanged"]} event Original Axis event
             */
            XYCursor.prototype.handleXTooltipPosition = function (event) {
                var tooltip = this.xAxis.tooltip;
                var point = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["svgPointToSprite"]({ x: tooltip.pixelX, y: tooltip.pixelY }, this);
                var x = point.x;
                if (this.lineX) {
                    this.lineX.x = x;
                    if (!this.fitsToBounds(point)) {
                        this.hide();
                    }
                }
                if (this.xAxis && this.fullWidthLineX) {
                    var startPoint = this.xAxis.currentItemStartPoint;
                    var endPoint = this.xAxis.currentItemEndPoint;
                    if (startPoint && endPoint) {
                        this.lineX.x = x;
                        var width = endPoint.x - startPoint.x;
                        this.lineX.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["rectangle"](width, this.innerHeight, -width / 2);
                    }
                }
            };
            /**
             * Updates Cursor's position when Y axis changes position or scale.
             *
             * @ignore Exclude from docs
             * @param {ISpriteEvents["positionchanged"]} event Original Axis event
             */
            XYCursor.prototype.handleYTooltipPosition = function (event) {
                var tooltip = this.yAxis.tooltip;
                var point = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["svgPointToSprite"]({ x: tooltip.pixelX, y: tooltip.pixelY }, this);
                var y = point.y;
                if (this.lineY) {
                    this.lineY.y = y;
                    if (!this.fitsToBounds(point)) {
                        this.hide();
                    }
                }
                if (this.yAxis && this.fullWidthLineY) {
                    var startPoint = this.yAxis.currentItemStartPoint;
                    var endPoint = this.yAxis.currentItemEndPoint;
                    if (startPoint && endPoint) {
                        this.lineY.y = y;
                        var height = endPoint.y - startPoint.y;
                        this.lineY.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_10__["rectangle"](this.innerWidth, height, 0, -height / 2);
                    }
                }
            };
            Object.defineProperty(XYCursor.prototype, "lineX", {
                /**
                 * @return {Sprite} Line element
                 */
                get: function () {
                    return this._lineX.get();
                },
                /**
                 * A Line element to use for X axis.
                 *
                 * @param {Sprite} lineX Line
                 */
                set: function (lineX) {
                    if (lineX) {
                        lineX.setElement(this.paper.add("path"));
                        this._lineX.set(lineX, lineX.events.on("positionchanged", this.updateSelection, this, false));
                        lineX.interactionsEnabled = false;
                        lineX.parent = this;
                    }
                    else {
                        this._lineX.reset();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "lineY", {
                /**
                 * @return {Sprite} Line element
                 */
                get: function () {
                    return this._lineY.get();
                },
                /**
                 * A Line element to use Y axis.
                 *
                 * @param {Sprite} lineY Line
                 */
                set: function (lineY) {
                    if (lineY) {
                        lineY.setElement(this.paper.add("path"));
                        this._lineY.set(lineY, lineY.events.on("positionchanged", this.updateSelection, this, false));
                        lineY.parent = this;
                        lineY.interactionsEnabled = false;
                    }
                    else {
                        this._lineY.reset();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYCursor.prototype, "selection", {
                /**
                 * @return {Sprite} Selection rectangle
                 */
                get: function () {
                    return this._selection;
                },
                /**
                 * A selection element ([[Sprite]]).
                 *
                 * @param {Sprite} selection Selection rectangle
                 */
                set: function (selection) {
                    this._selection = selection;
                    if (selection) {
                        selection.element = this.paper.add("path");
                        selection.parent = this;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * Looks if `xAxis` and `yAxis` is set via ID in JSON config, and replaces
             * with real references.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            XYCursor.prototype.processConfig = function (config) {
                if (config) {
                    // Set up axes
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.xAxis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isString"](config.xAxis) && this.map.hasKey(config.xAxis)) {
                        config.xAxis = this.map.getKey(config.xAxis);
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.yAxis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isString"](config.yAxis) && this.map.hasKey(config.yAxis)) {
                        config.yAxis = this.map.getKey(config.yAxis);
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return XYCursor;
        }(_Cursor__WEBPACK_IMPORTED_MODULE_1__["Cursor"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["XYCursor"] = XYCursor;
        //# sourceMappingURL=XYCursor.js.map
        /***/ 
    }),
    /* 923 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cursor", function () { return Cursor; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(784);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(758);
        /* harmony import */ var _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(803);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /**
         * Cursor module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Main Cursor class with common cursor functionality.
         *
         * Chart-specific cursors must extend this class.
         *
         * @see {@link ICursorEvents} for a list of available events
         * @see {@link ICursorAdapters} for a list of available Adapters
         * @todo Add description, examples
         * @todo Should we allow changing `_generalBehavior`?
         */
        var Cursor = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Cursor, _super);
            /**
             * Constructor
             */
            function Cursor() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Current cursor position during selection.
                 *
                 * @type {IPoint}
                 * @todo Better description
                 */
                _this.point = { x: 0, y: 0 };
                /**
                 * Specifies the rules when cursor needs to be moved or hidden.
                 */
                _this._stick = "none";
                _this.className = "Cursor";
                // Set defaults
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(100);
                _this.shouldClone = false;
                _this.hide(0);
                _this.trackable = true;
                _this.clickable = true;
                _this.isMeasured = false;
                // Add events on body to trigger down and up events (to start zooming or
                // selection)
                var interaction = Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])();
                _this._disposers.push(interaction.body.events.on("down", _this.handleCursorDown, _this));
                _this._disposers.push(interaction.body.events.on("up", _this.handleCursorUp, _this));
                _this._disposers.push(interaction.body.events.on("track", _this.handleCursorMove, _this));
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Handle pointer movement in document and update cursor position as needed.
             *
             * @ignore Exclude from docs
             * @param {IInteractionObjectEvents["track"]} event Event
             */
            Cursor.prototype.handleCursorMove = function (event) {
                if (!this.interactionsEnabled) {
                    return;
                }
                if (((this._generalBehavior != "zoom" && this._generalBehavior != "pan") || !this.downPoint) && !Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().isLocalElement(event.pointer, this.paper.svg, this.uid)) {
                    // We want to let zoom/pan continue even if cursor is outside chart area
                    if (!this.isHidden || !this.isHiding) {
                        this.hide();
                    }
                    return;
                }
                var local = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["documentPointToSprite"](event.pointer.point, this);
                if (this._stick == "hard" && this._stickPoint) {
                    local = this._stickPoint;
                }
                if (this._stick == "soft" && this._stickPoint) {
                    if (!this.fitsToBounds(local)) {
                        local = this._stickPoint;
                    }
                }
                this.triggerMove(local);
                return local;
            };
            /**
             * Hides actual SVG elements and handles hiding animations.
             *
             * @param  {number}  duration  Fade out duration (ms)
             * @return {Animation}            Fade out duration (ms)
             * @ignore
             */
            Cursor.prototype.hideReal = function (duration) {
                if ((this._stick == "hard" || this._stick == "soft") && this._stickPoint) {
                    return;
                }
                return _super.prototype.hideReal.call(this, duration);
            };
            /**
             * Places the cursor at specific point.
             *
             * The second parameter has following options:
             *
             * `"none"` - placed cursor will only be there until mouse/touch moves, then
             * it either moves to a new place (if pointer over plot area) or is hidden.
             *
             * `"soft"` - cursor will stay in the place if mouse/touch is happening
             * outside chart, but will move to a new place whe plot area is hovered or
             * touched.
             *
             * `"hard"` - cursor will stay in place no matter what, until it is moved by
             * another `triggerMove()` call.
             *
             * @param {IPoint}                    point  Point to place cursor at
             * @param {"hard" | "soft" | "none"}  stick  Level of cursor stickiness to the place
             */
            Cursor.prototype.triggerMove = function (point, stick) {
                point.x = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](point.x, 1);
                point.y = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"](point.y, 1);
                if (stick) {
                    this._stick = stick;
                }
                if (stick == "hard" || stick == "soft") {
                    this._stickPoint = point;
                }
                this.triggerMoveReal(point);
            };
            /**
             * Places the cursor at specific point.
             *
             * @param {IPoint}  point Point to place cursor at
             */
            Cursor.prototype.triggerMoveReal = function (point) {
                if (this.point.x != point.x || this.point.y != point.y) {
                    this.point = point;
                    this.invalidatePosition();
                    // hide cursor if it's out of bounds
                    if (this.fitsToBounds(point)) {
                        this.show(0);
                    }
                    else {
                        // unless we are selecting (mouse is down)
                        if (!this.downPoint) {
                            this.hide(0);
                        }
                    }
                    if (this.visible) {
                        this.getPositions();
                        this.dispatch("cursorpositionchanged"); // not good to dispatch later (check step count example)
                    }
                }
            };
            /**
             * Simulates pressing down (click/touch) action by a cursor.
             *
             * @param {IPoint}   point               Point of action
             */
            Cursor.prototype.triggerDown = function (point) {
                this.triggerDownReal(point);
            };
            /**
             * Simulates pressing down (click/touch) action by a cursor.
             *
             * @param {IPoint}   point               Point of action
             */
            Cursor.prototype.triggerDownReal = function (point) {
                switch (this._generalBehavior) {
                    case "zoom":
                        this.dispatchImmediately("zoomstarted");
                        break;
                    case "select":
                        this.dispatchImmediately("selectstarted");
                        break;
                    case "pan":
                        this.dispatchImmediately("panstarted");
                        Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().setGlobalStyle(_core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].grabbing);
                        break;
                }
            };
            /**
             * Simulates the action of release of the mouse down / touch.
             *
             * @param {IPoint}   point               Point of action
             */
            Cursor.prototype.triggerUp = function (point) {
                this.triggerUpReal(point);
            };
            /**
             * Simulates the action of release of the mouse down / touch.
             *
             * @param {IPoint}   point               Point of action
             */
            Cursor.prototype.triggerUpReal = function (point) {
                this.updatePoint(this.upPoint);
                var interaction = Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])();
                if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"](this.upPoint, this.downPoint) > interaction.getHitOption(this.interactions, "hitTolerance")) {
                    switch (this._generalBehavior) {
                        case "zoom":
                            this.dispatchImmediately("zoomended");
                            break;
                        case "select":
                            this.dispatchImmediately("selectended");
                            break;
                        case "pan":
                            this.dispatchImmediately("panended");
                            interaction.setGlobalStyle(_core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].default);
                            break;
                    }
                }
                else {
                    this.dispatchImmediately("behaviorcanceled");
                    interaction.setGlobalStyle(_core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_5__["MouseCursorStyle"].default);
                }
                this.downPoint = undefined;
                this.updateSelection();
            };
            /**
             * Updates selection dimensions on size change.
             *
             * @ignore Exclude from docs
             */
            Cursor.prototype.updateSelection = function () {
            };
            /**
             * Updates cursors current positions.
             */
            Cursor.prototype.getPositions = function () {
                // positions are used by axes or series
                this.xPosition = this.point.x / this.innerWidth;
                this.yPosition = 1 - this.point.y / this.innerHeight;
            };
            /**
             * Handles pointer down event so we can start zoom or selection.
             *
             * @ignore Exclude from docs
             * @param {IInteractionEvents["down"]} event Original event
             */
            Cursor.prototype.handleCursorDown = function (event) {
                if (!this.interactionsEnabled || !Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().isLocalElement(event.pointer, this.paper.svg, this.uid)) {
                    return;
                }
                // Get local point
                var local = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["documentPointToSprite"](event.pointer.point, this);
                // We need to cancel the event to prevent gestures on touch devices
                if (event.event.cancelable && this.fitsToBounds(local)) {
                    event.event.preventDefault();
                }
                // Make this happen
                this.triggerMove(local);
                this.triggerDown(local);
            };
            /**
             * Updates the coordinates of where pointer down event occurred
             * (was pressed).
             */
            Cursor.prototype.updatePoint = function (point) {
            };
            /**
             * Handles pointer up event - finishes zoom or selection action.
             *
             * @ignore Exclude from docs
             * @param {IInteractionEvents["up"]} event Original event
             */
            Cursor.prototype.handleCursorUp = function (event) {
                if (!this.interactionsEnabled) {
                    return;
                }
                if (((this._generalBehavior != "zoom" && this._generalBehavior != "pan") || !this.downPoint) && !Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().isLocalElement(event.pointer, this.paper.svg, this.uid)) {
                    return;
                }
                var local = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_7__["documentPointToSprite"](event.pointer.point, this);
                this.triggerMove(local);
                this.triggerUp(local);
            };
            Object.defineProperty(Cursor.prototype, "chart", {
                /**
                 * @return {Chart} Chart
                 */
                get: function () {
                    return this._chart;
                },
                /**
                 * A reference to a [[Chart]] the cursor belongs to.
                 *
                 * @param {Chart}  value  Chart
                 */
                set: function (value) {
                    this._chart = value;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this._chart.plotContainer)) {
                        Object(_core_interaction_Interaction__WEBPACK_IMPORTED_MODULE_2__["getInteraction"])().lockElement(this._chart.plotContainer.interactions);
                    }
                },
                enumerable: true,
                configurable: true
            });
            return Cursor;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Cursor"] = Cursor;
        //# sourceMappingURL=Cursor.js.map
        /***/ 
    }),
    /* 924 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYChartScrollbar", function () { return XYChartScrollbar; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(879);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _types_XYChart__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(909);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(800);
        /* harmony import */ var _core_rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(900);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(757);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(852);
        /**
         * A module with functionality for buildin a scrollbar with an XY graph in it.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A special version of the Scrollbar that has an XY chart in it.
         *
         * Used mainly as an advanced scrollbar with a preview for other XY charts.
         *
         * However, can be used as standalone element.
         *
         * @see {@link IXYChartScrollbarEvents} for a list of available events
         * @see {@link IXYChartScrollbarAdapters} for a list of available Adapters
         * @important
         */
        var XYChartScrollbar = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYChartScrollbar, _super);
            /**
             * Constructor
             */
            function XYChartScrollbar() {
                var _this = _super.call(this) || this;
                /**
                 * A chart element Scrollbar is for.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._chart = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MutableValueDisposer"]();
                _this.className = "XYChartScrollbar";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__["InterfaceColorSet"]();
                _this.padding(0, 0, 0, 0);
                var scrollbarChart = _this.createChild(_types_XYChart__WEBPACK_IMPORTED_MODULE_5__["XYChart"]);
                scrollbarChart.shouldClone = false;
                scrollbarChart.margin(0, 0, 0, 0);
                scrollbarChart.padding(0, 0, 0, 0);
                scrollbarChart.interactionsEnabled = false;
                _this._scrollbarChart = scrollbarChart;
                _this._disposers.push(_this._scrollbarChart);
                _this.minHeight = 60;
                _this.minWidth = 60;
                var unselectedOverlay = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                unselectedOverlay.shouldClone = false;
                unselectedOverlay.setElement(_this.paper.add("path"));
                unselectedOverlay.fill = interfaceColors.getFor("background");
                unselectedOverlay.fillOpacity = 0.8;
                unselectedOverlay.interactionsEnabled = false;
                unselectedOverlay.isMeasured = false;
                unselectedOverlay.toBack();
                _this._unselectedOverlay = unselectedOverlay;
                _this._disposers.push(_this._unselectedOverlay);
                scrollbarChart.toBack();
                _this.background.cornerRadius(0, 0, 0, 0);
                var thumbBackground = _this.thumb.background;
                thumbBackground.cornerRadius(0, 0, 0, 0);
                thumbBackground.fillOpacity = 0;
                thumbBackground.fill = interfaceColors.getFor("background");
                var hoverState = thumbBackground.states.getKey("hover");
                if (hoverState) {
                    hoverState.properties.fillOpacity = 0.2;
                }
                var downState = thumbBackground.states.getKey("down");
                if (downState) {
                    downState.properties.fillOpacity = 0.4;
                }
                _this._disposers.push(_this._chart);
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(XYChartScrollbar.prototype, "series", {
                /**
                 * A list of series that are used to draw graph(s) on the scrollbar.
                 *
                 * @readonly
                 * @return {List<XYSeries>} Series
                 */
                get: function () {
                    if (!this._series) {
                        this._series = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        this._disposers.push(this._series.events.on("inserted", this.handleSeriesAdded, this, false));
                        this._disposers.push(this._series.events.on("removed", this.handleSeriesRemoved, this, false));
                    }
                    return this._series;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates a new series when they are pushed into a `series` list.
             *
             * @param {IListEvents<XYSeries>["inserted"]} event Event
             */
            XYChartScrollbar.prototype.handleSeriesAdded = function (event) {
                var sourceSeries = event.newValue;
                var scrollbarChart = this.scrollbarChart;
                scrollbarChart.zoomOutButton.disabled = true;
                this.chart = sourceSeries.chart;
                var addXAxis = true;
                var addYAxis = true;
                // check if we haven't added clone of x or y axis before
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](this.series.iterator(), function (series) {
                    if (series != sourceSeries) {
                        if (series.xAxis == sourceSeries.xAxis) {
                            addXAxis = false;
                        }
                        if (series.yAxis == sourceSeries.yAxis) {
                            addYAxis = false;
                        }
                    }
                });
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__["InterfaceColorSet"]();
                var series = sourceSeries.clone();
                if (addXAxis) {
                    var xAxis = sourceSeries.xAxis.clone();
                    scrollbarChart.xAxes.moveValue(xAxis);
                    xAxis.title.disabled = true;
                    xAxis.rangeChangeDuration = 0;
                    xAxis.id = sourceSeries.uid;
                    xAxis.title.disabled = true;
                    var renderer = xAxis.renderer;
                    renderer.ticks.template.disabled = true;
                    renderer.inside = true;
                    renderer.line.strokeOpacity = 0;
                    renderer.minLabelPosition = 0.02;
                    renderer.maxLabelPosition = 0.98;
                    renderer.line.disabled = true;
                    renderer.axisFills.template.disabled = true;
                    renderer.baseGrid.disabled = true;
                    renderer.grid.template.strokeOpacity = 0.05;
                    var labelsTemplate = renderer.labels.template;
                    labelsTemplate.fillOpacity = 0.5;
                    series.xAxis = xAxis;
                }
                else {
                    // @todo find clone, otherwise there might be probs with multiple axes
                }
                if (addYAxis) {
                    var yAxis = sourceSeries.yAxis.clone();
                    scrollbarChart.yAxes.moveValue(yAxis);
                    yAxis.title.disabled = true;
                    yAxis.rangeChangeDuration = 0;
                    var renderer = yAxis.renderer;
                    renderer.ticks.template.disabled = true;
                    renderer.inside = true;
                    renderer.line.strokeOpacity = 0;
                    renderer.minLabelPosition = 0.02;
                    renderer.maxLabelPosition = 0.98;
                    renderer.line.disabled = true;
                    renderer.axisFills.template.disabled = true;
                    renderer.grid.template.stroke = interfaceColors.getFor("background");
                    renderer.baseGrid.disabled = true;
                    renderer.grid.template.strokeOpacity = 0.05;
                    var labelsTemplate = renderer.labels.template;
                    labelsTemplate.fillOpacity = 0.5;
                    series.yAxis = yAxis;
                }
                else {
                    // @todo find clone, otherwise there might be probs with multiple axes
                }
                series.rangeChangeDuration = 0;
                series.interpolationDuration = 0;
                series.defaultState.transitionDuration = 0;
                this._disposers.push(series.events.on("validated", this.zoomOutAxes, this, false));
                // data might be set drectly on series
                this._disposers.push(sourceSeries.events.on("datavalidated", function () {
                    if (series.data != sourceSeries.data) { // data setter doesn't check this
                        series.data = sourceSeries.data;
                    }
                }, undefined, false));
                series.defaultState.properties.visible = true;
                series.filters.push(new _core_rendering_filters_DesaturateFilter__WEBPACK_IMPORTED_MODULE_8__["DesaturateFilter"]());
                scrollbarChart.series.push(series);
                this.updateByOrientation();
            };
            /**
             * @ignore
             */
            XYChartScrollbar.prototype.updateByOrientation = function () {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](this._scrollbarChart.xAxes.iterator(), function (xAxis) {
                    if (_this.orientation == "vertical") {
                        var renderer = xAxis.renderer;
                        renderer.grid.template.disabled = true;
                        renderer.labels.template.disabled = true;
                        renderer.minGridDistance = 10;
                    }
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](this._scrollbarChart.yAxes.iterator(), function (yAxis) {
                    if (_this.orientation == "horizontal") {
                        var renderer = yAxis.renderer;
                        renderer.grid.template.disabled = true;
                        renderer.labels.template.disabled = true;
                        renderer.minGridDistance = 10;
                    }
                });
            };
            /**
             * Cleans up after series are removed from Scrollbar.
             *
             * @param {IListEvents<XYSeries>["removed"]}  event  Event
             */
            XYChartScrollbar.prototype.handleSeriesRemoved = function (event) {
                var sourceSeries = event.oldValue;
                sourceSeries.events.off("validated", this.zoomOutAxes, this);
            };
            Object.defineProperty(XYChartScrollbar.prototype, "scrollbarChart", {
                /**
                 * A chart element that is used to display graphs in the Scrollbar.
                 *
                 * This is not the same as `chart`. It's a totally independent instance of
                 * [[XYChart]] with separate config, series, etc.
                 *
                 * It can be configured just like any other [[XYChart]].
                 *
                 * @readonly
                 * @return {XYChart} Scrollbar's internal chart
                 */
                get: function () {
                    return this._scrollbarChart;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYChartScrollbar.prototype, "chart", {
                /**
                 * @return {XYChart} Chart
                 */
                get: function () {
                    return this._chart.get();
                },
                /**
                 * A chart that Scrollbar belongs to.
                 *
                 * @param {XYChart} chart  Chart
                 */
                set: function (chart) {
                    if (this._chart.get() !== chart) {
                        this._chart.set(chart, chart.events.on("datavalidated", this.handleDataChanged, this, false));
                        this.handleDataChanged();
                        this._scrollbarChart.dataProvider = chart; // this makes scrollbar chart do not validate data untill charts' data is validated
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates Scrollbar's internal chart's data when the main chart's data
             * changes.
             *
             * @ignore Exclude from docs
             */
            XYChartScrollbar.prototype.handleDataChanged = function () {
                //@todo: what if raw data changed?
                if (this.chart.data != this.scrollbarChart.data) {
                    this.scrollbarChart.data = this.chart.data;
                }
            };
            /**
             * Zooms out all axes on the internal chart.
             */
            XYChartScrollbar.prototype.zoomOutAxes = function () {
                var scrollbarChart = this.scrollbarChart;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](scrollbarChart.xAxes.iterator(), function (x) {
                    x.zoom({ start: 0, end: 1 }, true, true);
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](scrollbarChart.yAxes.iterator(), function (y) {
                    y.zoom({ start: 0, end: 1 }, true, true);
                });
            };
            /**
             * Updates scrollbar thumb.
             */
            XYChartScrollbar.prototype.updateThumb = function () {
                _super.prototype.updateThumb.call(this);
                if (this._unselectedOverlay) {
                    var thumb = this.thumb;
                    var x = thumb.pixelX || 0;
                    var y = thumb.pixelY || 0;
                    var w = thumb.pixelWidth || 0;
                    var h = thumb.pixelHeight || 0;
                    var path = "";
                    if (this.orientation == "horizontal") {
                        path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["rectToPath"]({
                            x: -1,
                            y: 0,
                            width: x,
                            height: h
                        });
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["rectToPath"]({
                            x: x + w,
                            y: 0,
                            width: (this.pixelWidth || 0) - x - w,
                            height: h
                        });
                    }
                    else {
                        path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["rectToPath"]({
                            x: 0,
                            y: 0,
                            width: w,
                            height: y
                        });
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["rectToPath"]({
                            x: 0,
                            y: y + h,
                            width: w,
                            height: (this.pixelHeight || 0) - y - h
                        });
                    }
                    this._unselectedOverlay.path = path;
                }
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            XYChartScrollbar.prototype.processConfig = function (config) {
                if (config) {
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](config.series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isArray"](config.series)) {
                        for (var i = 0, len = config.series.length; i < len; i++) {
                            var series = config.series[i];
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isString"](series)) {
                                if (this.map.hasKey(series)) {
                                    config.series[i] = this.map.getKey(series);
                                }
                                else {
                                    throw Error("XYChartScrollbar error: Series with id `" + series + "` does not exist.");
                                }
                            }
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return XYChartScrollbar;
        }(_core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_1__["Scrollbar"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["XYChartScrollbar"] = XYChartScrollbar;
        //# sourceMappingURL=XYChartScrollbar.js.map
        /***/ 
    }),
    /* 925 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarSeriesDataItem", function () { return RadarSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarSeries", function () { return RadarSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _LineSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(926);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Radar series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[RadarSeries]].
         *
         * @see {@link DataItem}
         */
        var RadarSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarSeriesDataItem, _super);
            /**
             * Constructor
             */
            function RadarSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "RadarSeriesDataItem";
                _this.setLocation("dateX", 0, 0);
                _this.setLocation("dateY", 0, 0);
                _this.setLocation("categoryX", 0, 0);
                _this.setLocation("categoryY", 0, 0);
                _this.applyTheme();
                return _this;
            }
            return RadarSeriesDataItem;
        }(_LineSeries__WEBPACK_IMPORTED_MODULE_1__["LineSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a radar graph.
         *
         * @see {@link IRadarSeriesEvents} for a list of available Events
         * @see {@link IRadarSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var RadarSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarSeries, _super);
            /**
             * Constructor
             */
            function RadarSeries() {
                var _this = _super.call(this) || this;
                _this.className = "RadarSeries";
                _this.connectEnds = true;
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            RadarSeries.prototype.validate = function () {
                // so that radius would be updated
                if (this.chart.invalid) {
                    this.chart.validate();
                }
                _super.prototype.validate.call(this);
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {RadarSeriesDataItem} Data Item
             */
            RadarSeries.prototype.createDataItem = function () {
                return new RadarSeriesDataItem();
            };
            /**
             * [getPoint description]
             *
             * @todo Description
             * @param {RadarSeriesDataItem} dataItem  [description]
             * @param {string}              xKey      [description]
             * @param {string}              yKey      [description]
             * @param {number}              locationX [description]
             * @param {number}              locationY [description]
             * @param {string}              stackKeyX [description]
             * @param {string}              stackKeyY [description]
             */
            RadarSeries.prototype.getPoint = function (dataItem, xKey, yKey, locationX, locationY, stackKeyX, stackKeyY) {
                if (!stackKeyX) {
                    stackKeyX = "valueX";
                }
                if (!stackKeyY) {
                    stackKeyY = "valueY";
                }
                var x = this.yAxis.getX(dataItem, yKey, locationY, stackKeyY);
                var y = this.yAxis.getY(dataItem, yKey, locationY, stackKeyY);
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["getDistance"]({ x: x, y: y });
                var angle = this.xAxis.getAngle(dataItem, xKey, locationX, stackKeyX);
                var startAngle = this.chart.startAngle;
                var endAngle = this.chart.endAngle;
                //		angle = $math.fitToRange(angle, startAngle, endAngle);
                if (angle < startAngle || angle > endAngle) {
                    return undefined;
                }
                else {
                    return { x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["sin"](angle) };
                }
            };
            /**
             * [addPoints description]
             *
             * @todo Description
             * @param {IPoint[]}          points    [description]
             * @param {this["_dataItem"]} dataItem  [description]
             * @param {string}            xField    [description]
             * @param {string}            yField    [description]
             * @param {boolean}           backwards [description]
             */
            RadarSeries.prototype.addPoints = function (points, dataItem, xField, yField, backwards) {
                var point = this.getPoint(dataItem, xField, yField, dataItem.locations[xField], dataItem.locations[yField]);
                if (point) {
                    points.push(point);
                }
            };
            /**
             * Returns an SVG path to be used as a mask for the series.
             *
             * @return {string} SVG path
             */
            RadarSeries.prototype.getMaskPath = function () {
                var renderer = this.yAxis.renderer;
                return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arc"](renderer.startAngle, renderer.endAngle - renderer.startAngle, renderer.pixelRadius, renderer.pixelInnerRadius);
            };
            /**
             * [drawSegment description]
             *
             * @todo Description
             * @param {LineSeriesSegment}  segment      [description]
             * @param {IPoint[]}           points       [description]
             * @param {IPoint[]}           closePoints  [description]
             */
            RadarSeries.prototype.drawSegment = function (segment, points, closePoints) {
                var axis = this.yAxis;
                var renderer = axis.renderer;
                if (this.connectEnds && Math.abs(renderer.endAngle - renderer.startAngle) == 360) {
                    // adds one point to the beginning of closePoints array, if needed
                    if (this.dataFields[this._xOpenField] ||
                        this.dataFields[this._yOpenField] ||
                        this.stacked) {
                        points.push(points[0]);
                        if (closePoints.length > 0) {
                            closePoints.unshift(closePoints[closePoints.length - 1]);
                        }
                    }
                }
                _super.prototype.drawSegment.call(this, segment, points, closePoints);
            };
            Object.defineProperty(RadarSeries.prototype, "connectEnds", {
                /**
                 * @return {boolean} Connect?
                 */
                get: function () {
                    return this.getPropertyValue("connectEnds");
                },
                /**
                 * Should the last and and first data points be connected, forming a complete
                 * closed circle?
                 *
                 * @default true
                 * @param {boolean}  value  Connect?
                 */
                set: function (value) {
                    this.setPropertyValue("connectEnds", value);
                    this.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            return RadarSeries;
        }(_LineSeries__WEBPACK_IMPORTED_MODULE_1__["LineSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["RadarSeries"] = RadarSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["RadarSeriesDataItem"] = RadarSeriesDataItem;
        //# sourceMappingURL=RadarSeries.js.map
        /***/ 
    }),
    /* 926 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineSeriesDataItem", function () { return LineSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineSeries", function () { return LineSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(917);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _LineSeriesSegment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(927);
        /* harmony import */ var _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(918);
        /* harmony import */ var _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(920);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _core_elements_Line__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(850);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(845);
        /* harmony import */ var _core_elements_Rectangle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(831);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(757);
        /**
         * Line series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[LineSeries]].
         *
         * @see {@link DataItem}
         */
        var LineSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineSeriesDataItem, _super);
            /**
             * Constructor
             */
            function LineSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "LineSeriesDataItem";
                return _this;
            }
            return LineSeriesDataItem;
        }(_XYSeries__WEBPACK_IMPORTED_MODULE_1__["XYSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a line graph.
         *
         * @see {@link ILineSeriesEvents} for a list of available Events
         * @see {@link ILineSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var LineSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineSeries, _super);
            /**
             * Constructor
             */
            function LineSeries() {
                var _this = _super.call(this) || this;
                /**
                 * Minimum distance in pixels between two adjacent points.
                 *
                 * If the distance is less than this setting, a point is skipped.
                 *
                 * This allows acceptable performance with huge amounts of data points.
                 *
                 * @default 0.5
                 * @type {number}
                 */
                _this.minDistance = 0.5;
                _this.segments = new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListTemplate"](_this.createSegment());
                _this.segments.template.applyOnClones = true;
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListDisposer"](_this.segments));
                _this._disposers.push(_this.segments.template);
                _this._segmentsIterator = new _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["ListIterator"](_this.segments, function () { return _this.segments.create(); });
                _this._segmentsIterator.createNewItems = true;
                _this.className = "LineSeries";
                _this.strokeOpacity = 1;
                _this.fillOpacity = 0;
                _this.connect = true;
                _this.tensionX = 1;
                _this.tensionY = 1;
                _this.segmentsContainer = _this.mainContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                _this.segmentsContainer.isMeasured = false;
                // line series might have multiple segments and it has a separate sprite for fill and stroke for each segment. So we need to observe all the changes on series and set them on the segments
                // todo: we need list here, otherwise everything will be redrawn event on change of properties like tooltipX or similar.
                // this.addEventListener(SpriteEvent.PROPERTY_CHANGED, this.validateDataElements, false, this);
                _this.bulletsContainer.toFront();
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            LineSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_14__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Line Series");
                }
            };
            /**
             * @ignore
             */
            LineSeries.prototype.createSegment = function () {
                return new _LineSeriesSegment__WEBPACK_IMPORTED_MODULE_5__["LineSeriesSegment"]();
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {LineSeriesDataItem} Data Item
             */
            LineSeries.prototype.createDataItem = function () {
                return new LineSeriesDataItem();
            };
            /**
             * Inits data item's working values.
             *
             * @param {this["_dataItem"]}  dataItem  Data item
             * @param {number}             index     Data item's index
             */
            LineSeries.prototype.setInitialWorkingValues = function (dataItem) {
                // this makes data items animate when added
                if (this.appeared && this.visible) {
                    var yAxis = this._yAxis.get();
                    var xAxis = this._xAxis.get();
                    var previousDataItem = this.dataItems.getIndex(dataItem.index - 1);
                    dataItem.component = this; // as these values are set before, we don't know component yet
                    if (this.baseAxis == xAxis) {
                        if (yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"]) {
                            var initialY = yAxis.minZoomed;
                            if (previousDataItem) {
                                initialY = previousDataItem.values["valueY"].workingValue;
                            }
                            // this makes line animate from previous point to newly added point
                            dataItem.setWorkingValue("valueY", initialY, 0);
                            dataItem.setWorkingValue("valueY", dataItem.values.valueY.value);
                            if (xAxis instanceof _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__["DateAxis"]) {
                                dataItem.setWorkingLocation("dateX", -0.5, 0); // instantly move it to previous
                                dataItem.setWorkingLocation("dateX", 0.5); // animate to it's location
                            }
                        }
                    }
                    if (this.baseAxis == yAxis) {
                        if (xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"]) {
                            var initialX = xAxis.minZoomed;
                            if (previousDataItem) {
                                initialX = previousDataItem.values["valueX"].workingValue;
                            }
                            dataItem.setWorkingValue("valueX", initialX, 0);
                            dataItem.setWorkingValue("valueX", dataItem.values.valueX.value);
                            if (yAxis instanceof _axes_DateAxis__WEBPACK_IMPORTED_MODULE_7__["DateAxis"]) {
                                dataItem.setWorkingLocation("dateY", -0.5, 0); // instantly move it to previous
                                dataItem.setWorkingLocation("dateY", 0.5); // animate to it's location
                            }
                        }
                    }
                }
            };
            /**
             * Updates corresponding legend data item with current values.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            LineSeries.prototype.updateLegendValue = function (dataItem) {
                _super.prototype.updateLegendValue.call(this, dataItem);
                //This is hack to save some methos, used to set tooltip color source only
                if (dataItem && dataItem.segment) {
                    this.tooltipColorSource = dataItem.segment;
                }
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            LineSeries.prototype.validate = function () {
                var _this = this;
                _super.prototype.validate.call(this);
                this._segmentsIterator.reset();
                this.openSegment(this._workingStartIndex);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this.axisRanges.iterator(), function (range) {
                    _this.openSegment(_this._workingStartIndex, range);
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](this._segmentsIterator.iterator(), function (segment) {
                    segment.__disabled = true;
                });
            };
            /**
             * [sliceData description]
             *
             * @todo Description
             */
            LineSeries.prototype.sliceData = function () {
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                // we need extra one item to both sides with values for line series, otherwise the line will not continue out of bounds of the chart while scrolling
                // find first to the left
                // TODO use iterator instead
                for (var i = this.startIndex - 1; i >= 0; i--) {
                    var dataItem = this.dataItems.getIndex(i);
                    if (dataItem && dataItem.hasValue(this._xValueFields) && dataItem.hasValue(this._yValueFields)) {
                        startIndex = i;
                        break;
                    }
                }
                // find first to the right
                // TODO use iterator instead
                for (var i = this.endIndex, len = this.dataItems.length; i < len; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    if (dataItem && dataItem.hasValue(this._xValueFields) && dataItem.hasValue(this._yValueFields)) {
                        endIndex = i + 1;
                        break;
                    }
                }
                this._workingStartIndex = startIndex;
                this._workingEndIndex = endIndex;
            };
            /**
             * [openSegment description]
             *
             * @todo Description
             * @param {number}        openIndex  [description]
             * @param {AxisDataItem}  axisRange  [description]
             */
            LineSeries.prototype.openSegment = function (openIndex, axisRange) {
                var points = [];
                var endIndex = this._workingEndIndex;
                var closeIndex;
                var propertiesChanged = false;
                var segment = this._segmentsIterator.getFirst();
                segment.__disabled = false;
                if (axisRange) {
                    segment.parent = axisRange.contents;
                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](axisRange.contents, segment, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                }
                else {
                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this, segment, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                    segment.filters.clear();
                    segment.parent = this.segmentsContainer;
                }
                for (var i = openIndex; i < endIndex; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    dataItem.segment = segment;
                    if (dataItem.hasProperties) {
                        // if this is first item of segment
                        if (i == openIndex) {
                            this.updateSegmentProperties(dataItem.properties, segment);
                        }
                        else {
                            // this time we only need to know if properties changed, so we don't pass segment
                            propertiesChanged = this.updateSegmentProperties(dataItem.properties, segment, true);
                        }
                    }
                    if (dataItem.hasValue(this._xValueFields) && dataItem.hasValue(this._yValueFields)) {
                        this.addPoints(points, dataItem, this.xField, this.yField);
                    }
                    else {
                        // if no values in first data item, go to next
                        if (i == openIndex) {
                            continue;
                        }
                        else {
                            var connect = this.connect;
                            // todo: other connect conditions
                            // stop cycle
                            if (!connect) {
                                closeIndex = i;
                                break;
                            }
                        }
                    }
                    closeIndex = i;
                    if (propertiesChanged) {
                        break;
                    }
                }
                this.closeSegment(segment, points, openIndex, closeIndex, axisRange);
            };
            /**
             * [addPoints description]
             *
             * @todo Description
             * @param {IPoint[]}          points    [description]
             * @param {this["_dataItem"]} dataItem  [description]
             * @param {string}            xField    [description]
             * @param {string}            yField    [description]
             * @param {boolean}           backwards [description]
             */
            LineSeries.prototype.addPoints = function (points, dataItem, xField, yField, backwards) {
                var point = this.getPoint(dataItem, xField, yField, dataItem.workingLocations[xField], dataItem.workingLocations[yField]);
                if (!backwards) {
                    dataItem.point = point;
                }
                points.push(point);
            };
            /**
             * [closeSegment description]
             *
             * @todo Description
             * @param {LineSeriesSegment} segment    [description]
             * @param {IPoint[]}          points     [description]
             * @param {number}            openIndex  [description]
             * @param {number}            closeIndex [description]
             * @param {AxisDataItem}      axisRange  [description]
             */
            LineSeries.prototype.closeSegment = function (segment, points, openIndex, closeIndex, axisRange) {
                var closePoints = [];
                if (this.dataFields[this._xOpenField] ||
                    this.dataFields[this._yOpenField] ||
                    this.stacked) {
                    for (var i = closeIndex; i >= openIndex; i--) {
                        var dataItem = this.dataItems.getIndex(i);
                        if (dataItem.hasValue(this._xValueFields) && dataItem.hasValue(this._yValueFields)) { // not sure, this means that open point will only be added if value is also set for this point, but maybe it's ok.
                            this.addPoints(closePoints, dataItem, this.xOpenField, this.yOpenField, true);
                        }
                    }
                }
                else {
                    var baseAxis = this.baseAxis;
                    var count = points.length;
                    var xAxis = this.xAxis;
                    var yAxis = this.yAxis;
                    if (baseAxis == xAxis) {
                        closePoints.push({ x: points[count - 1].x, y: yAxis.basePoint.y }); // last x
                        closePoints.push({ x: points[0].x, y: yAxis.basePoint.y }); // first x
                    }
                    else {
                        closePoints.push({ x: xAxis.basePoint.x, y: points[count - 1].y }); // last y
                        closePoints.push({ x: xAxis.basePoint.x, y: points[0].y }); // first y
                    }
                }
                this.drawSegment(segment, points, closePoints);
                if (closeIndex < this._workingEndIndex - 1) {
                    this.openSegment(closeIndex, axisRange);
                }
            };
            /**
             * Draws the line segment.
             *
             * @param {LineSeriesSegment}  segment     Segment
             * @param {IPoint[]}           points      Segment points
             * @param {IPoint[]}           closePoints Segment close points
             */
            LineSeries.prototype.drawSegment = function (segment, points, closePoints) {
                segment.drawSegment(points, closePoints, this.tensionX, this.tensionY);
            };
            /**
             * Segement will get its colors from `this.dataItem`, as thats how
             * `getPropertyValue()` method works.
             *
             * We pass `lineSeriesDataItem.properties` as item here each time when a flag
             * `hasProperties` is set to `true` on data item (this means it can contain
             * some properties set).
             *
             * @param  {object}             itemProperties  Item properties
             * @param  {LineSeriesSegment}  segment         Segment
             * @return {boolean}                            Properties changed?
             */
            LineSeries.prototype.updateSegmentProperties = function (itemProperties, segment, checkOnly) {
                var changed = false;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["each"](itemProperties, function (propertyName, value) {
                    // some value must be defined
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_14__["hasValue"](value)) {
                        var currentValue = segment[propertyName];
                        var currentValueStr = void 0;
                        // current value can be Color, number, anything. So we check if it has toString, otherwise just do String().
                        // toString() will return hex if it's color. The only problem is that it will return lowercased hex and if we have uppercase in data, it will think that it changed
                        if (currentValue) {
                            if (currentValue.toString) {
                                currentValueStr = currentValue.toString();
                            }
                            else {
                                currentValueStr = currentValue; // not doing String(currentValue) as this will make all Objects the same
                            }
                        }
                        var valueStr = void 0;
                        if (value) {
                            if (value.toString) {
                                valueStr = value.toString();
                            }
                            else {
                                valueStr = value; // not doing String(currentValue) as this will make all Objects the same
                            }
                        }
                        if (currentValue == value || (currentValueStr != undefined && valueStr != undefined && currentValueStr == valueStr)) {
                            // void
                        }
                        else {
                            if (!checkOnly) {
                                segment[propertyName] = value;
                            }
                            changed = true;
                        }
                    }
                });
                return changed;
            };
            Object.defineProperty(LineSeries.prototype, "connect", {
                /**
                 * @return {boolean} Connect?
                 */
                get: function () {
                    return this.getPropertyValue("connect");
                },
                /**
                 * Connect the lines over empty data points?
                 *
                 * If set to `true` the line will connect two adjacent data points by a
                 * straight line. Even if there are data points with missing values
                 * in-between.
                 *
                 * If you set this to `false`, the line will break when there are missing
                 * values.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/chart-types/xy-chart/#Line_series_with_gaps} for more information about this feature
                 * @default true
                 * @param {boolean}  value  Connect?
                 */
                set: function (value) {
                    this.setPropertyValue("connect", value);
                    this.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LineSeries.prototype, "tensionX", {
                /**
                 * @return {number} Horizontal tension (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("tensionX");
                },
                /**
                 * Horizontal tension setting of the line (0-1).
                 *
                 * Can be used to create smoothed lines. It works like this:
                 *
                 * Accepted values are in the range between 0 and 1. The biggest value (1)
                 * will mean that the "tension" is very high, so the line is maximally
                 * attracted to the points it connects, hence the straight line.
                 *
                 * Using smaller numbers will "relax" the tension, creating some curving.
                 *
                 * The smaller the tension setting, the more relaxed the line and the more
                 * wide the curve.
                 *
                 * This setting is for horizontal tension, meaning the curve will bend in
                 * such way that it never goes below or above connecting points. To enable
                 * vertical bending as well, use `tensionY`.
                 *
                 * @default 1
                 * @param {number}  value  Horizontal tension (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("tensionX", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(LineSeries.prototype, "tensionY", {
                /**
                 * @return {number} Vertical tension (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("tensionY");
                },
                /**
                 * Can be used to create smoothed lines. It works like this:
                 *
                 * Accepted values are in the range between 0 and 1. The biggest value (1)
                 * will mean that the "tension" is very high, so the line is maximally
                 * attracted to the points it connects, hence the straight line.
                 *
                 * Using smaller numbers will "relax" the tension, creating some curving.
                 *
                 * The smaller the tension setting, the more relaxed the line and the more
                 * wide the curve.
                 *
                 * This setting is for vertical tension, meaning the curve might bend in
                 * such way that it will go below or above connected points.
                 *
                 * Combine this setting with `tensionX` to create beautifully looking
                 * smoothed line series.
                 *
                 * @default 1
                 * @param {number}  value  Vertical tension (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("tensionY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /*
           public positionBullet(bullet: Bullet): void {
               super.positionBullet(bullet);
        
               let dataItem: this["_dataItem"] = <this["_dataItem"]>bullet.dataItem;
               if (dataItem.segment) {
                   $object.softCopyProperties(dataItem.segment, bullet, visualProperties);
               }
           }*/
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            LineSeries.prototype.createLegendMarker = function (marker) {
                var _this = this;
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.disposeChildren();
                var line = marker.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_9__["Line"]);
                line.shouldClone = false;
                //line.copyFrom(<any>this); coppies events which is not good
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this, line, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                line.x2 = w;
                line.y = h / 2;
                line.visible = true;
                if (this.fillOpacity > 0) {
                    var fill = marker.createChild(_core_elements_Rectangle__WEBPACK_IMPORTED_MODULE_11__["Rectangle"]);
                    //fill.copyFrom(<any>this); coppies events which is not good
                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this, fill, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                    fill.width = w;
                    fill.height = h;
                    fill.y = 0;
                    fill.strokeOpacity = 0;
                    fill.visible = true;
                    line.y = 0;
                }
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["eachContinue"](this.bullets.iterator(), function (bullet) {
                    if (bullet.copyToLegendMarker) {
                        // do not copy bullets with labels
                        var hasLabels_1 = false;
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_12__["each"](bullet.children.iterator(), function (child) {
                            if (child instanceof _core_elements_Label__WEBPACK_IMPORTED_MODULE_10__["Label"]) {
                                hasLabels_1 = true;
                                return true;
                            }
                        });
                        if (!hasLabels_1) {
                            var clone = bullet.clone();
                            clone.parent = marker;
                            clone.isMeasured = true;
                            clone.tooltipText = undefined;
                            clone.x = w / 2;
                            if (_this.fillOpacity > 0) {
                                clone.y = 0;
                            }
                            else {
                                clone.y = h / 2;
                            }
                            clone.visible = true;
                            // otherwise will not transit to color after hiding
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_14__["hasValue"](clone.fill)) {
                                clone.fill = _this.fill;
                            }
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_14__["hasValue"](clone.stroke)) {
                                clone.stroke = _this.stroke;
                            }
                            return false;
                        }
                    }
                });
            };
            /**
             * @ignore
             */
            LineSeries.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                this.segments.clear();
            };
            return LineSeries;
        }(_XYSeries__WEBPACK_IMPORTED_MODULE_1__["XYSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["LineSeries"] = LineSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["LineSeriesDataItem"] = LineSeriesDataItem;
        //# sourceMappingURL=LineSeries.js.map
        /***/ 
    }),
    /* 927 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineSeriesSegment", function () { return LineSeriesSegment; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(761);
        /* harmony import */ var _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(851);
        /**
         * Line series segment module.
         * @todo Add description about what this is
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents a line series segment.
         *
         * A line segment can be used to apply different properties to a part of the
         * line series, between two data points.
         *
         * @see {@link ILineSeriesSegmentEvents} for a list of available events
         * @see {@link ILineSeriesSegmentAdapters} for a list of available Adapters
         * @todo Example
         */
        var LineSeriesSegment = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineSeriesSegment, _super);
            /**
             * Constructor
             */
            function LineSeriesSegment() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "LineSeriesSegment";
                // Set defaults
                _this.isMeasured = false;
                _this.interactionsEnabled = false;
                _this.layout = "none";
                // Create fill element
                var fillSprite = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.fillSprite = fillSprite;
                fillSprite.shouldClone = false;
                fillSprite.setElement(_this.paper.add("path"));
                fillSprite.isMeasured = false;
                _this._disposers.push(fillSprite);
                // Create line element
                var strokeSprite = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.strokeSprite = strokeSprite;
                strokeSprite.shouldClone = false;
                strokeSprite.setElement(_this.paper.add("path"));
                strokeSprite.isMeasured = false;
                _this._disposers.push(strokeSprite);
                return _this;
            }
            /**
             * Draws the series segment.
             *
             * @ignore Exclude from docs
             * @param {IPoint[]}  points       Points to connect
             * @param {IPoint[]}  closePoints  ?
             * @param {number}    smoothnessX  Horizontal bezier setting (?)
             * @param {number}    smoothnessY  Vertical bezier setting (?)
             */
            LineSeriesSegment.prototype.drawSegment = function (points, closePoints, smoothnessX, smoothnessY) {
                if (!this.disabled) {
                    if (points.length > 0 && closePoints.length > 0) {
                        // first moveTo helps to avoid Chrome straight line in the mask bug.
                        var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: points[0].x - 0.2, y: points[0].y - 0.2 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"](points[0]) + new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__["Tension"](smoothnessX, smoothnessY).smooth(points);
                        if (this.strokeOpacity == 0 || this.strokeSprite.strokeOpacity == 0) {
                            // like this and not if != 0, otherwise ranges stroke won't be drawn.
                        }
                        else {
                            this.strokeSprite.path = path;
                        }
                        if (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) { // helps to avoid drawing fill object if fill is not visible
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"](closePoints[0]) + new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_6__["Tension"](smoothnessX, smoothnessY).smooth(closePoints);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"](points[0]);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["closePath"]();
                            this.fillSprite.path = path;
                        }
                    }
                    else {
                        this.fillSprite.path = "";
                        this.strokeSprite.path = "";
                    }
                }
            };
            /**
             * Copies properties from a [[Sprite]] to both line and fill elements.
             *
             * @param {Sprite} source Source [[Sprite]] to copy properties from
             */
            LineSeriesSegment.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                var lineElement = this.strokeSprite;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__["copyProperties"](source, lineElement.properties, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                lineElement.fillOpacity = 0;
                var fillElement = this.fillSprite;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__["copyProperties"](source, fillElement.properties, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                fillElement.strokeOpacity = 0;
            };
            return LineSeriesSegment;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["LineSeriesSegment"] = LineSeriesSegment;
        //# sourceMappingURL=LineSeriesSegment.js.map
        /***/ 
    }),
    /* 928 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarCursor", function () { return RadarCursor; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYCursor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(922);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Cursor for [[RadarChart]].
         *
         * @see {@link IRadarCursorEvents} for a list of available events
         * @see {@link IRadarCursorAdapters} for a list of available Adapters
         */
        var RadarCursor = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarCursor, _super);
            /**
             * Constructor
             */
            function RadarCursor() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "RadarCursor";
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.innerRadius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(0);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Checks if point is within bounds of a container.
             *
             * @ignore Exclude from docs
             * @param  {IPoint}   point  Point to check
             * @return {boolean}         Fits within container?
             */
            RadarCursor.prototype.fitsToBounds = function (point) {
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](point);
                var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](point);
                //if(!$math.isAngleInRange(angle, this.startAngle, this.endAngle)){
                //return false;
                //}
                if (radius < this.truePixelRadius + 1 && radius > this.pixelInnerRadius - 1) { // ok to add/remove some
                    return true;
                }
                return false;
            };
            Object.defineProperty(RadarCursor.prototype, "startAngle", {
                /**
                 * @return {number} Start angle
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Starting angle of the cursor's radial line.
                 *
                 * @param {number} value Start angle
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarCursor.prototype, "endAngle", {
                /**
                 * @return {number} End angle
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * End angle of the cursor's radial line.
                 *
                 * @param {number} value End angle
                 */
                set: function (value) {
                    this.setPropertyValue("endAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            RadarCursor.prototype.triggerMoveReal = function (point) {
                if (!this.xAxis || (this.xAxis && (!this.xAxis.cursorTooltipEnabled || this.xAxis.tooltip.disabled))) {
                    this.updateLineX(this.point);
                }
                if (!this.yAxis || (this.yAxis && (!this.yAxis.cursorTooltipEnabled || this.yAxis.tooltip.disabled))) {
                    this.updateLineY(this.point);
                }
                this.updateSelection();
                _super.prototype.triggerMoveReal.call(this, point);
            };
            /**
             * (Re)draws the horizontal (circular) cursor's line.
             *
             * @param {IPoint} point New target point
             */
            RadarCursor.prototype.updateLineX = function (point) {
                var radius = this.pixelRadius;
                var startAngle = this.startAngle;
                var endAngle = this.endAngle;
                var innerRadius = this.pixelInnerRadius;
                if (radius > 0 && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](startAngle) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](endAngle) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](innerRadius)) {
                    var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](point), startAngle, endAngle);
                    var path = void 0;
                    if (this.lineX && this.lineX.visible) {
                        this.lineX.moveTo({ x: 0, y: 0 });
                        // fill
                        if (this.xAxis && this.fullWidthLineX) {
                            var startPoint = this.xAxis.currentItemStartPoint;
                            var endPoint = this.xAxis.currentItemEndPoint;
                            if (startPoint && endPoint) {
                                var fillStartAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](startPoint), startAngle, endAngle);
                                var fillEndAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](endPoint), startAngle, endAngle);
                                var arc = fillEndAngle - fillStartAngle;
                                // clockwise
                                // this is needed, normalizeAngle doesn't solve it
                                if (startAngle < endAngle) {
                                    if (arc < 0) {
                                        arc += 360;
                                    }
                                }
                                // ccw
                                else {
                                    if (arc > 0) {
                                        arc -= 360;
                                    }
                                }
                                angle -= arc / 2;
                                path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) })
                                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) })
                                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](angle, arc, radius)
                                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle + arc), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle + arc) })
                                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](angle + arc, -arc, innerRadius);
                            }
                        }
                        // line
                        if (!path) {
                            path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) });
                        }
                        this.lineX.path = path;
                    }
                }
            };
            /**
             * (Re)draws the vertical (radial) cursor's line.
             *
             * @param {IPoint} point New target point
             */
            RadarCursor.prototype.updateLineY = function (point) {
                if (this.lineY && this.lineY.visible) {
                    var startAngle = this.startAngle;
                    var endAngle = this.endAngle;
                    var truePixelRadius = this.truePixelRadius;
                    var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](point), 0, this.truePixelRadius);
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](radius) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](startAngle)) {
                        this.lineY.moveTo({ x: 0, y: 0 });
                        var path = void 0;
                        var arc = endAngle - startAngle;
                        if (this.yAxis && this.fullWidthLineY) {
                            // fill
                            var startPoint = this.yAxis.currentItemStartPoint;
                            var endPoint = this.yAxis.currentItemEndPoint;
                            if (startPoint && endPoint) {
                                var innerRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](startPoint), 0, truePixelRadius);
                                radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](endPoint), 0, truePixelRadius);
                                path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](startAngle, arc, radius);
                                path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](endAngle, -arc, innerRadius);
                            }
                        }
                        if (!path) {
                            path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](startAngle, endAngle - startAngle, radius);
                        }
                        this.lineY.path = path;
                    }
                }
            };
            /**
             * Updates selection dimensions on size change.
             *
             * @ignore Exclude from docs
             */
            RadarCursor.prototype.updateSelection = function () {
                if (this._usesSelection) {
                    var downPoint = this.downPoint;
                    if (downPoint) {
                        var point = this.point;
                        var radius = this.pixelRadius;
                        var truePixelRadius = this.truePixelRadius;
                        var innerRadius = this.pixelInnerRadius;
                        var startAngle = Math.min(this.startAngle, this.endAngle);
                        var endAngle = Math.max(this.startAngle, this.endAngle);
                        var downAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](downPoint), startAngle, endAngle);
                        var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](point), startAngle, endAngle);
                        var downRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](downPoint);
                        if (downRadius < truePixelRadius) {
                            var currentRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](point), 0, truePixelRadius);
                            this._prevAngle = angle;
                            var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: 0, y: 0 });
                            var downSin = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](downAngle);
                            var downCos = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](downAngle);
                            var sin = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle);
                            var cos = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle);
                            var behavior = this.behavior;
                            if (behavior == "zoomX" || behavior == "selectX") {
                                path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: radius * downCos, y: radius * downSin }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](downAngle, angle - downAngle, radius) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: innerRadius * cos, y: innerRadius * sin }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](angle, downAngle - angle, innerRadius);
                            }
                            else if (behavior == "zoomY" || behavior == "selectY") {
                                path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: currentRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle), y: currentRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](startAngle, endAngle - startAngle, currentRadius) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: downRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle), y: downRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](endAngle, startAngle - endAngle, downRadius) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["closePath"]();
                            }
                            else if (behavior == "zoomXY") {
                                path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: currentRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](downAngle), y: currentRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](downAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](downAngle, angle - downAngle, currentRadius) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: downRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle), y: downRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["arcTo"](angle, downAngle - angle, downRadius) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["closePath"]();
                            }
                            this.selection.path = path;
                        }
                        this.selection.moveTo({ x: 0, y: 0 });
                    }
                }
            };
            /**
             * Updates cursors current positions.
             */
            RadarCursor.prototype.getPositions = function () {
                // positions are used by axes or series
                var chart = this.chart;
                if (chart) {
                    var innerRadius = this.pixelInnerRadius;
                    var radius = this.truePixelRadius - innerRadius;
                    var startAngle = this.startAngle;
                    var endAngle = this.endAngle;
                    var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](this.point), startAngle, endAngle);
                    var xPosition = ((angle - startAngle) / (endAngle - startAngle));
                    this.xPosition = xPosition;
                    this.yPosition = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"]((_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](this.point) - innerRadius) / radius, 0, 1);
                }
            };
            /**
             * Overriding inherited method, so that nothing happens when it's triggered.
             *
             * @ignore Exclude from docs
             */
            RadarCursor.prototype.updatePoint = function (point) {
            };
            /**
             * Updates Cursor's position when axis tooltip changes horizontal position.
             *
             * @param {ISpriteEvents["positionchanged"]} event Axis event
             */
            RadarCursor.prototype.handleXTooltipPosition = function (event) {
                if (this.xAxis.cursorTooltipEnabled) {
                    var tooltip = this.xAxis.tooltip;
                    this.updateLineX(_core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["svgPointToSprite"]({ x: tooltip.pixelX, y: tooltip.pixelY }, this));
                }
            };
            /**
             * Updates Cursor's position when axis tooltip changes vertical position.
             *
             * @todo Description
             * @param {ISpriteEvents["positionchanged"]} event Axis event
             */
            RadarCursor.prototype.handleYTooltipPosition = function (event) {
                if (this.yAxis.cursorTooltipEnabled) {
                    var tooltip = this.yAxis.tooltip;
                    this.updateLineY(_core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["svgPointToSprite"]({ x: tooltip.pixelX, y: tooltip.pixelY }, this));
                }
            };
            /**
             * needs to be overriden
             * @ignore
             */
            RadarCursor.prototype.updateLinePositions = function (point) {
            };
            /**
             * [getRanges description]
             *
             * @todo Description
             */
            RadarCursor.prototype.getRanges = function () {
                var downPoint = this.downPoint;
                if (downPoint) {
                    var upPoint = this.upPoint;
                    var chart = this.chart;
                    if (chart) {
                        var radius = this.pixelRadius;
                        var startAngle = this.startAngle;
                        var endAngle = this.endAngle;
                        var downAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](downPoint), this.startAngle, this.endAngle);
                        var upAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitAngleToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"](upPoint), this.startAngle, this.endAngle);
                        var downRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](downPoint), 0, radius);
                        var upRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["fitToRange"](_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getDistance"](upPoint), 0, radius);
                        var startX = 0;
                        var endX = 1;
                        var startY = 0;
                        var endY = 1;
                        var behavior = this.behavior;
                        if (behavior == "zoomX" || behavior == "selectX" || behavior == "zoomXY" || behavior == "selectXY") {
                            var arc = endAngle - startAngle;
                            startX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"]((downAngle - startAngle) / arc, 5);
                            endX = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"]((upAngle - startAngle) / arc, 5);
                        }
                        if (behavior == "zoomY" || behavior == "selectY" || behavior == "zoomXY" || behavior == "selectXY") {
                            startY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](downRadius / radius, 5);
                            endY = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](upRadius / radius, 5);
                        }
                        this.xRange = { start: Math.min(startX, endX), end: Math.max(startX, endX) };
                        this.yRange = { start: Math.min(startY, endY), end: Math.max(startY, endY) };
                        if (this.behavior == "selectX" || this.behavior == "selectY" || this.behavior == "selectXY") {
                            // void
                        }
                        else {
                            this.selection.hide();
                        }
                    }
                }
            };
            /**
             * Overriding inherited method, so that nothing happens when `updateSize`
             * is triggered.
             *
             * RadarCursor is quite complicated and needs own sizing logic.
             *
             * @ignore Exclude from docs
             */
            RadarCursor.prototype.updateSize = function () { };
            Object.defineProperty(RadarCursor.prototype, "radius", {
                /**
                 * @return {number} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the cursor's circular line.
                 * Absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, false, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarCursor.prototype, "pixelRadius", {
                /**
                 * Outer radius of the circular line in pixels.
                 *
                 * @return {number} Outer radius (px)
                 * @readonly
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](this.radius, this.truePixelRadius);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarCursor.prototype, "truePixelRadius", {
                /**
                 * [truePixelRadius description]
                 *
                 * @todo Description
                 * @return {number} Outer radius (px)
                 * @readonly
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeToValue"](Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100), _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.innerWidth / 2, this.innerHeight / 2));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarCursor.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the cursor's circular line.
                 * Absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Inner radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, false, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(RadarCursor.prototype, "pixelInnerRadius", {
                /**
                 * Inner radius of the circular line in pixels.
                 *
                 * @return {number} Inner radius (px)
                 * @readonly
                 */
                get: function () {
                    var innerRadius = this.innerRadius;
                    if (innerRadius instanceof _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["Percent"]) {
                        innerRadius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100 * innerRadius.value * this.chart.innerRadiusModifyer);
                    }
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](innerRadius, this.truePixelRadius) || 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             *
             * @ignore Exclude from docs
             */
            RadarCursor.prototype.fixPoint = function (point) {
                // overriding xy method
                return point;
            };
            return RadarCursor;
        }(_XYCursor__WEBPACK_IMPORTED_MODULE_1__["XYCursor"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["RadarCursor"] = RadarCursor;
        //# sourceMappingURL=RadarCursor.js.map
        /***/ 
    }),
    /* 929 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererRadial", function () { return AxisRendererRadial; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _AxisRendererY__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(854);
        /* harmony import */ var _CategoryAxis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(913);
        /* harmony import */ var _core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(886);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(757);
        /**
         * Module, defining Axis Renderer for radial axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A renderer for radial axis.
         */
        var AxisRendererRadial = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererRadial, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererRadial() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A related chart.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._chart = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MutableValueDisposer"]();
                /**
                 * @ignore
                 */
                _this.pixelRadiusReal = 0;
                _this.className = "AxisRendererRadial";
                _this.isMeasured = false;
                _this.startAngle = -90;
                _this.endAngle = 270;
                _this.minGridDistance = 30;
                _this.gridType = "circles";
                _this.axisAngle = -90;
                _this.isMeasured = false;
                _this.layout = "none";
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.line.strokeOpacity = 0;
                _this.labels.template.horizontalCenter = "middle";
                _this._disposers.push(_this._chart);
                _this.applyTheme();
                return _this;
            }
            /**
             * Validates Axis renderer.
             *
             * @ignore Exclude from docs
             */
            AxisRendererRadial.prototype.validate = function () {
                // so that radius would be updated
                if (this.chart && this.chart.invalid) {
                    this.chart.validate();
                }
                _super.prototype.validate.call(this);
            };
            Object.defineProperty(AxisRendererRadial.prototype, "axisLength", {
                /**
                 * Returns actual length of the Axis, in pixels.
                 *
                 * @return {number} Length (px)
                 */
                get: function () {
                    return this.pixelRadius - this.pixelInnerRadius;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "radius", {
                /**
                 * @return {number | Percent} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the axis.
                 *
                 * Can be absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, false, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "pixelRadius", {
                /**
                 * Outer radius in pixels.
                 *
                 * @return {number} Outer radius (px)
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](this.radius, this.pixelRadiusReal) || 0;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "innerRadius", {
                /**
                 * @return {number | Percent} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the axis.
                 *
                 * Can be absolute (px) or relative ([[Percent]]).
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, false, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "pixelInnerRadius", {
                /**
                 * Inner radius in pixels.
                 *
                 * @return {number} Inner radius (px)
                 */
                get: function () {
                    return _core_utils_Utils__WEBPACK_IMPORTED_MODULE_9__["relativeRadiusToValue"](this.innerRadius, this.pixelRadiusReal) || 0;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "chart", {
                /**
                 * @ignore Exclude from docs
                 * @return {RadarChart} Chart
                 */
                get: function () {
                    return this._chart.get();
                },
                /**
                 * Chart, associated with the Axis.
                 *
                 * @ignore Exclude from docs
                 * @param {RadarChart} value Chart
                 */
                set: function (chart) {
                    this._chart.set(chart, null);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position on axis to point coordinates.
             *
             * @param  {number}  position  Position (0-1)
             * @return {IPoint}            Point
             */
            AxisRendererRadial.prototype.positionToPoint = function (position) {
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](this.positionToCoordinate(position), 0, Infinity);
                return { x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](this.axisAngle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](this.axisAngle) };
            };
            /**
             * Updates and positions the axis line element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererRadial.prototype.updateAxisLine = function () {
                this.line.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: this.pixelInnerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](this.axisAngle), y: this.pixelInnerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](this.axisAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: this.pixelRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](this.axisAngle), y: this.pixelRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](this.axisAngle) });
                var title = this.axis.title;
                title.valign = "none";
                title.horizontalCenter = "middle";
                title.verticalCenter = "bottom";
                title.y = -this.axisLength / 2;
                var rotation = 90;
                if (this.opposite) {
                    if (!this.inside) {
                        rotation = -90;
                    }
                }
                else {
                    if (this.inside) {
                        rotation = -90;
                    }
                }
                title.rotation = rotation;
            };
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererRadial.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                var path;
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getDistance"](point);
                var startAngle = this.startAngle;
                var endAngle = this.endAngle;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isNumber"](radius) && grid.element) {
                    var chart = this.chart;
                    var xAxis = chart.xAxes.getIndex(0);
                    var count = chart.dataItems.length;
                    var series = chart.series.getIndex(0);
                    // polygons are only possible if x axis is present
                    // @todo: review this
                    if (this.gridType == "polygons" && count > 0 && series && xAxis && xAxis instanceof _CategoryAxis__WEBPACK_IMPORTED_MODULE_2__["CategoryAxis"]) {
                        var gridLocation = xAxis.renderer.grid.template.location;
                        var angle = xAxis.getAngle(series.dataItems.getIndex(0), "categoryX", gridLocation);
                        path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                        var count_1 = chart.dataItems.length;
                        for (var i = 1; i < count_1; i++) {
                            angle = xAxis.getAngle(series.dataItems.getIndex(i), "categoryX", gridLocation);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                        }
                        angle = xAxis.getAngle(series.dataItems.getIndex(count_1 - 1), "categoryX", xAxis.renderer.cellEndLocation);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    }
                    else {
                        path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](startAngle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](startAngle) }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["arcTo"](startAngle, endAngle - startAngle, radius, radius);
                    }
                    grid.path = path;
                }
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions a label element.
             *
             * @ignore Exclude from docs
             * @param {AxisLabel}  label        Label element
             * @param {number}     position     Starting position
             * @param {number}     endPosition  Ending position
             */
            AxisRendererRadial.prototype.updateLabelElement = function (label, position, endPosition, location) {
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](location)) {
                    location = label.location;
                }
                position = position + (endPosition - position) * location;
                var point = this.positionToPoint(position);
                this.positionItem(label, point);
                this.toggleVisibility(label, position, this.minLabelPosition, this.maxLabelPosition);
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererRadial.prototype.updateBaseGridElement = function () {
                // @todo? zero grid for radar chart, is it needed?
            };
            /**
             * Checks if point is within bounds of a container.
             *
             * @ignore Exclude from docs
             * @param  {IPoint}   point Point coordinates
             * @return {boolean}         Fits?
             */
            AxisRendererRadial.prototype.fitsToBounds = function (point) {
                return true;
            };
            Object.defineProperty(AxisRendererRadial.prototype, "startAngle", {
                /**
                 * @return {number} Start angle
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Start angle of the axis in degrees. (0-360)
                 *
                 * @param {number}  value  Start angle
                 */
                set: function (value) {
                    // do not normalize angel here!
                    this.setPropertyValue("startAngle", value);
                    this.invalidateAxisItems();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "endAngle", {
                /**
                 * @return {number} End angle
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * End angle of the axis in degrees. (0-360)
                 *
                 * @param {number}  value  End angle
                 */
                set: function (value) {
                    // do not normalize angel here!
                    this.setPropertyValue("endAngle", value);
                    this.invalidateAxisItems();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "axisAngle", {
                /**
                 * @return {number} Axis angle
                 */
                get: function () {
                    return this.getPropertyValue("axisAngle");
                    //return $math.fitToRange(this.getPropertyValue("axisAngle"), this.startAngle, this.endAngle); // no good, as less flexible
                },
                /**
                 * Angle of the radial axis in degrees. (0-360)
                 *
                 * @param {number}  value  Axis angle
                 */
                set: function (value) {
                    this.setPropertyValue("axisAngle", _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["normalizeAngle"](value));
                    this.invalidateAxisItems();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(AxisRendererRadial.prototype, "gridType", {
                /**
                 * @type {"circles" | "polygons"} Grid type
                 */
                get: function () {
                    var axis = this.chart.xAxes.getIndex(0);
                    if (axis instanceof _CategoryAxis__WEBPACK_IMPORTED_MODULE_2__["CategoryAxis"]) {
                        return this.getPropertyValue("gridType");
                    }
                    else {
                        return "circles";
                    }
                },
                // polygons grid type is only possible under these conditions: xAxis is available and it is CategoryAxis, also at least one series should be added to a chart
                /**
                 * Grid type for radial axis.
                 *
                 * A grid on radia axis can either be perfect circles ("circles"), or
                 * straight lines ("polygons").
                 *
                 * @default "circles"
                 * @param {"circles" | "polygons"}  value  Grid type
                 */
                set: function (value) {
                    this.setPropertyValue("gridType", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * [getPositionRangePath description]
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}  startPosition  Starting position
             * @param  {number}  endPosition    End position
             * @return {string}                 SVG path
             */
            AxisRendererRadial.prototype.getPositionRangePath = function (startPosition, endPosition) {
                var pixelInnerRadius = this.pixelInnerRadius;
                var pixelRadius = this.axisLength + pixelInnerRadius;
                var innerRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](this.positionToCoordinate(startPosition), pixelInnerRadius, pixelRadius);
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["fitToRange"](this.positionToCoordinate(endPosition), pixelInnerRadius, pixelRadius);
                //let angleCount: number = this.angleCount;
                var startAngle = this.startAngle;
                var endAngle = this.endAngle;
                var arc = endAngle - startAngle;
                var path;
                var chart = this.chart;
                var xAxis = chart.xAxes.getIndex(0);
                var count = chart.dataItems.length;
                var series = chart.series.getIndex(0);
                // polygons are only possible if x axis is present
                // @todo: review this
                if (this.gridType == "polygons" && count > 0 && series && xAxis && xAxis instanceof _CategoryAxis__WEBPACK_IMPORTED_MODULE_2__["CategoryAxis"]) {
                    var gridLocation = xAxis.renderer.grid.template.location;
                    var angle = xAxis.getAngle(series.dataItems.getIndex(0), "categoryX", gridLocation);
                    path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    var count_2 = chart.dataItems.length;
                    for (var i = 1; i < count_2; i++) {
                        angle = xAxis.getAngle(series.dataItems.getIndex(i), "categoryX", gridLocation);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    }
                    angle = xAxis.getAngle(series.dataItems.getIndex(count_2 - 1), "categoryX", xAxis.renderer.cellEndLocation);
                    path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    for (var i = count_2 - 1; i >= 0; i--) {
                        angle = xAxis.getAngle(series.dataItems.getIndex(i), "categoryX", gridLocation);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: innerRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                    }
                }
                else {
                    path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["arc"](startAngle, arc, radius, innerRadius);
                }
                return path;
            };
            /**
             * Updates and positions an axis break element.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Break element
             */
            AxisRendererRadial.prototype.updateBreakElement = function (axisBreak) {
                // @todo: someday we might need axis break when gridType is polygons
                var startLine = axisBreak.startLine;
                var endLine = axisBreak.endLine;
                var fillShape = axisBreak.fillShape;
                var startPoint = axisBreak.startPoint;
                var endPoint = axisBreak.endPoint;
                startLine.radius = Math.abs(startPoint.y);
                endLine.radius = Math.abs(endPoint.y);
                fillShape.radius = Math.abs(endPoint.y);
                fillShape.innerRadius = Math.abs(startPoint.y);
            };
            /**
             * Creates visual elements for and axis break.
             *
             * @ignore Exclude from docs
             * @param {AxisBreak} axisBreak Axis break
             */
            AxisRendererRadial.prototype.createBreakSprites = function (axisBreak) {
                axisBreak.startLine = new _core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_3__["WavedCircle"]();
                axisBreak.endLine = new _core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_3__["WavedCircle"]();
                axisBreak.fillShape = new _core_elements_WavedCircle__WEBPACK_IMPORTED_MODULE_3__["WavedCircle"]();
            };
            /**
             * Updates some of the Axis tooltip's visual properties, related to
             * rendering of the Axis.
             *
             * @todo Description (review)
             * @ignore Exclude from docs
             */
            AxisRendererRadial.prototype.updateTooltip = function () {
                var axis = this.axis;
                if (axis) {
                    var bigNum = 4000;
                    var bbx = -4000;
                    var bby = -4000;
                    var bbw = bigNum * 2;
                    var bbh = bigNum * 2;
                    var axisAngle = this.axisAngle;
                    if (axisAngle < 0) {
                        axisAngle += 360;
                    }
                    var tooltipOrientation = "vertical";
                    if ((axisAngle > 45 && axisAngle < 135) || (axisAngle > 225 && axisAngle < 315)) {
                        tooltipOrientation = "horizontal";
                    }
                    this.axis.updateTooltip(tooltipOrientation, { x: bbx, y: bby, width: bbw, height: bbh });
                }
            };
            /**
             * Updates and positions a tick element.
             *
             * @ignore Exclude from docs
             * @param {AxisTick}  tick      Tick element
             * @param {number}    position  Position
             */
            AxisRendererRadial.prototype.updateTickElement = function (tick, position) {
                var point = this.positionToPoint(position);
                if (tick.element) {
                    var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["normalizeAngle"](this.axisAngle + 90);
                    if (angle / 90 != Math.round(angle / 90)) {
                        tick.pixelPerfect = false;
                    }
                    else {
                        tick.pixelPerfect = true;
                    }
                    var tickLength = -tick.length;
                    if (tick.inside) {
                        tickLength *= -1;
                    }
                    tick.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: tickLength * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](angle), y: tickLength * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](angle) });
                }
                this.positionItem(tick, point);
                this.toggleVisibility(tick, position, 0, 1);
            };
            /**
             * Converts a position on the axis to a coordinate in pixels.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (0-1)
             * @return {number}            Coordinate (px)
             */
            AxisRendererRadial.prototype.positionToCoordinate = function (position) {
                var coordinate;
                var axis = this.axis;
                var axisFullLength = axis.axisFullLength;
                var innerRadius = this.pixelInnerRadius;
                if (axis.renderer.inversed) {
                    coordinate = (axis.end - position) * axisFullLength + innerRadius;
                }
                else {
                    coordinate = (position - axis.start) * axisFullLength + innerRadius;
                }
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["round"](coordinate, 1);
            };
            return AxisRendererRadial;
        }(_AxisRendererY__WEBPACK_IMPORTED_MODULE_1__["AxisRendererY"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["AxisRendererRadial"] = AxisRendererRadial;
        //# sourceMappingURL=AxisRendererRadial.js.map
        /***/ 
    }),
    /* 930 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockHand", function () { return ClockHand; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(866);
        /* harmony import */ var _core_elements_Trapezoid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(884);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(754);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Functionality for drawing simple ClockHands
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * ClockHand class is capable of drawing a simple pointy shape with optionally
         * rounderd corners and an icon.
         *
         * @see {@link IClockHandEvents} for a list of available events
         * @see {@link IClockHandAdapters} for a list of available Adapters
         * @todo Improve
         * @important
         */
        var ClockHand = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClockHand, _super);
            /**
             * Constructor
             */
            function ClockHand() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * An Axis hand is related to.
                 *
                 * @type {MutableValueDisposer<Axis>}
                 */
                _this._axis = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MutableValueDisposer"]();
                _this.className = "ClockHand";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__["InterfaceColorSet"]();
                _this.fill = interfaceColors.getFor("alternativeBackground");
                _this.stroke = _this.fill;
                var pin = new _core_elements_Circle__WEBPACK_IMPORTED_MODULE_2__["Circle"]();
                pin.radius = 5;
                _this.pin = pin;
                _this.isMeasured = false;
                _this.startWidth = 5;
                _this.endWidth = 1;
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.innerRadius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(0);
                var hand = new _core_elements_Trapezoid__WEBPACK_IMPORTED_MODULE_3__["Trapezoid"]();
                _this.hand = hand;
                _this._disposers.push(_this._axis);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Re(validates) the clock hand, effectively redrawing it.
             *
             * @ignore Exclude from docs
             */
            ClockHand.prototype.validate = function () {
                _super.prototype.validate.call(this);
                var hand = this.hand;
                hand.width = this.pixelWidth;
                var h = Math.max(this.startWidth, this.endWidth);
                hand.height = h;
                hand.leftSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(this.startWidth / h * 100);
                hand.rightSide = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(this.endWidth / h * 100);
                if (this.axis) {
                    var renderer = this.axis.renderer;
                    var x0 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["relativeRadiusToValue"](this.innerRadius, renderer.pixelRadius);
                    var x1 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_8__["relativeRadiusToValue"](this.radius, renderer.pixelRadius);
                    hand.x = x0;
                    hand.y = -h / 2;
                    hand.width = x1 - x0;
                }
            };
            Object.defineProperty(ClockHand.prototype, "pin", {
                /**
                 * @return {Circle} Pin element
                 */
                get: function () {
                    return this._pin;
                },
                /**
                 * A circle element used as hand's base. (pin)
                 *
                 * @param {Circle}  pin  Pin element
                 */
                set: function (pin) {
                    if (this._pin) {
                        this.removeDispose(this._pin);
                    }
                    if (pin) {
                        this._pin = pin;
                        pin.parent = this;
                        this._disposers.push(pin);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "hand", {
                /**
                 * @return {Trapezoid} Hand element
                 */
                get: function () {
                    return this._hand;
                },
                /**
                 * A trapezoid shape used for hand itself.
                 *
                 * The shape of the trapezoid is controlled by ClockHand's `startWidth` and
                 * `endWidth` properties.
                 *
                 * Set `endWidth` to 1 (px) to make it pointy.
                 *
                 * @param {Trapezoid}  hand  Hand element
                 */
                set: function (hand) {
                    if (this._hand) {
                        this.removeDispose(this._hand);
                    }
                    if (hand) {
                        this._hand = hand;
                        hand.parent = this;
                        this._disposers.push(hand);
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "radius", {
                /**
                 * @return {number} Radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Radius of the hand's outer end. (tip)
                 *
                 * Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(0)
                 * @param {number | Percent}  value  Radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "innerRadius", {
                /**
                 * @return {number} Radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Radius of the hand's inner end. (base)
                 *
                 * Absolute (px) or relative ([[Percent]]).
                 *
                 * @default Percent(0)
                 * @param {number | Percent}  value  Radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "startWidth", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.getPropertyValue("startWidth");
                },
                /**
                 * Width, in pixels, of the clock hand's inner end. (base)
                 *
                 * @default 5
                 * @param {number}  value  Width (px)
                 */
                set: function (value) {
                    this.setPropertyValue("startWidth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "endWidth", {
                /**
                 * @return {number} Width (px)
                 */
                get: function () {
                    return this.getPropertyValue("endWidth");
                },
                /**
                 * Width, in pixels, of the clock hand's outer end. (tip)
                 *
                 * @default 1
                 * @param {number}  value  Width (px)
                 */
                set: function (value) {
                    this.setPropertyValue("endWidth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "rotationDirection", {
                /**
                 * @return {"any" | "clockWise" | "counterClockWise"} rotationDirection
                 */
                get: function () {
                    return this.getPropertyValue("rotationDirection");
                },
                /**
                 * Rotation direction
                 *
                 * @default any
                 * @param {"any" | "clockWise" | "counterClockWise"}  value
                 */
                set: function (value) {
                    this.setPropertyValue("rotationDirection", value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Moves clock hand to particular value.
             *
             * If `duration` is set to a number in milliseconds, the hand will move
             * to the new position gracefully, rather than jumping rigth to it.
             *
             * Alternatively, you can also set `value` directly.
             *
             * @param {any}     value     New value
             * @param {number}  duration  Animation duration (ms)
             * @param {(value:number)=>number}  easing  Animation easing function
             */
            ClockHand.prototype.showValue = function (value, duration, easing) {
                this._value = value;
                if (value != undefined) {
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](duration)) {
                        duration = 0;
                    }
                    if (this.axis) {
                        var renderer = this.axis.renderer;
                        var newAngle = renderer.positionToAngle(this.axis.anyToPosition(value));
                        var currentAngle = this.rotation;
                        if (this.rotationDirection == "clockWise") {
                            if (newAngle < currentAngle) {
                                this.rotation = currentAngle - 360;
                            }
                        }
                        if (this.rotationDirection == "counterClockWise") {
                            if (newAngle > currentAngle) {
                                this.rotation = currentAngle + 360;
                            }
                        }
                        this.animate({ property: "rotation", to: newAngle }, duration, easing);
                    }
                }
            };
            Object.defineProperty(ClockHand.prototype, "value", {
                /**
                 * @return {any} Value
                 */
                get: function () {
                    return this._value;
                },
                /**
                 * A current value clock hand is pointing to.
                 *
                 * @param {any}  value  Value
                 */
                set: function (value) {
                    this.showValue(value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ClockHand.prototype, "axis", {
                /**
                 * @return {Axis} Axis
                 */
                get: function () {
                    return this._axis.get();
                },
                /**
                 * An Axis clock hand is associated with.
                 *
                 * Hand's `value` relates to values on the Axis.
                 *
                 * @param {Axis}  axis  Axis
                 */
                set: function (axis) {
                    if (this.axis != axis) {
                        this._axis.set(axis, new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_4__["MultiDisposer"]([
                            axis.events.on("datavalidated", this.updateValue, this, false),
                            axis.events.on("datarangechanged", this.updateValue, this, false),
                            axis.events.on("dataitemsvalidated", this.updateValue, this, false),
                            axis.events.on("propertychanged", this.invalidate, this, false)
                        ]));
                    }
                    if (axis) {
                        var chart = axis.chart;
                        if (chart) {
                            this.rotation = chart.startAngle;
                        }
                    }
                    this.parent = axis.renderer;
                    this.zIndex = 5;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Triggers `value` accessor, so that Hand animates to new position, in case
             * value has changed.
             *
             * @ignore Exclude from docs
             */
            ClockHand.prototype.updateValue = function () {
                this.value = this.value;
            };
            /**
         * Processes JSON-based config before it is applied to the object.
         *
         * @ignore Exclude from docs
         * @param {object}  config  Config
         */
            ClockHand.prototype.processConfig = function (config) {
                if (config) {
                    // Connect clock hands with axes
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.axis) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isString"](config.axis) && this.map.hasKey(config.axis)) {
                        config.axis = this.map.getKey(config.axis);
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return ClockHand;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["ClockHand"] = ClockHand;
        //# sourceMappingURL=ClockHand.js.map
        /***/ 
    }),
    /* 931 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChart3DDataItem", function () { return PieChart3DDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChart3D", function () { return PieChart3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PieChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(932);
        /* harmony import */ var _series_PieSeries3D__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(937);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * 3D Pie chart module.
         */
        /**
         * ============================================================================
         * Imports
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[PieChart3D]].
         *
         * @see {@link DataItem}
         */
        var PieChart3DDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieChart3DDataItem, _super);
            /**
             * Constructor
             */
            function PieChart3DDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PieChart3DDataItem";
                _this.applyTheme();
                return _this;
            }
            return PieChart3DDataItem;
        }(_PieChart__WEBPACK_IMPORTED_MODULE_1__["PieChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a 3D Pie chart.
         *
         *  * ```TypeScript
         * // Includes
         * import * as am4core from "@amcharts/amcharts4/core";
         * import * as am4charts from "@amcharts/amcharts4/charts";
         *
         * // Create chart
         * let chart = am4core.create("chartdiv", am4charts.Pie3DChart);
         *
         * // Set data
         * chart.data = [{
         * 	"country": "Lithuania",
         * 	"litres": 501.9
         * }, {
         * 	"country": "Czech Republic",
         * 	"litres": 301.9
         * }, {
         * 	"country": "Ireland",
         * 	"litres": 201.1
         * }];
         *
         * // Create series
         * let series = chart.series.push(new am4charts.Pie3DSeries());
         * series.dataFields.value = "litres";
         * series.dataFields.category = "country";
         * ```
         * ```JavaScript
         * // Create chart
         * var chart = am4core.create("chartdiv", am4charts.Pie3DChart);
         *
         * // The following would work as well:
         * // var chart = am4core.create("chartdiv", "Pie3DChart");
         *
         * // Set data
         * chart.data = [{
         * 	"country": "Lithuania",
         * 	"litres": 501.9
         * }, {
         * 	"country": "Czech Republic",
         * 	"litres": 301.9
         * }, {
         * 	"country": "Ireland",
         * 	"litres": 201.1
         * }];
         *
         * // Create series
         * var series = chart.series.push(new am4charts.Pie3DSeries());
         * series.dataFields.value = "litres";
         * series.dataFields.category = "country";
         * ```
         * ```JSON
         * var chart = am4core.createFromConfig({
         *
         * 	// Series
         * 	"series": [{
         * 		"type": "Pie3DSeries",
         * 		"dataFields": {
         * 			"value": "litres",
         * 			"category": "country"
         * 		}
         * 	}],
         *
         * 	// Data
         * 	"data": [{
         * 		"country": "Lithuania",
         * 		"litres": 501.9
         * 	}, {
         * 		"country": "Czech Republic",
         * 		"litres": 301.9
         * 	}, {
         * 		"country": "Ireland",
         * 		"litres": 201.1
         * 	}]
         *
         * }, "chartdiv", "Pie3DChart");
         * ```
         *
         * @see {@link IPieChart3DEvents} for a list of available Events
         * @see {@link IPieChart3DAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/pie-chart/} for documentation
         * @important
         */
        var PieChart3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieChart3D, _super);
            /**
             * Constructor
             */
            function PieChart3D() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "PieChart3D";
                _this.depth = 20;
                _this.angle = 10;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(PieChart3D.prototype, "depth", {
                /**
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth of the 3D pie in pixels.
                 *
                 * This will determine "height" of the pie.
                 *
                 * @default 20
                 * @param {number}  value  Depth (px)
                 */
                set: function (value) {
                    this.setPropertyValue("depth", value);
                    this.invalidateDataUsers();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieChart3D.prototype, "angle", {
                /**
                 * @return {number} Angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * An angle of a "point of view" in degrees.
                 *
                 * @default 10
                 * @param {number}  value  Angle (degrees)
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value);
                    this.invalidateDataUsers();
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and returns a new Series.
             *
             * @return {PieSeries3D} New series
             */
            PieChart3D.prototype.createSeries = function () {
                return new _series_PieSeries3D__WEBPACK_IMPORTED_MODULE_2__["PieSeries3D"]();
            };
            return PieChart3D;
        }(_PieChart__WEBPACK_IMPORTED_MODULE_1__["PieChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PieChart3D"] = PieChart3D;
        //# sourceMappingURL=PieChart3D.js.map
        /***/ 
    }),
    /* 932 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChartDataItem", function () { return PieChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChart", function () { return PieChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PercentChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(933);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _series_PieSeries__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(935);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /**
         * Pie chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[PieChart]].
         *
         * @see {@link DataItem}
         */
        var PieChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieChartDataItem, _super);
            /**
             * Constructor
             */
            function PieChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PieChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return PieChartDataItem;
        }(_PercentChart__WEBPACK_IMPORTED_MODULE_1__["PercentChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Pie chart.
         *
         * ```TypeScript
         * // Includes
         * import * as am4core from "@amcharts/amcharts4/core";
         * import * as am4charts from "@amcharts/amcharts4/charts";
         *
         * // Create chart
         * let chart = am4core.create("chartdiv", am4charts.PieChart);
         *
         * // Set data
         * chart.data = [{
         * 	"country": "Lithuania",
         * 	"litres": 501.9
         * }, {
         * 	"country": "Czech Republic",
         * 	"litres": 301.9
         * }, {
         * 	"country": "Ireland",
         * 	"litres": 201.1
         * }];
         *
         * // Create series
         * let series = chart.series.push(new am4charts.PieSeries());
         * series.dataFields.value = "litres";
         * series.dataFields.category = "country";
         * ```
         * ```JavaScript
         * // Create chart
         * var chart = am4core.create("chartdiv", am4charts.PieChart);
         *
         * // The following would work as well:
         * // var chart = am4core.create("chartdiv", "PieChart");
         *
         * // Set data
         * chart.data = [{
         * 	"country": "Lithuania",
         * 	"litres": 501.9
         * }, {
         * 	"country": "Czech Republic",
         * 	"litres": 301.9
         * }, {
         * 	"country": "Ireland",
         * 	"litres": 201.1
         * }];
         *
         * // Create series
         * var series = chart.series.push(new am4charts.PieSeries());
         * series.dataFields.value = "litres";
         * series.dataFields.category = "country";
         * ```
         * ```JSON
         * var chart = am4core.createFromConfig({
         *
         * 	// Series
         * 	"series": [{
         * 		"type": "PieSeries",
         * 		"dataFields": {
         * 			"value": "litres",
         * 			"category": "country"
         * 		}
         * 	}],
         *
         * 	// Data
         * 	"data": [{
         * 		"country": "Lithuania",
         * 		"litres": 501.9
         * 	}, {
         * 		"country": "Czech Republic",
         * 		"litres": 301.9
         * 	}, {
         * 		"country": "Ireland",
         * 		"litres": 201.1
         * 	}]
         *
         * }, "chartdiv", "PieChart");
         * ```
         *
         * @see {@link IPieChartEvents} for a list of available Events
         * @see {@link IPieChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/pie-chart/} for documentation
         * @important
         */
        var PieChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieChart, _super);
            /**
             * Constructor
             */
            function PieChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "PieChart";
                // Set defaults
                _this.innerRadius = 0;
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(80);
                _this.align = "none";
                _this.valign = "none";
                _this.startAngle = -90;
                _this.endAngle = 270;
                var seriesContainer = _this.seriesContainer;
                seriesContainer.isMeasured = true;
                seriesContainer.valign = "middle";
                seriesContainer.align = "center";
                seriesContainer.layout = "absolute";
                seriesContainer.width = undefined;
                seriesContainer.height = undefined;
                // so that the pie is always drawn, even the legend wants all the space
                _this.chartContainer.minHeight = 50;
                _this.chartContainer.minWidth = 50;
                _this.chartContainer.events.on("maxsizechanged", _this.updateRadius, _this, false); // need this for the chart to change radius if legend is removed/disabled
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            PieChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Pie chart");
                }
            };
            /**
             * (Re)validates the chart, causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            PieChart.prototype.validateLayout = function () {
                _super.prototype.validateLayout.call(this);
                this.updateRadius();
            };
            /**
             * Decorates a new [[Series]] object with required parameters when it is
             * added to the chart.
             *
             * @ignore Exclude from docs
             * @param {IListEvents<Series>["inserted"]}  event  Event
             */
            PieChart.prototype.handleSeriesAdded = function (event) {
                _super.prototype.handleSeriesAdded.call(this, event);
                this.updateSeriesAngles();
            };
            PieChart.prototype.updateSeriesAngles = function () {
                var _this = this;
                this.series.each(function (series) {
                    series.startAngle = _this.startAngle;
                    series.endAngle = _this.endAngle;
                    series.defaultState.properties.startAngle = _this.startAngle;
                    series.defaultState.properties.endAngle = _this.endAngle;
                });
            };
            /**
             * Recalculates pie's radius, based on a number of criteria.
             *
             * @ignore Exclude from docs
             */
            PieChart.prototype.updateRadius = function () {
                var chartCont = this.chartContainer;
                var rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getArcRect"](this.startAngle, this.endAngle, 1);
                var innerRect = { x: 0, y: 0, width: 0, height: 0 };
                var innerRadius = this.innerRadius;
                if (innerRadius instanceof _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["Percent"]) {
                    innerRect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getArcRect"](this.startAngle, this.endAngle, innerRadius.value);
                }
                // @todo handle this when innerRadius set in pixels (do it for radar also)
                rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getCommonRectangle"]([rect, innerRect]);
                var maxRadius = Math.min(chartCont.innerWidth / rect.width, chartCont.innerHeight / rect.height);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](maxRadius)) {
                    maxRadius = 0;
                }
                var chartRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](this.radius, maxRadius);
                var chartPixelInnerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](this.innerRadius, maxRadius);
                var seriesRadius = (chartRadius - chartPixelInnerRadius) / this.series.length;
                //@todo: make it possible to set series radius in percent
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["indexed"](this.series.iterator()), function (a) {
                    var i = a[0];
                    var series = a[1];
                    var radius = chartPixelInnerRadius + _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](series.radius, chartRadius - chartPixelInnerRadius);
                    var innerRadius = chartPixelInnerRadius + _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["relativeRadiusToValue"](series.innerRadius, chartRadius - chartPixelInnerRadius);
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](radius)) {
                        radius = chartPixelInnerRadius + seriesRadius * (i + 1);
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](innerRadius)) {
                        innerRadius = chartPixelInnerRadius + seriesRadius * i;
                    }
                    series.pixelRadius = radius;
                    series.pixelInnerRadius = innerRadius;
                });
                this.seriesContainer.definedBBox = { x: chartRadius * rect.x, y: chartRadius * rect.y, width: chartRadius * rect.width, height: chartRadius * rect.height };
                this.seriesContainer.invalidateLayout();
            };
            Object.defineProperty(PieChart.prototype, "radius", {
                /**
                 * @return {number} Radius (px or relative)
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Sets radius of the pie chart.
                 *
                 * Setting to a number will mean a fixed pixel radius.
                 *
                 * Setting to an instance of [[Percent]] will mean a relative radius to
                 * available space.
                 *
                 * E.g.:
                 *
                 * ```TypeScript
                 * // Set pie chart to be at 50% of the available space
                 * pieChart.radius = am4core.percent.percent(50);
                 * ```
                 * ```JavaScript
                 * // Set pie chart to be at 50% of the available space
                 * pieChart.radius = am4core.percent.percent(50);
                 * ```
                 * ```JSON
                 * {
                 *   // Set pie chart to be at 50% of the available space
                 *   "radius": "50%"
                 * }
                 * ```
                 *
                 * @param {number | Percent}  value  Radius (px or relative)
                 */
                set: function (value) {
                    if (this.setPercentProperty("radius", value, true, false, 10, false)) {
                        this.invalidateLayout();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieChart.prototype, "innerRadius", {
                /**
                 * @return {number} Relative inner radius (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Sets relative inner radius (to create a donut chart).
                 *
                 * The inner radius is relative to pie's radius:
                 * * 0 - solid pie (no hole inside);
                 * * 0.5 - hole is half the radius of the pie;
                 * * 1 - does not make sense, because the hole will take up the whole radius.
                 *
                 * @param {number | Percent}  value  Relative inner radius (0-1)
                 * @todo Setting things like `innerRadius` modifies `slice.radius` and it then looks like it is not the same value as in default state
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates a new [[PieSeries]].
             *
             * @return {PieSeries} New series
             */
            PieChart.prototype.createSeries = function () {
                return new _series_PieSeries__WEBPACK_IMPORTED_MODULE_3__["PieSeries"]();
            };
            Object.defineProperty(PieChart.prototype, "startAngle", {
                /**
                 * @return {number} Start angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Starting angle of the Pie circle. (degrees)
                 *
                 * Normally, a pie chart begins (the left side of the first slice is drawn)
                 * at the top center. (at -90 degrees)
                 *
                 * You can use `startAngle` to change this setting.
                 *
                 * E.g. setting this to 0 will make the first slice be drawn to the right.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set to those lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a Pie chart that
                 * looks like a quarter of a circle.
                 *
                 * NOTE: This setting is not supported in a 3D pie chart.
                 *
                 * @default -90
                 * @param {number}  value  Start angle (degrees)
                 */
                set: function (value) {
                    if (this.setPropertyValue("startAngle", value)) {
                        this.updateRadius();
                        this.updateSeriesAngles();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieChart.prototype, "endAngle", {
                /**
                 * @return {number} End angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * End angle of the Pie circle. (degrees)
                 *
                 * Normally, a pie chart ends (the right side of the last slice is drawn)
                 * at the top center. (at 270 degrees)
                 *
                 * You can use `endAngle` to change this setting.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set to those lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a Pie chart that
                 * looks like a quarter of a circle.
                 *
                 * NOTE: This setting is not supported in a 3D pie chart.
                 *
                 * @default 270
                 * @param {number}  value  End angle (degrees)
                 */
                set: function (value) {
                    if (this.setPropertyValue("endAngle", value)) {
                        this.updateRadius();
                        this.updateSeriesAngles();
                    }
                },
                enumerable: true,
                configurable: true
            });
            return PieChart;
        }(_PercentChart__WEBPACK_IMPORTED_MODULE_1__["PercentChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["PieChart"] = PieChart;
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["PieChartDataItem"] = PieChartDataItem;
        //# sourceMappingURL=PieChart.js.map
        /***/ 
    }),
    /* 933 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentChartDataItem", function () { return PercentChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentChart", function () { return PercentChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _SerialChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(910);
        /* harmony import */ var _series_PercentSeries__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(934);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(762);
        /**
         * Percent chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[PercentChart]].
         *
         * @see {@link DataItem}
         */
        var PercentChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PercentChartDataItem, _super);
            /**
             * Constructor
             */
            function PercentChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PercentChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return PercentChartDataItem;
        }(_SerialChart__WEBPACK_IMPORTED_MODULE_1__["SerialChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This is a base class for "percent-based" chart types like Pie and Funnel.
         *
         * @see {@link IPercentChartEvents} for a list of available Events
         * @see {@link IPercentChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/pie-chart/} for Pie chart documentation
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for Sliced chart documentation
         */
        var PercentChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PercentChart, _super);
            /**
             * Constructor
             */
            function PercentChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "PercentChart";
                _this.align = "none";
                _this.valign = "none";
                // so that the chart is always drawn, even the legend wants all the space
                _this.chartContainer.minHeight = 50;
                _this.chartContainer.minWidth = 50;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)validates chart data.
             *
             * @ignore Exclude from docs
             */
            PercentChart.prototype.validateData = function () {
                _super.prototype.validateData.call(this);
                this.feedLegend();
            };
            /**
             * Setups the legend to use the chart's data.
             */
            PercentChart.prototype.feedLegend = function () {
                var legend = this.legend;
                if (legend) {
                    var legendData_1 = [];
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](this.series.iterator(), function (series) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_4__["each"](series.dataItems.iterator(), function (dataItem) {
                            if (!dataItem.hiddenInLegend) {
                                legendData_1.push(dataItem);
                                var legendSettings = series.legendSettings;
                                if (legendSettings) {
                                    if (legendSettings.labelText) {
                                        legend.labels.template.text = legendSettings.labelText;
                                    }
                                    if (legendSettings.itemLabelText) {
                                        legend.labels.template.text = legendSettings.itemLabelText;
                                    }
                                    if (legendSettings.valueText) {
                                        legend.valueLabels.template.text = legendSettings.valueText;
                                    }
                                    if (legendSettings.itemValueText) {
                                        legend.valueLabels.template.text = legendSettings.itemValueText;
                                    }
                                }
                            }
                        });
                    });
                    legend.data = legendData_1;
                    legend.dataFields.name = "category";
                }
            };
            /**
             * Creates a new [[PercentSeries]].
             *
             * @return {PercentSeries} New series
             */
            PercentChart.prototype.createSeries = function () {
                return new _series_PercentSeries__WEBPACK_IMPORTED_MODULE_2__["PercentSeries"]();
            };
            /**
             * @ignore
             */
            PercentChart.prototype.setLegend = function (legend) {
                _super.prototype.setLegend.call(this, legend);
                if (legend) {
                    legend.labels.template.text = "{category}";
                    legend.valueLabels.template.text = "{value.percent.formatNumber('#.0')}%";
                    legend.itemContainers.template.events.on("over", function (event) {
                        var PercentSeriesDataItem = event.target.dataItem.dataContext;
                        if (PercentSeriesDataItem.visible && !PercentSeriesDataItem.isHiding) {
                            PercentSeriesDataItem.slice.isHover = true;
                        }
                    });
                    legend.itemContainers.template.events.on("out", function (event) {
                        var PercentSeriesDataItem = event.target.dataItem.dataContext;
                        PercentSeriesDataItem.slice.isHover = false;
                    });
                }
            };
            return PercentChart;
        }(_SerialChart__WEBPACK_IMPORTED_MODULE_1__["SerialChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @hidden
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PercentChart"] = PercentChart;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PercentChartDataItem"] = PercentChartDataItem;
        //# sourceMappingURL=PercentChart.js.map
        /***/ 
    }),
    /* 934 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentSeriesDataItem", function () { return PercentSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentSeries", function () { return PercentSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Series__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(911);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(845);
        /* harmony import */ var _elements_Tick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(847);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(769);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(903);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Ease__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(787);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(754);
        /**
         * Defines Percent Chart Series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo: sequenced?
        /**
         * Defines a [[DataItem]] for [[PercentSeries]].
         *
         * @see {@link DataItem}
         */
        var PercentSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PercentSeriesDataItem, _super);
            /**
             * Constructor
             */
            function PercentSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PercentSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            /**
             * Adds an `id` attribute the the slice element and returns its id.
             *
             * @ignore Exclude from docs
             */
            PercentSeriesDataItem.prototype.uidAttr = function () {
                return this.slice.uidAttr();
            };
            /**
             * Hide the data item (and corresponding visual elements).
             *
             * @param {number}    duration  Duration (ms)
             * @param {number}    delay     Delay hiding (ms)
             * @param {number}    toValue   Target value for animation
             * @param {string[]}  fields    Fields to animate while hiding
             */
            PercentSeriesDataItem.prototype.hide = function (duration, delay, toValue, fields) {
                if (!fields) {
                    fields = ["value"];
                }
                return _super.prototype.hide.call(this, duration, delay, 0, fields);
            };
            /**
             * Sets visibility of the Data Item.
             *
             * @param {boolean} value Data Item
             */
            PercentSeriesDataItem.prototype.setVisibility = function (value, noChangeValues) {
                if (!noChangeValues) {
                    if (value) {
                        this.setWorkingValue("value", this.values["value"].value, 0, 0);
                    }
                    else {
                        this.setWorkingValue("value", 0, 0, 0);
                    }
                }
                _super.prototype.setVisibility.call(this, value, noChangeValues);
            };
            /**
             * Show hidden data item (and corresponding cisual elements).
             *
             * @param {number}    duration  Duration (ms)
             * @param {number}    delay     Delay hiding (ms)
             * @param {string[]}  fields    Fields to animate while hiding
             */
            PercentSeriesDataItem.prototype.show = function (duration, delay, fields) {
                if (!fields) {
                    fields = ["value"];
                }
                return _super.prototype.show.call(this, duration, delay, fields);
            };
            Object.defineProperty(PercentSeriesDataItem.prototype, "category", {
                /**
                 * @return {string} Category
                 */
                get: function () {
                    return this.properties.category;
                },
                /**
                 * Category.
                 *
                 * @param {string}  value  Category
                 */
                set: function (value) {
                    this.setProperty("category", value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates a marker used in the legend for this slice.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Marker container
             */
            PercentSeriesDataItem.prototype.createLegendMarker = function (marker) {
                this.component.createLegendMarker(marker, this);
            };
            Object.defineProperty(PercentSeriesDataItem.prototype, "legendDataItem", {
                /**
                 * @return {LegendDataItem<DataItem, IDataItemEvents>} Legend data item
                 */
                get: function () {
                    return this._legendDataItem;
                },
                /**
                 * A legend's data item, that corresponds to this data item.
                 *
                 * @param {LegendDataItem<DataItem, IDataItemEvents>}  value  Legend data item
                 */
                set: function (value) {
                    this._legendDataItem = value;
                    if (value.label) {
                        value.label.dataItem = this;
                    }
                    if (value.valueLabel) {
                        value.valueLabel.dataItem = this;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeriesDataItem.prototype, "tick", {
                /**
                 * A Tick element, related to this data item. (slice)
                 *
                 * @readonly
                 * @return {this["_tick"]} Tick element
                 */
                get: function () {
                    var _this = this;
                    if (!this._tick) {
                        var tick_1 = this.component.ticks.create();
                        this._tick = tick_1;
                        this._disposers.push(tick_1);
                        tick_1.parent = this.component.ticksContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_11__["Disposer"](function () {
                            _this.component.ticks.removeValue(tick_1);
                        }));
                        this.addSprite(tick_1);
                        tick_1.visible = this.visible;
                    }
                    return this._tick;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeriesDataItem.prototype, "label", {
                /**
                 * A Label element, related to this data item. (slice)
                 *
                 * @readonly
                 * @return {this["_label"]} Label element
                 */
                get: function () {
                    var _this = this;
                    if (!this._label) {
                        var label_1 = this.component.labels.create();
                        this._label = label_1;
                        this._disposers.push(label_1);
                        label_1.parent = this.component.labelsContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_11__["Disposer"](function () {
                            _this.component.labels.removeValue(label_1);
                        }));
                        this.addSprite(label_1);
                        label_1.visible = this.visible;
                    }
                    return this._label;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeriesDataItem.prototype, "slice", {
                /**
                 * An element, related to this data item. (slice)
                 *
                 * @readonly
                 * @return {Sprite} Slice element
                 */
                get: function () {
                    var _this = this;
                    if (!this._slice) {
                        var component_1 = this.component;
                        var slice_1 = component_1.slices.create();
                        this._slice = slice_1;
                        this._disposers.push(slice_1);
                        slice_1.parent = component_1.slicesContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_11__["Disposer"](function () {
                            component_1.slices.removeValue(slice_1);
                        }));
                        this.addSprite(slice_1);
                        slice_1.visible = this.visible;
                        // Apply accessibility
                        if (component_1.itemsFocusable()) {
                            slice_1.role = "menuitem";
                            slice_1.focusable = true;
                        }
                        else {
                            slice_1.role = "listitem";
                            slice_1.focusable = false;
                        }
                        // Apply screen reader label
                        if (slice_1.focusable) {
                            slice_1.events.once("focus", function (ev) {
                                slice_1.readerTitle = component_1.populateString(component_1.itemReaderText, _this);
                            }, undefined, false);
                            slice_1.events.once("blur", function (ev) {
                                slice_1.readerTitle = "";
                            }, undefined, false);
                        }
                        if (slice_1.hoverable) {
                            slice_1.events.once("over", function (ev) {
                                slice_1.readerTitle = component_1.populateString(component_1.itemReaderText, _this);
                            }, undefined, false);
                            slice_1.events.once("out", function (ev) {
                                slice_1.readerTitle = "";
                            }, undefined, false);
                        }
                    }
                    return this._slice;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeriesDataItem.prototype, "hiddenInLegend", {
                /**
                 * @return {boolean} Disabled in legend?
                 */
                get: function () {
                    return this.properties.hiddenInLegend;
                },
                /**
                 * Should dataItem (slice) be hidden in legend?
                 *
                 * @param {boolean} value Visible in legend?
                 */
                set: function (value) {
                    this.setProperty("hiddenInLegend", value);
                },
                enumerable: true,
                configurable: true
            });
            return PercentSeriesDataItem;
        }(_Series__WEBPACK_IMPORTED_MODULE_1__["SeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[PercentSeries]] which is a base class for [[PieSeries]],
         * [[FunnelSeries]], and [[PyramidSeries]].
         *
         * @see {@link IPercentSeriesEvents} for a list of available Events
         * @see {@link IPercentSeriesAdapters} for a list of available Adapters
         */
        var PercentSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PercentSeries, _super);
            /**
             * Constructor
             */
            function PercentSeries() {
                var _this = _super.call(this) || this;
                _this.className = "PercentSeries";
                _this._addAllDataItems = false;
                _this.alignLabels = false;
                _this.colors = new _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_7__["ColorSet"]();
                _this.colors.step = 1;
                _this.isMeasured = true;
                _this.calculatePercent = true;
                var slicesContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                slicesContainer.shouldClone = false;
                slicesContainer.isMeasured = false;
                _this.slicesContainer = slicesContainer;
                var ticksContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                ticksContainer.shouldClone = false;
                ticksContainer.isMeasured = false;
                ticksContainer.layout = "none";
                _this.ticksContainer = ticksContainer;
                var labelsContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_6__["Container"]);
                labelsContainer.shouldClone = false;
                labelsContainer.isMeasured = false;
                labelsContainer.layout = "none";
                _this.labelsContainer = labelsContainer;
                _this.bulletsContainer.toFront();
                // Make all slices focusable
                _this.skipFocusThreshold = 50;
                var defaultState = _this.defaultState;
                defaultState.transitionEasing = _core_utils_Ease__WEBPACK_IMPORTED_MODULE_10__["sinOut"];
                // Accessibility
                _this.itemReaderText = "{category}: {value.percent.formatNumber('#.#')}%";
                _this.applyTheme();
                return _this;
            }
            /**
             * Creates a slice element.
             *
             * @return {FunnelSlice} Slice
             */
            PercentSeries.prototype.createSlice = function () {
                return new _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]();
            };
            /**
             * Creates a tick element.
             *
             * @return {Tick} Tick
             */
            PercentSeries.prototype.createTick = function () {
                return new _elements_Tick__WEBPACK_IMPORTED_MODULE_4__["Tick"]();
            };
            /**
             * Sreates label element.
             *
             * @return {Label} label
             */
            PercentSeries.prototype.createLabel = function () {
                return new _core_elements_Label__WEBPACK_IMPORTED_MODULE_3__["Label"]();
            };
            Object.defineProperty(PercentSeries.prototype, "slices", {
                get: function () {
                    if (!this._slices) {
                        var slice = this.createSlice();
                        slice.applyOnClones = true;
                        this._disposers.push(slice);
                        this.initSlice(slice);
                        this._slices = new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListTemplate"](slice);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListDisposer"](this._slices));
                    }
                    return this._slices;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeries.prototype, "ticks", {
                get: function () {
                    if (!this._ticks) {
                        var tick = this.createTick();
                        tick.applyOnClones = true;
                        this._disposers.push(tick);
                        this.initTick(tick);
                        this._ticks = new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListTemplate"](tick);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListDisposer"](this._ticks));
                    }
                    return this._ticks;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PercentSeries.prototype, "labels", {
                get: function () {
                    if (!this._labels) {
                        var label = this.createLabel();
                        label.applyOnClones = true;
                        this._disposers.push(label);
                        this.initLabel(label);
                        this._labels = new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListTemplate"](label);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListDisposer"](this._labels));
                    }
                    return this._labels;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {PercentSeriesDataItem} Data Item
             */
            PercentSeries.prototype.createDataItem = function () {
                return new PercentSeriesDataItem();
            };
            /**
             * Creates and returns a new slice element.
             *
             * @param  {typeof Slice}  sliceType  Type of the slice element
             * @return {Slice}                    Slice
             */
            PercentSeries.prototype.initSlice = function (slice) {
            };
            PercentSeries.prototype.initLabel = function (label) {
                label.text = "{category}: {value.percent.formatNumber('#.0')}%";
                label.isMeasured = false;
                label.padding(5, 5, 5, 5);
            };
            PercentSeries.prototype.initTick = function (label) {
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {PercentSeriesDataItem}  dataItem  Data item
             */
            PercentSeries.prototype.validateDataElement = function (dataItem) {
                var slice = dataItem.slice;
                if (slice) {
                    if (slice.fill == undefined) {
                        slice.fill = this.colors.getIndex(dataItem.index * this.colors.step);
                    }
                    if (slice.stroke == undefined) {
                        slice.stroke = this.colors.getIndex(dataItem.index * this.colors.step);
                    }
                }
                // do this at the end, otherwise bullets won't be positioned properly
                _super.prototype.validateDataElement.call(this, dataItem);
            };
            /**
             * Arranges slice labels according to position settings.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"][]}  dataItems  Data items
             */
            PercentSeries.prototype.arrangeLabels = function (dataItems) {
                for (var i = 0, len = dataItems.length; i < len; i++) {
                    var dataItem = dataItems[i];
                    var label = dataItem.label;
                    if (label) {
                        var nextLabel = this.getNextLabel(i + 1, dataItems);
                        if (label.invalid) {
                            label.validate();
                        }
                        var bottom = label.pixelY + label.measuredHeight;
                        if (nextLabel) {
                            if (nextLabel.y < bottom) {
                                nextLabel.y = bottom;
                            }
                        }
                    }
                }
            };
            /**
             * Returns the next label according to `index`.
             *
             * @param  {number}              index      Current index
             * @param  {PieSerisDataItem[]}  dataItems  Data items
             * @return {AxisLabelCircular}              Label element
             */
            PercentSeries.prototype.getNextLabel = function (index, dataItems) {
                if (dataItems.length >= index) {
                    var nextDataItem = dataItems[index];
                    if (nextDataItem) {
                        if (nextDataItem.label) {
                            return nextDataItem.label;
                        }
                        else {
                            return this.getNextLabel(index + 1, dataItems);
                        }
                    }
                }
            };
            Object.defineProperty(PercentSeries.prototype, "colors", {
                /**
                 * @return {ColorSet} Color set
                 */
                get: function () {
                    return this.getPropertyValue("colors");
                },
                /**
                 * A color set to be used for slices.
                 *
                 * For each new subsequent slice, the chart will assign the next color in
                 * this set.
                 *
                 * @param {ColorSet}  value  Color set
                 */
                set: function (value) {
                    this.setPropertyValue("colors", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Binds related legend data item's visual settings to this series' visual
             * settings.
             *
             * @ignore Exclude from docs
             * @param {Container}          marker    Container
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            PercentSeries.prototype.createLegendMarker = function (marker, dataItem) {
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](marker.children.iterator(), function (child) {
                    var slice = dataItem.slice;
                    child.defaultState.properties.fill = slice.fill;
                    child.defaultState.properties.stroke = slice.stroke;
                    child.defaultState.properties.fillOpacity = slice.fillOpacity;
                    child.defaultState.properties.strokeOpacity = slice.strokeOpacity;
                    child.fill = slice.fill;
                    child.stroke = slice.stroke;
                    child.fillOpacity = slice.fillOpacity;
                    child.strokeOpacity = slice.strokeOpacity;
                    slice.events.on("propertychanged", function (ev) {
                        if (ev.property == "fill") {
                            if (!child.isActive) {
                                child.fill = slice.fill;
                            }
                            child.defaultState.properties.fill = slice.fill;
                        }
                        if (ev.property == "stroke") {
                            if (!child.isActive) {
                                child.stroke = slice.stroke;
                            }
                            child.defaultState.properties.stroke = slice.stroke;
                        }
                    }, undefined, false);
                });
            };
            /**
             * Repositions bullets when slice's size changes.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Slice, ISpriteEvents>["propertychanged"]}  event  Event
             */
            PercentSeries.prototype.handleSliceScale = function (event) {
                var _this = this;
                var slice = event.target;
                var dataItem = slice.dataItem;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](dataItem.bullets.iterator(), function (a) {
                    var value = a[1];
                    _this.positionBullet(value);
                });
            };
            /**
             * Repositions bullet and labels when slice moves.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Slice, ISpriteEvents>["propertychanged"]}  event  Event
             */
            PercentSeries.prototype.handleSliceMove = function (event) {
            };
            /**
             * Copies all properties from another instance of [[PercentSeries]].
             *
             * @param {ColumnSeries}  source  Source series
             */
            PercentSeries.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.slices.template.copyFrom(source.slices.template);
                this.labels.template.copyFrom(source.labels.template);
                this.ticks.template.copyFrom(source.ticks.template);
            };
            Object.defineProperty(PercentSeries.prototype, "alignLabels", {
                /**
                 * @return {boolean} Align labels?
                 */
                get: function () {
                    return this.getPropertyValue("alignLabels");
                },
                /**
                 * Align labels into nice vertical columns?
                 *
                 * This will ensure that labels never overlap with each other.
                 *
                 * Arranging labels into columns makes them more readble, and better user
                 * experience.
                 *
                 * If set to `false` labels will be positioned at `label.radius` distance,
                 * and may, in some cases, overlap.
                 *
                 * @default true
                 * @param {boolean}  value  Align labels?
                 */
                set: function (value) {
                    this.setPropertyValue("alignLabels", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return PercentSeries;
        }(_Series__WEBPACK_IMPORTED_MODULE_1__["Series"]));
        /**
         * bboxter class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["PercentSeries"] = PercentSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["PercentSeriesDataItem"] = PercentSeriesDataItem;
        //# sourceMappingURL=PercentSeries.js.map
        /***/ 
    }),
    /* 935 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieSeriesDataItem", function () { return PieSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieSeries", function () { return PieSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PercentSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(934);
        /* harmony import */ var _core_elements_Slice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(877);
        /* harmony import */ var _axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(858);
        /* harmony import */ var _elements_PieTick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(936);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(758);
        /**
         * Defines Pie Chart Series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo: sequenced?
        /**
         * Defines a [[DataItem]] for [[PieSeries]].
         *
         * @see {@link DataItem}
         */
        var PieSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieSeriesDataItem, _super);
            /**
             * Constructor
             */
            function PieSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PieSeriesDataItem";
                _this.values.radiusValue = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(PieSeriesDataItem.prototype, "radiusValue", {
                /**
                 * @return {number} Radius
                 */
                get: function () {
                    return this.values.radiusValue.value;
                },
                /**
                 * Slice's radius, if other than default.
                 *
                 * @param {number}  value  Radius
                 */
                set: function (value) {
                    this.setValue("radiusValue", value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Hide the data item (and corresponding visual elements).
             *
             * @param {number}    duration  Duration (ms)
             * @param {number}    delay     Delay hiding (ms)
             * @param {number}    toValue   Target value for animation
             * @param {string[]}  fields    Fields to animate while hiding
             */
            PieSeriesDataItem.prototype.hide = function (duration, delay, toValue, fields) {
                return _super.prototype.hide.call(this, duration, delay, 0, ["value", "radiusValue"]);
            };
            /**
             * Show hidden data item (and corresponding cisual elements).
             *
             * @param {number}    duration  Duration (ms)
             * @param {number}    delay     Delay hiding (ms)
             * @param {string[]}  fields    Fields to animate while hiding
             */
            PieSeriesDataItem.prototype.show = function (duration, delay, fields) {
                return _super.prototype.show.call(this, duration, delay, ["value", "radiusValue"]);
            };
            return PieSeriesDataItem;
        }(_PercentSeries__WEBPACK_IMPORTED_MODULE_1__["PercentSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a slice series on a Pie chart.
         *
         * @see {@link IPieSeriesEvents} for a list of available Events
         * @see {@link IPieSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var PieSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieSeries, _super);
            /**
             * Constructor
             */
            function PieSeries() {
                var _this = _super.call(this) || this;
                _this.className = "PieSeries";
                _this.alignLabels = true;
                _this.startAngle = -90;
                _this.endAngle = 270;
                _this.labels.template.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_8__["percent"])(5);
                _this.applyTheme();
                return _this;
            }
            /**
             * creates slice
             */
            PieSeries.prototype.createSlice = function () {
                return new _core_elements_Slice__WEBPACK_IMPORTED_MODULE_2__["Slice"]();
            };
            /**
             * creates tick
             */
            PieSeries.prototype.createTick = function () {
                return new _elements_PieTick__WEBPACK_IMPORTED_MODULE_4__["PieTick"]();
            };
            /**
             * creates label
             */
            PieSeries.prototype.createLabel = function () {
                return new _axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_3__["AxisLabelCircular"]();
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            PieSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Pie Slice Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {PieSeriesDataItem} Data Item
             */
            PieSeries.prototype.createDataItem = function () {
                return new PieSeriesDataItem();
            };
            /**
             * Inits slice.
             *
             * @param  {Slice} slice to init
             */
            PieSeries.prototype.initSlice = function (slice) {
                slice.isMeasured = false;
                slice.defaultState.properties.scale = 1;
                slice.observe("scale", this.handleSliceScale, this);
                slice.observe(["dx", "dy", "x", "y", "shiftRadius"], this.handleSliceMove, this);
                slice.tooltipText = "{category}: {value.percent.formatNumber('#.#')}% ({value.value})";
                var hoverState = slice.states.create("hover");
                hoverState.properties.scale = 1.05;
                var defaultState = slice.defaultState;
                defaultState.properties.shiftRadius = 0;
                slice.togglable = true;
                slice.events.on("toggled", function (event) {
                    event.target.hideTooltip();
                });
                var activeState = slice.states.create("active");
                activeState.properties.shiftRadius = 0.10;
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            PieSeries.prototype.validate = function () {
                this._leftItems = [];
                this._rightItems = [];
                this._currentStartAngle = this.startAngle;
                this._arcRect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getArcRect"](this.startAngle, this.endAngle);
                this._maxRadiusPercent = 0;
                for (var i = this.startIndex; i < this.endIndex; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    var radiusValuePercent = dataItem.values.radiusValue.percent;
                    if (radiusValuePercent > this._maxRadiusPercent) {
                        this._maxRadiusPercent = radiusValuePercent;
                    }
                }
                _super.prototype.validate.call(this);
                if (this.alignLabels) {
                    if (this.startAngle > this.endAngle) {
                        this._rightItems.reverse();
                    }
                    else {
                        this._leftItems.reverse();
                    }
                    this._rightItems.sort(function (a, b) {
                        var aAngle = (a.slice.middleAngle + 360) % 360;
                        var bAngle = (b.slice.middleAngle + 360) % 360;
                        if (aAngle > 270) {
                            aAngle -= 360;
                        }
                        if (bAngle > 270) {
                            bAngle -= 360;
                        }
                        if (aAngle < bAngle) {
                            return -1;
                        }
                        else {
                            return 1;
                        }
                    });
                    this._leftItems.sort(function (a, b) {
                        var aAngle = (a.slice.middleAngle + 360) % 360;
                        var bAngle = (b.slice.middleAngle + 360) % 360;
                        if (aAngle < bAngle) {
                            return 1;
                        }
                        else {
                            return -1;
                        }
                    });
                    this.arrangeLabels(this._rightItems);
                    this.arrangeLabels(this._leftItems);
                }
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {PieSeriesDataItem}  dataItem  Data item
             */
            PieSeries.prototype.validateDataElement = function (dataItem) {
                if (this.pixelRadius > 0) {
                    var percent_1 = dataItem.values.value.percent;
                    // SLICE
                    var slice = dataItem.slice;
                    slice.radius = this.pixelRadius;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](dataItem.radiusValue)) {
                        slice.radius *= dataItem.values.radiusValue.percent / this._maxRadiusPercent;
                    }
                    if (!(slice.innerRadius instanceof _core_utils_Percent__WEBPACK_IMPORTED_MODULE_8__["Percent"])) {
                        slice.innerRadius = this.pixelInnerRadius;
                    }
                    slice.startAngle = this._currentStartAngle;
                    slice.arc = dataItem.values.value.percent * (this.endAngle - this.startAngle) / 100;
                    // LABEL
                    var label = dataItem.label;
                    var tick = dataItem.tick;
                    tick.slice = slice;
                    tick.label = label;
                    var normalizedMiddleAngle = (slice.middleAngle + 360) % 360; // force angle to be 0 - 360;
                    var point = void 0;
                    if (this.alignLabels) {
                        var labelRadius = label.pixelRadius(slice.radius);
                        var x = tick.length + labelRadius;
                        label.verticalCenter = "middle";
                        var arcRect = this._arcRect;
                        // right half
                        if (normalizedMiddleAngle >= 270 || normalizedMiddleAngle <= 90) { // 91 makes less chances for flickering
                            x += (arcRect.width + arcRect.x) * this.pixelRadius;
                            label.horizontalCenter = "left";
                            this._rightItems.push(dataItem);
                        }
                        // left half
                        else {
                            x -= arcRect.x * this.pixelRadius;
                            label.horizontalCenter = "right";
                            this._leftItems.push(dataItem);
                            x *= -1;
                        }
                        var distance = slice.radius + tick.length + labelRadius;
                        point = { x: x, y: slice.iy * distance };
                    }
                    else {
                        var x = slice.ix * slice.radius;
                        var y = slice.iy * slice.radiusY;
                        point = label.fixPoint({ x: x, y: y }, slice.radius);
                    }
                    label.moveTo(point);
                    this._currentStartAngle += slice.arc;
                    // do this at the end, otherwise bullets won't be positioned properly
                    _super.prototype.validateDataElement.call(this, dataItem);
                }
            };
            Object.defineProperty(PieSeries.prototype, "radius", {
                /**
                 * @return {number | Percent} Radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius for the series' slices in pixels or [[Percent]].
                 *
                 * @param {number | Percent}  value  Radius
                 */
                set: function (value) {
                    if (this.setPercentProperty("radius", value, true, false, 10, false)) {
                        this.invalidateDataItems();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries.prototype, "pixelRadius", {
                /**
                 * @return {number} Radius
                 * @ignore
                 */
                get: function () {
                    return this._pixelRadius;
                },
                /**
                 * @ignore
                 */
                set: function (value) {
                    if (this._pixelRadius != value) {
                        this._pixelRadius = value;
                        this.invalidateDataItems();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries.prototype, "pixelInnerRadius", {
                /**
                 * @return {number} Pixel inner radius
                 * @ignore
                 */
                get: function () {
                    return this._pixelInnerRadius;
                },
                /**
                 * @ignore
                 */
                set: function (value) {
                    if (this._pixelInnerRadius != value) {
                        this._pixelInnerRadius = value;
                        this.invalidateDataItems();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries.prototype, "innerRadius", {
                /**
                 * @ignore Exclude from docs
                 * @return {number | Percent} Radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius for the series' slices in pixels.
                 *
                 * @ignore Exclude from docs
                 * @todo Redo so that users can set it
                 * @param {number | Percent}  value  Radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries.prototype, "startAngle", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Start angle for the series' slices in degrees. (0-360)
                 *
                 * @ignore Exclude from docs
                 * @todo Redo so that users can set it
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["normalizeAngle"](value), true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries.prototype, "endAngle", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * End angle for the series' slices in degrees. (0-360)
                 *
                 * @ignore Exclude from docs
                 * @todo Redo so that users can set it
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("endAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Positions series bullet.
             *
             * @ignore Exclude from docs
             * @param {Bullet}  bullet  Bullet
             */
            PieSeries.prototype.positionBullet = function (bullet) {
                _super.prototype.positionBullet.call(this, bullet);
                var dataItem = bullet.dataItem;
                var slice = dataItem.slice;
                var locationX = bullet.locationX;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](locationX)) {
                    locationX = 0.5;
                }
                var locationY = bullet.locationY;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["isNumber"](locationY)) {
                    locationY = 1;
                }
                var angle = slice.startAngle + slice.arc * locationX;
                var radius = locationY * slice.radius;
                bullet.x = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["cos"](angle);
                bullet.y = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["sin"](angle);
            };
            /**
             * Repositions bullet and labels when slice moves.
             *
             * @ignore Exclude from docs
             * @param {AMEvent<Slice, ISpriteEvents>["propertychanged"]}  event  Event
             */
            PieSeries.prototype.handleSliceMove = function (event) {
                if (!this.alignLabels) {
                    var slice = event.target;
                    var dataItem = slice.dataItem;
                    // moving textelement, as label dx and dy are already employed for aligning
                    //@labeltodo
                    if (dataItem) {
                        var label = dataItem.label;
                        if (label) {
                            label.dx = label.fdx + slice.dx + slice.pixelX;
                            label.dy = label.fdy + slice.dy + slice.pixelY;
                        }
                    }
                }
            };
            Object.defineProperty(PieSeries.prototype, "bbox", {
                /**
                 * Returns bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                get: function () {
                    if (this.definedBBox) {
                        return this.definedBBox;
                    }
                    var chart = this.chart;
                    if (chart) {
                        return _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getArcRect"](chart.startAngle, chart.endAngle, this.pixelRadius);
                    }
                    return _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getArcRect"](this.startAngle, this.endAngle, this.pixelRadius);
                },
                enumerable: true,
                configurable: true
            });
            return PieSeries;
        }(_PercentSeries__WEBPACK_IMPORTED_MODULE_1__["PercentSeries"]));
        /**
         * bboxter class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["PieSeries"] = PieSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["PieSeriesDataItem"] = PieSeriesDataItem;
        //# sourceMappingURL=PieSeries.js.map
        /***/ 
    }),
    /* 936 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieTick", function () { return PieTick; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _elements_Tick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(847);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Pie tick module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws an tick line for a pie slice connecting it to a related label.
         *
         * @see {@link IPieTickEvents} for a list of available events
         * @see {@link IPieTickAdapters} for a list of available Adapters
         */
        var PieTick = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieTick, _super);
            /**
             * Constructor
             */
            function PieTick() {
                var _this = _super.call(this) || this;
                /**
                 * A label element this tick is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._label = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                /**
                 * A slice element this tick is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._slice = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "PieTick";
                _this.element = _this.paper.add("polyline");
                _this._disposers.push(_this._label);
                _this._disposers.push(_this._slice);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the tick element.
             *
             * @ignore Exclude from docs
             */
            PieTick.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var slice = this.slice;
                var label = this.label;
                var series = slice.dataItem.component;
                if (slice && slice.radius > 0 && label && label.text) {
                    var x0 = slice.dx + slice.slice.dx + slice.pixelX + slice.ix * slice.radius * slice.scale;
                    var y0 = slice.dy + slice.slice.dy + slice.pixelY + slice.iy * slice.radius * slice.scale;
                    var x1 = void 0;
                    var y1 = void 0;
                    var x2 = void 0;
                    var y2 = void 0;
                    if (series.alignLabels) {
                        x1 = label.pixelX - this.length;
                        y1 = label.pixelY;
                        x2 = label.pixelX;
                        y2 = y1;
                        if (label.horizontalCenter == "right") {
                            x1 += 2 * this.length;
                            x2 = x1 - this.length;
                        }
                    }
                    else {
                        var r = label.pixelRadius(slice.radius);
                        x1 = x0 + r * slice.ix;
                        y1 = y0 + r * slice.iy;
                        x2 = x1;
                        y2 = y1;
                    }
                    this.element.attr({ "points": [x0, y0, x1, y1, x2, y2] });
                }
            };
            Object.defineProperty(PieTick.prototype, "slice", {
                /**
                 * @return {Slice} Slice
                 */
                get: function () {
                    return this._slice.get();
                },
                /**
                 * Slice element tick is attached to.
                 *
                 * @param {Slice}  slice  Slice
                 */
                set: function (slice) {
                    this._slice.set(slice, new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MultiDisposer"]([
                        slice.events.on("transformed", this.invalidate, this),
                        slice.events.on("validated", this.invalidate, this)
                    ]));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieTick.prototype, "label", {
                /**
                 * @return {AxisLabelCircular} Label
                 */
                get: function () {
                    return this._label.get();
                },
                /**
                 * Label element tick is attached to.
                 *
                 * @param {AxisLabelCircular}  label  Label
                 */
                set: function (label) {
                    this._label.set(label, label.events.on("transformed", this.invalidate, this, false));
                },
                enumerable: true,
                configurable: true
            });
            return PieTick;
        }(_elements_Tick__WEBPACK_IMPORTED_MODULE_1__["Tick"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PieTick"] = PieTick;
        //# sourceMappingURL=PieTick.js.map
        /***/ 
    }),
    /* 937 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieSeries3DDataItem", function () { return PieSeries3DDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieSeries3D", function () { return PieSeries3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _series_PieSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(935);
        /* harmony import */ var _core_elements_3d_Slice3D__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(895);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[PieSeries3D]].
         *
         * @see {@link DataItem}
         */
        var PieSeries3DDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieSeries3DDataItem, _super);
            /**
             * Constructor
             */
            function PieSeries3DDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PieSeries3DDataItem";
                _this.values.depthValue = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(PieSeries3DDataItem.prototype, "depthValue", {
                /**
                 * @return {number} Depth
                 */
                get: function () {
                    return this.values["depthValue"].value;
                },
                /**
                 * Slice depth (height).
                 *
                 * @param {number}  value  Depth
                 */
                set: function (value) {
                    this.setValue("depthValue", value);
                },
                enumerable: true,
                configurable: true
            });
            return PieSeries3DDataItem;
        }(_series_PieSeries__WEBPACK_IMPORTED_MODULE_1__["PieSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a slice series on a 3D pie chart.
         *
         * @see {@link IPieSeries3DEvents} for a list of available Events
         * @see {@link IPieSeries3DAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var PieSeries3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PieSeries3D, _super);
            /**
             * Constructor
             */
            function PieSeries3D() {
                var _this = _super.call(this) || this;
                _this.className = "PieSeries3D";
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty DataItem of the type appropriate for this object
             * @see {@link DataItem}
             * @return {PieSeries3DDataItem} Data Item
             */
            PieSeries3D.prototype.createDataItem = function () {
                return new PieSeries3DDataItem();
            };
            /**
             * creates slice
             */
            PieSeries3D.prototype.createSlice = function () {
                return new _core_elements_3d_Slice3D__WEBPACK_IMPORTED_MODULE_2__["Slice3D"]();
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {PieSeries3DDataItem}  dataItem  Data item
             */
            PieSeries3D.prototype.validateDataElement = function (dataItem) {
                _super.prototype.validateDataElement.call(this, dataItem);
                var slice = dataItem.slice;
                var depth = this.depth;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](depth)) {
                    depth = this.chart.depth;
                }
                var depthPercent = dataItem.values.depthValue.percent;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](depthPercent)) {
                    depthPercent = 100;
                }
                slice.depth = depthPercent * depth / 100;
                var angle = this.angle;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](angle)) {
                    angle = this.chart.angle;
                }
                slice.angle = angle;
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            PieSeries3D.prototype.validate = function () {
                _super.prototype.validate.call(this);
                for (var i = this._workingStartIndex; i < this._workingEndIndex; i++) {
                    var dataItem = this.dataItems.getIndex(i);
                    var slice = dataItem.slice;
                    var startAngle = slice.startAngle;
                    // find quarter
                    //q0 || q1
                    if ((startAngle >= -90 && startAngle < 90)) {
                        slice.toFront();
                    }
                    //q2 || q3
                    else if ((startAngle >= 90)) {
                        slice.toBack();
                    }
                }
            };
            Object.defineProperty(PieSeries3D.prototype, "depth", {
                /**
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth (height) of the pie slice in pixels.
                 *
                 * @param {number}  value  Depth (px)
                 */
                set: function (value) {
                    this.setPropertyValue("depth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PieSeries3D.prototype, "angle", {
                /**
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * Angle of the view point of the 3D pie. (0-360)
                 *
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value);
                },
                enumerable: true,
                configurable: true
            });
            return PieSeries3D;
        }(_series_PieSeries__WEBPACK_IMPORTED_MODULE_1__["PieSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PieSeries3D"] = PieSeries3D;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PieSeries3DDataItem"] = PieSeries3DDataItem;
        //# sourceMappingURL=PieSeries3D.js.map
        /***/ 
    }),
    /* 938 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlicedChartDataItem", function () { return SlicedChartDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlicedChart", function () { return SlicedChart; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PercentChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(933);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(757);
        /**
         * Sliced chart module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[SlicedChart]].
         *
         * @see {@link DataItem}
         */
        var SlicedChartDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SlicedChartDataItem, _super);
            /**
             * Constructor
             */
            function SlicedChartDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "SlicedChartDataItem";
                _this.applyTheme();
                return _this;
            }
            return SlicedChartDataItem;
        }(_PercentChart__WEBPACK_IMPORTED_MODULE_1__["PercentChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Sliced chart.
         *
         * @see {@link ISlicedChartEvents} for a list of available Events
         * @see {@link ISlicedChartAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for documentation
         * @important
         */
        var SlicedChart = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SlicedChart, _super);
            /**
             * Constructor
             */
            function SlicedChart() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "SlicedChart";
                _this.seriesContainer.layout = "horizontal";
                _this.padding(15, 15, 15, 15);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            SlicedChart.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_3__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Sliced chart");
                }
            };
            /**
             * (Re)validates the chart, causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            SlicedChart.prototype.validate = function () {
                _super.prototype.validate.call(this);
            };
            return SlicedChart;
        }(_PercentChart__WEBPACK_IMPORTED_MODULE_1__["PercentChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["SlicedChart"] = SlicedChart;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["SlicedChartDataItem"] = SlicedChartDataItem;
        //# sourceMappingURL=SlicedChart.js.map
        /***/ 
    }),
    /* 939 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramDataItem", function () { return FlowDiagramDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FlowDiagram", function () { return FlowDiagram; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Chart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(859);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(760);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(765);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _elements_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(940);
        /* harmony import */ var _elements_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(941);
        /* harmony import */ var _core_rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(890);
        /* harmony import */ var _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(903);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Number__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(772);
        /* harmony import */ var _core_utils_Order__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(773);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(754);
        /**
         * FlowDiagram module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo rearange notes after dragged
        /**
         * Defines a [[DataItem]] for [[FlowDiagram]].
         *
         * @see {@link DataItem}
         */
        var FlowDiagramDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FlowDiagramDataItem, _super);
            /**
             * Constructor
             */
            function FlowDiagramDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "FlowDiagramDataItem";
                _this.values.value = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(FlowDiagramDataItem.prototype, "fromName", {
                /**
                 * @return {string} name
                 */
                get: function () {
                    return this.properties.fromName;
                },
                /**
                 * Source node's name.
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this.setProperty("fromName", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramDataItem.prototype, "toName", {
                /**
                 * @return {string} name
                 */
                get: function () {
                    return this.properties.toName;
                },
                /**
                 * Destination node's name.
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this.setProperty("toName", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramDataItem.prototype, "color", {
                /**
                 * @return {string} color
                 */
                get: function () {
                    return this.properties.color;
                },
                /**
                 * Node color
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this.setProperty("color", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_10__["toColor"])(value));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramDataItem.prototype, "value", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.value.value;
                },
                /**
                 * Link's value.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("value", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramDataItem.prototype, "link", {
                /**
                 * A visual element, representing link between the source and target nodes.
                 *
                 * Link's actual thickness will be determined by `value` of this link and
                 * `value` of the source node.
                 *
                 * @readonly
                 * @return {FlowDiagramLink} Link element
                 */
                get: function () {
                    var _this = this;
                    if (!this._link) {
                        var link_1 = this.component.links.create();
                        this._link = link_1;
                        this.addSprite(link_1);
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_15__["Disposer"](function () {
                            _this.component.links.removeValue(link_1);
                        }));
                    }
                    return this._link;
                },
                enumerable: true,
                configurable: true
            });
            return FlowDiagramDataItem;
        }(_Chart__WEBPACK_IMPORTED_MODULE_1__["ChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Pie chart
         * @see {@link IFlowDiagramEvents} for a list of available Events
         * @see {@link IFlowDiagramAdapters} for a list of available Adapters
         * @important
         */
        var FlowDiagram = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FlowDiagram, _super);
            /**
             * Constructor
             */
            function FlowDiagram() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A Color Set to use when applying/generating colors for each subsequent
                 * node.
                 *
                 * @type {ColorSet}
                 */
                _this.colors = new _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_9__["ColorSet"]();
                _this.className = "FlowDiagram";
                _this.nodePadding = 20;
                _this.sortBy = "none";
                _this.sequencedInterpolation = true;
                _this.colors.step = 2;
                _this.minNodeSize = 0.02;
                var linksContainer = _this.chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_4__["Container"]);
                linksContainer.shouldClone = false;
                linksContainer.layout = "none";
                linksContainer.isMeasured = false;
                _this.linksContainer = linksContainer;
                var nodesContainer = _this.chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_4__["Container"]);
                nodesContainer.shouldClone = false;
                nodesContainer.layout = "none";
                nodesContainer.isMeasured = false;
                _this.nodesContainer = nodesContainer;
                // this data item holds sums, averages, etc
                _this.dataItem = _this.createDataItem();
                _this.dataItem.component = _this;
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            FlowDiagram.prototype.dispose = function () {
                _super.prototype.dispose.call(this);
                this.dataItem.dispose();
            };
            /**
             * (Re)validates chart's data, effectively causing the chart to redraw.
             *
             * @ignore Exclude from docs
             */
            FlowDiagram.prototype.validateData = function () {
                var _this = this;
                if (this._parseDataFrom == 0) {
                    this.nodes.clear();
                }
                this.sortNodes();
                this.colors.reset();
                _super.prototype.validateData.call(this);
                var sum = 0;
                var count = 0;
                var low;
                var high;
                // build blocks
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.dataItems.iterator(), function (dataItem) {
                    var fromName = dataItem.fromName;
                    if (fromName) {
                        var node = _this.nodes.getKey(fromName);
                        if (!node) {
                            node = _this.nodes.create(fromName);
                            node.name = fromName;
                            node.chart = _this;
                            node.dataItem = dataItem;
                        }
                        dataItem.fromNode = node;
                        dataItem.fromNode.outgoingDataItems.push(dataItem);
                    }
                    var toName = dataItem.toName;
                    if (toName) {
                        var node = _this.nodes.getKey(toName);
                        if (!node) {
                            node = _this.nodes.create(toName);
                            node.name = toName;
                            node.chart = _this;
                            node.dataItem = dataItem;
                        }
                        dataItem.toNode = node;
                        dataItem.toNode.incomingDataItems.push(dataItem);
                    }
                    if (!dataItem.fromNode) {
                        var strokeModifier = new _core_rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_8__["LinearGradientModifier"]();
                        strokeModifier.opacities = [0, 1];
                        dataItem.link.strokeModifier = strokeModifier;
                    }
                    if (!dataItem.toNode) {
                        var fillModifier = new _core_rendering_fills_LinearGradientModifier__WEBPACK_IMPORTED_MODULE_8__["LinearGradientModifier"]();
                        fillModifier.opacities = [1, 0];
                        dataItem.link.strokeModifier = fillModifier;
                    }
                    var value = dataItem.value;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](value)) {
                        sum += value;
                        count++;
                        if (low > value || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](low)) {
                            low = value;
                        }
                        if (high < value || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](high)) {
                            high = value;
                        }
                    }
                });
                var key = "value";
                this.dataItem.setCalculatedValue(key, high, "high");
                this.dataItem.setCalculatedValue(key, low, "low");
                this.dataItem.setCalculatedValue(key, sum, "sum");
                this.dataItem.setCalculatedValue(key, sum / count, "average");
                this.dataItem.setCalculatedValue(key, count, "count");
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.nodes.iterator(), function (strNode) {
                    var node = strNode[1];
                    if (node.fill instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_10__["Color"]) {
                        node.color = node.fill;
                    }
                    if (node.color == undefined) {
                        node.color = _this.colors.next();
                    }
                    if (node.dataItem.color != undefined) {
                        node.color = node.dataItem.color;
                    }
                    if (!node.dataItem.visible) {
                        node.hide(0);
                    }
                    _this.getNodeValue(node);
                });
                this.sortNodes();
                this.feedLegend();
            };
            /**
             * [handleDataItemWorkingValueChange description]
             *
             * @ignore Exclude from docs
             */
            FlowDiagram.prototype.handleDataItemWorkingValueChange = function (dataItem) {
                this.invalidateDataRange();
            };
            /**
             * Sorts nodes by either their values or names, based on `sortBy` setting.
             */
            FlowDiagram.prototype.sortNodes = function () {
                if (this.sortBy == "name") {
                    this._sorted = this.nodes.sortedIterator();
                }
                else if (this.sortBy == "value") {
                    this._sorted = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["sort"](this.nodes.iterator(), function (x, y) { return _core_utils_Order__WEBPACK_IMPORTED_MODULE_14__["reverse"](_core_utils_Number__WEBPACK_IMPORTED_MODULE_13__["order"](x[1].total, y[1].total)); });
                }
                else {
                    this._sorted = this.nodes.iterator();
                }
            };
            /**
             * Updates a cummulative value of the node.
             *
             * A node's value is determined by summing values of all of the incoming
             * links or all of the outgoing links, whichever results in bigger number.
             *
             * @param {FlowDiagramNode}  node  Node value
             */
            FlowDiagram.prototype.getNodeValue = function (node) {
                // todo: totalIncomming totalOutgoing, total
                var incomingTotal = 0;
                var outgoingTotal = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](node.incomingDataItems.iterator(), function (dataItem) {
                    var value = dataItem.getWorkingValue("value");
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](value)) {
                        incomingTotal += value;
                    }
                });
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](node.outgoingDataItems.iterator(), function (dataItem) {
                    var value = dataItem.getWorkingValue("value");
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](value)) {
                        outgoingTotal += value;
                    }
                });
                node.total = incomingTotal + outgoingTotal;
                node.totalIncoming = incomingTotal;
                node.totalOutgoing = outgoingTotal;
            };
            ;
            /**
             * Changes the sort type of the nodes.
             *
             * This will actually reshuffle nodes using nice animation.
             */
            FlowDiagram.prototype.changeSorting = function () {
                this.sortNodes();
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            FlowDiagram.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Flow diagram");
                }
            };
            /**
             * Creates and returns a new data item.
             *
             * @return {this} Data item
             */
            FlowDiagram.prototype.createDataItem = function () {
                return new FlowDiagramDataItem();
            };
            Object.defineProperty(FlowDiagram.prototype, "nodePadding", {
                /**
                 * @return {number} Padding (px)
                 */
                get: function () {
                    return this.getPropertyValue("nodePadding");
                },
                /**
                 * Padding for node square in pixels.
                 *
                 * Padding will add extra space around node's name label.
                 *
                 * @param {number} value Padding (px)
                 */
                set: function (value) {
                    this.setPropertyValue("nodePadding", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagram.prototype, "sortBy", {
                /**
                 * @returns {"none" | name" | "value"} Node sorting
                 */
                get: function () {
                    return this.getPropertyValue("sortBy");
                },
                /**
                 * Sort nodes by "name" or "value" or do not sort at all. If not sorted, nodes will appear in the same order as they are in the data.
                 * @default "none"
                 * @param {"none" | "name" | "value"}  value  Node sorting
                 */
                set: function (value) {
                    this.setPropertyValue("sortBy", value);
                    this.changeSorting();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagram.prototype, "minNodeSize", {
                /**
                 * @returns {number} min node size
                 */
                get: function () {
                    return this.getPropertyValue("minNodeSize");
                },
                /**
                 * Sometimes nodes can get very small if their value is little. With this setting you
                 * can set min size of a node (this is relative value from the total size of all nodes)
                 * @default 0.02
                 * @param {"none" | "name" | "value"}  value  Node sorting
                 */
                set: function (value) {
                    this.setPropertyValue("minNodeSize", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagram.prototype, "nodes", {
                /**
                 * A list of chart's nodes.
                 *
                 * @param {DictionaryTemplate<string, this["_node"]>}
                 */
                get: function () {
                    if (!this._nodes) {
                        this._nodes = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["DictionaryTemplate"](this.createNode());
                        this._disposers.push(new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["DictionaryDisposer"](this._nodes));
                    }
                    return this._nodes;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            FlowDiagram.prototype.createNode = function () {
                var node = new _elements_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_6__["FlowDiagramNode"]();
                this._disposers.push(node);
                return node;
            };
            Object.defineProperty(FlowDiagram.prototype, "links", {
                /**
                 * A list of chart's links.
                 *
                 * @param {ListTemplate<this["_link"]>}
                 */
                get: function () {
                    if (!this._links) {
                        this._links = new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListTemplate"](this.createLink());
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_2__["ListDisposer"](this._links));
                    }
                    return this._links;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            FlowDiagram.prototype.createLink = function () {
                var link = new _elements_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_7__["FlowDiagramLink"]();
                this._disposers.push(link);
                return link;
            };
            /**
             * Setups the legend to use the chart's data.
             */
            FlowDiagram.prototype.feedLegend = function () {
                var legend = this.legend;
                if (legend) {
                    var legendData_1 = [];
                    this.nodes.each(function (key, node) {
                        legendData_1.push(node);
                    });
                    legend.data = legendData_1;
                    legend.dataFields.name = "name";
                }
            };
            /**
             * @ignore
             */
            FlowDiagram.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                this.nodes.clear();
            };
            return FlowDiagram;
        }(_Chart__WEBPACK_IMPORTED_MODULE_1__["Chart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["FlowDiagram"] = FlowDiagram;
        //# sourceMappingURL=FlowDiagram.js.map
        /***/ 
    }),
    /* 940 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramNode", function () { return FlowDiagramNode; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_String__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(763);
        /* harmony import */ var _core_utils_Order__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(773);
        /* harmony import */ var _core_utils_Number__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(772);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(862);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(761);
        /* harmony import */ var _Legend__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(861);
        /**
         * FlowDiagramNode module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a node in a Flow Diagram.
         *
         * A Flow node is a block with a value, which represents its size on the
         * diagram.
         *
         * Nodes are connected via [[FlowLink]] elements.
         *
         * @see {@link IFlowDiagramNodeEvents} for a list of available events
         * @see {@link IFlowDiagramNodeAdapters} for a list of available Adapters
         * @important
         */
        var FlowDiagramNode = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FlowDiagramNode, _super);
            /**
             * Constructor
             */
            function FlowDiagramNode() {
                var _this = _super.call(this) || this;
                /**
                 * Settings for the appearance of the related legend items.
                 */
                _this.legendSettings = new _Legend__WEBPACK_IMPORTED_MODULE_12__["LegendSettings"]();
                _this.className = "FlowDiagramNode";
                _this.isMeasured = false;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__["InterfaceColorSet"]();
                _this.draggable = true;
                _this.inert = true;
                _this.setStateOnChildren = true;
                _this.events.on("positionchanged", _this.invalidateLinks, _this, false);
                _this.events.on("sizechanged", _this.invalidateLinks, _this, false);
                _this.events.on("hit", _this.handleHit, _this, false);
                return _this;
            }
            FlowDiagramNode.prototype.handleHit = function (event) {
                if (this.isHidden || this.isHiding) {
                    this.show();
                }
                else {
                    this.hide();
                }
            };
            /**
             * Shows hidden node.
             *
             * @param  {number}     duration  Duration of reveal animation (ms)
             * @return {Animation}            Animation
             */
            FlowDiagramNode.prototype.show = function (duration) {
                var animation = _super.prototype.show.call(this, duration);
                this.outgoingDataItems.each(function (dataItem) {
                    if (!dataItem.toNode || (dataItem.toNode && !dataItem.toNode.isHidden)) {
                        dataItem.setWorkingValue("value", dataItem.getValue("value"), duration);
                    }
                });
                this.incomingDataItems.each(function (dataItem) {
                    if (!dataItem.fromNode || (dataItem.fromNode && !dataItem.fromNode.isHidden)) {
                        dataItem.setWorkingValue("value", dataItem.getValue("value"), duration);
                    }
                });
                return animation;
            };
            /**
             * Hides node.
             *
             * @param  {number}     duration  Duration of hiding animation (ms)
             * @return {Animation}            Animation
             */
            FlowDiagramNode.prototype.hide = function (duration) {
                var animation = _super.prototype.hide.call(this, duration);
                this.outgoingDataItems.each(function (dataItem) {
                    dataItem.setWorkingValue("value", 0, duration);
                });
                this.incomingDataItems.each(function (dataItem) {
                    dataItem.setWorkingValue("value", 0, duration);
                });
                return animation;
            };
            /**
             * Marks node as invalid, for redrawal in the next update cycle.
             *
             * @ignore Exclude from docs
             */
            FlowDiagramNode.prototype.validate = function () {
                if (!this.isDisposed()) {
                    _super.prototype.validate.call(this);
                    this.invalidateLinks();
                }
            };
            /**
             * Invalidates all links, attached to this node.
             *
             * @ignore Exclude from docs
             */
            FlowDiagramNode.prototype.invalidateLinks = function () {
                var _this = this;
                this.outgoingDataItems.each(function (dataItem) {
                    var link = dataItem.link;
                    if (link.colorMode == "fromNode") {
                        link.fill = link.dataItem.fromNode.color;
                    }
                    if (link.colorMode == "gradient") {
                        link.fill = link.gradient;
                        link.stroke = link.gradient;
                        var stop_1 = link.gradient.stops.getIndex(0);
                        if (stop_1) {
                            stop_1.color = _this.color;
                            link.gradient.validate();
                        }
                    }
                });
                this.incomingDataItems.each(function (dataItem) {
                    var link = dataItem.link;
                    if (link.colorMode == "toNode") {
                        link.fill = link.dataItem.toNode.color;
                    }
                    if (link.colorMode == "gradient") {
                        link.fill = link.gradient;
                        link.stroke = link.gradient;
                        var stop_2 = link.gradient.stops.getIndex(1);
                        if (stop_2) {
                            stop_2.color = _this.color;
                            link.gradient.validate();
                        }
                    }
                });
            };
            Object.defineProperty(FlowDiagramNode.prototype, "incomingDataItems", {
                /**
                 * List of incoming items (links).
                 *
                 * @readonly
                 * @return {List<FlowDiagramDataItem>} Incoming items
                 */
                get: function () {
                    var _this = this;
                    if (!this._incomingDataItems) {
                        var incomingDataItems = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        incomingDataItems.events.on("inserted", function () {
                            if (_this.chart.sortBy == "name") {
                                _this._incomingSorted = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["sort"](_this._incomingDataItems.iterator(), function (x, y) { return _core_utils_String__WEBPACK_IMPORTED_MODULE_7__["order"](x.fromName, y.fromName); });
                            }
                            else if (_this.chart.sortBy == "value") {
                                _this._incomingSorted = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["sort"](_this._incomingDataItems.iterator(), function (x, y) { return _core_utils_Order__WEBPACK_IMPORTED_MODULE_8__["reverse"](_core_utils_Number__WEBPACK_IMPORTED_MODULE_9__["order"](x.value, y.value)); });
                            }
                            else {
                                _this._incomingSorted = _this._incomingDataItems.iterator();
                            }
                        }, undefined, false);
                        this._incomingDataItems = incomingDataItems;
                    }
                    return this._incomingDataItems;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "outgoingDataItems", {
                /**
                 * List of outgoing items (links).
                 *
                 * @readonly
                 * @return {List<FlowDiagramDataItem>} Outgoing items
                 */
                get: function () {
                    var _this = this;
                    if (!this._outgoingDataItems) {
                        var outgoingDataItems = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["List"]();
                        outgoingDataItems.events.on("inserted", function () {
                            if (_this.chart.sortBy == "name") {
                                _this._outgoingSorted = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["sort"](_this._outgoingDataItems.iterator(), function (x, y) { return _core_utils_String__WEBPACK_IMPORTED_MODULE_7__["order"](x.fromName, y.fromName); });
                            }
                            else if (_this.chart.sortBy == "value") {
                                _this._outgoingSorted = _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["sort"](_this._outgoingDataItems.iterator(), function (x, y) { return _core_utils_Order__WEBPACK_IMPORTED_MODULE_8__["reverse"](_core_utils_Number__WEBPACK_IMPORTED_MODULE_9__["order"](x.value, y.value)); });
                            }
                            else {
                                _this._outgoingSorted = _this._outgoingDataItems.iterator();
                            }
                        }, undefined, false);
                        this._outgoingDataItems = outgoingDataItems;
                    }
                    return this._outgoingDataItems;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "name", {
                /**
                 * @return {string} Name
                 */
                get: function () {
                    return this.getPropertyValue("name");
                },
                /**
                 * A name of the node.
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this.setPropertyValue("name", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "total", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.getPropertyValue("total");
                },
                /**
                 * Sum of all incoming+outgoing link values
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setPropertyValue("total", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "totalIncoming", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.getPropertyValue("totalIncoming");
                },
                /**
                 * Sum of all incomming link values.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setPropertyValue("totalIncoming", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "totalOutgoing", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.getPropertyValue("totalOutgoing");
                },
                /**
                 * Sum of all outgoing link values.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setPropertyValue("totalOutgoing", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramNode.prototype, "color", {
                /**
                 * @return {Color} Color
                 */
                get: function () {
                    return this.getPropertyValue("color");
                },
                /**
                 * Node's color.
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.setColorProperty("color", value);
                    if (this._background) {
                        this._background.fill = value;
                    }
                    this.fill = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            FlowDiagramNode.prototype.createLegendMarker = function (marker) {
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.removeChildren();
                var column = marker.createChild(_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_10__["RoundedRectangle"]);
                column.shouldClone = false;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_11__["copyProperties"](this, column, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                column.stroke = this.fill;
                column.copyFrom(this);
                column.padding(0, 0, 0, 0); // if columns will have padding (which is often), legend marker will be very narrow
                column.width = w;
                column.height = h;
            };
            Object.defineProperty(FlowDiagramNode.prototype, "legendDataItem", {
                /**
                 * @return {LegendDataItem<Series, ISeriesEvents>} Data item
                 */
                get: function () {
                    return this._legendDataItem;
                },
                /**
                 * Legend data item that corresponds to this series.
                 *
                 * @param {LegendDataItem<Series, ISeriesEvents>}  value  Data item
                 */
                set: function (value) {
                    this._legendDataItem = value;
                    this._legendDataItem.itemContainer.deepInvalidate();
                },
                enumerable: true,
                configurable: true
            });
            return FlowDiagramNode;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["FlowDiagramNode"] = FlowDiagramNode;
        //# sourceMappingURL=FlowDiagramNode.js.map
        /***/ 
    }),
    /* 941 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FlowDiagramLink", function () { return FlowDiagramLink; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(766);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(765);
        /* harmony import */ var _core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _elements_Bullet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(912);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(769);
        /* harmony import */ var _core_elements_Polyline__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(872);
        /* harmony import */ var _core_elements_Line__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(850);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(757);
        /**
         * FlowDiagramLink module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class creates a link (waved color-filled line) between two nodes in a
         * Flow Diagram.
         *
         * @see {@link IFlowDiagramLinkEvents} for a list of available events
         * @see {@link IFlowDiagramLinkAdapters} for a list of available Adapters
         * @important
         */
        var FlowDiagramLink = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FlowDiagramLink, _super);
            /**
             * Constructor
             */
            function FlowDiagramLink() {
                var _this = _super.call(this) || this;
                _this.className = "FlowDiagramLink";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_10__["InterfaceColorSet"]();
                _this.maskBullets = false;
                _this.colorMode = "fromNode";
                _this.layout = "none";
                _this.isMeasured = false;
                _this.startAngle = 0;
                _this.endAngle = 0;
                _this.strokeOpacity = 0;
                // this is very important, otherwise the container will be shifted
                _this.verticalCenter = "none";
                _this.horizontalCenter = "none";
                _this.tooltipText = "{fromName}→{toName}:{value.value}";
                _this.tooltipLocation = 0.5;
                _this.link = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]);
                _this.link.shouldClone = false;
                _this.link.setElement(_this.paper.add("path"));
                _this.link.isMeasured = false;
                _this.fillOpacity = 0.2;
                _this.fill = interfaceColors.getFor("alternativeBackground");
                _this.applyTheme();
                return _this;
            }
            /**
             * Positions bullets
             * @ignore
             */
            FlowDiagramLink.prototype.positionBullets = function () {
                var _this = this;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_11__["each"](this.bullets.iterator(), function (bullet) {
                    bullet.parent = _this.bulletsContainer;
                    bullet.maxWidth = _this.maxWidth;
                    bullet.maxHeight = _this.maxHeight;
                    _this.positionBullet(bullet);
                });
            };
            Object.defineProperty(FlowDiagramLink.prototype, "bulletsContainer", {
                /**
                 * Bullets container
                 * @type Container
                 */
                get: function () {
                    if (!this._bulletsContainer) {
                        var bulletsContainer = this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                        bulletsContainer.shouldClone = false;
                        bulletsContainer.layout = "none";
                        this._bulletsContainer = bulletsContainer;
                    }
                    return this._bulletsContainer;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramLink.prototype, "bulletsMask", {
                /**
                 * Bullets mask spite
                 * @type Sprite
                 */
                get: function () {
                    if (!this._bulletsMask) {
                        var bulletsMask = this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_1__["Sprite"]);
                        bulletsMask.shouldClone = false;
                        bulletsMask.setElement(this.paper.add("path"));
                        bulletsMask.isMeasured = false;
                        this._bulletsMask = bulletsMask;
                    }
                    return this._bulletsMask;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Positions bullets at relative bullet.locationX position on the link.
             * @ignore
             */
            FlowDiagramLink.prototype.positionBullet = function (bullet) {
                var location = bullet.locationX;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](location)) {
                    location = bullet.locationY;
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](location)) {
                    location = 0.5;
                }
                var point = this.middleLine.positionToPoint(location);
                bullet.moveTo(point);
                var rotationField = bullet.propertyFields.rotation;
                var angle;
                if (bullet.dataItem) {
                    var dataContext = bullet.dataItem.dataContext;
                    angle = dataContext[rotationField];
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_12__["isNumber"](angle)) {
                    angle = point.angle;
                }
                bullet.rotation = angle;
            };
            Object.defineProperty(FlowDiagramLink.prototype, "startAngle", {
                /**
                 * @return {number} Start angle
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * [startAngle description]
                 *
                 * @todo Description
                 * @param {number}  value  Start angle
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramLink.prototype, "endAngle", {
                /**
                 * @return {number} End angle
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * [endAngle description]
                 *
                 * @todo Description
                 * @param {number}  value  End angle
                 */
                set: function (value) {
                    this.setPropertyValue("endAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramLink.prototype, "colorMode", {
                /**
                 * @type {"solid" | "gradient"} Fill mode
                 */
                get: function () {
                    return this.getPropertyValue("colorMode");
                },
                /**
                 * Should link be filled with a solid color, color of from node, color of toNode or gradient between node colors.
                 * Some of the links, like ChordLink does not support gradiens well.
                 *
                 * @param {"solid" | "gradient" | "fromNode" | "toNode"}  value  Fill mode
                 */
                set: function (value) {
                    if (value == "gradient") {
                        var color_1 = this.fill;
                        this.gradient.stops.clear();
                        if (color_1 instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["Color"]) {
                            this.gradient.addColor(color_1);
                            this.gradient.addColor(color_1);
                        }
                        this.fill = this.gradient;
                        this.stroke = this.gradient;
                    }
                    this.setPropertyValue("colorMode", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramLink.prototype, "maskBullets", {
                /**
                 * @return {boolean} mask bullets value
                 */
                get: function () {
                    return this.getPropertyValue("maskBullets");
                },
                /**
                 * Should link bullets be masked or not
                 *
                 * @param {boolean}  value
                 * @default false;
                 */
                set: function (value) {
                    this.setPropertyValue("maskBullets", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FlowDiagramLink.prototype, "tooltipLocation", {
                /**
                 * @type {number} tooltip location value
                 */
                get: function () {
                    return this.getPropertyValue("tooltipLocation");
                },
                /**
                 * Relative location of a tooltip.
                 * @default 0.5
                 *
                 * @param {number} value
                 */
                set: function (value) {
                    this.setPropertyValue("tooltipLocation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Adds color steps in the link gradient.
             *
             * @param {Color | Pattern | LinearGradient | RadialGradient}  value  Fill option
             */
            FlowDiagramLink.prototype.setFill = function (value) {
                _super.prototype.setFill.call(this, value);
                var gradient = this._gradient;
                if (gradient && value instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_6__["Color"]) {
                    gradient.stops.clear();
                    gradient.addColor(value);
                    gradient.addColor(value);
                }
            };
            /**
             * Updates bounding box based on element dimension settings.
             *
             * @ignore Exclude from docs
             */
            FlowDiagramLink.prototype.measureElement = function () {
            };
            Object.defineProperty(FlowDiagramLink.prototype, "bullets", {
                /**
                 * List of bullets
                 *
                 * @return {ListTemplate<Bullet>} [description]
                 */
                get: function () {
                    var _this = this;
                    if (!this._bullets) {
                        this._bullets = new _core_utils_List__WEBPACK_IMPORTED_MODULE_7__["ListTemplate"](new _elements_Bullet__WEBPACK_IMPORTED_MODULE_5__["Bullet"]());
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_7__["ListDisposer"](this._bullets));
                        this._disposers.push(this._bullets.template);
                        this._bullets.events.on("inserted", function (event) {
                            event.newValue.events.on("propertychanged", function (event) {
                                if (event.property == "locationX" || event.property == "locationY") {
                                    _this.positionBullet(event.target);
                                }
                            }, undefined, false);
                        }, undefined, false);
                    }
                    return this._bullets;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies properties from another [[FlowDiagramLink]].
             *
             * @param {FlowDiagramLink}  source  Source link
             */
            FlowDiagramLink.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.bullets.copyFrom(source.bullets);
                var middleLine = this.middleLine;
                if (middleLine) {
                    if (middleLine instanceof _core_elements_Line__WEBPACK_IMPORTED_MODULE_9__["Line"] && source.middleLine instanceof _core_elements_Line__WEBPACK_IMPORTED_MODULE_9__["Line"]) {
                        middleLine.copyFrom(source.middleLine);
                    }
                    if (middleLine instanceof _core_elements_Polyline__WEBPACK_IMPORTED_MODULE_8__["Polyline"] && source.middleLine instanceof _core_elements_Polyline__WEBPACK_IMPORTED_MODULE_8__["Polyline"]) {
                        middleLine.copyFrom(source.middleLine);
                    }
                }
                this.link.copyFrom(source.link);
            };
            /**
             * @ignore Exclude from docs
             * @return {number} Tooltip X (px)
             */
            FlowDiagramLink.prototype.getTooltipX = function () {
                if (this.middleLine) {
                    return this.middleLine.positionToPoint(this.tooltipLocation).x;
                }
            };
            /**
             * @ignore Exclude from docs
             * @return {number} Tooltip Y (px)
             */
            FlowDiagramLink.prototype.getTooltipY = function () {
                if (this.middleLine) {
                    return this.middleLine.positionToPoint(this.tooltipLocation).y;
                }
            };
            Object.defineProperty(FlowDiagramLink.prototype, "gradient", {
                /**
                 * A gradiend instance that is used to provided colored gradient fills for
                 * the Flow link.
                 *
                 * @type {LinearGradient}
                 */
                get: function () {
                    if (!this._gradient) {
                        this._gradient = new _core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_3__["LinearGradient"]();
                    }
                    return this._gradient;
                },
                enumerable: true,
                configurable: true
            });
            return FlowDiagramLink;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["FlowDiagramLink"] = FlowDiagramLink;
        //# sourceMappingURL=FlowDiagramLink.js.map
        /***/ 
    }),
    /* 942 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyDiagramDataItem", function () { return SankeyDiagramDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyDiagram", function () { return SankeyDiagram; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(939);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _elements_SankeyNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(943);
        /* harmony import */ var _elements_SankeyLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(945);
        /* harmony import */ var _core_utils_Animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(785);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Sankey diagram module.
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo rearange notes after dragged
        /**
         * Defines a [[DataItem]] for [[SankeyDiagram]].
         *
         * @see {@link DataItem}
         */
        var SankeyDiagramDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SankeyDiagramDataItem, _super);
            /**
             * Constructor
             */
            function SankeyDiagramDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "SankeyDiagramDataItem";
                _this.applyTheme();
                return _this;
            }
            return SankeyDiagramDataItem;
        }(_FlowDiagram__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Sankey Diagram chart.
         *
         * @see {@link ISankeyDiagramEvents} for a list of available Events
         * @see {@link ISankeyDiagramAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sankey-diagram/} for documentation
         * @important
         */
        var SankeyDiagram = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SankeyDiagram, _super);
            /**
             * Constructor
             */
            function SankeyDiagram() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "SankeyDiagram";
                _this.orientation = "horizontal";
                _this.nodeAlign = "middle";
                _this.nodesContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.nodesContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.linksContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                _this.linksContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(100);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)validates chart's data, effectively causing the chart to redraw.
             *
             * @ignore Exclude from docs
             */
            SankeyDiagram.prototype.validateData = function () {
                var _this = this;
                _super.prototype.validateData.call(this);
                this._levelCount = 0;
                this.nodes.each(function (key, node) {
                    node.level = _this.getNodeLevel(node, 0);
                    _this._levelCount = _core_utils_Math__WEBPACK_IMPORTED_MODULE_8__["max"](_this._levelCount, node.level);
                });
            };
            /**
             * Returns node's highest level.
             *
             * @param  {SankeyNode}  node   Node
             * @param  {number}      level  Current level
             * @return {number}             New level
             */
            SankeyDiagram.prototype.getNodeLevel = function (node, level) {
                var _this = this;
                //@todo solve circular so
                var levels = [level];
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](node.incomingDataItems.iterator(), function (link) {
                    if (link.fromNode) {
                        levels.push(_this.getNodeLevel(link.fromNode, level + 1));
                    }
                });
                return Math.max.apply(Math, tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"](levels));
            };
            /**
             * Calculates relation between pixel height and total value.
             *
             * In Sankey the actual thickness of links and height of nodes will depend
             * on their values.
             */
            SankeyDiagram.prototype.calculateValueHeight = function () {
                var _this = this;
                // calculate sums of each level
                this._levelSum = {};
                this._levelNodesCount = {};
                this.maxSum = 0;
                var total = this.dataItem.values.value.sum;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                    var node = strNode[1];
                    _this.getNodeValue(node);
                });
                this.nodes.each(function (key, node) {
                    var level = node.level;
                    var value = Math.max(node.totalIncoming, node.totalOutgoing);
                    if (value / total < _this.minNodeSize) {
                        value = total * _this.minNodeSize;
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](_this._levelSum[level])) {
                        _this._levelSum[level] += value;
                    }
                    else {
                        _this._levelSum[level] = value;
                    }
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](_this._levelNodesCount[level])) {
                        _this._levelNodesCount[level]++;
                    }
                    else {
                        _this._levelNodesCount[level] = 1;
                    }
                });
                var maxSumLevel;
                for (var key in this._levelSum) {
                    if (this.maxSum < this._levelSum[key]) {
                        this.maxSum = this._levelSum[key];
                        maxSumLevel = Number(key);
                    }
                }
                this._maxSumLevel = maxSumLevel;
                var maxSumLevelNodeCount = this._levelNodesCount[this._maxSumLevel];
                var availableHeight;
                if (this.orientation == "horizontal") {
                    availableHeight = this.chartContainer.maxHeight - 1;
                }
                else {
                    availableHeight = this.chartContainer.maxWidth - 1;
                }
                var valueHeight = (availableHeight - (maxSumLevelNodeCount - 1) * this.nodePadding) / this.maxSum;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](this.valueHeight)) {
                    this.valueHeight = valueHeight;
                }
                else {
                    var finalHeight = void 0;
                    try {
                        finalHeight = this._heightAnimation.animationOptions[0].to;
                    }
                    catch (err) {
                    }
                    // without animations it will be non-smooth as maxValue jumps from one column to another
                    if (finalHeight != valueHeight) {
                        var duration = this.interpolationDuration;
                        try {
                            duration = this.nodes.template.states.getKey("active").transitionDuration;
                        }
                        catch (err) {
                        }
                        this._heightAnimation = new _core_utils_Animation__WEBPACK_IMPORTED_MODULE_6__["Animation"](this, { property: "valueHeight", from: this.valueHeight, to: valueHeight }, duration).start();
                        this._disposers.push(this._heightAnimation);
                    }
                }
            };
            /**
             * Redraws the chart.
             *
             * @ignore Exclude from docs
             */
            SankeyDiagram.prototype.validate = function () {
                var _this = this;
                _super.prototype.validate.call(this);
                this.calculateValueHeight();
                var container = this.nodesContainer;
                var nextCoordinate = {};
                var maxSumLevelNodeCount = this._levelNodesCount[this._maxSumLevel];
                var total = this.dataItem.values.value.sum;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                    var node = strNode[1];
                    var level = node.level;
                    var levelCoordinate = 0;
                    var nodeCount = _this._levelNodesCount[level];
                    switch (_this.nodeAlign) {
                        case "bottom":
                            levelCoordinate = (_this.maxSum - _this._levelSum[level]) * _this.valueHeight - (nodeCount - maxSumLevelNodeCount) * _this.nodePadding;
                            break;
                        case "middle":
                            levelCoordinate = (_this.maxSum - _this._levelSum[level]) * _this.valueHeight / 2 - (nodeCount - maxSumLevelNodeCount) * _this.nodePadding / 2;
                            break;
                    }
                    node.parent = container;
                    var delta;
                    var x;
                    var y;
                    var value = Math.max(node.totalIncoming, node.totalOutgoing);
                    if (value / total < _this.minNodeSize) {
                        value = total * _this.minNodeSize;
                    }
                    if (_this.orientation == "horizontal") {
                        delta = (_this.innerWidth - node.pixelWidth) / _this._levelCount;
                        x = delta * node.level;
                        y = nextCoordinate[level] || levelCoordinate;
                        var h = value * _this.valueHeight;
                        node.height = h;
                        node.minX = x;
                        node.maxX = x;
                        nextCoordinate[level] = y + h + _this.nodePadding;
                    }
                    else {
                        delta = (_this.innerHeight - node.pixelHeight) / _this._levelCount;
                        x = nextCoordinate[level] || levelCoordinate;
                        y = delta * node.level;
                        var w = value * _this.valueHeight;
                        node.width = w;
                        node.minY = y;
                        node.maxY = y;
                        nextCoordinate[level] = x + w + _this.nodePadding;
                    }
                    node.x = x;
                    node.y = y;
                });
            };
            /**
             * Performs actual operations to reveal this element.
             *
             * @ignore Exclude from docs
             * @param  {number} duration Fade in duration (ms)
             * @return {number}          Fade in duration (ms)
             */
            SankeyDiagram.prototype.showReal = function (duration) {
                var _this = this;
                if (this.interpolationDuration > 0) {
                    var container_1 = this.nodesContainer;
                    var i_1 = 0;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this.links.iterator(), function (link) {
                        link.hide(0);
                    });
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                        var node = strNode[1];
                        var property;
                        if (_this.orientation == "horizontal") {
                            node.dx = -(container_1.pixelWidth - node.pixelWidth) / _this._levelCount;
                            property = "dx";
                        }
                        else {
                            node.dy = -(container_1.pixelHeight - node.pixelHeight) / _this._levelCount;
                            property = "dy";
                        }
                        var delay = 0;
                        var duration = _this.interpolationDuration;
                        if (_this.sequencedInterpolation) {
                            delay = _this.sequencedInterpolationDelay * i_1 + duration * i_1 / _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["length"](_this.nodes.iterator());
                        }
                        node.opacity = 0;
                        node.invalidateLinks();
                        node.animate([{ property: "opacity", from: 0, to: 1 }, { property: property, to: 0 }], _this.interpolationDuration, _this.interpolationEasing).delay(delay);
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](node.outgoingDataItems.iterator(), function (dataItem) {
                            var animation = dataItem.link.show(_this.interpolationDuration);
                            if (animation && !animation.isFinished()) {
                                animation.delay(delay);
                            }
                        });
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](node.incomingDataItems.iterator(), function (dataItem) {
                            if (!dataItem.fromNode) {
                                var animation = dataItem.link.show(_this.interpolationDuration);
                                if (animation && !animation.isFinished()) {
                                    animation.delay(delay);
                                }
                            }
                        });
                        i_1++;
                    });
                }
                return _super.prototype.showReal.call(this);
            };
            /**
             * Changes the sort type of the nodes.
             *
             * This will actually reshuffle nodes using nice animation.
             */
            SankeyDiagram.prototype.changeSorting = function () {
                var _this = this;
                this.sortNodes();
                var nextCoordinate = {};
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                    var node = strNode[1];
                    var level = node.level;
                    var levelCoordinate = (_this.maxSum - _this._levelSum[level]) * _this.valueHeight / 2;
                    var property;
                    var nodeHeight;
                    if (_this.orientation == "horizontal") {
                        property = "y";
                        nodeHeight = node.pixelHeight;
                    }
                    else {
                        property = "x";
                        nodeHeight = node.pixelWidth;
                    }
                    node.animate({ property: property, to: nextCoordinate[level] || levelCoordinate }, _this.interpolationDuration, _this.interpolationEasing);
                    nextCoordinate[level] = (nextCoordinate[level] || levelCoordinate) + nodeHeight + _this.nodePadding;
                    node.invalidateLinks();
                });
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            SankeyDiagram.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Sankey diagram");
                }
            };
            /**
             * Creates and returns a new data item.
             *
             * @return {this} Data item
             */
            SankeyDiagram.prototype.createDataItem = function () {
                return new SankeyDiagramDataItem();
            };
            Object.defineProperty(SankeyDiagram.prototype, "nodeAlign", {
                /**
                 * @returns {"top" | "middle" | "bottom"} Returns nodeAlign value
                 */
                get: function () {
                    return this.getPropertyValue("nodeAlign");
                },
                /**
                 * How to align nodes. In case layout is vertical, top means left and bottom means right
                 *
                 * @param {"top" | "middle" | "bottom"}  value  Node sorting
                 */
                set: function (value) {
                    this.setPropertyValue("nodeAlign", value);
                    this.changeSorting();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyDiagram.prototype, "orientation", {
                /**
                 * @return {Orientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                 * Orientation of the chart: "horizontal" or "vertical";
                 *
                 * @param {Orientation} value Orientation
                 */
                set: function (value) {
                    this.setPropertyValue("orientation", value, true);
                    var nameLabel = this.nodes.template.nameLabel;
                    if (value == "vertical") {
                        this.nodes.template.width = undefined;
                        nameLabel.label.horizontalCenter = "middle";
                        nameLabel.locationX = 0.5;
                    }
                    else {
                        this.nodes.template.height = undefined;
                        nameLabel.label.horizontalCenter = "left";
                        nameLabel.locationX = 1;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            SankeyDiagram.prototype.createNode = function () {
                var node = new _elements_SankeyNode__WEBPACK_IMPORTED_MODULE_4__["SankeyNode"]();
                this._disposers.push(node);
                return node;
            };
            /**
             * @ignore
             */
            SankeyDiagram.prototype.createLink = function () {
                var link = new _elements_SankeyLink__WEBPACK_IMPORTED_MODULE_5__["SankeyLink"]();
                this._disposers.push(link);
                return link;
            };
            Object.defineProperty(SankeyDiagram.prototype, "valueHeight", {
                get: function () {
                    return this._valueHeight;
                },
                set: function (value) {
                    if (value != this._valueHeight) {
                        this._valueHeight = value;
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            SankeyDiagram.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                this._sorted = this.nodes.iterator();
            };
            return SankeyDiagram;
        }(_FlowDiagram__WEBPACK_IMPORTED_MODULE_1__["FlowDiagram"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["SankeyDiagram"] = SankeyDiagram;
        //# sourceMappingURL=SankeyDiagram.js.map
        /***/ 
    }),
    /* 943 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyNode", function () { return SankeyNode; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagramNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(940);
        /* harmony import */ var _LabelBullet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(944);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /**
         * SankeyNode module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a node in a Sankey Diagram.
         *
         * A Sankey node is a block with a value, which represents its size on the
         * diagram.
         *
         * Nodes are connected via [[SankeyLink]] elements.
         *
         * @see {@link ISankeyNodeEvents} for a list of available events
         * @see {@link ISankeyNodeAdapters} for a list of available Adapters
         * @important
         */
        var SankeyNode = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SankeyNode, _super);
            /**
             * Constructor
             */
            function SankeyNode() {
                var _this = _super.call(this) || this;
                /**
                 * [nextInCoord description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {number}
                 */
                _this.nextInCoord = 0;
                /**
                 * [nextOutCoord description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {number}
                 */
                _this.nextOutCoord = 0;
                _this.className = "SankeyNode";
                _this.width = 10;
                _this.height = 10;
                var nameLabel = _this.createChild(_LabelBullet__WEBPACK_IMPORTED_MODULE_2__["LabelBullet"]);
                nameLabel.shouldClone = false;
                //@should we auto update these locations if position is changed?
                nameLabel.locationX = 1;
                nameLabel.locationY = 0.5;
                nameLabel.label.text = "{name}";
                //nameLabel.label.textElement.hideOversized = false;
                nameLabel.width = 150;
                nameLabel.height = 150;
                nameLabel.label.horizontalCenter = "left";
                nameLabel.label.padding(0, 5, 0, 5);
                _this.nameLabel = nameLabel;
                var valueLabel = _this.createChild(_LabelBullet__WEBPACK_IMPORTED_MODULE_2__["LabelBullet"]);
                valueLabel.shouldClone = false;
                valueLabel.label.hideOversized = false;
                valueLabel.locationX = 0.5;
                valueLabel.locationY = 0.5;
                valueLabel.width = 150;
                valueLabel.height = 150;
                //valueLabel.label.text = "{value}";
                valueLabel.label.horizontalCenter = "middle";
                _this.valueLabel = valueLabel;
                var hiddenState = _this.hiddenState;
                hiddenState.properties.fill = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]().getFor("disabledBackground");
                hiddenState.properties.opacity = 0.5;
                hiddenState.properties.visible = true;
                _this.background.hiddenState.copyFrom(hiddenState);
                return _this;
            }
            /**
             * Invalidates all links, attached to this node.
             *
             * @ignore Exclude from docs
             */
            SankeyNode.prototype.invalidateLinks = function () {
                var _this = this;
                _super.prototype.invalidateLinks.call(this);
                this.nextInCoord = 0;
                this.nextOutCoord = 0;
                var chart = this.chart;
                if (chart) {
                    var orientation_1 = chart.orientation;
                    if (this._incomingSorted) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](this._incomingSorted, function (dataItem) {
                            var link = dataItem.link;
                            var value = dataItem.getWorkingValue("value");
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                                link.parent = _this.chart.linksContainer;
                                var x = void 0;
                                var y = void 0;
                                var angle = void 0;
                                if (orientation_1 == "horizontal") {
                                    x = _this.pixelX + _this.dx;
                                    y = _this.nextInCoord + _this.pixelY + _this.dy;
                                    angle = 0;
                                }
                                else {
                                    y = _this.pixelY + _this.dy;
                                    x = _this.nextInCoord + _this.pixelX + _this.dx;
                                    angle = 90;
                                }
                                link.endX = x;
                                link.endY = y;
                                link.startAngle = angle;
                                link.endAngle = angle;
                                link.gradient.rotation = angle;
                                link.linkWidth = value * chart.valueHeight;
                                if (!dataItem.fromNode) {
                                    if (orientation_1 == "horizontal") {
                                        link.maxWidth = 200;
                                        link.startX = _this.pixelX + _this.dx - link.maxWidth;
                                        link.startY = link.endY;
                                    }
                                    else {
                                        link.maxHeight = 200;
                                        link.startX = link.endX;
                                        link.startY = _this.pixelY + _this.dy - link.maxHeight;
                                    }
                                    link.gradient;
                                    link.fill = dataItem.toNode.color;
                                    var stop_1 = link.gradient.stops.getIndex(0);
                                    if (stop_1) {
                                        if (link.colorMode == "gradient") {
                                            stop_1.color = _this.color;
                                        }
                                        stop_1.opacity = 0;
                                        link.fill = link.gradient;
                                        link.stroke = link.gradient;
                                        link.gradient.validate();
                                    }
                                }
                                //link.validate();
                                _this.nextInCoord += link.linkWidth;
                            }
                        });
                    }
                    if (this._outgoingSorted) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_5__["each"](this._outgoingSorted, function (dataItem) {
                            var link = dataItem.link;
                            link.parent = _this.chart.linksContainer;
                            var value = dataItem.getWorkingValue("value");
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](value)) {
                                var x = void 0;
                                var y = void 0;
                                var angle = void 0;
                                if (orientation_1 == "horizontal") {
                                    angle = 0;
                                    x = _this.pixelX + _this.pixelWidth + _this.dx - 1;
                                    y = _this.nextOutCoord + _this.pixelY + _this.dy;
                                }
                                else {
                                    angle = 90;
                                    x = _this.nextOutCoord + _this.pixelX + _this.dx;
                                    y = _this.pixelY + _this.pixelHeight + _this.dy - 1;
                                }
                                link.startX = x;
                                link.startY = y;
                                link.startAngle = angle;
                                link.endAngle = angle;
                                link.gradient.rotation = angle;
                                link.linkWidth = value * _this.chart.valueHeight;
                                if (!dataItem.toNode) {
                                    if (orientation_1 == "horizontal") {
                                        link.maxWidth = 200;
                                        link.endX = _this.pixelX + link.maxWidth + _this.dx;
                                        link.endY = link.startY;
                                    }
                                    else {
                                        link.maxHeight = 200;
                                        link.endX = link.startX;
                                        link.endY = _this.pixelY + link.maxHeight + _this.dy;
                                    }
                                    link.opacity = _this.opacity;
                                    var stop_2 = link.gradient.stops.getIndex(1);
                                    if (stop_2) {
                                        if (link.colorMode == "gradient") {
                                            stop_2.color = _this.color;
                                        }
                                        stop_2.opacity = 0;
                                        link.fill = link.gradient;
                                        link.stroke = link.gradient;
                                        link.gradient.validate();
                                    }
                                }
                                //link.validate();
                                _this.nextOutCoord += link.linkWidth;
                            }
                        });
                    }
                }
                this.positionBullet(this.nameLabel);
                this.positionBullet(this.valueLabel);
            };
            /**
             * Positions the bullet so it is centered within the node element.
             *
             * @param {LabelBullet}  bullet  Target bullet
             */
            SankeyNode.prototype.positionBullet = function (bullet) {
                if (bullet) {
                    bullet.x = this.measuredWidth * bullet.locationX;
                    bullet.y = this.measuredHeight * bullet.locationY;
                }
            };
            Object.defineProperty(SankeyNode.prototype, "level", {
                /**
                 * @return {number} Level
                 */
                get: function () {
                    return this.getPropertyValue("level");
                },
                /**
                 * A level node is displayed at. (0 - ...)
                 *
                 * Levels are measured from left to right.
                 *
                 * The nodes in the left-most column will have `level = 0`.
                 *
                 * Nodes in second column - `level = 1`, etc.
                 *
                 * @param {number}  value  Level
                 */
                set: function (value) {
                    this.setPropertyValue("level", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies properties and labels from another [[SankeyNode]].
             *
             * @param {SankeyNode}  source  Source node
             */
            SankeyNode.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.nameLabel.copyFrom(source.nameLabel);
                this.valueLabel.copyFrom(source.valueLabel);
            };
            return SankeyNode;
        }(_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramNode"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["SankeyNode"] = SankeyNode;
        //# sourceMappingURL=SankeyNode.js.map
        /***/ 
    }),
    /* 944 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LabelBullet", function () { return LabelBullet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Bullet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(912);
        /* harmony import */ var _core_elements_Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(845);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(800);
        /**
         * Bullet module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a bullet with a textual label.
         *
         * Uses [[Label]] instance to draw the label, so the label itself is
         * configurable.
         *
         * @see {@link IBulletEvents} for a list of available events
         * @see {@link IBulletAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var LabelBullet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LabelBullet, _super);
            /**
             * Constructor
             */
            function LabelBullet() {
                var _this = _super.call(this) || this;
                _this.className = "LabelBullet";
                var label = _this.createChild(_core_elements_Label__WEBPACK_IMPORTED_MODULE_2__["Label"]);
                label.shouldClone = false;
                label.verticalCenter = "middle";
                label.horizontalCenter = "middle";
                label.truncate = true;
                label.hideOversized = true;
                label.stroke = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["color"])();
                label.strokeOpacity = 0;
                label.fill = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__["InterfaceColorSet"]().getFor("text");
                _this.events.on("maxsizechanged", _this.handleMaxSize, _this, false);
                _this.label = label;
                return _this;
                // not good, as lineSeries will have labels somewhere in the middle.
                //this.locationX = 0.5;
                //this.locationY = 0.5;
            }
            LabelBullet.prototype.handleMaxSize = function () {
                this.label.maxWidth = this.maxWidth;
                this.label.maxHeight = this.maxHeight;
            };
            /**
             * Copies all proprities and related stuff from another instance of
             * [[LabelBullet]].
             *
             * @param {this}  source  Source element
             */
            LabelBullet.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.label.copyFrom(source.label);
            };
            return LabelBullet;
        }(_Bullet__WEBPACK_IMPORTED_MODULE_1__["Bullet"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["LabelBullet"] = LabelBullet;
        //# sourceMappingURL=LabelBullet.js.map
        /***/ 
    }),
    /* 945 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyLink", function () { return SankeyLink; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagramLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(941);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_elements_Polyspline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(875);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
        /* harmony import */ var _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(851);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(852);
        /**
         * SankeyLink module
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class creates a link (waved color-filled line) between two nodes in a
         * Sankey Diagram.
         *
         * @see {@link ISankeyLinkEvents} for a list of available events
         * @see {@link ISankeyLinkAdapters} for a list of available Adapters
         * @important
         */
        var SankeyLink = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SankeyLink, _super);
            /**
             * Constructor
             */
            function SankeyLink() {
                var _this = _super.call(this) || this;
                _this.className = "SankeyLink";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                _this.tension = 0.8;
                _this.controlPointDistance = 0.2;
                _this.startAngle = 0;
                _this.endAngle = 0;
                _this.linkWidth = 0;
                _this.startX = 0;
                _this.endX = 0;
                _this.startY = 0;
                _this.endY = 0;
                _this.middleLine = _this.createChild(_core_elements_Polyspline__WEBPACK_IMPORTED_MODULE_3__["Polyspline"]);
                _this.middleLine.shouldClone = false;
                _this.middleLine.strokeOpacity = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)validates (redraws) the link.
             *
             * @ignore Exclude from docs
             */
            SankeyLink.prototype.validate = function () {
                _super.prototype.validate.call(this);
                if (!this.isTemplate) {
                    var x0 = this.startX;
                    var y0 = this.startY;
                    var x1 = this.endX;
                    var y1 = this.endY;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](x1)) {
                        x1 = x0;
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](y1)) {
                        y1 = y0;
                    }
                    var startAngle = this.startAngle;
                    var endAngle = this.endAngle;
                    var w = this.linkWidth;
                    var path = "";
                    var xt0 = x0;
                    var yt0 = y0;
                    var xt1 = x1;
                    var yt1 = y1;
                    var xb0 = x0 + w * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                    var xb1 = x1 + w * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle);
                    var yb0 = y0 + w * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                    var yb1 = y1 + w * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle);
                    var xm0 = x0 + w / 2 * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                    var xm1 = x1 + w / 2 * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle);
                    var ym0 = y0 + w / 2 * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                    var ym1 = y1 + w / 2 * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle);
                    this.zIndex = this.zIndex || this.dataItem.index;
                    var tensionX = this.tension + (1 - this.tension) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                    var tensionY = this.tension + (1 - this.tension) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                    this.middleLine.tensionX = tensionX;
                    this.middleLine.tensionY = tensionY;
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](w) && (_core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](x0) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](x1) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](y0) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_6__["isNumber"](y1))) {
                        // solves issues with gradient fill of straight lines
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](xt0, 3) == _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](xt1, 3)) {
                            xt1 += 0.01;
                        }
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](yt0, 3) == _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](yt1, 3)) {
                            yt1 += 0.01;
                        }
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](xb0, 3) == _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](xb1, 3)) {
                            xb1 += 0.01;
                        }
                        if (_core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](yb0, 3) == _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["round"](yb1, 3)) {
                            yb1 += 0.01;
                        }
                        var minX = Math.min(xb0, xb1, xt0, xt1);
                        var minY = Math.min(yb0, yb1, yt0, yt1);
                        var maxX = Math.max(xb0, xb1, xt0, xt1);
                        var maxY = Math.max(yb0, yb1, yt0, yt1);
                        this._bbox = {
                            x: minX,
                            y: minY,
                            width: maxX - minX,
                            height: maxY - minY
                        };
                        var cpd = this.controlPointDistance;
                        var kxt0 = xt0 + (xt1 - xt0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                        var kyt0 = yt0 + (yt1 - yt0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                        var kxt1 = xt1 - (xt1 - xt0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle);
                        var kyt1 = yt1 - (yt1 - yt0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle);
                        var kxm0 = xm0 + (xm1 - xm0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                        var kym0 = ym0 + (ym1 - ym0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                        var kxm1 = xm1 - (xm1 - xm0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle);
                        var kym1 = ym1 - (ym1 - ym0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle);
                        var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["getAngle"]({ x: kxt0, y: kyt0 }, { x: kxt1, y: kyt1 });
                        var dx = (w / _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](angle) - w) / _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["tan"](angle) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                        var dy = (w / _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](angle) - w) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["tan"](angle) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                        var kxb0 = -dx / 2 + xb0 + (xb1 - xb0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](startAngle);
                        var kyb0 = -dy / 2 + yb0 + (yb1 - yb0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](startAngle);
                        var kxb1 = -dx / 2 + xb1 - (xb1 - xb0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["cos"](endAngle);
                        var kyb1 = -dy / 2 + yb1 - (yb1 - yb0) * cpd * _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["sin"](endAngle);
                        this.middleLine.segments = [[{ x: xm0, y: ym0 }, { x: kxm0, y: kym0 }, { x: kxm1, y: kym1 }, { x: xm1, y: ym1 }]];
                        kxt0 += dx / 2;
                        kyt0 += dy / 2;
                        kxt1 += dx / 2;
                        kyt1 += dy / 2;
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["moveTo"]({ x: xt0, y: yt0 });
                        path += new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_7__["Tension"](tensionX, tensionY).smooth([{ x: xt0, y: yt0 }, { x: kxt0, y: kyt0 }, { x: kxt1, y: kyt1 }, { x: xt1, y: yt1 }]);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["lineTo"]({ x: xb1, y: yb1 });
                        path += new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_7__["Tension"](tensionX, tensionY).smooth([{ x: xb1, y: yb1 }, { x: kxb1, y: kyb1 }, { x: kxb0, y: kyb0 }, { x: xb0, y: yb0 }]);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_8__["closePath"]();
                    }
                    this.link.path = path;
                    if (this.maskBullets) {
                        this.bulletsMask.path = path;
                        this.bulletsContainer.mask = this.bulletsMask;
                    }
                    this.positionBullets();
                }
            };
            Object.defineProperty(SankeyLink.prototype, "startX", {
                /**
                 * @return {number} Start X
                 */
                get: function () {
                    return this.getPropertyValue("startX");
                },
                /**
                 * [startX description]
                 *
                 * @todo Description
                 * @param {number}  value  Start X
                 */
                set: function (value) {
                    this.setPropertyValue("startX", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "endX", {
                /**
                 * @return {number} End X
                 */
                get: function () {
                    return this.getPropertyValue("endX");
                },
                /**
                 * [endX description]
                 *
                 * @todo Description
                 * @param {number} value  End X
                 */
                set: function (value) {
                    this.setPropertyValue("endX", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "startY", {
                /**
                 * @return {number} Start Y
                 */
                get: function () {
                    return this.getPropertyValue("startY");
                },
                /**
                 * [startY description]
                 *
                 * @todo Description
                 * @param {number}  value  Start Y
                 */
                set: function (value) {
                    this.setPropertyValue("startY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "endY", {
                /**
                 * @return {number} End Y
                 */
                get: function () {
                    return this.getPropertyValue("endY");
                },
                /**
                 * [endY description]
                 *
                 * @todo Description
                 * @param {number} value End Y
                 */
                set: function (value) {
                    this.setPropertyValue("endY", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "linkWidth", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this.getPropertyValue("linkWidth");
                },
                /**
                 * [linkWidth description]
                 *
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                    this.setPropertyValue("linkWidth", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "controlPointDistance", {
                /**
                 * @return {number} relative control point distance
                 */
                get: function () {
                    return this.getPropertyValue("controlPointDistance");
                },
                /**
                 * Distance of control point of a link, defines relative distance from a node at which linke should bend
                 * @default 0.2
                 * @param {number}  value
                 */
                set: function (value) {
                    this.setPropertyValue("controlPointDistance", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(SankeyLink.prototype, "tension", {
                /**
                 * @return {number} tension value
                 */
                get: function () {
                    return this.getPropertyValue("tension");
                },
                /**
                 * Tension of a spline, 1 would make the link to have sharp edges
                 * @default 0.8
                 * @param {number} value
                 */
                set: function (value) {
                    this.setPropertyValue("tension", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return SankeyLink;
        }(_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramLink"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["SankeyLink"] = SankeyLink;
        //# sourceMappingURL=SankeyLink.js.map
        /***/ 
    }),
    /* 946 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChordDiagramDataItem", function () { return ChordDiagramDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChordDiagram", function () { return ChordDiagram; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(939);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(758);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _elements_ChordNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(947);
        /* harmony import */ var _elements_ChordLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(948);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(795);
        /**
         * Chord diagram module.
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo rearange notes after dragged
        /**
         * Defines a [[DataItem]] for [[ChordDiagram]].
         *
         * @see {@link DataItem}
         */
        var ChordDiagramDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ChordDiagramDataItem, _super);
            /**
             * Constructor
             */
            function ChordDiagramDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ChordDiagramDataItem";
                _this.applyTheme();
                return _this;
            }
            return ChordDiagramDataItem;
        }(_FlowDiagram__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a Chord Diagram chart.
         *
         * @see {@link IChordDiagramEvents} for a list of available Events
         * @see {@link IChordDiagramAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/chord-diagram/} for documentation
         * @important
         */
        var ChordDiagram = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ChordDiagram, _super);
            /**
             * Constructor
             */
            function ChordDiagram() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * [valueAngle description]
                 *
                 * @ignore Exclude from docs
                 * @todo Description
                 * @type {number}
                 */
                _this.valueAngle = 0;
                _this.className = "ChordDiagram";
                _this.startAngle = -90;
                _this.endAngle = 270;
                _this.radius = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_2__["percent"])(80);
                _this.innerRadius = -15;
                _this.nodePadding = 5;
                var chordContainer = _this.chartContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                chordContainer.align = "center";
                chordContainer.valign = "middle";
                chordContainer.shouldClone = false;
                chordContainer.layout = "absolute";
                _this.chordContainer = chordContainer;
                _this.nodesContainer.parent = chordContainer;
                _this.linksContainer.parent = chordContainer;
                _this.chartContainer.events.on("maxsizechanged", _this.invalidate, _this, false);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Redraws the chart.
             *
             * @ignore Exclude from docs
             */
            ChordDiagram.prototype.validate = function () {
                var _this = this;
                var chartContainer = this.chartContainer;
                var nodesContainer = this.nodesContainer;
                var endAngle = this.endAngle;
                var startAngle = this.startAngle + this.nodePadding / 2;
                var rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_8__["getArcRect"](this.startAngle, this.endAngle, 1);
                var innerRect = { x: 0, y: 0, width: 0, height: 0 };
                rect = _core_utils_Math__WEBPACK_IMPORTED_MODULE_8__["getCommonRectangle"]([rect, innerRect]);
                var maxRadius = Math.min(chartContainer.innerWidth / rect.width, chartContainer.innerHeight / rect.height);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](maxRadius)) {
                    maxRadius = 0;
                }
                var chartRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["relativeRadiusToValue"](this.radius, maxRadius);
                var radius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["relativeRadiusToValue"](this.radius, maxRadius);
                var pixelInnerRadius = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_10__["relativeRadiusToValue"](this.innerRadius, radius, true);
                var total = this.dataItem.values.value.sum;
                var count = 0;
                var newTotal = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                    var node = strNode[1];
                    _this.getNodeValue(node);
                    count++;
                    var value = node.total;
                    if (node.total / total < _this.minNodeSize) {
                        value = total * _this.minNodeSize;
                    }
                    newTotal += value;
                });
                this.valueAngle = (endAngle - this.startAngle - this.nodePadding * count) / newTotal;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](this._sorted, function (strNode) {
                    var node = strNode[1];
                    var slice = node.slice;
                    slice.radius = radius;
                    slice.innerRadius = pixelInnerRadius;
                    var value = node.total;
                    if (node.total / total < _this.minNodeSize) {
                        value = total * _this.minNodeSize;
                    }
                    node.adjustedTotal = value;
                    var arc;
                    if (_this.nonRibbon) {
                        arc = (endAngle - _this.startAngle) / count - _this.nodePadding;
                    }
                    else {
                        arc = _this.valueAngle * value;
                    }
                    slice.arc = arc;
                    slice.startAngle = startAngle;
                    node.trueStartAngle = startAngle;
                    node.parent = _this.nodesContainer;
                    node.validate(); // otherwise flickers - nodes are already created, but not yet positioned etc.
                    startAngle += arc + _this.nodePadding;
                });
                this.chordContainer.definedBBox = { x: radius * rect.x, y: radius * rect.y, width: radius * rect.width, height: radius * rect.height };
                this.chordContainer.invalidateLayout();
                _super.prototype.validate.call(this);
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            ChordDiagram.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Chord diagram");
                }
            };
            /**
             * Creates and returns a new data item.
             *
             * @return {this} Data item
             */
            ChordDiagram.prototype.createDataItem = function () {
                return new ChordDiagramDataItem();
            };
            Object.defineProperty(ChordDiagram.prototype, "startAngle", {
                /**
                 * @return {number} Start angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("startAngle");
                },
                /**
                 * Starting angle of the Radar face. (degrees)
                 *
                 * Normally, a circular radar face begins (the radial axis is drawn) at the
                 * top center. (at -90 degrees)
                 *
                 * You can use `startAngle` to change this setting.
                 *
                 * E.g. setting this to 0 will make the radial axis start horizontally to
                 * the right, as opposed to vertical.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set those to lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a radar face that
                 * looks like a quarter of a circle.
                 *
                 * @default -90
                 * @param {number}  value  Start angle (degrees)
                 */
                set: function (value) {
                    this.setPropertyValue("startAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ChordDiagram.prototype, "endAngle", {
                /**
                 * @return {number} End angle (degrees)
                 */
                get: function () {
                    return this.getPropertyValue("endAngle");
                },
                /**
                 * Starting angle of the Radar face. (degrees)
                 *
                 * Normally, a circular radar face ends (the radial axis is drawn) exactly
                 * where it has started, forming a full 360 circle. (at 270 degrees)
                 *
                 * You can use `endAngle` to end the circle somewhere else.
                 *
                 * E.g. setting this to 180 will make the radar face end at horizontal line
                 * to the left off the center.
                 *
                 * For a perfect circle the absolute sum of `startAngle` and `endAngle`
                 * needs to be 360.
                 *
                 * However, it's **not** necessary to do so. You can set those to lesser
                 * numbers, to create semi-circles.
                 *
                 * E.g. `startAngle = -90` with `endAngle = 0` will create a radar face that
                 * looks like a quarter of a circle.
                 *
                 * @default -90
                 * @param {number}  value  End angle (degrees)
                 */
                set: function (value) {
                    this.setPropertyValue("endAngle", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ChordDiagram.prototype, "radius", {
                /**
                 * @return {number} Outer radius
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * Outer radius of the Radar face.
                 *
                 * This can either be in absolute pixel value, or relative [[Percent]].
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("radius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ChordDiagram.prototype, "innerRadius", {
                /**
                 * @return {number} Inner radius
                 */
                get: function () {
                    return this.getPropertyValue("innerRadius");
                },
                /**
                 * Inner radius of the Chord nodes.
                 *
                 * This can either be in absolute pixel value, or relative [[Percent]].
                 *
                 * @param {number | Percent}  value  Outer radius
                 */
                set: function (value) {
                    this.setPercentProperty("innerRadius", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ChordDiagram.prototype, "nonRibbon", {
                /**
                 * @return {boolean} Non-ribbon
                 */
                get: function () {
                    return this.getPropertyValue("nonRibbon");
                },
                /**
                 *
                 * If you set this to true, all the lines will be of the same width. This is done by making middleLine of a ChordLink visible.
                 *
                 * @param {boolean}  value
                 */
                set: function (value) {
                    this.setPropertyValue("nonRibbon", value, true);
                    this.links.template.middleLine.strokeOpacity = 1;
                    this.links.template.link.fillOpacity = 0;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            ChordDiagram.prototype.createNode = function () {
                var node = new _elements_ChordNode__WEBPACK_IMPORTED_MODULE_5__["ChordNode"]();
                this._disposers.push(node);
                return node;
            };
            /**
             * @ignore
             */
            ChordDiagram.prototype.createLink = function () {
                var link = new _elements_ChordLink__WEBPACK_IMPORTED_MODULE_6__["ChordLink"]();
                this._disposers.push(link);
                return link;
            };
            return ChordDiagram;
        }(_FlowDiagram__WEBPACK_IMPORTED_MODULE_1__["FlowDiagram"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["ChordDiagram"] = ChordDiagram;
        //# sourceMappingURL=ChordDiagram.js.map
        /***/ 
    }),
    /* 947 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChordNode", function () { return ChordNode; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagramNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(940);
        /* harmony import */ var _axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(858);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_elements_Slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(877);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /* harmony import */ var _elements_Bullet__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(912);
        /**
         * ChordNode module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a node in a Chord Diagram.
         *
         * A Chord node is a block with a value, which represents its size on the
         * diagram.
         *
         * Nodes are connected via [[ChordLink]] elements.
         *
         * @see {@link IChordNodeEvents} for a list of available events
         * @see {@link IChordNodeAdapters} for a list of available Adapters
         * @important
         */
        var ChordNode = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ChordNode, _super);
            /**
             * Constructor
             */
            function ChordNode() {
                var _this = _super.call(this) || this;
                _this.className = "ChordNode";
                _this.label = _this.createChild(_axes_AxisLabelCircular__WEBPACK_IMPORTED_MODULE_2__["AxisLabelCircular"]);
                _this.label.location = 0.5;
                _this.label.radius = 5;
                _this.label.text = "{name}";
                _this.label.zIndex = 1;
                _this.label.shouldClone = false;
                _this.layout = "none";
                _this.events.on("positionchanged", _this.updateRotation, _this, false);
                _this.isMeasured = false;
                _this.slice = _this.createChild(_core_elements_Slice__WEBPACK_IMPORTED_MODULE_4__["Slice"]);
                _this.slice.isMeasured = false;
                var hiddenState = _this.hiddenState;
                hiddenState.properties.fill = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__["InterfaceColorSet"]().getFor("disabledBackground");
                hiddenState.properties.opacity = 0.5;
                hiddenState.properties.visible = true;
                _this.setStateOnChildren = false;
                _this.slice.hiddenState.properties.visible = true;
                _this.adapter.add("tooltipX", function (tooltipX, target) {
                    return target.slice.ix * (target.slice.radius - (target.slice.radius - target.slice.pixelInnerRadius) / 2);
                });
                _this.adapter.add("tooltipY", function (tooltipY, target) {
                    return target.slice.iy * (target.slice.radius - (target.slice.radius - target.slice.pixelInnerRadius) / 2);
                });
                return _this;
            }
            /**
             * Invalidates all links, attached to this node.
             *
             * @ignore Exclude from docs
             */
            ChordNode.prototype.invalidateLinks = function () {
                var _this = this;
                _super.prototype.invalidateLinks.call(this);
                var label = this.label;
                var slice = this.slice;
                var chart = this.chart;
                if (chart && slice) {
                    var sum = this.total;
                    var arc_1 = slice.arc;
                    var sliceStartAngle_1 = slice.startAngle;
                    this.children.each(function (child) {
                        if (child instanceof _elements_Bullet__WEBPACK_IMPORTED_MODULE_9__["Bullet"]) {
                            var locationX = child.locationX;
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](locationX)) {
                                locationX = 0.5;
                            }
                            var locationY = child.locationY;
                            if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](locationY)) {
                                locationY = 1;
                            }
                            var childAngle = sliceStartAngle_1 + arc_1 * locationX;
                            var childRadius = locationY * slice.radius;
                            child.x = childRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](childAngle);
                            child.y = childRadius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](childAngle);
                        }
                    });
                    var labelAngle = sliceStartAngle_1 + arc_1 * label.location;
                    var startAngle = sliceStartAngle_1 + (1 - sum / this.adjustedTotal) * arc_1 * 0.5; // if value of a node is > then sum of the links, add to center link
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNaN"](startAngle)) {
                        startAngle = sliceStartAngle_1;
                    }
                    var x = slice.radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](labelAngle);
                    var y = slice.radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](labelAngle);
                    var point = { x: x, y: y };
                    label.fixPoint(point, slice.radius);
                    label.moveTo(point);
                    this.nextAngle = startAngle;
                    if (this._outgoingSorted) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["each"](this._outgoingSorted, function (dataItem) {
                            var link = dataItem.link;
                            link.parent = _this.chart.linksContainer;
                            var value = dataItem.getWorkingValue("value");
                            if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](value)) {
                                if (chart.nonRibbon) {
                                    var percentWidth = link.percentWidth;
                                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](percentWidth)) {
                                        percentWidth = 5;
                                    }
                                    percentWidth = percentWidth / 100;
                                    link.startAngle = sliceStartAngle_1 + arc_1 / 2 - arc_1 / 2 * percentWidth;
                                    link.arc = arc_1 * percentWidth;
                                }
                                else {
                                    link.arc = value * chart.valueAngle;
                                    link.startAngle = _this.nextAngle;
                                    _this.nextAngle += link.arc;
                                }
                                if (!dataItem.toNode) {
                                    link.endAngle = link.startAngle;
                                }
                                link.radius = slice.pixelInnerRadius;
                            }
                            //link.validate();
                        });
                    }
                    if (this._incomingSorted) {
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["each"](this._incomingSorted, function (dataItem) {
                            var link = dataItem.link;
                            link.radius = slice.pixelInnerRadius;
                            if (chart.nonRibbon) {
                                var percentWidth = link.percentWidth;
                                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](percentWidth)) {
                                    percentWidth = 5;
                                }
                                percentWidth = percentWidth / 100;
                                link.endAngle = sliceStartAngle_1 + arc_1 / 2 - arc_1 / 2 * percentWidth;
                                link.arc = arc_1 * percentWidth;
                            }
                            else {
                                link.endAngle = _this.nextAngle;
                                var value = dataItem.getWorkingValue("value");
                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](value)) {
                                    link.arc = value * chart.valueAngle; // yes, this is needed
                                    _this.nextAngle += link.arc;
                                }
                            }
                            if (!dataItem.fromNode) {
                                link.startAngle = link.endAngle;
                            }
                            //link.validate();
                        });
                    }
                }
            };
            /**
             * @ignore
             * updates slice start angle so that when we drag a node it would face the center
             */
            ChordNode.prototype.updateRotation = function () {
                var slice = this.slice;
                var mAngle = this.trueStartAngle + slice.arc / 2;
                var radius = slice.radius;
                var tx = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["cos"](mAngle);
                var ty = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["sin"](mAngle);
                var angle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_7__["getAngle"]({ x: tx + this.pixelX, y: ty + this.pixelY });
                slice.startAngle = this.trueStartAngle + (angle - mAngle);
                this.dx = -this.pixelX;
                this.dy = -this.pixelY;
            };
            /**
             * Copies properties and labels from another [[ChordNode]].
             *
             * @param {ChordNode}  source  Source node
             */
            ChordNode.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.label.copyFrom(source.label);
                this.slice.copyFrom(source.slice);
            };
            return ChordNode;
        }(_FlowDiagramNode__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramNode"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ChordNode"] = ChordNode;
        //# sourceMappingURL=ChordNode.js.map
        /***/ 
    }),
    /* 948 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChordLink", function () { return ChordLink; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FlowDiagramLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(941);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_elements_QuadraticCurve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(949);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /**
         * ChordLink module
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class creates a link (waved color-filled line) between two nodes in a
         * Chord Diagram.
         *
         * @see {@link IChordLinkEvents} for a list of available events
         * @see {@link IChordLinkAdapters} for a list of available Adapters
         * @important
         */
        var ChordLink = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ChordLink, _super);
            /**
             * Constructor
             */
            function ChordLink() {
                var _this = _super.call(this) || this;
                _this.className = "ChordLink";
                _this.middleLine = _this.createChild(_core_elements_QuadraticCurve__WEBPACK_IMPORTED_MODULE_3__["QuadraticCurve"]);
                _this.middleLine.shouldClone = false;
                _this.middleLine.strokeOpacity = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * (Re)validates (redraws) the link.
             *
             * @ignore Exclude from docs
             */
            ChordLink.prototype.validate = function () {
                _super.prototype.validate.call(this);
                if (!this.isTemplate) {
                    var startAngle = this.startAngle;
                    var endAngle = this.endAngle;
                    var arc = this.arc;
                    var radius = this.radius;
                    var fromNode = this.dataItem.fromNode;
                    var toNode = this.dataItem.toNode;
                    var fromX = 0;
                    var fromY = 0;
                    if (fromNode) {
                        fromX = fromNode.pixelX + fromNode.dx;
                        fromY = fromNode.pixelY + fromNode.dy;
                    }
                    var toX = 0;
                    var toY = 0;
                    if (toNode) {
                        toX = toNode.pixelX + toNode.dx;
                        toY = toNode.pixelY + toNode.dy;
                    }
                    if (radius > 0) {
                        var x1 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](startAngle) + fromX;
                        var y1 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](startAngle) + fromY;
                        var x2 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](endAngle) + toX;
                        var y2 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](endAngle) + toY;
                        var x3 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](endAngle + arc) + toX;
                        var y3 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](endAngle + arc) + toY;
                        var x4 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](startAngle + arc) + fromX;
                        var y4 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](startAngle + arc) + fromY;
                        //let cpAngle = startAngle + arc + (endAngle - startAngle - arc) / 2;
                        //let arcWidth = $math.getDistance({x:x1, y:y1}, {x:x4, y:y4});
                        //let cpx = (arcWidth) * $math.cos(cpAngle);
                        //let cpy = (arcWidth) * $math.sin(cpAngle);
                        var cp = { x: 0, y: 0 };
                        var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"]({ x: x1, y: y1 });
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["arcTo"](startAngle, arc, radius);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["quadraticCurveTo"]({ x: x2, y: y2 }, cp);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["arcTo"](endAngle, arc, radius);
                        path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["quadraticCurveTo"]({ x: x1, y: y1 }, cp);
                        if (arc > 0) {
                            this.link.path = path;
                        }
                        else {
                            this.link.path = "";
                        }
                        if (this.maskBullets) {
                            this.bulletsMask.path = path;
                            this.bulletsContainer.mask = this.bulletsMask;
                        }
                        this.positionBullets();
                        var mAngle1 = startAngle + arc / 2;
                        var mAngle2 = endAngle + arc / 2;
                        var mAngleM = mAngle1 + (mAngle2 - mAngle1) / 2;
                        var middleLine = this.middleLine;
                        middleLine.x1 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](mAngle1) + fromX;
                        middleLine.y1 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](mAngle1) + fromY;
                        middleLine.x2 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["cos"](mAngle2) + toX;
                        middleLine.y2 = radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["sin"](mAngle2) + toY;
                        middleLine.cpx = 0;
                        middleLine.cpy = 0;
                        middleLine.stroke = this.fill;
                    }
                }
            };
            Object.defineProperty(ChordLink.prototype, "radius", {
                /**
                 * @return {number} End Y
                 */
                get: function () {
                    return this.getPropertyValue("radius");
                },
                /**
                 * [radius description]
                 *
                 * @todo Description
                 * @param {number} value End Y
                 */
                set: function (value) {
                    this.setPropertyValue("radius", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ChordLink.prototype, "arc", {
                /**
                 * @return {number} [description]
                 */
                get: function () {
                    return this.getPropertyValue("arc");
                },
                /**
                 * [arc description]
                 *
                 * @todo Description
                 * @param {number} value [description]
                 */
                set: function (value) {
                    this.setPropertyValue("arc", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return ChordLink;
        }(_FlowDiagramLink__WEBPACK_IMPORTED_MODULE_1__["FlowDiagramLink"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["ChordLink"] = ChordLink;
        //# sourceMappingURL=ChordLink.js.map
        /***/ 
    }),
    /* 949 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuadraticCurve", function () { return QuadraticCurve; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Line__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(850);
        /* harmony import */ var _utils_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(774);
        /* harmony import */ var _rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /* harmony import */ var _utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /**
         * Functionality for drawing quadratic curves.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws a waved line.
         *
         * @see {@link IQuadraticCurveEvents} for a list of available events
         * @see {@link IQuadraticCurveAdapters} for a list of available Adapters
         */
        var QuadraticCurve = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](QuadraticCurve, _super);
            /**
             * Constructor
             */
            function QuadraticCurve() {
                var _this = _super.call(this) || this;
                _this.className = "QuadraticCurve";
                _this.element = _this.paper.add("path");
                _this.pixelPerfect = false;
                _this.fill = Object(_utils_Color__WEBPACK_IMPORTED_MODULE_2__["color"])();
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the waved line.
             *
             * @ignore Exclude from docs
             */
            QuadraticCurve.prototype.draw = function () {
                //super.draw();
                if (_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](this.x1 + this.x2 + this.y1 + this.y2 + this.cpx + this.cpy)) {
                    var p1 = { x: this.x1, y: this.y1 };
                    var p2 = { x: this.x2, y: this.y2 };
                    var cp = { x: this.cpx, y: this.cpy };
                    var d = _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](p1) + _rendering_Path__WEBPACK_IMPORTED_MODULE_3__["quadraticCurveTo"](p2, cp);
                    this.path = d;
                }
            };
            Object.defineProperty(QuadraticCurve.prototype, "cpx", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    return this.getPropertyValue("cpx");
                },
                /**
                 * X coordinate of control point.
                 *
                 * @param {number} value X
                 */
                set: function (value) {
                    this.setPropertyValue("cpx", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(QuadraticCurve.prototype, "cpy", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    return this.getPropertyValue("cpy");
                },
                /**
                 * Y coordinate of control point.
                 *
                 * @param {number} value Y
                 */
                set: function (value) {
                    this.setPropertyValue("cpy", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Converts relative position along the line (0-1) into pixel coordinates.
             *
             * @param  {number}             position  Position (0-1)
             * @return {IOrientationPoint}            Coordinates
             */
            QuadraticCurve.prototype.positionToPoint = function (position) {
                var p1 = { x: this.x1, y: this.y1 };
                var cp = { x: this.cpx, y: this.cpy };
                var p2 = { x: this.x2, y: this.y2 };
                var point1 = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getPointOnQuadraticCurve"](p1, p2, cp, position);
                var point2 = _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getPointOnQuadraticCurve"](p1, p2, cp, position + 0.001);
                return { x: point1.x, y: point1.y, angle: _utils_Math__WEBPACK_IMPORTED_MODULE_4__["getAngle"](point1, point2) };
            };
            return QuadraticCurve;
        }(_Line__WEBPACK_IMPORTED_MODULE_1__["Line"]));
        //# sourceMappingURL=QuadraticCurve.js.map
        /***/ 
    }),
    /* 950 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapDataItem", function () { return TreeMapDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMap", function () { return TreeMap; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(909);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(760);
        /* harmony import */ var _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(918);
        /* harmony import */ var _series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(951);
        /* harmony import */ var _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(903);
        /* harmony import */ var _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(803);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(755);
        /**
         * TreeMap chart module.
         *
         * Parts of the functionality used in this module are taken from D3.js library
         * (https://d3js.org/)
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[TreeMap]].
         *
         * @see {@link DataItem}
         */
        var TreeMapDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TreeMapDataItem, _super);
            /**
             * Constructor
             */
            function TreeMapDataItem() {
                var _this = _super.call(this) || this;
                /**
                 * Required for squarify functionality.
                 *
                 * @ignore Exclude from docs
                 * @type {TreeMapDataItem[]}
                 */
                _this.rows = [];
                _this.className = "TreeMapDataItem";
                _this.values.value = {};
                _this.values.x0 = {};
                _this.values.y0 = {};
                _this.values.x1 = {};
                _this.values.y1 = {};
                _this.hasChildren.children = true;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(TreeMapDataItem.prototype, "value", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    var value = this.values["value"].value;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](value)) {
                        value = 0;
                        if (this.children) {
                            _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.children.iterator(), function (child) {
                                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isNumber"](child.value)) {
                                    value += child.value;
                                }
                            });
                        }
                    }
                    return value;
                },
                /**
                 * Numeric value of the item.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("value", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "percent", {
                get: function () {
                    if (this.parent) {
                        return this.value / this.parent.value * 100;
                    }
                    return 100;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "x0", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    return this.values.x0.value;
                },
                /**
                 * Item's X position.
                 *
                 * @ignore Exclude from docs
                 * @todo Description (review)
                 * @param {number}  value  X
                 */
                set: function (value) {
                    this.setValue("x0", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "x1", {
                /**
                 * @return {number} X
                 */
                get: function () {
                    return this.values.x1.value;
                },
                /**
                 * Item's X position.
                 *
                 * @ignore Exclude from docs
                 * @todo Description (review)
                 * @param {number}  value  X
                 */
                set: function (value) {
                    this.setValue("x1", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "y0", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    return this.values.y0.value;
                },
                /**
                 * Item's Y position.
                 *
                 * @ignore Exclude from docs
                 * @todo Description (review)
                 * @param {number}  value  Y
                 */
                set: function (value) {
                    this.setValue("y0", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "y1", {
                /**
                 * @return {number} Y
                 */
                get: function () {
                    return this.values.y1.value;
                },
                /**
                 * Item's Y position.
                 *
                 * @ignore Exclude from docs
                 * @todo Description (review)
                 * @param {number}  value  Y
                 */
                set: function (value) {
                    this.setValue("y1", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "name", {
                /**
                 * @return {string} Name
                 */
                get: function () {
                    return this.properties.name;
                },
                /**
                 * Item's name.
                 *
                 * @param {string}  name  Name
                 */
                set: function (name) {
                    this.setProperty("name", name);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "children", {
                /**
                 * @return {OrderedListTemplate<TreeMapDataItem>} Item's children
                 */
                get: function () {
                    return this.properties.children;
                },
                /**
                 * A list of item's sub-children.
                 *
                 * Having children means that the TreeMap chat will automatically be
                 * "drillable". Clicking on an item with children will zoom to the item, then
                 * display its children.
                 *
                 * Treemap can have any level of nesting.
                 *
                 * @param {OrderedListTemplate<TreeMapDataItem>}  children  Item's children
                 */
                set: function (children) {
                    this.setProperty("children", children);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "level", {
                /**
                 * Depth level in the treemap hierarchy.
                 *
                 * The top-level item will have level set at 0. Its children will have
                 * level 1, and so on.
                 *
                 * @readonly
                 * @return {number} Level
                 */
                get: function () {
                    if (!this.parent) {
                        return 0;
                    }
                    else {
                        return this.parent.level + 1;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "color", {
                /**
                 * @return {Color} Color
                 */
                get: function () {
                    var color = this.properties.color;
                    if (color == undefined) {
                        if (this.parent) {
                            color = this.parent.color;
                        }
                    }
                    if (color == undefined) {
                        if (this.component) {
                            color = this.component.colors.getIndex(this.component.colors.step * this.index);
                        }
                    }
                    return color;
                },
                /**
                 * Item's color.
                 *
                 * If not set, will use parent's color, or, if that is not set either,
                 * automatically assigned color from chart's color set. (`chart.colors`)
                 *
                 * @param {Color}  value  Color
                 */
                set: function (value) {
                    this.setProperty("color", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapDataItem.prototype, "series", {
                get: function () {
                    return this._series;
                },
                /**
                 * series of data item
                 * @todo: proper descrition
                 */
                set: function (series) {
                    if (this._series) {
                        this.component.series.removeValue(this._series);
                        this._series.dispose();
                    }
                    this._series = series;
                    this._disposers.push(series);
                },
                enumerable: true,
                configurable: true
            });
            return TreeMapDataItem;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a TreeMap chart.
         *
         * @see {@link ITreeMapEvents} for a list of available Events
         * @see {@link ITreeMapAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/treemap/} for documentation
         */
        var TreeMap = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TreeMap, _super);
            /**
             * Constructor
             */
            function TreeMap() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * An algorithm used to divide area into squares based on their value.
                 *
                 * Available options: squarify (default), binaryTree, slice, dice, sliceDice.
                 *
                 * ```TypeScript
                 * chart.layoutAlgorithm = chart.sliceDice;
                 * ```
                 * ```JavaScript
                 * chart.layoutAlgorithm = chart.sliceDice;
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "layoutAlgorithm": "sliceDice",
                 *   // ...
                 * }
                 * ```
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/chart-types/treemap/#Area_division_methods} For more info and examples.
                 * @default squarify
                 * @type {function}
                 */
                _this.layoutAlgorithm = _this.squarify;
                /**
                 * Is the chart zoomable?
                 *
                 * If the chart is `zoomable`, and items have sub-items, the chart will
                 * drill-down to sub-items when click on their parent item.
                 *
                 * @default true
                 * @type {boolean}
                 */
                _this.zoomable = true;
                _this.className = "TreeMap";
                _this.maxLevels = 2;
                _this.currentLevel = 0;
                _this.colors = new _core_utils_ColorSet__WEBPACK_IMPORTED_MODULE_6__["ColorSet"]();
                _this.sorting = "descending";
                // create two value axes for the chart
                var xAxis = _this.xAxes.push(new _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_4__["ValueAxis"]());
                xAxis.title.disabled = true;
                xAxis.strictMinMax = true;
                var xRenderer = xAxis.renderer;
                xRenderer.inside = true;
                xRenderer.labels.template.disabled = true;
                xRenderer.ticks.template.disabled = true;
                xRenderer.grid.template.disabled = true;
                xRenderer.axisFills.template.disabled = true;
                xRenderer.minGridDistance = 100;
                xRenderer.line.disabled = true;
                xRenderer.baseGrid.disabled = true;
                //xRenderer.inversed = true;
                var yAxis = _this.yAxes.push(new _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_4__["ValueAxis"]());
                yAxis.title.disabled = true;
                yAxis.strictMinMax = true;
                var yRenderer = yAxis.renderer;
                yRenderer.inside = true;
                yRenderer.labels.template.disabled = true;
                yRenderer.ticks.template.disabled = true;
                yRenderer.grid.template.disabled = true;
                yRenderer.axisFills.template.disabled = true;
                yRenderer.minGridDistance = 100;
                yRenderer.line.disabled = true;
                yRenderer.baseGrid.disabled = true;
                yRenderer.inversed = true;
                // shortcuts
                _this.xAxis = xAxis;
                _this.yAxis = yAxis;
                var template = new _series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_5__["TreeMapSeries"]();
                _this.seriesTemplates = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["DictionaryTemplate"](template);
                _this._disposers.push(new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_3__["DictionaryDisposer"](_this.seriesTemplates));
                _this._disposers.push(template);
                _this.zoomOutButton.events.on("hit", function () {
                    _this.zoomToChartDataItem(_this._homeDataItem);
                }, undefined, false);
                _this.seriesTemplates.events.on("insertKey", function (event) {
                    event.newValue.isTemplate = true;
                }, undefined, false);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(TreeMap.prototype, "navigationBar", {
                /**
                 * Returns navigationBar if it is added to a chart
                 */
                get: function () {
                    return this._navigationBar;
                },
                /**
                 * A navigation bar used to show "breadcrumb" control, indicating current
                 * drill-down path.
                 *
                 * @type {NavigationBar}
                 */
                set: function (navigationBar) {
                    var _this = this;
                    if (this._navigationBar != navigationBar) {
                        this._navigationBar = navigationBar;
                        navigationBar.parent = this;
                        navigationBar.toBack();
                        navigationBar.links.template.events.on("hit", function (event) {
                            var dataItem = event.target.dataItem.dataContext;
                            _this.zoomToChartDataItem(dataItem);
                            _this.createTreeSeries(dataItem);
                        }, undefined, true);
                        this._disposers.push(navigationBar);
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * (Re)validates chart's data.
             *
             * @ignore Exclude from docs
             */
            TreeMap.prototype.validateData = function () {
                this.series.clear();
                _super.prototype.validateData.call(this);
                if (this._homeDataItem) {
                    this._homeDataItem.dispose();
                }
                var homeDataItem = this.dataItems.template.clone(); // cant' use createDataItem here!
                this._homeDataItem = homeDataItem;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.dataItems.iterator(), function (dataItem) {
                    dataItem.parent = homeDataItem;
                });
                homeDataItem.children = this.dataItems;
                homeDataItem.x0 = 0;
                homeDataItem.y0 = 0;
                homeDataItem.name = this._homeText;
                var maxX = 1000;
                var maxY = (maxX * this.pixelHeight / this.pixelWidth) || 1000;
                homeDataItem.x1 = maxX;
                homeDataItem.y1 = maxY;
                this.xAxis.min = 0;
                this.xAxis.max = maxX;
                this.yAxis.min = 0;
                this.yAxis.max = maxY;
                this.layoutItems(homeDataItem);
                this.createTreeSeries(homeDataItem);
            };
            /**
             * Layouts and sizes all items according to their value and
             * `layoutAlgorithm`.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Parent data item
             */
            TreeMap.prototype.layoutItems = function (parent, sorting) {
                if (parent) {
                    var children = parent.children;
                    if (!sorting) {
                        sorting = this.sorting;
                    }
                    if (sorting == "ascending") {
                        children.values.sort(function (a, b) {
                            return a.value - b.value;
                        });
                    }
                    if (sorting == "descending") {
                        children.values.sort(function (a, b) {
                            return b.value - a.value;
                        });
                    }
                    this.layoutAlgorithm(parent);
                    for (var i = 0, len = children.length; i < len; i++) {
                        var node = children.getIndex(i);
                        if (node.children) {
                            this.layoutItems(node);
                        }
                    }
                }
            };
            /**
             * Creates and returns a new treemap series.
             *
             * @todo Description
             * @param {TreeMapDataItem}  dataItem  Data item to create series out of
             */
            TreeMap.prototype.createTreeSeries = function (dataItem) {
                var _this = this;
                this._tempSeries = [];
                var navigationData = [dataItem];
                // create parent series and navigation data
                var parentDataItem = dataItem.parent;
                while (parentDataItem != undefined) {
                    this.initSeries(parentDataItem);
                    navigationData.push(parentDataItem);
                    parentDataItem = parentDataItem.parent;
                }
                navigationData.reverse();
                if (this.navigationBar) {
                    this.navigationBar.data = navigationData;
                }
                // create series and children series
                this.createTreeSeriesReal(dataItem);
                // add those which are not in the list
                _core_utils_Array__WEBPACK_IMPORTED_MODULE_10__["each"](this._tempSeries, function (series) {
                    if (_this.series.indexOf(series) == -1) {
                        _this.series.push(series);
                    }
                    series.zIndex = series.level;
                });
            };
            /**
             * [createTreeSeriesReal description]
             *
             * @todo Description
             * @param {TreeMapDataItem} dataItem [description]
             */
            TreeMap.prototype.createTreeSeriesReal = function (dataItem) {
                if (dataItem.children) {
                    var level = dataItem.level;
                    if (level < this.currentLevel + this.maxLevels) {
                        this.initSeries(dataItem);
                        for (var i = 0; i < dataItem.children.length; i++) {
                            var child = dataItem.children.getIndex(i);
                            if (child.children) {
                                this.createTreeSeriesReal(child);
                            }
                        }
                    }
                }
            };
            /**
             * @ignore
             * Overriding, as tree map series are created on the fly all the time
             */
            TreeMap.prototype.seriesAppeared = function () {
                return true;
            };
            /**
             * Initializes the treemap series.
             *
             * @todo Description
             * @param {TreeMapDataItem}  dataItem  Chart data item
             */
            TreeMap.prototype.initSeries = function (dataItem) {
                var _this = this;
                if (!dataItem.series) {
                    var series = void 0;
                    var template = this.seriesTemplates.getKey(dataItem.level.toString());
                    if (template) {
                        series = template.clone();
                    }
                    else {
                        series = this.series.create();
                    }
                    series.name = dataItem.name;
                    series.parentDataItem = dataItem;
                    dataItem.series = series;
                    var level = dataItem.level;
                    series.level = level;
                    var dataContext = dataItem.dataContext;
                    if (dataContext) {
                        series.config = dataContext.config;
                    }
                    this.dataUsers.removeValue(series); // series do not use data directly, that's why we remove it
                    series.data = dataItem.children.values;
                    series.fill = dataItem.color;
                    series.columnsContainer.hide(0);
                    series.bulletsContainer.hide(0);
                    series.columns.template.adapter.add("fill", function (fill, target) {
                        var dataItem = target.dataItem;
                        if (dataItem) {
                            var treeMapDataItem = dataItem.treeMapDataItem;
                            if (treeMapDataItem) {
                                target.fill = treeMapDataItem.color;
                                target.adapter.remove("fill"); //@todo: make it possible adapters applied once?
                                return treeMapDataItem.color;
                            }
                        }
                    });
                    if (this.zoomable && (dataItem.level > this.currentLevel || (dataItem.children && dataItem.children.length > 0))) {
                        series.columns.template.cursorOverStyle = _core_interaction_Mouse__WEBPACK_IMPORTED_MODULE_7__["MouseCursorStyle"].pointer;
                        if (this.zoomable) {
                            series.columns.template.events.on("hit", function (event) {
                                var seriesDataItem = event.target.dataItem;
                                if (dataItem.level > _this.currentLevel) {
                                    _this.zoomToChartDataItem(seriesDataItem.treeMapDataItem.parent);
                                }
                                else {
                                    _this.zoomToSeriesDataItem(seriesDataItem);
                                }
                            }, this, undefined);
                        }
                    }
                }
                this._tempSeries.push(dataItem.series);
            };
            /**
             * Toggles bullets so that labels that belong to current drill level are
             * shown.
             *
             * @param {number}  duration  Animation duration (ms)
             */
            TreeMap.prototype.toggleBullets = function (duration) {
                var _this = this;
                // hide all series which are not in tempSeries
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    if (_this._tempSeries.indexOf(series) == -1) {
                        //series.hideReal(duration);
                        series.columnsContainer.hide();
                        series.bulletsContainer.hide(duration);
                    }
                    else {
                        //series.showReal(duration);
                        series.columnsContainer.show();
                        series.bulletsContainer.show(duration);
                        if (series.level < _this.currentLevel) {
                            series.bulletsContainer.hide(duration);
                        }
                    }
                });
            };
            /**
             * Zooms to particular item in series.
             *
             * @param {TreeMapSeriesDataItem}  dataItem  Data item
             */
            TreeMap.prototype.zoomToSeriesDataItem = function (dataItem) {
                this.zoomToChartDataItem(dataItem.treeMapDataItem);
            };
            /**
             * Zooms to particular item.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  dataItem  Data item
             */
            TreeMap.prototype.zoomToChartDataItem = function (dataItem) {
                var _this = this;
                if (dataItem && dataItem.children) {
                    this.xAxis.zoomToValues(dataItem.x0, dataItem.x1);
                    this.yAxis.zoomToValues(dataItem.y0, dataItem.y1);
                    this.currentLevel = dataItem.level;
                    this.currentlyZoomed = dataItem;
                    this.createTreeSeries(dataItem);
                    var rangeChangeAnimation = this.xAxis.rangeChangeAnimation || this.yAxis.rangeChangeAnimation;
                    if (rangeChangeAnimation && !rangeChangeAnimation.isFinished()) {
                        this._dataDisposers.push(rangeChangeAnimation);
                        rangeChangeAnimation.events.once("animationended", function () {
                            _this.toggleBullets();
                        });
                    }
                    else {
                        this.toggleBullets();
                    }
                }
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            TreeMap.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                // Add a default screen reader title for accessibility
                // This will be overridden in screen reader if there are any `titles` set
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("TreeMap chart");
                }
                //this.homeText = this.language.translate("Home");
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {XYSeriesDataItem} Data Item
             */
            TreeMap.prototype.createDataItem = function () {
                return new TreeMapDataItem();
            };
            Object.defineProperty(TreeMap.prototype, "maxLevels", {
                /**
                 * @return {number} Maximum drill-down level
                 */
                get: function () {
                    return this.getPropertyValue("maxLevels");
                },
                /**
                 * Maximum drill-down levels the chart will allow going to.
                 *
                 * If set, the chart will not drill-down further, even if there are sub-items
                 * available.
                 *
                 * Set to `1` to disable drill down functionality.
                 *
                 * @param {number}  value  Maximum drill-down level
                 */
                set: function (value) {
                    this.setPropertyValue("maxLevels", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMap.prototype, "currentLevel", {
                /**
                 * @return {number} Current level
                 */
                get: function () {
                    return this.getPropertyValue("currentLevel");
                },
                /**
                 * Current drill-down level the chart is at.
                 *
                 * @param {number}  value  Current level
                 */
                set: function (value) {
                    this.setPropertyValue("currentLevel", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMap.prototype, "sorting", {
                get: function () {
                    return this.getPropertyValue("sorting");
                },
                /**
                 * Sorting direction of treemap items.
                 *
                 * Available options: "none", "ascending", and "descending" (default).
                 *
                 * @default "descending"
                 * @param {"none" | "ascending" | "descending"} value [description]
                 */
                set: function (value) {
                    this.setPropertyValue("sorting", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and returns a new series of the suitable type.
             *
             * @return {this} new series
             */
            TreeMap.prototype.createSeries = function () {
                return new _series_TreeMapSeries__WEBPACK_IMPORTED_MODULE_5__["TreeMapSeries"]();
            };
            Object.defineProperty(TreeMap.prototype, "homeText", {
                /**
                 * @return {string} Home text
                 */
                get: function () {
                    return this._homeText;
                },
                /**
                 * A text displayed on the "home" button which is used to go back to level 0
                 * after drill into sub-items.
                 *
                 * @param {string}  value  Home text
                 */
                set: function (value) {
                    this._homeText = value;
                    if (this._homeDataItem) {
                        this._homeDataItem.name = this._homeText;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            TreeMap.prototype.processConfig = function (config) {
                if (config) {
                    // Instantiate layout algorithm
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config["layoutAlgorithm"]) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["isString"](config["layoutAlgorithm"])) {
                        switch (config["layoutAlgorithm"]) {
                            case "squarify":
                                config["layoutAlgorithm"] = this.squarify;
                                break;
                            case "binaryTree":
                                config["layoutAlgorithm"] = this.binaryTree;
                                break;
                            case "slice":
                                config["layoutAlgorithm"] = this.slice;
                                break;
                            case "dice":
                                config["layoutAlgorithm"] = this.dice;
                                break;
                            case "sliceDice":
                                config["layoutAlgorithm"] = this.sliceDice;
                                break;
                            default:
                                delete config["layoutAlgorithm"];
                                break;
                        }
                    }
                    // Set type for navigation bar
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.navigationBar) && !_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](config.navigationBar.type)) {
                        config.navigationBar.type = "NavigationBar";
                    }
                    _super.prototype.processConfig.call(this, config);
                }
            };
            /**
             * Measures the size of container and informs its children of how much size
             * they can occupy, by setting their relative `maxWidth` and `maxHeight`
             * properties.
             *
             * @ignore Exclude from docs
             */
            TreeMap.prototype.validateLayout = function () {
                _super.prototype.validateLayout.call(this);
                this.layoutItems(this.currentlyZoomed);
            };
            /**
             * Validates (processes) data items.
             *
             * @ignore Exclude from docs
             */
            TreeMap.prototype.validateDataItems = function () {
                _super.prototype.validateDataItems.call(this);
                this.layoutItems(this._homeDataItem);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    series.validateRawData();
                });
                this.zoomToChartDataItem(this._homeDataItem);
            };
            /**
             * ==========================================================================
             * TREEMAP LAYOUT FUNCTIONS
             * ==========================================================================
             * @hidden
             */
            /**
             * The functions below are from D3.js library (https://d3js.org/)
             *
             * --------------------------------------------------------------------------
             * Copyright 2017 Mike Bostock
             *
             * 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.
             * --------------------------------------------------------------------------
             * @hidden
             */
            /**
             * Treemap layout algorithm: binaryTree.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Data item
             */
            TreeMap.prototype.binaryTree = function (parent) {
                var nodes = parent.children, i, n = nodes.length, sum, sums = new Array(n + 1);
                for (sums[0] = sum = i = 0; i < n; ++i) {
                    sums[i + 1] = sum += nodes.getIndex(i).value;
                }
                partition(0, n, parent.value, parent.x0, parent.y0, parent.x1, parent.y1);
                function partition(i, j, value, x0, y0, x1, y1) {
                    if (i >= j - 1) {
                        var node = nodes.getIndex(i);
                        node.x0 = x0, node.y0 = y0;
                        node.x1 = x1, node.y1 = y1;
                        return;
                    }
                    var valueOffset = sums[i], valueTarget = (value / 2) + valueOffset, k = i + 1, hi = j - 1;
                    while (k < hi) {
                        var mid = k + hi >>> 1;
                        if (sums[mid] < valueTarget)
                            k = mid + 1;
                        else
                            hi = mid;
                    }
                    if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k)
                        --k;
                    var valueLeft = sums[k] - valueOffset, valueRight = value - valueLeft;
                    if ((x1 - x0) > (y1 - y0)) {
                        var xk = (x0 * valueRight + x1 * valueLeft) / value;
                        partition(i, k, valueLeft, x0, y0, xk, y1);
                        partition(k, j, valueRight, xk, y0, x1, y1);
                    }
                    else {
                        var yk = (y0 * valueRight + y1 * valueLeft) / value;
                        partition(i, k, valueLeft, x0, y0, x1, yk);
                        partition(k, j, valueRight, x0, yk, x1, y1);
                    }
                }
            };
            /**
             * Treemap layout algorithm: slice.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Data item
             */
            TreeMap.prototype.slice = function (parent) {
                var x0 = parent.x0;
                var x1 = parent.x1;
                var y0 = parent.y0;
                var y1 = parent.y1;
                var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (y1 - y0) / parent.value;
                while (++i < n) {
                    node = nodes.getIndex(i), node.x0 = x0, node.x1 = x1;
                    node.y0 = y0, node.y1 = y0 += node.value * k;
                }
            };
            /**
             * Treemap layout algorithm: dice.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Data item
             */
            TreeMap.prototype.dice = function (parent) {
                var x0 = parent.x0;
                var x1 = parent.x1;
                var y0 = parent.y0;
                var y1 = parent.y1;
                var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value;
                while (++i < n) {
                    node = nodes.getIndex(i), node.y0 = y0, node.y1 = y1;
                    node.x0 = x0, node.x1 = x0 += node.value * k;
                }
            };
            /**
             * Treemap layout algorithm: slideDice.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Data item
             */
            TreeMap.prototype.sliceDice = function (parent) {
                parent.level & 1 ? this.slice(parent) : this.dice(parent);
            };
            /**
             * Treemap layout algorithm: squarify.
             *
             * @ignore Exclude from docs
             * @param {TreeMapDataItem}  parent  Data item
             */
            TreeMap.prototype.squarify = function (parent) {
                var ratio = (1 + Math.sqrt(5)) / 2;
                var x0 = parent.x0;
                var x1 = parent.x1;
                var y0 = parent.y0;
                var y1 = parent.y1;
                var nodes = parent.children;
                var nodeValue;
                var i0 = 0;
                var i1 = 0;
                var n = nodes.length;
                var dx;
                var dy;
                var value = parent.value;
                var sumValue;
                var minValue;
                var maxValue;
                var newRatio;
                var minRatio;
                var alpha;
                var beta;
                while (i0 < n) {
                    dx = x1 - x0, dy = y1 - y0;
                    // Find the next non-empty node.
                    do
                        sumValue = nodes.getIndex(i1++).value;
                    while (!sumValue && i1 < n);
                    minValue = maxValue = sumValue;
                    alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
                    beta = sumValue * sumValue * alpha;
                    minRatio = Math.max(maxValue / beta, beta / minValue);
                    // Keep adding nodes while the aspect ratio maintains or improves.
                    for (; i1 < n; ++i1) {
                        sumValue += nodeValue = nodes.getIndex(i1).value;
                        if (nodeValue < minValue) {
                            minValue = nodeValue;
                        }
                        if (nodeValue > maxValue) {
                            maxValue = nodeValue;
                        }
                        beta = sumValue * sumValue * alpha;
                        newRatio = Math.max(maxValue / beta, beta / minValue);
                        if (newRatio > minRatio) {
                            sumValue -= nodeValue;
                            break;
                        }
                        minRatio = newRatio;
                    }
                    // Position and record the row orientation.
                    var row = this.dataItems.template.clone();
                    row.value = sumValue;
                    row.dice = dx < dy;
                    row.children = nodes.slice(i0, i1);
                    row.x0 = x0;
                    row.y0 = y0;
                    row.x1 = x1;
                    row.y1 = y1;
                    if (row.dice) {
                        row.y1 = value ? y0 += dy * sumValue / value : y1;
                        this.dice(row);
                    }
                    else {
                        row.x1 = value ? x0 += dx * sumValue / value : x1, y1;
                        this.slice(row);
                    }
                    value -= sumValue, i0 = i1;
                }
            };
            /**
             * [handleDataItemValueChange description]
             *
             * @ignore Exclude from docs
             * @todo Description
             */
            TreeMap.prototype.handleDataItemValueChange = function (dataItem) {
                this.invalidateDataItems();
            };
            /**
             * Setups the legend to use the chart's data.
             */
            TreeMap.prototype.feedLegend = function () {
                var legend = this.legend;
                if (legend) {
                    var legendData_1 = [];
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                        if (series.level == 1) {
                            if (!series.hiddenInLegend) {
                                legendData_1.push(series);
                            }
                        }
                    });
                    legend.dataFields.name = "name";
                    legend.data = legendData_1;
                }
            };
            /**
             * @ignore
             */
            TreeMap.prototype.disposeData = function () {
                _super.prototype.disposeData.call(this);
                this._homeDataItem = undefined;
                this.series.clear();
                if (this.navigationBar) {
                    this.navigationBar.disposeData();
                }
                this.xAxis.disposeData();
                this.yAxis.disposeData();
            };
            return TreeMap;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChart"]));
        /**
         * Register class, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["TreeMap"] = TreeMap;
        //# sourceMappingURL=TreeMap.js.map
        /***/ 
    }),
    /* 951 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapSeriesDataItem", function () { return TreeMapSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapSeries", function () { return TreeMapSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(862);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(761);
        /**
         * TreeMap series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[TreeMapSeries]].
         *
         * @see {@link DataItem}
         */
        var TreeMapSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TreeMapSeriesDataItem, _super);
            /**
             * Constructor
             */
            function TreeMapSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "TreeMapSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(TreeMapSeriesDataItem.prototype, "parentName", {
                /**
                 * Data for the this particular item.
                 *
                 * @param {Object}  value  Item's data
                 */
                //public set dataContext(value: Object) {
                //	this._dataContext = value;
                //}
                /**
                 * @return {Object} Item's data
                 */
                /*
               public get dataContext(): Object {
                   // It's because data of tree series is TreeMapDataItems.
                   if (this._dataContext) {
                       return (<any>this._dataContext).dataContext;
                   }
               }*/
                /**
                 * The name of the item's parent item.
                 *
                 * @return {string} Parent name
                 */
                get: function () {
                    var treeMapDataItem = this.treeMapDataItem;
                    if (treeMapDataItem && treeMapDataItem.parent) {
                        return treeMapDataItem.parent.name;
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapSeriesDataItem.prototype, "value", {
                /**
                 * Item's numeric value.
                 *
                 * @readonly
                 * @return {number} Value
                 */
                get: function () {
                    return this.treeMapDataItem.value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(TreeMapSeriesDataItem.prototype, "treeMapDataItem", {
                /**
                 * A corresponding data item from the tree map.
                 *
                 * @readonly
                 * @return {TreeMapDataItem} Data item
                 */
                get: function () {
                    return this._dataContext;
                },
                enumerable: true,
                configurable: true
            });
            return TreeMapSeriesDataItem;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines Series for a TreeMap chart.
         *
         * @see {@link ITreeMapSeriesEvents} for a list of available Events
         * @see {@link ITreeMapSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var TreeMapSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TreeMapSeries, _super);
            /**
             * Constructor
             */
            function TreeMapSeries() {
                var _this = _super.call(this) || this;
                _this.className = "TreeMapSeries";
                _this.applyTheme();
                _this.fillOpacity = 1;
                _this.strokeOpacity = 1;
                _this.minBulletDistance = 0;
                _this.columns.template.tooltipText = "{parentName} {name}: {value}"; //@todo add format number?
                _this.columns.template.configField = "config";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_4__["InterfaceColorSet"]();
                _this.stroke = interfaceColors.getFor("background");
                _this.dataFields.openValueX = "x0";
                _this.dataFields.valueX = "x1";
                _this.dataFields.openValueY = "y0";
                _this.dataFields.valueY = "y1";
                _this.sequencedInterpolation = false;
                // otherwise nodes don't stack nicely to each other
                _this.columns.template.pixelPerfect = false;
                return _this;
            }
            /**
             * Processes data item.
             *
             * @param {TreeMapSeriesDataItem}  dataItem     Data item
             * @param {Object}                 dataContext  Raw data
             * @param {number}                 index        Index of the data item
             */
            TreeMapSeries.prototype.processDataItem = function (dataItem, dataContext) {
                dataContext.seriesDataItem = dataItem; // save a reference here. dataContext is TreeMapDataItem and we need to know dataItem sometimes
                _super.prototype.processDataItem.call(this, dataItem, dataContext);
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {TreeMapSeriesDataItem} Data Item
             */
            TreeMapSeries.prototype.createDataItem = function () {
                return new TreeMapSeriesDataItem();
            };
            /**
             * Shows series.
             *
             * @param  {number}     duration  Duration of fade in (ms)
             * @return {Animation}            Animation
             */
            TreeMapSeries.prototype.show = function (duration) {
                var interpolationDuration = this.defaultState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                var animation = _super.prototype.showReal.call(this, interpolationDuration);
                var chart = this.chart;
                if (chart) {
                    if (animation && !animation.isFinished()) {
                        animation.events.on("animationended", function () {
                            chart.invalidateLayout();
                        });
                    }
                    else {
                        chart.invalidateLayout();
                    }
                    chart.invalidateLayout();
                }
                return animation;
            };
            /**
             * Hides series.
             *
             * @param  {number}     duration  Duration of fade out (ms)
             * @return {Animation}            Animation
             */
            TreeMapSeries.prototype.hide = function (duration) {
                var interpolationDuration = this.defaultState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                var animation = _super.prototype.hideReal.call(this, interpolationDuration);
                var chart = this.chart;
                if (chart) {
                    if (animation && !animation.isFinished()) {
                        animation.events.on("animationended", function () {
                            chart.invalidateLayout();
                        });
                    }
                    else {
                        chart.invalidateLayout();
                    }
                    chart.invalidateLayout();
                }
                return animation;
            };
            /**
             * Process values.
             *
             * @ignore Exclude from docs
             */
            TreeMapSeries.prototype.processValues = function () {
                // Just overriding so that inherited method does not kick in.
            };
            /**
             * @ignore
             */
            TreeMapSeries.prototype.dataChangeUpdate = function () {
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            TreeMapSeries.prototype.processConfig = function (config) {
                if (config) {
                    // Add empty data fields if the they are not set, so that XYSeries
                    // dataField check does not result in error.
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](config.dataFields) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["isObject"](config.dataFields)) {
                        config.dataFields = {};
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            TreeMapSeries.prototype.createLegendMarker = function (marker) {
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.removeChildren();
                var column = marker.createChild(_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_6__["RoundedRectangle"]);
                column.shouldClone = false;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](this, column, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                //column.copyFrom(<any>this.columns.template);
                column.padding(0, 0, 0, 0); // if columns will have padding (which is often), legend marker will be very narrow
                column.width = w;
                column.height = h;
            };
            return TreeMapSeries;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["TreeMapSeries"] = TreeMapSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["TreeMapSeriesDataItem"] = TreeMapSeriesDataItem;
        //# sourceMappingURL=TreeMapSeries.js.map
        /***/ 
    }),
    /* 952 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnSeriesDataItem", function () { return ColumnSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries", function () { return ColumnSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(917);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(760);
        /* harmony import */ var _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(918);
        /* harmony import */ var _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(913);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(751);
        /* harmony import */ var _elements_Column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(953);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(862);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(755);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(754);
        /**
         * Column series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[ColumnSeries]].
         *
         * @see {@link DataItem}
         */
        var ColumnSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColumnSeriesDataItem, _super);
            /**
             * Constructor
             */
            function ColumnSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ColumnSeriesDataItem";
                _this.locations["dateX"] = 0.5;
                _this.locations["dateY"] = 0.5;
                _this.locations["categoryX"] = 0.5;
                _this.locations["categoryY"] = 0.5;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ColumnSeriesDataItem.prototype, "column", {
                /**
                 * @return {Column} Column
                 */
                get: function () {
                    return this._column;
                },
                /**
                 * A column used to draw a column for this data item.
                 *
                 * @param {Column}  column
                 */
                set: function (column) {
                    this.setColumn(column);
                },
                enumerable: true,
                configurable: true
            });
            ColumnSeriesDataItem.prototype.setColumn = function (column) {
                var _this = this;
                if (this._column && column != this._column) {
                    _core_utils_Array__WEBPACK_IMPORTED_MODULE_15__["remove"](this.sprites, this._column);
                }
                this._column = column;
                if (column) {
                    var prevDataItem = column.dataItem;
                    if (prevDataItem && prevDataItem != this) {
                        prevDataItem.column = undefined;
                    }
                    this.addSprite(column);
                    this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_17__["Disposer"](function () {
                        _this.component.columns.removeValue(column);
                    }));
                }
            };
            Object.defineProperty(ColumnSeriesDataItem.prototype, "rangesColumns", {
                /**
                 * A dictionary storing axes ranges columns by axis uid
                 *
                 * @type {Dictionary<string, this["_column"]>}
                 */
                get: function () {
                    if (!this._rangesColumns) {
                        this._rangesColumns = new _core_utils_Dictionary__WEBPACK_IMPORTED_MODULE_5__["Dictionary"]();
                    }
                    return this._rangesColumns;
                },
                enumerable: true,
                configurable: true
            });
            return ColumnSeriesDataItem;
        }(_XYSeries__WEBPACK_IMPORTED_MODULE_1__["XYSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a column graph.
         *
         * @see {@link IColumnSeriesEvents} for a list of available Events
         * @see {@link IColumnSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var ColumnSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColumnSeries, _super);
            /**
             * Constructor
             */
            function ColumnSeries() {
                var _this = _super.call(this) || this;
                /**
                 * Start location within cell for columns.
                 *
                 * @type {number}
                 */
                _this._startLocation = 0;
                /**
                 * End location within cell for columns.
                 *
                 * @type {number}
                 */
                _this._endLocation = 1;
                /**
                 * When working value of dataItem changes, we must process all the values to calculate sum, min, max etc. Also update stack values. This is quite expensive operation.
                 * Unfortunately we do not know if user needs this processed values or not. By setting simplifiedProcessing = true you disable this processing and in case working
                 * value changes, we only redraw the particular column. Do not do this if you have staked chart or use calculated values in bullets or in tooltips.
                 *
                 * @type {boolean}
                 */
                _this.simplifiedProcessing = false;
                _this.className = "ColumnSeries";
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_11__["percent"])(100);
                _this.strokeOpacity = 0;
                _this.fillOpacity = 1;
                _this.clustered = true;
                var columnsContainer = _this.mainContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_3__["Container"]);
                columnsContainer.shouldClone = false;
                columnsContainer.isMeasured = false;
                columnsContainer.layout = "none";
                _this._columnsContainer = columnsContainer;
                _this.columns;
                _this.columns.template.pixelPerfect = false;
                _this.tooltipColorSource = _this.columns.template;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ColumnSeries.prototype, "columnsContainer", {
                /**
                 * A container that columns are created in.
                 *
                 * @ignore Exclude from docs
                 */
                get: function () {
                    return this._columnsContainer;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            ColumnSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Column Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {ColumnSeriesDataItem} Data Item
             */
            ColumnSeries.prototype.createDataItem = function () {
                return new ColumnSeriesDataItem();
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            ColumnSeries.prototype.validate = function () {
                //@todo Check if we can do better than use `instanceof`
                var _this = this;
                // find start/end locations based on clustered/stacked settings
                // go through chart series instead of base axis series, because axis series doesn't maintain order
                var baseAxisSeries = this.chart.series;
                var clusterCount = 0;
                var index = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](baseAxisSeries.iterator(), function (series) {
                    if (series instanceof ColumnSeries) {
                        if (_this.baseAxis == series.baseAxis) {
                            if ((!series.stacked && series.clustered) || clusterCount === 0) {
                                clusterCount++;
                            }
                            if (series == _this) {
                                index = clusterCount - 1;
                            }
                        }
                    }
                });
                var renderer = this.baseAxis.renderer;
                var cellStartLocation = renderer.cellStartLocation;
                var cellEndLocation = renderer.cellEndLocation;
                this._startLocation = cellStartLocation + (index / clusterCount) * (cellEndLocation - cellStartLocation);
                this._endLocation = cellStartLocation + (index + 1) / clusterCount * (cellEndLocation - cellStartLocation);
                _super.prototype.validate.call(this);
                this.dataItems.each(function (dataItem) {
                    if (dataItem.index < _this.startIndex || dataItem.index >= _this.endIndex) {
                        _this.disableUnusedColumns(dataItem);
                    }
                });
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {ColumnSeriesDataItem}  dataItem  Data item
             */
            ColumnSeries.prototype.validateDataElement = function (dataItem) {
                // important oder here, first real, then super. we need this to know size
                this.validateDataElementReal(dataItem);
                _super.prototype.validateDataElement.call(this, dataItem);
            };
            /**
             * Returns relative start location for the data item.
             *
             * @param  {this["_dataItem"]}  dataItem  Data item
             * @return {number}                       Location (0-1)
             */
            ColumnSeries.prototype.getStartLocation = function (dataItem) {
                var startLocation = this._startLocation;
                if (this.baseAxis == this.xAxis) {
                    startLocation += dataItem.locations[this.xOpenField] - 0.5;
                }
                else {
                    startLocation += dataItem.locations[this.yOpenField] - 0.5;
                }
                return startLocation;
            };
            /**
             * [handleDataItemWorkingValueChange description]
             *
             * @ignore Exclude from docs
             */
            ColumnSeries.prototype.handleDataItemWorkingValueChange = function (dataItem) {
                if (this.simplifiedProcessing) {
                    this.validateDataElement(dataItem);
                }
                else {
                    _super.prototype.handleDataItemWorkingValueChange.call(this, dataItem);
                }
            };
            /**
             * Returns relative end location for the data item.
             *
             * @param  {this["_dataItem"]}  dataItem  Data item
             * @return {number}                       Location (0-1)
             */
            ColumnSeries.prototype.getEndLocation = function (dataItem) {
                var endLocation = this._endLocation;
                if (this.baseAxis == this.xAxis) {
                    endLocation += dataItem.locations[this.xField] - 0.5;
                }
                else {
                    endLocation += dataItem.locations[this.yField] - 0.5;
                }
                return endLocation;
            };
            /**
             * Validates data item's elements.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            ColumnSeries.prototype.validateDataElementReal = function (dataItem) {
                var _this = this;
                //	if (dataItem.hasValue([this.xField, this.yField])) { // todo: this doesn't work with categories, think of a better way
                var l;
                var r;
                var t;
                var b;
                var startLocation = this.getStartLocation(dataItem);
                var endLocation = this.getEndLocation(dataItem);
                var xField = this.xField;
                var xOpenField = this.xOpenField;
                var yField = this.yField;
                var yOpenField = this.yOpenField;
                var template = this.columns.template;
                var percentWidth = template.percentWidth;
                var percentHeight = template.percentHeight;
                var pixelWidth = template.pixelWidth;
                var pixelHeight = template.pixelHeight;
                var maxWidth = template.maxWidth;
                var maxHeight = template.maxHeight;
                var paddingLeft = template.pixelPaddingLeft;
                var paddingRight = template.pixelPaddingRight;
                var paddingTop = template.pixelPaddingTop;
                var paddingBottom = template.pixelPaddingBottom;
                var outOfBounds = false;
                // two category axes
                if ((this.xAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_7__["CategoryAxis"]) && (this.yAxis instanceof _axes_CategoryAxis__WEBPACK_IMPORTED_MODULE_7__["CategoryAxis"])) {
                    startLocation = 0;
                    endLocation = 1;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentWidth)) {
                        var offset = _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"]((endLocation - startLocation) * (1 - percentWidth / 100) / 2, 5);
                        startLocation += offset;
                        endLocation -= offset;
                    }
                    l = this.xAxis.getX(dataItem, xOpenField, startLocation);
                    r = this.xAxis.getX(dataItem, xField, endLocation);
                    // in case width is set in pixels
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentWidth)) {
                        var offset = ((r - l) - pixelWidth) / 2;
                        l += offset;
                        r -= offset;
                    }
                    // in case max width is set in pixels
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](maxWidth)) {
                        var offset = ((r - l) - maxWidth) / 2;
                        l += offset;
                        r -= offset;
                    }
                    startLocation = 0;
                    endLocation = 1;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentHeight)) {
                        var offset = _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"]((1 - percentHeight / 100) / 2, 5);
                        startLocation += offset;
                        endLocation -= offset;
                    }
                    t = this.yAxis.getY(dataItem, yOpenField, startLocation);
                    b = this.yAxis.getY(dataItem, yField, endLocation);
                    // in case width is set in pixels
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentHeight)) {
                        var offset = ((b - t) - pixelHeight) / 2;
                        b += offset;
                        t -= offset;
                    }
                    // in case max width is set in pixels
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](maxHeight)) {
                        var offset = ((b - t) - maxHeight) / 2;
                        b += offset;
                        t -= offset;
                    }
                    r = this.fixHorizontalCoordinate(r);
                    l = this.fixHorizontalCoordinate(l);
                    t = this.fixVerticalCoordinate(t);
                    b = this.fixVerticalCoordinate(b);
                }
                else if (this.baseAxis == this.xAxis) {
                    // in case width is set in percent
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentWidth)) {
                        var offset = _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"]((endLocation - startLocation) * (1 - percentWidth / 100) / 2, 5);
                        startLocation += offset;
                        endLocation -= offset;
                    }
                    l = this.xAxis.getX(dataItem, xOpenField, startLocation);
                    r = this.xAxis.getX(dataItem, xField, endLocation);
                    // in case width is set in pixels
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentWidth)) {
                        var offset = ((r - l) - pixelWidth) / 2;
                        l += offset;
                        r -= offset;
                    }
                    // in case width is set in pixels
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](maxWidth)) {
                        var offset = ((r - l) - maxWidth) / 2;
                        l += offset;
                        r -= offset;
                    }
                    var bottomLocation = dataItem.locations[yOpenField];
                    var topLocation = dataItem.locations[yField];
                    // otherwise gantt chart will start items in the middle of a cell
                    if (this.yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"]) {
                        bottomLocation = 0;
                        topLocation = 0;
                    }
                    b = this.yAxis.getY(dataItem, yOpenField, bottomLocation);
                    t = this.yAxis.getY(dataItem, yField, topLocation);
                    // used to save location for bullets, but it's not a good approach
                    // dataItem.locations[xField] = startLocation + (endLocation - startLocation) / 2;
                    t = this.fixVerticalCoordinate(t);
                    b = this.fixVerticalCoordinate(b);
                    if (Math.abs(r - l) - paddingLeft - paddingRight == 0) {
                        outOfBounds = true;
                    }
                }
                // horizontal bars
                else {
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentHeight)) {
                        var offset = _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["round"]((1 - percentHeight / 100) / 2, 5);
                        startLocation += offset;
                        endLocation -= offset;
                    }
                    t = this.yAxis.getY(dataItem, yOpenField, startLocation);
                    b = this.yAxis.getY(dataItem, yField, endLocation);
                    // in case height is set in pixels
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](percentHeight)) {
                        var offset = ((b - t) - pixelHeight) / 2;
                        b -= offset;
                        t += offset;
                    }
                    // in case height is set in pixels
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_16__["isNaN"](maxHeight)) {
                        var offset = ((b - t) - maxHeight) / 2;
                        b -= offset;
                        t += offset;
                    }
                    var rightLocation = dataItem.locations[xField];
                    var leftLocation = dataItem.locations[xOpenField];
                    // otherwise gantt chart will start items in the middle of a cell
                    if (this.xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"]) {
                        rightLocation = 0;
                        leftLocation = 0;
                    }
                    r = this.xAxis.getX(dataItem, xField, rightLocation);
                    l = this.xAxis.getX(dataItem, xOpenField, leftLocation);
                    // used to save location for bullets, but it's not a good approach
                    // dataItem.locations[yField] = startLocation + (endLocation - startLocation) / 2;
                    r = this.fixHorizontalCoordinate(r);
                    l = this.fixHorizontalCoordinate(l);
                    if (Math.abs(t - b) - paddingTop - paddingBottom == 0) {
                        outOfBounds = true;
                    }
                }
                var w = Math.abs(r - l);
                var h = Math.abs(b - t);
                var x = Math.min(l, r);
                var y = Math.min(t, b);
                if (!outOfBounds) {
                    var column_1;
                    if (!dataItem.column) {
                        column_1 = this.columns.create();
                        //$object.forceCopyProperties(this.columns.template, column, visualProperties);
                        _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this, column_1, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]); // need this because 3d columns are not in the same container
                        _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this.columns.template, column_1, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]); // second time, no force, so that columns.template would override series properties
                        dataItem.addSprite(column_1);
                        dataItem.column = column_1;
                        // accessibility
                        if (this.itemsFocusable()) {
                            column_1.role = "menuitem";
                            column_1.focusable = true;
                        }
                        else {
                            column_1.role = "listitem";
                            column_1.focusable = false;
                        }
                        if (column_1.focusable) {
                            column_1.events.once("focus", function (ev) {
                                column_1.readerTitle = _this.populateString(_this.itemReaderText, dataItem);
                            }, undefined, false);
                            column_1.events.once("blur", function (ev) {
                                column_1.readerTitle = "";
                            }, undefined, false);
                        }
                        if (column_1.hoverable) {
                            column_1.events.once("over", function (ev) {
                                column_1.readerTitle = _this.populateString(_this.itemReaderText, dataItem);
                            }, undefined, false);
                            column_1.events.once("out", function (ev) {
                                column_1.readerTitle = "";
                            }, undefined, false);
                        }
                    }
                    else {
                        column_1 = dataItem.column;
                    }
                    column_1.width = w;
                    column_1.height = h;
                    column_1.x = x;
                    column_1.y = y;
                    column_1.realX = l;
                    column_1.realY = t;
                    column_1.realWidth = r - l;
                    column_1.realHeight = b - t;
                    column_1.parent = this.columnsContainer;
                    column_1.virtualParent = this;
                    this.setColumnStates(column_1);
                    if (column_1.invalid) {
                        column_1.validate(); // validate as if it was used previously, it will flicker with previous dimensions
                    }
                    column_1.__disabled = false;
                    //column.returnAfterTemp();
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.axisRanges.iterator(), function (axisRange) {
                        var rangeColumn = dataItem.rangesColumns.getKey(axisRange.uid);
                        if (!rangeColumn) {
                            rangeColumn = _this.columns.create();
                            //$object.forceCopyProperties(this.columns.template, rangeColumn, visualProperties);
                            _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](axisRange.contents, rangeColumn, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]); // need this because 3d columns are not in the same container
                            dataItem.addSprite(rangeColumn);
                            dataItem.rangesColumns.setKey(axisRange.uid, rangeColumn);
                        }
                        rangeColumn.parent = axisRange.contents;
                        rangeColumn.width = w;
                        rangeColumn.height = h;
                        rangeColumn.x = x;
                        rangeColumn.y = y;
                        _this.setColumnStates(rangeColumn);
                        if (rangeColumn.invalid) {
                            rangeColumn.validate(); // validate as if it was used previously, it will flicker with previous dimensions
                        }
                        rangeColumn.__disabled = false;
                        //rangeColumn.returnAfterTemp();
                    });
                }
                else {
                    this.disableUnusedColumns(dataItem);
                }
                dataItem.itemWidth = w;
                dataItem.itemHeight = h;
            };
            ColumnSeries.prototype.disableUnusedColumns = function (dataItem) {
                if (dataItem.column) {
                    // otherwise might flicker when enabling
                    dataItem.column.width = 0;
                    dataItem.column.height = 0;
                    dataItem.column.__disabled = true;
                }
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](this.axisRanges.iterator(), function (axisRange) {
                    var rangeColumn = dataItem.rangesColumns.getKey(axisRange.uid);
                    if (rangeColumn) {
                        // otherwise might flicker when enabling
                        rangeColumn.width = 0;
                        rangeColumn.height = 0;
                        rangeColumn.__disabled = true;
                    }
                });
            };
            /**
             * Apply different state/coloring to columns based on the change value.
             *
             * @param {Sprite}  sprite  Sprite to apply state to
             * @todo Do not apply accessibility to wicks of the candlesticks
             */
            ColumnSeries.prototype.setColumnStates = function (sprite) {
                var dataItem = sprite.dataItem;
                if (this.xAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"] || this.yAxis instanceof _axes_ValueAxis__WEBPACK_IMPORTED_MODULE_6__["ValueAxis"]) {
                    var open_1;
                    var value = void 0;
                    var change = void 0;
                    if (this.baseAxis == this.yAxis) {
                        if (this.xOpenField && this.xField) {
                            open_1 = dataItem.getValue(this.xOpenField);
                            value = dataItem.getValue(this.xField);
                            change = dataItem.getValue(this.xAxis.axisFieldName + "X", "previousChange");
                        }
                    }
                    else {
                        if (this.yOpenField && this.yField) {
                            open_1 = dataItem.getValue(this.yOpenField);
                            value = dataItem.getValue(this.yField);
                            change = dataItem.getValue(this.yAxis.axisFieldName + "Y", "previousChange");
                        }
                    }
                    if (value < open_1) {
                        dataItem.droppedFromOpen = true;
                        sprite.defaultState.copyFrom(this._dropFromOpenState);
                        sprite.setState(this._dropFromOpenState, 0);
                    }
                    else {
                        dataItem.droppedFromOpen = false;
                        sprite.defaultState.copyFrom(this._riseFromOpenState);
                        sprite.setState(this._riseFromOpenState, 0);
                    }
                    if (change < 0) {
                        dataItem.droppedFromPrevious = true;
                        sprite.defaultState.copyFrom(this._dropFromPreviousState);
                        sprite.setState((this._dropFromPreviousState), 0);
                    }
                    else {
                        dataItem.droppedFromPrevious = false;
                        sprite.defaultState.copyFrom(this._riseFromPreviousState);
                        sprite.setState((this._riseFromPreviousState), 0);
                    }
                }
            };
            Object.defineProperty(ColumnSeries.prototype, "columns", {
                /**
                 * A list of column elements in the series.
                 *
                 * @return {ListTemplate<this["_column"]>} Columns
                 */
                get: function () {
                    if (!this._columns) {
                        this._columns = new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListTemplate"](this.createColumnTemplate());
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListDisposer"](this._columns));
                        this._disposers.push(this._columns.template);
                    }
                    return this._columns;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Creates and returns a column element to use as a template.
             *
             * @return {this["_column"]} Column template
             */
            ColumnSeries.prototype.createColumnTemplate = function () {
                return new _elements_Column__WEBPACK_IMPORTED_MODULE_9__["Column"]();
            };
            Object.defineProperty(ColumnSeries.prototype, "clustered", {
                /**
                 * @return {boolean} Clustered?
                 */
                get: function () {
                    return this.getPropertyValue("clustered");
                },
                /**
                 * Cluster this series columns?
                 *
                 * Setting to `false` will make columns overlap with pther series.
                 *
                 * @default true
                 * @param {boolean}  value  Clustered?
                 */
                set: function (value) {
                    this.setPropertyValue("clustered", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColumnSeries.prototype, "dropFromOpenState", {
                /**
                 * A state to apply to a column when close value is lower than open value.
                 *
                 * Can be used to differentiate appearance based on value relations.
                 *
                 * NOTE: this will work only if at least one axis is [[ValueAxis]].
                 *
                 * @readonly You can modify state object, but can't overwrite it
                 * @return {SpriteState} State
                 */
                get: function () {
                    if (!this._dropFromOpenState) {
                        this._dropFromOpenState = this.states.create("dropFromOpenState");
                    }
                    return this._dropFromOpenState;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColumnSeries.prototype, "dropFromPreviousState", {
                /**
                 * A state to apply to a column when its value is lower value of a previous
                 * column.
                 *
                 * Can be used to differentiate appearance based on value relations.
                 *
                 * @readonly You can modify state object, but can't overwrite it
                 * @return {SpriteState} State
                 */
                get: function () {
                    if (!this._dropFromPreviousState) {
                        this._dropFromPreviousState = this.states.create("dropFromPreviousState");
                    }
                    return this._dropFromPreviousState;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColumnSeries.prototype, "riseFromOpenState", {
                /**
                 * A state to apply to a column when close value is same or higher than open
                 * value.
                 *
                 * Can be used to differentiate appearance based on value relations.
                 *
                 * NOTE: this will work only if at least one axis is [[ValueAxis]].
                 *
                 * @readonly You can modify state object, but can't overwrite it
                 * @return {SpriteState} State
                 */
                get: function () {
                    if (!this._riseFromOpenState) {
                        this._riseFromOpenState = this.states.create("riseFromOpenState");
                    }
                    return this._riseFromOpenState;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColumnSeries.prototype, "riseFromPreviousState", {
                /**
                 * A state to apply to a column when its value is same or higher than value
                 * of a previous column.
                 *
                 * Can be used to differentiate appearance based on value relations.
                 *
                 * @readonly You can modify state object, but can't overwrite it
                 * @return {SpriteState} State
                 */
                get: function () {
                    if (!this._riseFromPreviousState) {
                        this._riseFromPreviousState = this.states.create("riseFromPreviousState");
                    }
                    return this._riseFromPreviousState;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates value of the related legend item.
             *
             * @ignore Exclude from docs
             * @param {ColumnSeriesDataItem}  dataItem  Data item
             */
            ColumnSeries.prototype.updateLegendValue = function (dataItem) {
                var _this = this;
                _super.prototype.updateLegendValue.call(this, dataItem);
                if (this.legendDataItem) {
                    var marker = this.legendDataItem.marker;
                    var fromOpenState_1;
                    var fromPreviousState_1;
                    if (dataItem) {
                        if (dataItem.droppedFromOpen) {
                            fromOpenState_1 = this._dropFromOpenState;
                        }
                        else {
                            fromOpenState_1 = this._riseFromOpenState;
                        }
                        if (dataItem.droppedFromPrevious) {
                            fromPreviousState_1 = this._dropFromPreviousState;
                        }
                        else {
                            fromPreviousState_1 = this._riseFromPreviousState;
                        }
                    }
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_14__["each"](marker.children.iterator(), function (child) {
                        if (dataItem) {
                            child.setState(fromPreviousState_1);
                            child.setState(fromOpenState_1);
                        }
                        else {
                            // todo: think what to do here, maybe apply above states based on totals?
                            child.setState(_this._riseFromPreviousState);
                            child.setState(_this._riseFromOpenState);
                        }
                    });
                }
            };
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            ColumnSeries.prototype.createLegendMarker = function (marker) {
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.removeChildren();
                var column = marker.createChild(_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_10__["RoundedRectangle"]);
                column.shouldClone = false;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_13__["copyProperties"](this, column, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                column.copyFrom(this.columns.template);
                column.padding(0, 0, 0, 0); // if columns will have padding (which is often), legend marker will be very narrow
                column.width = w;
                column.height = h;
            };
            /**
             * Copies all properties from another instance of [[ColumnSeries]].
             *
             * @param {ColumnSeries}  source  Source series
             */
            ColumnSeries.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.columns.template.copyFrom(source.columns.template);
            };
            /**
            * returns bullet x location
            * @ignore
            */
            ColumnSeries.prototype.getBulletLocationX = function (bullet, field) {
                if (this.baseAxis == this.xAxis) {
                    return (this._startLocation + this._endLocation) / 2;
                }
                else {
                    return _super.prototype.getBulletLocationX.call(this, bullet, field);
                }
            };
            /**
            * returns bullet y location
            * @ignore
            */
            ColumnSeries.prototype.getBulletLocationY = function (bullet, field) {
                if (this.baseAxis == this.yAxis) {
                    return (this._startLocation + this._endLocation) / 2;
                }
                else {
                    return _super.prototype.getBulletLocationY.call(this, bullet, field);
                }
            };
            /**
             * @ignore Exclude from docs
             */
            ColumnSeries.prototype.fixVerticalCoordinate = function (coordinate) {
                var paddingBottom = this.columns.template.pixelPaddingBottom;
                var paddingTop = this.columns.template.pixelPaddingTop;
                var minY = -paddingTop;
                var maxY = this.yAxis.axisLength + paddingBottom;
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["fitToRange"](coordinate, minY, maxY);
            };
            /**
             * @ignore Exclude from docs
             */
            ColumnSeries.prototype.fixHorizontalCoordinate = function (coordinate) {
                var paddingLeft = this.columns.template.pixelPaddingLeft;
                var paddingRight = this.columns.template.pixelPaddingRight;
                var minX = -paddingLeft;
                var maxX = this.xAxis.axisLength + paddingRight;
                return _core_utils_Math__WEBPACK_IMPORTED_MODULE_12__["fitToRange"](coordinate, minX, maxX);
            };
            return ColumnSeries;
        }(_XYSeries__WEBPACK_IMPORTED_MODULE_1__["XYSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["ColumnSeries"] = ColumnSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_8__["registry"].registeredClasses["ColumnSeriesDataItem"] = ColumnSeriesDataItem;
        //# sourceMappingURL=ColumnSeries.js.map
        /***/ 
    }),
    /* 953 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Column", function () { return Column; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(862);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(756);
        /**
         * Module that defines everything related to building Columns.
         * It is a container which has column element which is a RoundedRectangle.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates Columns.
         *
         * @see {@link IColumnEvents} for a list of available events
         * @see {@link IColumnAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var Column = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Column, _super);
            /**
             * Constructor
             */
            function Column() {
                var _this = _super.call(this) || this;
                _this.className = "Column";
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(80);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(80);
                //this.isMeasured = true; // for correct position of the tooltip
                _this.applyOnClones = true;
                _this.strokeOpacity = 1;
                _this.layout = "none";
                _this.createAssets();
                // otherwise users will have to set layout themselves if they'll want to align, scale etc children
                _this.events.on("childadded", _this.handleKidAdded, _this, false);
                return _this;
            }
            Column.prototype.handleKidAdded = function () {
                if (this.layout == "none") {
                    this.layout = "absolute";
                }
            };
            Column.prototype.createAssets = function () {
                this.column = this.createChild(_core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_2__["RoundedRectangle"]);
                this.column.shouldClone = false;
                this.column.cornerRadius(0, 0, 0, 0);
                this._disposers.push(this.column);
            };
            /**
             * Validates element:
             * * Triggers events
             * * Redraws the element
             *
             * @ignore Exclude from docs
             */
            Column.prototype.validate = function () {
                _super.prototype.validate.call(this);
                if (this.column) {
                    this.column.width = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.pixelWidth, this.maxWidth);
                    this.column.height = _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.pixelHeight, this.maxHeight);
                }
            };
            /**
             * Copies all parameters from another [[Sprite]].
             *
             * @param {Sprite} source Source Sprite
             */
            Column.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.column) {
                    this.column.copyFrom(source.column);
                }
            };
            Object.defineProperty(Column.prototype, "bbox", {
                /**
                 * Returns bounding box (square) for this element.
                 *
                 * @ignore Exclude from docs
                 * @type {IRectangle}
                 */
                get: function () {
                    if (this.definedBBox) {
                        return this.definedBBox;
                    }
                    if (this.column) {
                        return { x: 0, y: 0, width: this.column.measuredWidth, height: this.column.measuredHeight };
                    }
                    else {
                        return { x: 0, y: 0, width: _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.pixelWidth, this.maxWidth), height: _core_utils_Math__WEBPACK_IMPORTED_MODULE_5__["min"](this.pixelHeight, this.maxHeight) };
                    }
                },
                enumerable: true,
                configurable: true
            });
            return Column;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Column"] = Column;
        //# sourceMappingURL=Column.js.map
        /***/ 
    }),
    /* 954 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYChart3DDataItem", function () { return XYChart3DDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XYChart3D", function () { return XYChart3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _XYChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(909);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(765);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(766);
        /* harmony import */ var _axes_AxisRendererX3D__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(955);
        /* harmony import */ var _axes_AxisRendererY3D__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(956);
        /* harmony import */ var _series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(957);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(757);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(852);
        /**
         * Module for building 3D serial charts.
         */
        /**
         * ============================================================================
         * Imports
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[XYChart3D]].
         *
         * @see {@link DataItem}
         */
        var XYChart3DDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYChart3DDataItem, _super);
            function XYChart3DDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "XYChart3DDataItem";
                _this.applyTheme();
                return _this;
            }
            return XYChart3DDataItem;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChartDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a 3D XY chart.
         *
         * @see {@link IXYChart3DEvents} for a list of available Events
         * @see {@link IXYChart3DAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/xy-chart/} for documentation
         * @important
         */
        var XYChart3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](XYChart3D, _super);
            /**
             * Constructor
             */
            function XYChart3D() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * Type of the axis renderer to use for X axes.
                 *
                 * @type {[type]}
                 */
                _this._axisRendererX = _axes_AxisRendererX3D__WEBPACK_IMPORTED_MODULE_4__["AxisRendererX3D"];
                /**
                 * Type of the axis renderer to use for Y axes.
                 * @type {[type]}
                 */
                _this._axisRendererY = _axes_AxisRendererY3D__WEBPACK_IMPORTED_MODULE_5__["AxisRendererY3D"];
                _this.className = "XYChart3D";
                // Set defaults
                _this.depth = 30;
                _this.angle = 30;
                // Creeate container for columns
                var columnsContainer = _this.seriesContainer.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_2__["Container"]);
                columnsContainer.shouldClone = false;
                columnsContainer.isMeasured = false;
                columnsContainer.layout = "none";
                _this.columnsContainer = columnsContainer;
                _this.columnsContainer.mask = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_3__["Sprite"]);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(XYChart3D.prototype, "depth", {
                /**
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth of the 3D chart / columns in pixels.
                 *
                 * @param {number}  value  Depth (px)
                 */
                set: function (value) {
                    this.setPropertyValue("depth", value);
                    this.fixLayout();
                    this.invalidateDataUsers();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYChart3D.prototype, "angle", {
                /**
                 * @return {number} Angle
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * Angle the chart is viewed at.
                 *
                 * @todo Description (review)
                 * @param {number}  value  Angle
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value);
                    this.fixLayout();
                    this.invalidateDataUsers();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYChart3D.prototype, "dx3D", {
                /**
                 * A calculated horizontal 3D offset (px).
                 *
                 * @readonly
                 * @return {number} Offset (px)
                 */
                get: function () {
                    return _core_utils_Math__WEBPACK_IMPORTED_MODULE_9__["cos"](this.angle) * this.depth;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(XYChart3D.prototype, "dy3D", {
                /**
                 * A calculated vertical 3D offset (px).
                 *
                 * @readonly
                 * @return {number} Offset (px)
                 */
                get: function () {
                    return -_core_utils_Math__WEBPACK_IMPORTED_MODULE_9__["sin"](this.angle) * this.depth;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * (Re)validates layout
             *
             * @ignore Exclude from docs
             */
            XYChart3D.prototype.validateLayout = function () {
                _super.prototype.validateLayout.call(this);
                this.fixLayout();
            };
            /**
             * Updates the layout (padding and scrollbar positions) to accommodate for
             * 3D depth and angle.
             */
            XYChart3D.prototype.fixLayout = function () {
                this.chartContainer.marginTop = -this.dy3D;
                this.chartContainer.paddingRight = this.dx3D;
                if (this.scrollbarX) {
                    this.scrollbarX.dy = this.dy3D;
                    this.scrollbarX.dx = this.dx3D;
                }
                if (this.scrollbarY) {
                    this.scrollbarY.dy = this.dy3D;
                    this.scrollbarY.dx = this.dx3D;
                }
                this.fixColumns();
            };
            /**
             * Updates column positions, offset and dimensions based on chart's angle
             * and depth.
             */
            XYChart3D.prototype.fixColumns = function () {
                var _this = this;
                var count = 1;
                var i = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    if (series instanceof _series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_6__["ColumnSeries3D"]) {
                        if (!series.clustered && i > 0) {
                            count++;
                        }
                        series.depthIndex = count - 1;
                        i++;
                    }
                });
                var s = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.series.iterator(), function (series) {
                    if (series instanceof _series_ColumnSeries3D__WEBPACK_IMPORTED_MODULE_6__["ColumnSeries3D"]) {
                        series.depth = _this.depth / (count);
                        series.angle = _this.angle;
                        series.dx = _this.depth / (count) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_9__["cos"](_this.angle) * (series.depthIndex);
                        series.dy = -_this.depth / (count) * _core_utils_Math__WEBPACK_IMPORTED_MODULE_9__["sin"](_this.angle) * (series.depthIndex);
                        var i_1 = 1;
                        series.columns.each(function (column) {
                            column.zIndex = 1000 * i_1 + s - series.depthIndex * 100;
                            i_1++;
                        });
                        s++;
                    }
                });
                this.maskColumns();
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            XYChart3D.prototype.processConfig = function (config) {
                if (config) {
                    // Set up series
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["hasValue"](config.series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_10__["isArray"](config.series)) {
                        for (var i = 0, len = config.series.length; i < len; i++) {
                            config.series[i].type = config.series[i].type || "ColumnSeries3D";
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            XYChart3D.prototype.maskColumns = function () {
                var w = this.plotContainer.pixelWidth;
                var h = this.plotContainer.pixelHeight;
                var dx = this.dx3D;
                var dy = this.dy3D;
                var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: dx, y: dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: w + dx, y: dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: w + dx, y: h + dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: w, y: h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: w, y: h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["lineTo"]({ x: 0, y: h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_11__["closePath"]();
                var columnsContainer = this.columnsContainer;
                if (columnsContainer && columnsContainer.mask) {
                    columnsContainer.mask.path = path;
                }
            };
            return XYChart3D;
        }(_XYChart__WEBPACK_IMPORTED_MODULE_1__["XYChart"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_7__["registry"].registeredClasses["XYChart3D"] = XYChart3D;
        //# sourceMappingURL=XYChart3D.js.map
        /***/ 
    }),
    /* 955 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererX3D", function () { return AxisRendererX3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(848);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Module, defining Axis Renderer for horizontal 3D axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Renderer for horizontal 3D axis.
         *
         * @see {@link IAxisRendererX3DEvents} for a list of available events
         * @see {@link IAxisRendererX3DAdapters} for a list of available Adapters
         */
        var AxisRendererX3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererX3D, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererX3D() {
                var _this = _super.call(this) || this;
                /**
                 * A related chart.
                 *
                 * @todo Description
                 * @type {MutableValueDisposer}
                 */
                _this._chart = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "AxisRendererX3D";
                _this._disposers.push(_this._chart);
                _this.applyTheme();
                return _this;
            }
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererX3D.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                if (grid.element) {
                    var dx = this.chart.dx3D;
                    var dy = this.chart.dy3D;
                    var h = this.getHeight();
                    grid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: dx, y: dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: dx, y: h + dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: 0, y: h });
                }
                this.positionItem(grid, point);
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererX3D.prototype.updateBaseGridElement = function () {
                _super.prototype.updateBaseGridElement.call(this);
                var h = this.getHeight();
                var dx = this.chart.dx3D;
                var dy = this.chart.dy3D;
                this.baseGrid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: dx, y: dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: dx, y: h + dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: 0, y: h });
            };
            Object.defineProperty(AxisRendererX3D.prototype, "chart", {
                /**
                 * @ignore Exclude from docs
                 * @return {XYChart3D} Chart
                 */
                get: function () {
                    return this._chart.get();
                },
                /**
                 * Chart, associated with the Axis.
                 *
                 * @ignore Exclude from docs
                 * @param {XYChart3D} value Chart
                 */
                set: function (chart) {
                    if (chart) {
                        this._chart.set(chart, chart.events.on("propertychanged", this.handle3DChanged, this, false));
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Invoked when 3D-related settings change, like depth or angle.
             *
             * @param {AMEvent<Sprite, ISpriteEvents>["propertychanged"]} event Event
             */
            AxisRendererX3D.prototype.handle3DChanged = function (event) {
                if (event.property == "depth" || event.property == "angle") {
                    this.invalidate();
                }
            };
            return AxisRendererX3D;
        }(_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_1__["AxisRendererX"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["AxisRendererX3D"] = AxisRendererX3D;
        //# sourceMappingURL=AxisRendererX3D.js.map
        /***/ 
    }),
    /* 956 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisRendererY3D", function () { return AxisRendererY3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(854);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /**
         * Module, defining Axis Renderer for vertical 3D axes.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Renderer for vertical 3D axis.
         *
         * @see {@link IAxisRendererY3DEvents} for a list of available events
         * @see {@link IAxisRendererY3DAdapters} for a list of available Adapters
         */
        var AxisRendererY3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AxisRendererY3D, _super);
            /**
             * Constructor.
             *
             * @param {Axis} axis Related axis
             */
            function AxisRendererY3D() {
                var _this = _super.call(this) || this;
                /**
                 * A related chart.
                 *
                 * @todo Description
                 * @type {MutableValueDisposer}
                 */
                _this._chart = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "AxisRendererY3D";
                _this._disposers.push(_this._chart);
                _this.applyTheme();
                return _this;
            }
            /**
             * Updates and positions a grid element.
             *
             * @ignore Exclude from docs
             * @param {Grid}    grid         Grid element
             * @param {number}  position     Starting position
             * @param {number}  endPosition  End position
             */
            AxisRendererY3D.prototype.updateGridElement = function (grid, position, endPosition) {
                position = position + (endPosition - position) * grid.location;
                var point = this.positionToPoint(position);
                if (grid.element) {
                    var dx = this.chart.dx3D;
                    var dy = this.chart.dy3D;
                    var w = this.getWidth();
                    grid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: 0, y: 0 }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: dx, y: dy }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w + dx, y: dy });
                }
                this.positionItem(grid, point);
                this.toggleVisibility(grid, position, 0, 1);
            };
            /**
             * Updates and positions the base grid element.
             *
             * @ignore Exclude from docs
             */
            AxisRendererY3D.prototype.updateBaseGridElement = function () {
                _super.prototype.updateBaseGridElement.call(this);
                var w = this.getWidth();
                this.baseGrid.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"]({ x: 0, y: 0 })
                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w, y: 0 })
                    + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"]({ x: w + this.chart.dx3D, y: this.chart.dy3D });
            };
            Object.defineProperty(AxisRendererY3D.prototype, "chart", {
                /**
                 * @ignore Exclude from docs
                 * @return {XYChart3D} Chart
                 */
                get: function () {
                    return this._chart.get();
                },
                /**
                 * Chart, associated with the Axis.
                 *
                 * @ignore Exclude from docs
                 * @param {XYChart3D}  value  Chart
                 */
                set: function (chart) {
                    if (chart) {
                        this._chart.set(chart, chart.events.on("propertychanged", this.handle3DChanged, this, false));
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Invoked when 3D-related settings change, like depth or angle.
             *
             * @param {AMEvent<Sprite, ISpriteEvents>["propertychanged"]} event Event
             */
            AxisRendererY3D.prototype.handle3DChanged = function (event) {
                if (event.property == "depth" || event.property == "angle") {
                    this.invalidate();
                }
            };
            return AxisRendererY3D;
        }(_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_1__["AxisRendererY"]));
        //# sourceMappingURL=AxisRendererY3D.js.map
        /***/ 
    }),
    /* 957 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries3DDataItem", function () { return ColumnSeries3DDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnSeries3D", function () { return ColumnSeries3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _elements_Column3D__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(958);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * 3D column series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        var ColumnSeries3DDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColumnSeries3DDataItem, _super);
            /**
             * Constructor
             */
            function ColumnSeries3DDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ColumnSeries3DDataItem";
                _this.applyTheme();
                return _this;
            }
            return ColumnSeries3DDataItem;
        }(_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a 3D column graph.
         *
         * @see {@link IColumnSeries3DEvents} for a list of available Events
         * @see {@link IColumnSeries3DAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var ColumnSeries3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ColumnSeries3D, _super);
            /**
             * Constructor
             */
            function ColumnSeries3D() {
                var _this = _super.call(this) || this;
                _this.className = "ColumnSeries3D";
                _this.columns.template.column3D.applyOnClones = true;
                _this.columns.template.hiddenState.properties.visible = true;
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(ColumnSeries3D.prototype, "columnsContainer", {
                /**
                 * @ignore
                 */
                get: function () {
                    if (this.chart && this.chart.columnsContainer) {
                        return this.chart.columnsContainer;
                    }
                    else {
                        return this._columnsContainer;
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Validates data item's elements.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            ColumnSeries3D.prototype.validateDataElementReal = function (dataItem) {
                _super.prototype.validateDataElementReal.call(this, dataItem);
                if (dataItem.column) {
                    dataItem.column.dx = this.dx;
                    dataItem.column.dy = this.dy;
                }
            };
            /**
             * Validates data item's elements.
             *
             * @ignore Exclude from docs
             */
            ColumnSeries3D.prototype.validateDataElements = function () {
                _super.prototype.validateDataElements.call(this);
                if (this.chart) {
                    this.chart.invalidateLayout();
                }
            };
            /**
             * Returns an element to use for 3D bar.
             * @ignore
             * @return {this["_column"]} Element.
             */
            ColumnSeries3D.prototype.createColumnTemplate = function () {
                return new _elements_Column3D__WEBPACK_IMPORTED_MODULE_2__["Column3D"]();
            };
            Object.defineProperty(ColumnSeries3D.prototype, "depth", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Depth (px)
                 */
                get: function () {
                    return this.getPropertyValue("depth");
                },
                /**
                 * Depth (height) of the slices in the series in pixels.
                 *
                 * @ignore Exclude from docs
                 * @param {number}  value  Depth (px)
                 */
                set: function (value) {
                    this.setPropertyValue("depth", value, true);
                    var template = this.columns.template; // todo: Cone is not Rectangle3D, maybe we should do some I3DShape?
                    template.column3D.depth = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(ColumnSeries3D.prototype, "angle", {
                /**
                 * @ignore Exclude from docs
                 * @return {number} Angle (0-360)
                 */
                get: function () {
                    return this.getPropertyValue("angle");
                },
                /**
                 * Angle of view for the slices in series. (0-360)
                 *
                 * @ignore Exclude from docs
                 * @param {number}  value  Angle (0-360)
                 */
                set: function (value) {
                    this.setPropertyValue("angle", value);
                    var template = this.columns.template;
                    template.column3D.angle = value;
                },
                enumerable: true,
                configurable: true
            });
            return ColumnSeries3D;
        }(_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ColumnSeries3D"] = ColumnSeries3D;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ColumnSeries3DDataItem"] = ColumnSeries3DDataItem;
        //# sourceMappingURL=ColumnSeries3D.js.map
        /***/ 
    }),
    /* 958 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Column3D", function () { return Column3D; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
        /* harmony import */ var _core_elements_3d_Rectangle3D__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(893);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Module that defines everything related to building 3D Columns.
         * It is a container which has column3D element which is a Rectangle3D.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates Column3Ds.
         *
         * @see {@link IColumn3DEvents} for a list of available events
         * @see {@link IColumn3DAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var Column3D = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Column3D, _super);
            /**
             * Constructor
             */
            function Column3D() {
                var _this = _super.call(this) || this;
                _this.className = "Column3D";
                return _this;
            }
            Column3D.prototype.createAssets = function () {
                this.column3D = this.createChild(_core_elements_3d_Rectangle3D__WEBPACK_IMPORTED_MODULE_2__["Rectangle3D"]);
                this.column3D.shouldClone = false;
                this.column3D.strokeOpacity = 0;
                // some dirty hack so that if user access column, it won't get error
                this.column = this.column3D;
            };
            Column3D.prototype.validate = function () {
                _super.prototype.validate.call(this);
                if (this.column3D) {
                    this.column3D.width = this.pixelWidth;
                    this.column3D.height = this.pixelHeight;
                }
            };
            Column3D.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.column3D) {
                    this.column3D.copyFrom(source.column3D);
                }
            };
            return Column3D;
        }(_Column__WEBPACK_IMPORTED_MODULE_1__["Column"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Column3D"] = Column3D;
        //# sourceMappingURL=Column3D.js.map
        /***/ 
    }),
    /* 959 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeatLegend", function () { return HeatLegend; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(801);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(769);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /* harmony import */ var _charts_axes_ValueAxis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(918);
        /* harmony import */ var _charts_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(848);
        /* harmony import */ var _charts_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(854);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Colors__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(775);
        /* harmony import */ var _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(862);
        /**
         * HeatLegend module
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * This class creates a link (waved color-filled line) between two nodes in a
         * Sankey Diagram.
         *
         * @see {@link IHeatLegendEvents} for a list of available events
         * @see {@link IHeatLegendAdapters} for a list of available Adapters
         * @important
         */
        var HeatLegend = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](HeatLegend, _super);
            /**
             * Constructor
             */
            function HeatLegend() {
                var _this = _super.call(this) || this;
                _this.className = "HeatLegend";
                _this.markerContainer = _this.createChild(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]);
                _this.markerContainer.shouldClone = false;
                _this.markerCount = 1;
                // Create a template container and list for the a marker
                var marker = new _core_elements_RoundedRectangle__WEBPACK_IMPORTED_MODULE_13__["RoundedRectangle"]();
                marker.minHeight = 20;
                marker.minWidth = 20;
                marker.interactionsEnabled = false;
                marker.fillOpacity = 1;
                marker.cornerRadius(0, 0, 0, 0);
                _this.markerContainer.minHeight = 20;
                _this.markerContainer.minWidth = 20;
                _this.orientation = "horizontal";
                _this.markers = new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListTemplate"](marker);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_5__["ListDisposer"](_this.markers));
                _this._disposers.push(_this.markers.template);
                _this.applyTheme();
                return _this;
            }
            HeatLegend.prototype.getMinFromRules = function (property) {
                var series = this.series;
                if (series) {
                    var minValue_1;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["eachContinue"](series.heatRules.iterator(), function (heatRule) {
                        if (heatRule.property == property) {
                            minValue_1 = heatRule.min;
                            return false;
                        }
                        return true;
                    });
                    return minValue_1;
                }
            };
            HeatLegend.prototype.getMaxFromRules = function (property) {
                var series = this.series;
                if (series) {
                    var maxValue_1;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_10__["each"](series.heatRules.iterator(), function (heatRule) {
                        if (heatRule.property == property) {
                            maxValue_1 = heatRule.max;
                            return false;
                        }
                        return true;
                    });
                    return maxValue_1;
                }
            };
            /**
             *
             * @ignore Exclude from docs
             */
            HeatLegend.prototype.validate = function () {
                _super.prototype.validate.call(this);
                var series = this.series;
                var minColor = this.minColor;
                var maxColor = this.maxColor;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](minColor)) {
                    minColor = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(this.getMinFromRules("fill"));
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](maxColor)) {
                    maxColor = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(this.getMaxFromRules("fill"));
                }
                if (series) {
                    var seriesFill = series.fill;
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](minColor) && seriesFill instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"]) {
                        minColor = seriesFill;
                    }
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](maxColor) && seriesFill instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"]) {
                        maxColor = seriesFill;
                    }
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](maxColor)) {
                    maxColor = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(this.getMaxFromRules("fill"));
                }
                var minOpacity = _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["toNumber"](this.getMinFromRules("fillOpacity"));
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](minOpacity)) {
                    minOpacity = 1;
                }
                var maxOpacity = _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["toNumber"](this.getMaxFromRules("fillOpacity"));
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](maxOpacity)) {
                    maxOpacity = 1;
                }
                var minStrokeOpacity = _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["toNumber"](this.getMinFromRules("strokeOpacity"));
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](minStrokeOpacity)) {
                    minStrokeOpacity = 1;
                }
                var maxStrokeOpacity = _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["toNumber"](this.getMaxFromRules("strokeOpacity"));
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](maxStrokeOpacity)) {
                    maxStrokeOpacity = 1;
                }
                var minStroke = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(this.getMinFromRules("stroke"));
                var maxStroke = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(this.getMaxFromRules("stroke"));
                //if (series) {
                for (var i = 0; i < this.markerCount; i++) {
                    var marker = this.markers.getIndex(i);
                    if (!marker) {
                        marker = this.markers.create();
                        marker.parent = this.markerContainer;
                        marker.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                        marker.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                    }
                    if (this.markerCount == 1) {
                        var gradient = new _core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_2__["LinearGradient"]();
                        gradient.addColor(minColor, minOpacity);
                        gradient.addColor(maxColor, maxOpacity);
                        if (this.orientation == "vertical") {
                            gradient.rotation = -90;
                        }
                        marker.fill = gradient;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](minStroke) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](maxStroke)) {
                            var strokeGradient = new _core_rendering_fills_LinearGradient__WEBPACK_IMPORTED_MODULE_2__["LinearGradient"]();
                            strokeGradient.addColor(minStroke, minStrokeOpacity);
                            strokeGradient.addColor(maxStroke, maxStrokeOpacity);
                            if (this.orientation == "vertical") {
                                strokeGradient.rotation = -90;
                            }
                            marker.stroke = strokeGradient;
                        }
                    }
                    else {
                        var color = new _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"](_core_utils_Colors__WEBPACK_IMPORTED_MODULE_12__["interpolate"](minColor.rgb, maxColor.rgb, i / this.markerCount));
                        marker.fill = color;
                        var opacity = minOpacity + (maxOpacity - minOpacity) * i / this.markerCount;
                        marker.fillOpacity = opacity;
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](minStroke) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](maxStroke)) {
                            var color_1 = new _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"](_core_utils_Colors__WEBPACK_IMPORTED_MODULE_12__["interpolate"](minStroke.rgb, maxStroke.rgb, i / this.markerCount));
                            marker.stroke = color_1;
                            var opacity_1 = minStrokeOpacity + (maxStrokeOpacity - minStrokeOpacity) * i / this.markerCount;
                            marker.strokeOpacity = opacity_1;
                        }
                    }
                }
                var renderer = this.valueAxis.renderer;
                if (this.markerCount > 1) {
                    if (this.orientation == "horizontal") {
                        renderer.minGridDistance = this.measuredWidth / this.markerCount;
                    }
                    else {
                        renderer.minGridDistance = this.measuredHeight / this.markerCount;
                    }
                }
                this.valueAxis.invalidateDataRange();
                for (var i = this.markerCount, len = this.markers.length; i < len; i++) {
                    this.markers.getIndex(i).parent = undefined;
                }
            };
            Object.defineProperty(HeatLegend.prototype, "minColor", {
                /**
                 * Returns minColor value
                 * @return {Color}
                 */
                get: function () {
                    return this.getPropertyValue("minColor");
                },
                /**
                 * Min color of a heat legend. If a series is set for the legend, minColor is taken from series.
                 *
                 * @param {Color}
                 */
                set: function (value) {
                    if (!(value instanceof _core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["Color"])) {
                        value = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(value);
                    }
                    this.setColorProperty("minColor", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "maxColor", {
                /**
                 * Returns maxColor value
                 * @return {Color}
                 */
                get: function () {
                    return this.getPropertyValue("maxColor");
                },
                /**
                 * Max color of a heat legend. If a series is set for the legend, maxColor is taken from series.
                 *
                 * @param {Color}
                 */
                set: function (value) {
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isObject"](value)) {
                        value = Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_4__["toColor"])(value);
                    }
                    this.setColorProperty("maxColor", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "markerCount", {
                /**
                 * Returns number of color squares (markers).
                 * @return {number}
                 */
                get: function () {
                    return this.getPropertyValue("markerCount");
                },
                /**
                 * Number of color squares (markers) in the heat legend. If only 1 marker is used, it will be filled with gradient.
                 *
                 * @param {number}
                 */
                set: function (value) {
                    this.setPropertyValue("markerCount", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "minValue", {
                /**
                 * Returns minimum value of heat legend.
                 * @return {number}
                 */
                get: function () {
                    return this.getPropertyValue("minValue");
                },
                /**
                 * Minimum value of heat legend's value axis. If a series is set for the legend, min is taken from series.
                 *
                 * @param {number}
                 */
                set: function (value) {
                    this.setPropertyValue("minValue", value);
                    this.valueAxis.min = value;
                    this.valueAxis.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "maxValue", {
                /**
                 * Returns maximum value of heat legend.
                 * @return {number}
                 */
                get: function () {
                    return this.getPropertyValue("maxValue");
                },
                /**
                 * Maximum value of heat legend's value axis. If a series is set for the legend, max is taken from series.
                 *
                 * @param {number}
                 */
                set: function (value) {
                    this.setPropertyValue("maxValue", value);
                    this.valueAxis.max = value;
                    this.valueAxis.invalidateDataRange();
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "orientation", {
                /**
                 * Returns orientation value.
                 *
                 * @return {"horizontal" | "vertical"}
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                * Heat legend orientation. Note, if you change orientation of a heat legend, you must set value axis renderer properties after that, as with orientation renderer changes.
                *
                * @param {"horizontal" | "vertical"}
                */
                set: function (value) {
                    this.setPropertyValue("orientation", value, true);
                    var markerContainer = this.markerContainer;
                    var valueAxis = this.valueAxis;
                    // HORIZONTAL
                    if (value == "horizontal") {
                        if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](this.width)) {
                            this.width = 200;
                        }
                        this.height = undefined;
                        valueAxis.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                        valueAxis.height = undefined;
                        valueAxis.tooltip.pointerOrientation = "vertical";
                        this.layout = "vertical";
                        markerContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                        markerContainer.height = undefined;
                        if (!(valueAxis.renderer instanceof _charts_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_8__["AxisRendererX"])) {
                            valueAxis.renderer = new _charts_axes_AxisRendererX__WEBPACK_IMPORTED_MODULE_8__["AxisRendererX"]();
                        }
                    }
                    // VERTICAL
                    else {
                        if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](this.height)) {
                            this.height = 200;
                        }
                        this.width = undefined;
                        this.layout = "horizontal";
                        markerContainer.width = undefined;
                        markerContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                        valueAxis.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                        valueAxis.width = undefined;
                        valueAxis.tooltip.pointerOrientation = "horizontal";
                        if (!(valueAxis.renderer instanceof _charts_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_9__["AxisRendererY"])) {
                            valueAxis.renderer = new _charts_axes_AxisRendererY__WEBPACK_IMPORTED_MODULE_9__["AxisRendererY"]();
                        }
                        valueAxis.renderer.inside = true;
                        valueAxis.renderer.labels.template.inside = true;
                    }
                    var renderer = valueAxis.renderer;
                    renderer.grid.template.disabled = true;
                    renderer.axisFills.template.disabled = true;
                    renderer.baseGrid.disabled = true;
                    renderer.labels.template.padding(2, 3, 2, 3);
                    renderer.minHeight = undefined;
                    renderer.minWidth = undefined;
                    this.markerContainer.layout = value;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "valueAxis", {
                /**
                 * Returns valueAxis value.
                 * @return {ValueAxis}
                 */
                get: function () {
                    if (!this._valueAxis) {
                        this.valueAxis = this.createChild(_charts_axes_ValueAxis__WEBPACK_IMPORTED_MODULE_7__["ValueAxis"]);
                        this.valueAxis.shouldClone = false;
                    }
                    return this._valueAxis;
                },
                /**
                 * Sets a value axis of heat legend. Value axis for heat legend is created automatically.
                 * @param {ValueAxis}
                 */
                set: function (valueAxis) {
                    this._valueAxis = valueAxis;
                    valueAxis.parent = this;
                    valueAxis.strictMinMax = true;
                    this.orientation = this.orientation;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(HeatLegend.prototype, "series", {
                /**
                 * Returns series value.
                 * @return {Series}
                 */
                get: function () {
                    return this._series;
                },
                /**
                 * You can set series for heat legend. It will take min, max, minColor and maxColor values from this series.
                 * @param {Series} series
                 */
                set: function (series) {
                    var _this = this;
                    this._series = series;
                    var dataField = "value";
                    try {
                        var dataFieldDefined = series.heatRules.getIndex(0).dataField;
                        if (dataFieldDefined) {
                            dataField = dataFieldDefined;
                        }
                    }
                    catch (err) {
                    }
                    this.updateMinMax(series.dataItem.values[dataField].low, series.dataItem.values[dataField].high);
                    series.dataItem.events.on("calculatedvaluechanged", function (event) {
                        _this.updateMinMax(series.dataItem.values[dataField].low, series.dataItem.values[dataField].high);
                    }, undefined, false);
                    series.heatRules.events.on("inserted", this.invalidate, this, false);
                    series.heatRules.events.on("removed", this.invalidate, this, false);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates min/max of value axis.
             * @ignore
             */
            HeatLegend.prototype.updateMinMax = function (min, max) {
                var valueAxis = this.valueAxis;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](this.minValue)) {
                    valueAxis.min = min;
                    valueAxis.invalidateDataRange();
                }
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isNumber"](this.maxValue)) {
                    valueAxis.max = max;
                    valueAxis.invalidateDataRange();
                }
            };
            /**
             * Processes JSON-based config before it is applied to the object.
             *
             * @ignore Exclude from docs
             * @param {object}  config  Config
             */
            HeatLegend.prototype.processConfig = function (config) {
                if (config) {
                    // Set up series
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["hasValue"](config.series) && _core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isString"](config.series)) {
                        if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_11__["isString"](config.series)) {
                            if (this.map.hasKey(config.series)) {
                                config.series = this.map.getKey(config.series);
                            }
                            else {
                                var seriesId_1 = config.series;
                                var disposer_1 = this.map.events.on("insertKey", function (ev) {
                                    if (ev.key == seriesId_1) {
                                        this.series = ev.newValue;
                                        disposer_1.dispose();
                                    }
                                }, this);
                                this._disposers.push(disposer_1);
                                delete config.series;
                            }
                        }
                    }
                }
                _super.prototype.processConfig.call(this, config);
            };
            return HeatLegend;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["HeatLegend"] = HeatLegend;
        //# sourceMappingURL=HeatLegend.js.map
        /***/ 
    }),
    /* 960 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CandlestickSeriesDataItem", function () { return CandlestickSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CandlestickSeries", function () { return CandlestickSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _elements_Candlestick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(961);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(757);
        /**
         * Candlestick Series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[CandlestickSeries]].
         *
         * @see {@link DataItem}
         */
        var CandlestickSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CandlestickSeriesDataItem, _super);
            /**
             * Defines a type of [[Component]] this data item is used for
             * @type {CandlestickSeries}
             * @todo Disabled to work around TS bug (see if we can re-enable it again)
             */
            //public _component!: CandlestickSeries;
            /**
             * Constructor
             */
            function CandlestickSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.values.lowValueX = {};
                _this.values.lowValueY = {};
                _this.values.highValueX = {};
                _this.values.highValueY = {};
                _this.className = "CandlestickSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "lowValueX", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.lowValueX.value;
                },
                /**
                 * Low value for horizontal axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("lowValueX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "lowValueY", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.lowValueY.value;
                },
                /**
                 * Low value for vertical axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("lowValueY", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "highValueX", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.highValueX.value;
                },
                /**
                 * High value for horizontal axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("highValueX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "highValueY", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.highValueY.value;
                },
                /**
                 * High value for vertical axis.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("highValueY", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "closeValueX", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.valueX.value;
                },
                /**
                 * Close value for horizontal axis.
                 *
                 * This is an alias for `valueX` added for convenience only.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("valueX", value);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeriesDataItem.prototype, "closeValueY", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.valueY.value;
                },
                /**
                 * Close value for vertical axis.
                 *
                 * This is an alias for `valueX` added for convenience only.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("valueY", value);
                },
                enumerable: true,
                configurable: true
            });
            return CandlestickSeriesDataItem;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a candlestick graph.
         *
         * @see {@link ICandlestickSeriesEvents} for a list of available Events
         * @see {@link ICandlestickSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var CandlestickSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CandlestickSeries, _super);
            /**
             * Constructor
             */
            function CandlestickSeries() {
                var _this = _super.call(this) || this;
                _this.className = "CandlestickSeries";
                _this.strokeOpacity = 1;
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_5__["InterfaceColorSet"]();
                var positiveColor = interfaceColors.getFor("positive");
                var negativeColor = interfaceColors.getFor("negative");
                _this.dropFromOpenState.properties.fill = negativeColor;
                _this.dropFromOpenState.properties.stroke = negativeColor;
                _this.riseFromOpenState.properties.fill = positiveColor;
                _this.riseFromOpenState.properties.stroke = positiveColor;
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            CandlestickSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_9__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Candlestick Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {CandlestickSeriesDataItem} Data Item
             */
            CandlestickSeries.prototype.createDataItem = function () {
                return new CandlestickSeriesDataItem();
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {CandlestickSeriesDataItem}  dataItem  Data item
             */
            CandlestickSeries.prototype.validateDataElementReal = function (dataItem) {
                _super.prototype.validateDataElementReal.call(this, dataItem);
                this.validateCandlestick(dataItem);
            };
            CandlestickSeries.prototype.validateCandlestick = function (dataItem) {
                var column = dataItem.column;
                if (column) {
                    var lowLine_1 = column.lowLine;
                    var highLine_1 = column.highLine;
                    if (this.baseAxis == this.xAxis) {
                        var x = column.pixelWidth / 2;
                        lowLine_1.x = x;
                        highLine_1.x = x;
                        var open_1 = dataItem.getWorkingValue(this.yOpenField);
                        var close_1 = dataItem.getWorkingValue(this.yField);
                        var yOpen = this.yAxis.getY(dataItem, this.yOpenField);
                        var yClose = this.yAxis.getY(dataItem, this.yField);
                        var yLow = this.yAxis.getY(dataItem, this.yLowField);
                        var yHigh = this.yAxis.getY(dataItem, this.yHighField);
                        var pixelY = column.pixelY;
                        lowLine_1.y1 = yLow - pixelY;
                        highLine_1.y1 = yHigh - pixelY;
                        if (open_1 < close_1) {
                            lowLine_1.y2 = yOpen - pixelY;
                            highLine_1.y2 = yClose - pixelY;
                        }
                        else {
                            lowLine_1.y2 = yClose - pixelY;
                            highLine_1.y2 = yOpen - pixelY;
                        }
                    }
                    if (this.baseAxis == this.yAxis) {
                        var y = column.pixelHeight / 2;
                        lowLine_1.y = y;
                        highLine_1.y = y;
                        var open_2 = dataItem.getWorkingValue(this.xOpenField);
                        var close_2 = dataItem.getWorkingValue(this.xField);
                        var xOpen = this.xAxis.getX(dataItem, this.xOpenField);
                        var xClose = this.xAxis.getX(dataItem, this.xField);
                        var xLow = this.xAxis.getX(dataItem, this.xLowField);
                        var xHigh = this.xAxis.getX(dataItem, this.xHighField);
                        var pixelX = column.pixelX;
                        lowLine_1.x1 = xLow - pixelX;
                        highLine_1.x1 = xHigh - pixelX;
                        if (open_2 < close_2) {
                            lowLine_1.x2 = xOpen - pixelX;
                            highLine_1.x2 = xClose - pixelX;
                        }
                        else {
                            lowLine_1.x2 = xClose - pixelX;
                            highLine_1.x2 = xOpen - pixelX;
                        }
                    }
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_8__["each"](this.axisRanges.iterator(), function (axisRange) {
                        // LOW LINE
                        var rangeColumn = dataItem.rangesColumns.getKey(axisRange.uid);
                        if (rangeColumn) {
                            var rangeLowLine = rangeColumn.lowLine;
                            rangeLowLine.x = lowLine_1.x;
                            rangeLowLine.y = lowLine_1.y;
                            rangeLowLine.x1 = lowLine_1.x1;
                            rangeLowLine.x2 = lowLine_1.x2;
                            rangeLowLine.y1 = lowLine_1.y1;
                            rangeLowLine.y2 = lowLine_1.y2;
                            // HIGH LINE
                            var rangehighLine = rangeColumn.highLine;
                            rangehighLine.x = highLine_1.x;
                            rangehighLine.y = highLine_1.y;
                            rangehighLine.x1 = highLine_1.x1;
                            rangehighLine.x2 = highLine_1.x2;
                            rangehighLine.y1 = highLine_1.y1;
                            rangehighLine.y2 = highLine_1.y2;
                        }
                    });
                }
            };
            Object.defineProperty(CandlestickSeries.prototype, "xLowField", {
                /**
                 * A data field to look for "low" value for horizontal axis.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Field name
                 */
                get: function () {
                    return this._xLowField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeries.prototype, "yLowField", {
                /**
                 * A data field to look for "low" value for vertical axis.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Field name
                 */
                get: function () {
                    return this._yLowField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeries.prototype, "xHighField", {
                /**
                 * A data field to look for "high" value for horizontal axis.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Field name
                 */
                get: function () {
                    return this._xHighField;
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CandlestickSeries.prototype, "yHighField", {
                /**
                 * A data field to look for "high" value for vertical axis.
                 *
                 * @ignore Exclude from docs
                 * @return {string} Field name
                 */
                get: function () {
                    return this._yHighField;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Sets up which data fields to use for data access.
             */
            CandlestickSeries.prototype.defineFields = function () {
                _super.prototype.defineFields.call(this);
                if (this.baseAxis == this.xAxis) {
                    var yAxisFieldName = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["capitalize"](this.yAxis.axisFieldName);
                    this._yLowField = ("low" + yAxisFieldName + "Y");
                    this._yHighField = ("high" + yAxisFieldName + "Y");
                }
                if (this.baseAxis == this.yAxis) {
                    var xAxisFieldName = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_6__["capitalize"](this.xAxis.axisFieldName);
                    this._xLowField = ("low" + xAxisFieldName + "X");
                    this._xHighField = ("high" + xAxisFieldName + "X");
                }
                this.addValueField(this.xAxis, this._xValueFields, this._xLowField);
                this.addValueField(this.xAxis, this._xValueFields, this._xHighField);
                this.addValueField(this.yAxis, this._yValueFields, this._yLowField);
                this.addValueField(this.yAxis, this._yValueFields, this._yHighField);
            };
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            CandlestickSeries.prototype.createLegendMarker = function (marker) {
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.removeChildren();
                var column = marker.createChild(_elements_Candlestick__WEBPACK_IMPORTED_MODULE_3__["Candlestick"]);
                column.shouldClone = false;
                column.copyFrom(this.columns.template);
                var cw;
                var ch;
                var highLine = column.lowLine;
                var lowLine = column.highLine;
                if (this.baseAxis == this.yAxis) {
                    cw = w / 3;
                    ch = h;
                    highLine.y = h / 2;
                    lowLine.y = h / 2;
                    highLine.x2 = w / 3;
                    lowLine.x2 = w / 3;
                    lowLine.x = w / 3 * 2;
                    column.column.x = w / 3;
                }
                else {
                    cw = w;
                    ch = h / 3;
                    highLine.x = w / 2;
                    lowLine.x = w / 2;
                    highLine.y2 = h / 3;
                    lowLine.y2 = h / 3;
                    lowLine.y = h / 3 * 2;
                    column.column.y = h / 3;
                }
                column.width = cw;
                column.height = ch;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](this, marker, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](this.columns.template, column, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                column.stroke = this.riseFromOpenState.properties.stroke;
                column.fill = column.stroke;
            };
            /**
             * Returns an element to use for Candlestick
             * @ignore
             * @return {this["_column"]} Element.
             */
            CandlestickSeries.prototype.createColumnTemplate = function () {
                return new _elements_Candlestick__WEBPACK_IMPORTED_MODULE_3__["Candlestick"]();
            };
            return CandlestickSeries;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["CandlestickSeries"] = CandlestickSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["CandlestickSeriesDataItem"] = CandlestickSeriesDataItem;
        //# sourceMappingURL=CandlestickSeries.js.map
        /***/ 
    }),
    /* 961 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Candlestick", function () { return Candlestick; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
        /* harmony import */ var _core_elements_Line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(850);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Module that defines everything related to building Candlesticks.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates Candlesticks.
         *
         * @see {@link ICandlestickEvents} for a list of available events
         * @see {@link ICandlestickAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var Candlestick = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Candlestick, _super);
            /**
             * Constructor
             */
            function Candlestick() {
                var _this = _super.call(this) || this;
                _this.className = "Candlestick";
                _this.layout = "none";
                return _this;
            }
            Candlestick.prototype.createAssets = function () {
                _super.prototype.createAssets.call(this);
                this.lowLine = this.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_2__["Line"]);
                this.lowLine.shouldClone = false;
                this.highLine = this.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_2__["Line"]);
                this.highLine.shouldClone = false;
            };
            Candlestick.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.lowLine) {
                    this.lowLine.copyFrom(source.lowLine);
                }
                if (this.highLine) {
                    this.highLine.copyFrom(source.highLine);
                }
            };
            return Candlestick;
        }(_Column__WEBPACK_IMPORTED_MODULE_1__["Column"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["Candlestick"] = Candlestick;
        //# sourceMappingURL=Candlestick.js.map
        /***/ 
    }),
    /* 962 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OHLCSeriesDataItem", function () { return OHLCSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OHLCSeries", function () { return OHLCSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _CandlestickSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(960);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _elements_OHLC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(757);
        /**
         * Candlestick Series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[OHLCSeries]].
         *
         * @see {@link DataItem}
         */
        var OHLCSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OHLCSeriesDataItem, _super);
            /**
             * Defines a type of [[Component]] this data item is used for
             * @type {OHLCSeries}
             * @todo Disabled to work around TS bug (see if we can re-enable it again)
             */
            //public _component!: OHLCSeries;
            /**
             * Constructor
             */
            function OHLCSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "OHLCSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return OHLCSeriesDataItem;
        }(_CandlestickSeries__WEBPACK_IMPORTED_MODULE_1__["CandlestickSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a candlestick graph.
         *
         * @see {@link IOHLCSeriesEvents} for a list of available Events
         * @see {@link IOHLCSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var OHLCSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OHLCSeries, _super);
            /**
             * Constructor
             */
            function OHLCSeries() {
                var _this = _super.call(this) || this;
                _this.className = "OHLCSeries";
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            OHLCSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_7__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("OHLC Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {OHLCSeriesDataItem} Data Item
             */
            OHLCSeries.prototype.createDataItem = function () {
                return new OHLCSeriesDataItem();
            };
            OHLCSeries.prototype.validateCandlestick = function (dataItem) {
                var column = dataItem.column;
                if (column) {
                    var openLine_1 = column.openLine;
                    var highLowLine_1 = column.highLowLine;
                    var closeLine_1 = column.closeLine;
                    if (this.baseAxis == this.xAxis) {
                        var x = column.pixelWidth / 2;
                        highLowLine_1.x = x;
                        var open_1 = dataItem.getWorkingValue(this.yOpenField);
                        var close_1 = dataItem.getWorkingValue(this.yField);
                        var yOpen = this.yAxis.getY(dataItem, this.yOpenField);
                        var yClose = this.yAxis.getY(dataItem, this.yField);
                        var yLow = this.yAxis.getY(dataItem, this.yLowField);
                        var yHigh = this.yAxis.getY(dataItem, this.yHighField);
                        var pixelY = column.pixelY;
                        openLine_1.y1 = yOpen - pixelY;
                        openLine_1.y2 = yOpen - pixelY;
                        openLine_1.x1 = 0;
                        openLine_1.x2 = x;
                        closeLine_1.y1 = yClose - pixelY;
                        closeLine_1.y2 = yClose - pixelY;
                        closeLine_1.x1 = x;
                        closeLine_1.x2 = 2 * x;
                        highLowLine_1.y1 = yHigh - pixelY;
                        highLowLine_1.y2 = yLow - pixelY;
                    }
                    if (this.baseAxis == this.yAxis) {
                        var y = column.pixelHeight / 2;
                        highLowLine_1.y = y;
                        var open_2 = dataItem.getWorkingValue(this.xOpenField);
                        var close_2 = dataItem.getWorkingValue(this.xField);
                        var xOpen = this.xAxis.getX(dataItem, this.xOpenField);
                        var xClose = this.xAxis.getX(dataItem, this.xField);
                        var xLow = this.xAxis.getX(dataItem, this.xLowField);
                        var xHigh = this.xAxis.getX(dataItem, this.xHighField);
                        var pixelX = column.pixelX;
                        openLine_1.x1 = xOpen - pixelX;
                        openLine_1.x2 = xOpen - pixelX;
                        openLine_1.y1 = y;
                        openLine_1.y2 = 2 * y;
                        closeLine_1.x1 = xClose - pixelX;
                        closeLine_1.x2 = xClose - pixelX;
                        closeLine_1.y1 = 0;
                        closeLine_1.y2 = y;
                        highLowLine_1.x1 = xHigh - pixelX;
                        highLowLine_1.x2 = xLow - pixelX;
                    }
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_6__["each"](this.axisRanges.iterator(), function (axisRange) {
                        var rangeColumn = dataItem.rangesColumns.getKey(axisRange.uid);
                        if (rangeColumn) {
                            var rangeOpenLine = rangeColumn.openLine;
                            rangeOpenLine.x = openLine_1.x;
                            rangeOpenLine.y = openLine_1.y;
                            rangeOpenLine.x1 = openLine_1.x1;
                            rangeOpenLine.x2 = openLine_1.x2;
                            rangeOpenLine.y1 = openLine_1.y1;
                            rangeOpenLine.y2 = openLine_1.y2;
                            var rangeCloseLine = rangeColumn.closeLine;
                            rangeCloseLine.x = closeLine_1.x;
                            rangeCloseLine.y = closeLine_1.y;
                            rangeCloseLine.x1 = closeLine_1.x1;
                            rangeCloseLine.x2 = closeLine_1.x2;
                            rangeCloseLine.y1 = closeLine_1.y1;
                            rangeCloseLine.y2 = closeLine_1.y2;
                            var rangeHighLowLine = rangeColumn.highLowLine;
                            rangeHighLowLine.x = highLowLine_1.x;
                            rangeHighLowLine.y = highLowLine_1.y;
                            rangeHighLowLine.x1 = highLowLine_1.x1;
                            rangeHighLowLine.x2 = highLowLine_1.x2;
                            rangeHighLowLine.y1 = highLowLine_1.y1;
                            rangeHighLowLine.y2 = highLowLine_1.y2;
                        }
                    });
                }
            };
            /**
             * Creates elements in related legend container, that mimics the look of this
             * Series.
             *
             * @ignore Exclude from docs
             * @param {Container}  marker  Legend item container
             */
            OHLCSeries.prototype.createLegendMarker = function (marker) {
                var w = marker.pixelWidth;
                var h = marker.pixelHeight;
                marker.removeChildren();
                var column = marker.createChild(_elements_OHLC__WEBPACK_IMPORTED_MODULE_3__["OHLC"]);
                column.shouldClone = false;
                column.copyFrom(this.columns.template);
                var cw;
                var ch;
                var openLine = column.openLine;
                var closeLine = column.closeLine;
                var highLowLine = column.highLowLine;
                if (this.baseAxis == this.yAxis) {
                    cw = w / 3;
                    ch = h;
                    highLowLine.y = h / 2;
                    highLowLine.x2 = w;
                    openLine.x = w / 3 * 2;
                    openLine.y2 = h / 2;
                    closeLine.x = w / 3;
                    closeLine.y2 = h;
                    closeLine.y1 = h / 2;
                }
                else {
                    cw = w;
                    ch = h / 3;
                    highLowLine.x = w / 2;
                    highLowLine.y2 = h;
                    openLine.y = h / 3 * 2;
                    openLine.x2 = w / 2;
                    closeLine.y = h / 3;
                    closeLine.x2 = w;
                    closeLine.x1 = w / 2;
                }
                column.width = cw;
                column.height = ch;
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__["copyProperties"](this, marker, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                _core_utils_Object__WEBPACK_IMPORTED_MODULE_5__["copyProperties"](this.columns.template, column, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                column.stroke = this.riseFromOpenState.properties.stroke;
            };
            /**
             * Returns an element to use for Candlestick
             * @ignore
             * @return {this["_column"]} Element.
             */
            OHLCSeries.prototype.createColumnTemplate = function () {
                return new _elements_OHLC__WEBPACK_IMPORTED_MODULE_3__["OHLC"]();
            };
            return OHLCSeries;
        }(_CandlestickSeries__WEBPACK_IMPORTED_MODULE_1__["CandlestickSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["OHLCSeries"] = OHLCSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["OHLCSeriesDataItem"] = OHLCSeriesDataItem;
        //# sourceMappingURL=OHLCSeries.js.map
        /***/ 
    }),
    /* 963 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OHLC", function () { return OHLC; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Candlestick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(961);
        /* harmony import */ var _core_elements_Line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(850);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Module that defines everything related to building OHLCs.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates OHLCs.
         *
         * @see {@link IOHLCEvents} for a list of available events
         * @see {@link IOHLCAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var OHLC = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OHLC, _super);
            /**
             * Constructor
             */
            function OHLC() {
                var _this = _super.call(this) || this;
                _this.className = "OHLC";
                _this.layout = "none";
                return _this;
            }
            OHLC.prototype.createAssets = function () {
                //super.createAssets();
                this.openLine = this.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_2__["Line"]);
                this.openLine.shouldClone = false;
                this.highLowLine = this.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_2__["Line"]);
                this.highLowLine.shouldClone = false;
                this.closeLine = this.createChild(_core_elements_Line__WEBPACK_IMPORTED_MODULE_2__["Line"]);
                this.closeLine.shouldClone = false;
            };
            OHLC.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.openLine) {
                    this.openLine.copyFrom(source.openLine);
                }
                if (this.highLowLine) {
                    this.highLowLine.copyFrom(source.highLowLine);
                }
                if (this.closeLine) {
                    this.closeLine.copyFrom(source.closeLine);
                }
            };
            return OHLC;
        }(_Candlestick__WEBPACK_IMPORTED_MODULE_1__["Candlestick"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["OHLC"] = OHLC;
        //# sourceMappingURL=OHLC.js.map
        /***/ 
    }),
    /* 964 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StepLineSeriesDataItem", function () { return StepLineSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StepLineSeries", function () { return StepLineSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _LineSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(926);
        /* harmony import */ var _StepLineSeriesSegment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(965);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /**
         * Step line series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[StepLineSeries]].
         *
         * @see {@link DataItem}
         */
        var StepLineSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](StepLineSeriesDataItem, _super);
            /**
             * Constructor
             */
            function StepLineSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "StepLineSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return StepLineSeriesDataItem;
        }(_LineSeries__WEBPACK_IMPORTED_MODULE_1__["LineSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a step line graph.
         *
         * @see {@link IStepLineSeriesEvents} for a list of available Events
         * @see {@link IStepLineSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var StepLineSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](StepLineSeries, _super);
            /**
             * Constructor
             */
            function StepLineSeries() {
                var _this = _super.call(this) || this;
                _this.className = "StepLineSeries";
                _this.applyTheme();
                _this.startLocation = 0;
                _this.endLocation = 1;
                return _this;
            }
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {StepLineSeriesDataItem} Data Item
             */
            StepLineSeries.prototype.createDataItem = function () {
                return new StepLineSeriesDataItem();
            };
            /**
             * [addPoints description]
             *
             * @todo Description
             * @param {IPoint[]}           points     [description]
             * @param {this["_dataItem"]}  dataItem   [description]
             * @param {string}             xField     [description]
             * @param {string}             yField     [description]
             * @param {boolean}            backwards  [description]
             */
            StepLineSeries.prototype.addPoints = function (points, dataItem, xField, yField, backwards) {
                var startLocation = this.startLocation;
                var endLocation = this.endLocation;
                var x0 = this.xAxis.getX(dataItem, xField, startLocation);
                var y0 = this.yAxis.getY(dataItem, yField, startLocation);
                var x1 = this.xAxis.getX(dataItem, xField, endLocation);
                var y1 = this.yAxis.getY(dataItem, yField, endLocation);
                x0 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["fitToRange"](x0, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                y0 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["fitToRange"](y0, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                x1 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["fitToRange"](x1, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                y1 = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["fitToRange"](y1, -20000, 20000); // from geometric point of view this is not right, but practically it's ok. this is done to avoid too big objects.
                // this might make an impression that points are duplicated, and they indeed are, but this is needed to handle gaps in data
                if (!this.noRisers && this.connect) {
                    if (points.length > 1) {
                        var prevPoint = points[points.length - 1];
                        if (this.baseAxis == this.xAxis) {
                            if (backwards) {
                                points.push({ x: prevPoint.x, y: y1 });
                            }
                            else {
                                points.push({ x: x0, y: prevPoint.y });
                            }
                        }
                        if (this.baseAxis == this.yAxis) {
                            if (backwards) {
                                points.push({ x: x1, y: prevPoint.y });
                            }
                            else {
                                points.push({ x: prevPoint.x, y: y0 });
                            }
                        }
                    }
                }
                var point0 = { x: x0, y: y0 };
                var point1 = { x: x1, y: y1 };
                if (backwards) {
                    points.push(point1, point0);
                }
                else {
                    points.push(point0, point1);
                }
            };
            /**
             * Draws the line segment.
             *
             * @param {LineSeriesSegment}  segment     Segment
             * @param {IPoint[]}           points      Segment points
             * @param {IPoint[]}           closePoints Segment close points
             */
            StepLineSeries.prototype.drawSegment = function (segment, points, closePoints) {
                var vertical = false;
                if (this.yAxis == this.baseAxis) {
                    vertical = true;
                }
                segment.drawSegment(points, closePoints, this.tensionX, this.tensionY, this.noRisers, vertical);
            };
            /**
             * @ignore
             */
            StepLineSeries.prototype.createSegment = function () {
                return new _StepLineSeriesSegment__WEBPACK_IMPORTED_MODULE_2__["StepLineSeriesSegment"]();
            };
            Object.defineProperty(StepLineSeries.prototype, "noRisers", {
                /**
                 * @return {boolean} No risers
                 */
                get: function () {
                    return this.getPropertyValue("noRisers");
                },
                /**
                 * Specifies if step line series should draw only horizontal (or only
                 * vertical, depending on base axis) lines, instead of connecting them with
                 * vertical (or horizontal) lines.
                 *
                 * @default false
                 * @param {boolean}  value  No risers
                 */
                set: function (value) {
                    if (this.setPropertyValue("noRisers", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(StepLineSeries.prototype, "startLocation", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("startLocation");
                },
                /**
                 * start location of the step
                 *
                 * @param {number} value Location (0-1)
                 * @default 0
                 */
                set: function (value) {
                    if (this.setPropertyValue("startLocation", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(StepLineSeries.prototype, "endLocation", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("endLocation");
                },
                /**
                 * Step end location.
                 *
                 * @param {number} value Location (0-1)
                 * #default 1
                 */
                set: function (value) {
                    if (this.setPropertyValue("endLocation", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            return StepLineSeries;
        }(_LineSeries__WEBPACK_IMPORTED_MODULE_1__["LineSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["StepLineSeries"] = StepLineSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["StepLineSeriesDataItem"] = StepLineSeriesDataItem;
        //# sourceMappingURL=StepLineSeries.js.map
        /***/ 
    }),
    /* 965 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StepLineSeriesSegment", function () { return StepLineSeriesSegment; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _LineSeriesSegment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(927);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /**
         * Line series segment module.
         * @todo Add description about what this is
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Represents a line series segment.
         *
         * A line segment can be used to apply different properties to a part of the
         * line series, between two data points.
         *
         * @see {@link IStepLineSeriesSegmentEvents} for a list of available events
         * @see {@link IStepLineSeriesSegmentAdapters} for a list of available Adapters
         * @todo Example
         */
        var StepLineSeriesSegment = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](StepLineSeriesSegment, _super);
            /**
             * Constructor
             */
            function StepLineSeriesSegment() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "StepLineSeriesSegment";
                return _this;
            }
            /**
             * Draws the series segment.
             *
             * @ignore Exclude from docs
             * @param {IPoint[]}  points       Points to connect
             * @param {IPoint[]}  closePoints  ?
             * @param {number}    smoothnessX  Horizontal bezier setting (?)
             * @param {number}    smoothnessY  Vertical bezier setting (?)
             */
            StepLineSeriesSegment.prototype.drawSegment = function (points, closePoints, smoothnessX, smoothnessY, noRisers, vertical) {
                if (points.length > 0 && closePoints.length > 0) {
                    if (noRisers) {
                        var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]);
                        if (points.length > 0) {
                            for (var i = 1; i < points.length; i++) {
                                var point = points[i];
                                if (i / 2 == Math.round(i / 2)) {
                                    path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](point);
                                }
                                else {
                                    path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](point);
                                }
                            }
                        }
                        this.strokeSprite.path = path;
                        if (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) { // helps to avoid drawing fill object if fill is not visible
                            path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["polyline"](points);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](closePoints[0]) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["polyline"](closePoints);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](points[0]);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                            this.fillSprite.path = path;
                        }
                        else {
                        }
                    }
                    else {
                        var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["polyline"](points);
                        this.strokeSprite.path = path;
                        if (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) { // helps to avoid drawing fill object if fill is not visible
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](closePoints[0]) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["polyline"](closePoints);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["lineTo"](points[0]);
                            path += _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["closePath"]();
                            this.fillSprite.path = path;
                        }
                    }
                }
            };
            return StepLineSeriesSegment;
        }(_LineSeriesSegment__WEBPACK_IMPORTED_MODULE_1__["LineSeriesSegment"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["StepLineSeriesSegment"] = StepLineSeriesSegment;
        //# sourceMappingURL=StepLineSeriesSegment.js.map
        /***/ 
    }),
    /* 966 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarColumnSeriesDataItem", function () { return RadarColumnSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarColumnSeries", function () { return RadarColumnSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _elements_RadarColumn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(967);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(761);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(755);
        /**
         * Radar column series module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[RadarColumnSeries]].
         *
         * @see {@link DataItem}
         */
        var RadarColumnSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarColumnSeriesDataItem, _super);
            /**
             * Constructor
             */
            function RadarColumnSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ColumnSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return RadarColumnSeriesDataItem;
        }(_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a 3D column graph.
         *
         * @see {@link IRadarColumnSeriesEvents} for a list of available Events
         * @see {@link IRadarColumnSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var RadarColumnSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarColumnSeries, _super);
            /**
             * Constructor
             */
            function RadarColumnSeries() {
                var _this = _super.call(this) || this;
                _this.className = "RadarColumnSeries";
                _this.applyTheme();
                return _this;
            }
            /**
             * Creates and returns a RadarColumn element to use as column in radar chart.
             *
             * @return {this["_column"]} RadarColumn.
             */
            RadarColumnSeries.prototype.createColumnTemplate = function () {
                return new _elements_RadarColumn__WEBPACK_IMPORTED_MODULE_3__["RadarColumn"]();
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            RadarColumnSeries.prototype.validate = function () {
                // so that radius would be updated
                if (this.chart.invalid) {
                    this.chart.validate();
                }
                _super.prototype.validate.call(this);
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {RadarColumnSeriesDataItem}  dataItem  Data item
             */
            RadarColumnSeries.prototype.validateDataElementReal = function (dataItem) {
                var _this = this;
                var startAngle = this.chart.startAngle;
                var endAngle = this.chart.endAngle;
                var yField = this.yField;
                var yOpenField = this.yOpenField;
                var xField = this.xField;
                var xOpenField = this.xOpenField;
                var lAngle;
                var rAngle;
                var tRadius;
                var bRadius;
                var startLocation = this.getStartLocation(dataItem);
                var endLocation = this.getEndLocation(dataItem);
                var cellAngle = (endAngle - startAngle) / (this.dataItems.length * (this.end - this.start));
                startAngle = startAngle + startLocation * cellAngle;
                endAngle = endAngle - (1 - endLocation) * cellAngle;
                var template = this.columns.template;
                var percentWidth = template.percentWidth;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNaN"](percentWidth)) {
                    percentWidth = 100;
                }
                var offset = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["round"]((endLocation - startLocation) * (1 - percentWidth / 100) / 2, 5);
                startLocation += offset;
                endLocation -= offset;
                if (this.baseAxis == this.xAxis) {
                    tRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"]({ x: this.yAxis.getX(dataItem, yField, dataItem.locations[yField], "valueY"), y: this.yAxis.getY(dataItem, yField, dataItem.locations[yField], "valueY") });
                    bRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"]({ x: this.yAxis.getX(dataItem, yOpenField, dataItem.locations[yOpenField], "valueY"), y: this.yAxis.getY(dataItem, yOpenField, dataItem.locations[yOpenField], "valueY") });
                    lAngle = this.xAxis.getAngle(dataItem, xOpenField, startLocation, "valueX");
                    rAngle = this.xAxis.getAngle(dataItem, xField, endLocation, "valueX");
                }
                else {
                    tRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"]({ x: this.yAxis.getX(dataItem, yField, startLocation, "valueY"), y: this.yAxis.getY(dataItem, yField, startLocation, "valueY") });
                    bRadius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"]({ x: this.yAxis.getX(dataItem, yOpenField, endLocation, "valueY"), y: this.yAxis.getY(dataItem, yOpenField, endLocation, "valueY") });
                    lAngle = this.xAxis.getAngle(dataItem, xField, dataItem.locations[xField], "valueX");
                    rAngle = this.xAxis.getAngle(dataItem, xOpenField, dataItem.locations[xOpenField], "valueX");
                }
                if (rAngle < lAngle) {
                    var temp = rAngle;
                    rAngle = lAngle;
                    lAngle = temp;
                }
                lAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](lAngle, startAngle, endAngle);
                rAngle = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["fitToRange"](rAngle, startAngle, endAngle);
                var radarColumn = dataItem.column;
                if (!radarColumn) {
                    radarColumn = this.columns.create();
                    dataItem.column = radarColumn;
                    _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["forceCopyProperties"](this.columns.template, radarColumn, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                    dataItem.addSprite(radarColumn);
                    this.setColumnStates(radarColumn);
                }
                var slice = radarColumn.radarColumn;
                slice.startAngle = lAngle;
                var arc = rAngle - lAngle;
                if (arc > 0) {
                    slice.arc = arc;
                    slice.radius = tRadius;
                    slice.innerRadius = bRadius;
                    radarColumn.__disabled = false;
                    radarColumn.parent = this.columnsContainer;
                    _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["each"](this.axisRanges.iterator(), function (axisRange) {
                        var rangeColumn = dataItem.rangesColumns.getKey(axisRange.uid);
                        if (!rangeColumn) {
                            rangeColumn = _this.columns.create();
                            _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["forceCopyProperties"](_this.columns.template, rangeColumn, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]);
                            _core_utils_Object__WEBPACK_IMPORTED_MODULE_7__["copyProperties"](axisRange.contents, rangeColumn, _core_Sprite__WEBPACK_IMPORTED_MODULE_2__["visualProperties"]); // need this because 3d columns are not in the same container
                            if (rangeColumn.dataItem) {
                                _core_utils_Array__WEBPACK_IMPORTED_MODULE_10__["remove"](rangeColumn.dataItem.sprites, rangeColumn);
                            }
                            dataItem.addSprite(rangeColumn);
                            _this.setColumnStates(rangeColumn);
                            dataItem.rangesColumns.setKey(axisRange.uid, rangeColumn);
                        }
                        var slice = radarColumn.radarColumn;
                        slice.startAngle = lAngle;
                        slice.arc = arc;
                        slice.radius = tRadius;
                        slice.innerRadius = bRadius;
                        if (slice.invalid) {
                            slice.validate(); // validate as if it was used previously, it will flicker with previous dimensions
                        }
                        rangeColumn.__disabled = false;
                        rangeColumn.parent = _this.columnsContainer;
                    });
                }
                else {
                    this.disableUnusedColumns(dataItem);
                }
            };
            /**
             * [getPoint description]
             *
             * @todo Description
             * @param {RadarColumnSeriesDataItem} dataItem  [description]
             * @param {string}                    xKey      [description]
             * @param {string}                    yKey      [description]
             * @param {number}                    locationX [description]
             * @param {number}                    locationY [description]
             * @param {string}                    stackKeyX [description]
             * @param {string}                    stackKeyY [description]
             */
            RadarColumnSeries.prototype.getPoint = function (dataItem, xKey, yKey, locationX, locationY, stackKeyX, stackKeyY) {
                if (!stackKeyX) {
                    stackKeyX = "valueX";
                }
                if (!stackKeyY) {
                    stackKeyY = "valueY";
                }
                var x = this.yAxis.getX(dataItem, yKey, locationY, stackKeyY);
                var y = this.yAxis.getY(dataItem, yKey, locationY, stackKeyY);
                var radius = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["getDistance"]({ x: x, y: y });
                var angle = this.xAxis.getAngle(dataItem, xKey, locationX, stackKeyX);
                return { x: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["cos"](angle), y: radius * _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["sin"](angle) };
            };
            /**
             * Returns an SVG path to be used as a mask for the series.
             *
             * @return {string} SVG path
             */
            RadarColumnSeries.prototype.getMaskPath = function () {
                var renderer = this.yAxis.renderer;
                return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["arc"](renderer.startAngle, renderer.endAngle - renderer.startAngle, renderer.pixelRadius, renderer.pixelInnerRadius);
            };
            return RadarColumnSeries;
        }(_series_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["RadarColumnSeries"] = RadarColumnSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["RadarColumnSeriesDataItem"] = RadarColumnSeriesDataItem;
        //# sourceMappingURL=RadarColumnSeries.js.map
        /***/ 
    }),
    /* 967 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadarColumn", function () { return RadarColumn; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
        /* harmony import */ var _core_elements_Slice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(877);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Module that defines everything related to building RadarColumns.
         * It is a container which has radarColumn element which is a Slice.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates RadarColumns.
         *
         * @see {@link IRadarColumnEvents} for a list of available events
         * @see {@link IRadarColumnAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var RadarColumn = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RadarColumn, _super);
            /**
             * Constructor
             */
            function RadarColumn() {
                var _this = _super.call(this) || this;
                _this.className = "RadarColumn";
                return _this;
            }
            RadarColumn.prototype.createAssets = function () {
                this.radarColumn = this.createChild(_core_elements_Slice__WEBPACK_IMPORTED_MODULE_2__["Slice"]);
                this.radarColumn.shouldClone = false;
                this.radarColumn.strokeOpacity = undefined;
                // some dirty hack so that if user access column, it won't get error
                this.column = this.radarColumn;
            };
            RadarColumn.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.radarColumn) {
                    this.radarColumn.copyFrom(source.radarColumn);
                }
            };
            /**
             * X coordinate for the slice tooltip.
             *
             * @return {number} X
             */
            RadarColumn.prototype.getTooltipX = function () {
                var value = this.getPropertyValue("tooltipX");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](value)) {
                    value = this.radarColumn.tooltipX;
                }
                return value;
            };
            /**
             * Y coordinate for the slice tooltip.
             *
             * @return {number} Y
             */
            RadarColumn.prototype.getTooltipY = function () {
                var value = this.getPropertyValue("tooltipX");
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](value)) {
                    value = this.radarColumn.tooltipY;
                }
                return value;
            };
            return RadarColumn;
        }(_Column__WEBPACK_IMPORTED_MODULE_1__["Column"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["RadarColumn"] = RadarColumn;
        //# sourceMappingURL=RadarColumn.js.map
        /***/ 
    }),
    /* 968 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunnelSeriesDataItem", function () { return FunnelSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunnelSeries", function () { return FunnelSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PercentSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(934);
        /* harmony import */ var _elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(969);
        /* harmony import */ var _elements_FunnelTick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(970);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(769);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(754);
        /**
         * Defines Funnel Chart Series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo: sequenced?
        /**
         * Defines a [[DataItem]] for [[FunnelSeries]].
         *
         * @see {@link DataItem}
         */
        var FunnelSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FunnelSeriesDataItem, _super);
            /**
             * Constructor
             */
            function FunnelSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "FunnelSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(FunnelSeriesDataItem.prototype, "sliceLink", {
                /**
                 * A [[FunnelSlice]] element, related to this data item ([[FunnelSlice]]).
                 *
                 * @readonly
                 * @return {FunnelSlice} Slice element
                 */
                get: function () {
                    var _this = this;
                    if (!this._sliceLink) {
                        var sliceLink_1 = this.component.sliceLinks.create();
                        this._sliceLink = sliceLink_1;
                        this._disposers.push(sliceLink_1);
                        sliceLink_1.parent = this.component.slicesContainer;
                        this._disposers.push(new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_10__["Disposer"](function () {
                            _this.component.sliceLinks.removeValue(sliceLink_1);
                        }));
                        this.addSprite(sliceLink_1);
                        sliceLink_1.visible = this.visible;
                    }
                    return this._sliceLink;
                },
                enumerable: true,
                configurable: true
            });
            return FunnelSeriesDataItem;
        }(_PercentSeries__WEBPACK_IMPORTED_MODULE_1__["PercentSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a FunnelSlice series on a [[SlicedChart]].
         *
         * @see {@link IFunnelSeriesEvents} for a list of available Events
         * @see {@link IFunnelSeriesAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for documentation
         * @important
         */
        var FunnelSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FunnelSeries, _super);
            /**
             * Constructor
             */
            function FunnelSeries() {
                var _this = _super.call(this) || this;
                _this._nextY = 0;
                _this.className = "FunnelSeries";
                _this.orientation = "vertical";
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_9__["percent"])(100);
                _this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_9__["percent"])(100);
                _this.slicesContainer.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_9__["percent"])(100);
                _this.slicesContainer.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_9__["percent"])(100);
                _this.bottomRatio = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * Creates a [[FunnelSlice]] element.
             *
             * @return {FunnelSlice} Slice
             */
            FunnelSeries.prototype.createSlice = function () {
                return new _elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_2__["FunnelSlice"]();
            };
            /**
             * Creates a [[FunnelTick]] element.
             *
             * @return {FunnelTick} Tick
             */
            FunnelSeries.prototype.createTick = function () {
                return new _elements_FunnelTick__WEBPACK_IMPORTED_MODULE_3__["FunnelTick"]();
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            FunnelSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Funnel Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {FunnelSeriesDataItem} Data Item
             */
            FunnelSeries.prototype.createDataItem = function () {
                return new FunnelSeriesDataItem();
            };
            /**
             * Inits FunnelSlice.
             *
             * @param  {FunnelSlice} slice to init
             */
            FunnelSeries.prototype.initSlice = function (slice) {
                slice.isMeasured = false;
                slice.defaultState.properties.scale = 1;
                slice.observe("scale", this.handleSliceScale, this);
                slice.observe(["dx", "dy", "x", "y"], this.handleSliceMove, this);
                slice.tooltipText = "{category}: {value.percent.formatNumber('#.#')}% ({value.value})";
                var hoverState = slice.states.create("hover");
                hoverState.properties.expandDistance = 0.2;
            };
            /**
             * [initLabel description]
             *
             * @todo Description
             * @param {this["_label"]} label [description]
             */
            FunnelSeries.prototype.initLabel = function (label) {
                _super.prototype.initLabel.call(this, label);
                label.verticalCenter = "middle";
                label.horizontalCenter = "middle";
                label.isMeasured = true;
                label.padding(5, 5, 5, 5);
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            FunnelSeries.prototype.validate = function () {
                _super.prototype.validate.call(this);
                this._nextY = 0;
            };
            /**
             * [validateDataElements description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            FunnelSeries.prototype.validateDataElements = function () {
                var slicesContainer = this.slicesContainer;
                var labelsContainer = this.labelsContainer;
                var labelTemplate = this.labels.template;
                labelsContainer.layout = "absolute";
                if (this.alignLabels) {
                    labelTemplate.interactionsEnabled = true;
                    slicesContainer.isMeasured = true;
                    labelsContainer.isMeasured = true;
                    labelsContainer.margin(10, 10, 10, 10);
                    this.ticks.template.disabled = false;
                    labelTemplate.horizontalCenter = "left";
                    if (this.orientation == "horizontal") {
                        this.layout = "vertical";
                    }
                    else {
                        this.layout = "horizontal";
                    }
                }
                else {
                    this.layout = "absolute";
                    labelTemplate.interactionsEnabled = false;
                    slicesContainer.isMeasured = false;
                    labelsContainer.isMeasured = true;
                    this.ticks.template.disabled = true;
                    labelTemplate.horizontalCenter = "middle";
                }
                var total = 0;
                var count = 0;
                this.dataItems.each(function (dItem) {
                    if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](dItem.value)) {
                        count++;
                        total += dItem.getWorkingValue("value") / dItem.value;
                    }
                });
                this._total = 1 / count * total;
                this._count = count;
                _super.prototype.validateDataElements.call(this);
                this.arrangeLabels();
            };
            /**
             * [getNextValue description]
             *
             * @todo Description
             * @param  {FunnelSeriesDataItem}  dataItem  [description]
             * @return {number}                          [description]
             */
            FunnelSeries.prototype.getNextValue = function (dataItem) {
                var index = dataItem.index;
                var nextValue = dataItem.getWorkingValue("value");
                if (index < this.dataItems.length - 1) {
                    var nextItem = this.dataItems.getIndex(index + 1);
                    nextValue = nextItem.getWorkingValue("value");
                    if (!nextItem.visible || nextItem.isHiding) {
                        return this.getNextValue(nextItem);
                    }
                }
                return nextValue;
            };
            /**
             * [formDataElement description]
             *
             * @todo Description
             */
            FunnelSeries.prototype.formDataElement = function () {
            };
            /**
             * Validates data item's element, effectively redrawing it.
             *
             * @ignore Exclude from docs
             * @param {FunnelSeriesDataItem}  dataItem  Data item
             */
            FunnelSeries.prototype.validateDataElement = function (dataItem) {
                var percentValue = dataItem.values.value.percent;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["hasValue"](dataItem.value)) {
                    // FunnelSlice
                    var slice = dataItem.slice;
                    slice.orientation = this.orientation;
                    var sliceLink = dataItem.sliceLink;
                    sliceLink.orientation = this.orientation;
                    var tick = dataItem.tick;
                    var label = dataItem.label;
                    tick.slice = slice;
                    tick.label = label;
                    this.decorateSlice(dataItem);
                    sliceLink.fill = slice.fill;
                    if (dataItem.index == this.dataItems.length - 1) {
                        sliceLink.disabled = true;
                    }
                    // do this at the end, otherwise bullets won't be positioned properly
                    _super.prototype.validateDataElement.call(this, dataItem);
                }
            };
            /**
             * [decorateSlice description]
             *
             * @todo Description
             * @param {this["_dataItem"]} dataItem [description]
             */
            FunnelSeries.prototype.decorateSlice = function (dataItem) {
                var slice = dataItem.slice;
                var sliceLink = dataItem.sliceLink;
                var label = dataItem.label;
                var tick = dataItem.tick;
                var maxWidth = this.slicesContainer.innerWidth;
                var maxHeight = this.slicesContainer.innerHeight;
                var nextValue = this.getNextValue(dataItem);
                var workingValue = dataItem.getWorkingValue("value");
                var bottomRatio = this.bottomRatio;
                if (this.orientation == "vertical") {
                    var linkHeight = sliceLink.pixelHeight * workingValue / dataItem.value;
                    maxHeight = maxHeight + linkHeight; // to avoid one link gap in the bottom
                    slice.topWidth = workingValue / this.dataItem.values.value.high * maxWidth;
                    slice.bottomWidth = (workingValue - (workingValue - nextValue) * bottomRatio) / this.dataItem.values.value.high * maxWidth;
                    sliceLink.topWidth = slice.bottomWidth;
                    sliceLink.bottomWidth = (workingValue - (workingValue - nextValue)) / this.dataItem.values.value.high * maxWidth;
                    slice.y = this._nextY;
                    slice.height = _core_utils_Math__WEBPACK_IMPORTED_MODULE_6__["max"](0, maxHeight / this._count * workingValue / dataItem.value * 1 / this._total - linkHeight);
                    slice.x = maxWidth / 2;
                    if (!this.alignLabels) {
                        label.x = slice.x;
                    }
                    else {
                        label.x = 0;
                    }
                    label.y = slice.pixelY + slice.pixelHeight * tick.locationY;
                    this._nextY += slice.pixelHeight + linkHeight;
                    sliceLink.y = this._nextY - linkHeight;
                    sliceLink.x = slice.x;
                }
                else {
                    var linkWidth = sliceLink.pixelWidth * workingValue / dataItem.value;
                    maxWidth = maxWidth + linkWidth; // to avoid one link gap in the bottom
                    slice.topWidth = workingValue / this.dataItem.values.value.high * maxHeight;
                    slice.bottomWidth = (workingValue - (workingValue - nextValue) * bottomRatio) / this.dataItem.values.value.high * maxHeight;
                    sliceLink.topWidth = slice.bottomWidth;
                    sliceLink.bottomWidth = (workingValue - (workingValue - nextValue)) / this.dataItem.values.value.high * maxHeight;
                    slice.x = this._nextY;
                    slice.width = maxWidth / this._count * workingValue / dataItem.value * 1 / this._total - linkWidth;
                    slice.y = maxHeight / 2;
                    if (!this.alignLabels) {
                        label.y = slice.y;
                    }
                    else {
                        label.y = this.labelsContainer.measuredHeight;
                    }
                    label.x = slice.pixelX + slice.pixelWidth * tick.locationX;
                    this._nextY += slice.pixelWidth + linkWidth;
                    sliceLink.x = this._nextY - linkWidth;
                    sliceLink.y = slice.y;
                }
            };
            /**
             * [arrangeLabels description]
             *
             * @todo Description
             */
            FunnelSeries.prototype.arrangeLabels = function () {
                if (this.alignLabels) {
                    var count = this.labels.length;
                    if (count > 1) {
                        var lastLabel = this.labels.getIndex(count - 1);
                        var lastY = lastLabel.pixelY;
                        var lastX = lastLabel.pixelX;
                        if (this.labels.length > 1) {
                            for (var i = count - 2; i >= 0; i--) {
                                var label = this.labels.getIndex(i);
                                if (label.visible) {
                                    if (label.invalid) {
                                        label.validate();
                                    }
                                    if (this.orientation == "vertical") {
                                        if (label.pixelY + label.measuredHeight > lastY) {
                                            label.y = lastY - label.measuredHeight;
                                        }
                                    }
                                    // horizontal
                                    else {
                                        if (label.pixelX + label.measuredWidth > lastX) {
                                            label.x = lastX - label.measuredWidth;
                                        }
                                    }
                                    lastY = label.pixelY;
                                    lastX = label.pixelX;
                                }
                            }
                            lastY = 0;
                            lastX = 0;
                            for (var i = 0; i < count; i++) {
                                var label = this.labels.getIndex(i);
                                if (label.visible) {
                                    if (label.invalid) {
                                        label.validate();
                                    }
                                    if (this.orientation == "vertical") {
                                        if (label.pixelY < lastY) {
                                            label.y = lastY;
                                        }
                                    }
                                    // horizontal
                                    else {
                                        if (label.pixelX < lastX) {
                                            label.x = lastX;
                                        }
                                    }
                                    lastY += label.measuredHeight;
                                    lastX += label.measuredWidth;
                                }
                            }
                        }
                    }
                }
            };
            /**
             * Positions series bullet.
             *
             * @ignore Exclude from docs
             * @param {Bullet}  bullet  Bullet
             */
            FunnelSeries.prototype.positionBullet = function (bullet) {
                _super.prototype.positionBullet.call(this, bullet);
                var dataItem = bullet.dataItem;
                var slice = dataItem.slice;
                var locationX = bullet.locationX;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](locationX)) {
                    locationX = 0.5;
                }
                var locationY = bullet.locationY;
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](locationY)) {
                    locationY = 1;
                }
                bullet.x = slice.measuredWidth * locationX;
                bullet.y = slice.measuredHeight * locationY;
            };
            Object.defineProperty(FunnelSeries.prototype, "orientation", {
                /**
                 * @return {Orientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                 * Orientation of the funnel slices: "horizontal" or "vertical" (default).
                 *
                 * @default "vertical"
                 * @param {Orientation} value Orientation
                 */
                set: function (value) {
                    if (this.setPropertyValue("orientation", value)) {
                        this.invalidateDataRange();
                        if (value == "vertical") {
                            this.ticks.template.locationX = 1;
                            this.ticks.template.locationY = 0.5;
                            this.labels.template.rotation = 0;
                        }
                        else {
                            this.ticks.template.locationX = 0.5;
                            this.ticks.template.locationY = 1;
                            this.labels.template.rotation = -90;
                        }
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelSeries.prototype, "bottomRatio", {
                /**
                 * @return {number}
                 */
                get: function () {
                    return this.getPropertyValue("bottomRatio");
                },
                /**
                 * Indicates how slice's bottom will change in relation to slices top AND
                 * next slices top.
                 *
                 * Basically it's a relative value (0-1) that indicates bottom width
                 * position between current slice's top width and the top withd of the next
                 * one.
                 *
                 * The scale goes from 0 (closer to current slice width) to 1 (closer to next
                 * slice with).
                 *
                 * `0` (default) will mean that bottom will be the same as top, resulting in
                 * a prefectly square slice.
                 *
                 * From the data-viz standpoint `0` is a correct setting, since area of the
                 * slices will depict their value correctly.
                 *
                 * `1` will mean that slice will become trapezoid with its bottom matching
                 * width of the next slice.
                 *
                 * `0.5` will make bottom width be in the middle of width of current slice
                 * and the next slice.
                 *
                 * @default 0
                 * @param {number}
                 */
                set: function (value) {
                    if (this.setPropertyValue("bottomRatio", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelSeries.prototype, "sliceLinks", {
                /**
                 * A list of elements linking each actual slice.
                 *
                 * Please note that links are [[FunnelSlice]] objects, just like real links,
                 * so they have all the same configuration options.
                 *
                 * You can use `template` of this link, to specify how links will look.
                 *
                 * ```TypeScript
                 * series.sliceLinks.template.fillOpacity = 0.5;
                 * ```
                 * ```JavaScript
                 * series.sliceLinks.template.fillOpacity = 0.5;
                 * ```
                 * ```JSON
                 * {
                 *   // ...
                 *   "series": [{
                 *     "type": "FunnelSeries",
                 *      // ...
                 *      "sliceLinks": {
                 *        "fillOpacity": 0.5
                 *      }
                 *   }]
                 * }
                 * ```
                 *
                 * @return {ListTemplate} Funnel links
                 */
                get: function () {
                    if (!this._sliceLinks) {
                        var sliceLink = new _elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_2__["FunnelSlice"]();
                        sliceLink.applyOnClones = true;
                        sliceLink.fillOpacity = 0.5;
                        sliceLink.expandDistance = -0.3;
                        sliceLink.hiddenState.properties.opacity = 0;
                        this._disposers.push(sliceLink);
                        this._sliceLinks = new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListTemplate"](sliceLink);
                        this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_4__["ListDisposer"](this._sliceLinks));
                    }
                    return this._sliceLinks;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Shows hidden series.
             *
             * @param  {number}     duration  Duration of reveal animation (ms)
             * @return {Animation}            Animation
             */
            FunnelSeries.prototype.show = function (duration) {
                var _this = this;
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var interpolationDuration = this.defaultState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                var delay = 0;
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["indexed"](this.dataItems.iterator()), function (a) {
                    var i = a[0];
                    var dataItem = a[1];
                    if (_this.sequencedInterpolation) {
                        delay = _this.sequencedInterpolationDelay * i + interpolationDuration * (i - startIndex) / (endIndex - startIndex);
                    }
                    dataItem.show(interpolationDuration, delay, ["value"]);
                });
                var animation = _super.prototype.show.call(this, duration);
                return animation;
            };
            /**
             * Hides series.
             *
             * @param  {number}     duration  Duration of hiding animation (ms)
             * @return {Animation}            Animation
             */
            FunnelSeries.prototype.hide = function (duration) {
                var _this = this;
                var fields = ["value"];
                var value = 0;
                var startIndex = this.startIndex;
                var endIndex = this.endIndex;
                var delay = 0;
                var interpolationDuration = this.hiddenState.transitionDuration;
                if (_core_utils_Type__WEBPACK_IMPORTED_MODULE_8__["isNumber"](duration)) {
                    interpolationDuration = duration;
                }
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["each"](_core_utils_Iterator__WEBPACK_IMPORTED_MODULE_7__["indexed"](this.dataItems.iterator()), function (a) {
                    var i = a[0];
                    var dataItem = a[1];
                    if (_this.sequencedInterpolation) {
                        delay = _this.sequencedInterpolationDelay * i + interpolationDuration * (i - startIndex) / (endIndex - startIndex);
                    }
                    dataItem.hide(interpolationDuration, delay, value, fields);
                });
                var animation = _super.prototype.hide.call(this, duration);
                if (animation && !animation.isFinished()) {
                    animation.delay(delay);
                }
                return animation;
            };
            return FunnelSeries;
        }(_PercentSeries__WEBPACK_IMPORTED_MODULE_1__["PercentSeries"]));
        /**
         * bboxter class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["FunnelSeries"] = FunnelSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_5__["registry"].registeredClasses["FunnelSeriesDataItem"] = FunnelSeriesDataItem;
        //# sourceMappingURL=FunnelSeries.js.map
        /***/ 
    }),
    /* 969 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunnelSlice", function () { return FunnelSlice; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(765);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(795);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(852);
        /**
         * Module that defines everything related to building Funnel slices.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to create [[FunnelSlice]] elements.
         *
         * @see {@link IFunnelSliceEvents} for a list of available events
         * @see {@link IFunnelSliceAdapters} for a list of available adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for documentation
         * @important
         */
        var FunnelSlice = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FunnelSlice, _super);
            /**
             * Constructor
             */
            function FunnelSlice() {
                var _this = _super.call(this) || this;
                _this.slice = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.slice.setElement(_this.paper.add("path"));
                _this.slice.isMeasured = false;
                _this.orientation = "vertical";
                _this.bottomWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(100);
                _this.topWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_4__["percent"])(100);
                _this.isMeasured = false;
                _this.width = 10;
                _this.height = 10;
                _this.expandDistance = 0;
                _this.className = "FunnelSlice";
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the element.
             */
            FunnelSlice.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var pt = this.pixelPaddingTop;
                var pb = this.pixelPaddingBottom;
                var pr = this.pixelPaddingRight;
                var pl = this.pixelPaddingLeft;
                var w = this.pixelWidth - pr - pl;
                var h = this.pixelHeight - pt - pb;
                var ed = this.expandDistance;
                var path = "";
                if (this.orientation == "vertical") {
                    var tw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.topWidth, w);
                    var bw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.bottomWidth, w);
                    var tl = { x: (w - tw) / 2 + pl, y: pt };
                    var tr = { x: (w + tw) / 2 + pl, y: pt };
                    var br = { x: (w + bw) / 2 + pl, y: pt + h };
                    var bl = { x: (w - bw) / 2 + pl, y: pt + h };
                    var cpr = { x: tr.x + (br.x - tr.x) / 2 + ed * h, y: tr.y + 0.5 * h };
                    var cpl = { x: tl.x + (bl.x - tl.x) / 2 - ed * h, y: tl.y + 0.5 * h };
                    var qp1 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](br);
                    var qp2 = "";
                    if (ed != 0) {
                        qp1 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["quadraticCurveTo"](br, cpr);
                        qp2 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["quadraticCurveTo"](tl, cpl);
                    }
                    path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["moveTo"](tl) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](tr) + qp1 + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](bl) + qp2;
                    this.tickPoint = { x: tr.x + (br.x - tr.x) / 2, y: tr.y + (br.y - tr.y) / 2 };
                }
                else {
                    var tw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.topWidth, h);
                    var bw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.bottomWidth, h);
                    var tt = { x: pl, y: (h - tw) / 2 + pt };
                    var tb = { x: pl, y: (h + tw) / 2 + pt };
                    var bt = { x: pl + w, y: (h - bw) / 2 + pt };
                    var bb = { x: pl + w, y: (h + bw) / 2 + pt };
                    var cpr = { y: tt.y + (bt.y - tt.y) / 2 - ed * w, x: tt.x + 0.5 * w };
                    var cpl = { y: tb.y + (bb.y - tb.y) / 2 + ed * w, x: tb.x + 0.5 * w };
                    var qp1 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](bt);
                    var qp2 = "";
                    if (ed != 0) {
                        qp1 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["quadraticCurveTo"](bt, cpr);
                        qp2 = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["quadraticCurveTo"](tb, cpl);
                    }
                    path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["moveTo"](tb) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](tt) + qp1 + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_6__["lineTo"](bb) + qp2;
                    this.tickPoint = { y: tb.y + (bb.y - tb.y) / 2, x: tb.x + (bb.x - tb.x) / 2 };
                }
                this.slice.path = path;
                this.invalidateLayout();
            };
            FunnelSlice.prototype.getPoint = function (locationX, locationY) {
                var pt = this.pixelPaddingTop;
                var pb = this.pixelPaddingBottom;
                var pr = this.pixelPaddingRight;
                var pl = this.pixelPaddingLeft;
                var w = this.pixelWidth - pr - pl;
                var h = this.pixelHeight - pt - pb;
                if (this.orientation == "vertical") {
                    var tw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.topWidth, w);
                    var bw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.bottomWidth, w);
                    var tl = { x: (w - tw) / 2 + pl, y: pt };
                    var tr = { x: (w + tw) / 2 + pl, y: pt };
                    var br = { x: (w + bw) / 2 + pl, y: pt + h };
                    var bl = { x: (w - bw) / 2 + pl, y: pt + h };
                    var mlx = tl.x + (bl.x - tl.x) * locationY;
                    var mrx = tr.x + (br.x - tr.x) * locationY;
                    return { x: mlx + (mrx - mlx) * locationX, y: tr.y + (br.y - tr.y) * locationY };
                }
                else {
                    var tw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.topWidth, h);
                    var bw = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_5__["relativeToValue"](this.bottomWidth, h);
                    var tt = { x: pl, y: (h - tw) / 2 + pt };
                    var tb = { x: pl, y: (h + tw) / 2 + pt };
                    var bt = { x: pl + w, y: (h - bw) / 2 + pt };
                    var bb = { x: pl + w, y: (h + bw) / 2 + pt };
                    var mty = tt.y + (bt.y - tt.y) * locationX;
                    var mby = tb.y + (bb.y - tb.y) * locationX;
                    return { y: mty + (mby - mty) * locationY, x: tt.x + (bt.x - tt.x) * locationX };
                }
            };
            Object.defineProperty(FunnelSlice.prototype, "bottomWidth", {
                /**
                 * @return {number} bottom width
                 */
                get: function () {
                    return this.getPropertyValue("bottomWidth");
                },
                /**
                 * Bottom width in pixels or percent.
                 *
                 * IMPORTANT: this setting might be used to set dimensions if you use slice
                 * as a standalone element. If it's a part of [[FunnelSeries]] this setting
                 * becomes read-only as it will be automatically reset by series.
                 *
                 * @param {number}  value  Bottom width
                 */
                set: function (value) {
                    this.setPercentProperty("bottomWidth", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelSlice.prototype, "topWidth", {
                /**
                 * @return {number} Top width
                 */
                get: function () {
                    return this.getPropertyValue("topWidth");
                },
                /**
                 * Top width in pixels or percent.
                 *
                 * IMPORTANT: this setting might be used to set dimensions if you use slice
                 * as a standalone element. If it's a part of [[FunnelSeries]] this setting
                 * becomes read-only as it will be automatically reset by series.
                 *
                 * @param {number}  value  Top width
                 */
                set: function (value) {
                    this.setPercentProperty("topWidth", value, true, false, 10, false);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelSlice.prototype, "orientation", {
                /**
                 * @return {Orientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                 * Orientation of the funnel slice: "horizontal" or "vertical".
                 *
                 * IMPORTANT: this setting might be used to set orintation if you use slice
                 * as a standalone element. If it's a part of [[FunnelSeries]] this setting
                 * becomes read-only as it will be automatically reset by series.
                 *
                 * @param {Orientation}  value  Orientation
                 */
                set: function (value) {
                    this.setPropertyValue("orientation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelSlice.prototype, "expandDistance", {
                /**
                 * @return {number} expandDistance
                 */
                get: function () {
                    return this.getPropertyValue("expandDistance");
                },
                /**
                 * A relative distance slice's sides should be bent to. It's relative to the
                 * height of the slice.
                 *
                 * Zero (default) will mean the sides will be perfectly straight.
                 *
                 * Positive value will make them bend outwards, resulting in "puffed" slices.
                 *
                 * Negative values will make them bend inwards.
                 *
                 * @default 0
                 * @param {number}
                 */
                set: function (value) {
                    this.setPropertyValue("expandDistance", value, true);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all parameters from another [[Sprite]].
             *
             * @param {Sprite} source Source Sprite
             */
            FunnelSlice.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.slice) {
                    this.slice.copyFrom(source.slice);
                }
            };
            return FunnelSlice;
        }(_core_Container__WEBPACK_IMPORTED_MODULE_1__["Container"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["FunnelSlice"] = FunnelSlice;
        //# sourceMappingURL=FunnelSlice.js.map
        /***/ 
    }),
    /* 970 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FunnelTick", function () { return FunnelTick; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _elements_Tick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(847);
        /* harmony import */ var _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(754);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(852);
        /**
         * Funnel tick module.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Draws an tick line for a funnel slice connecting it to a related label.
         *
         * @see {@link IFunnelTickEvents} for a list of available events
         * @see {@link IFunnelTickAdapters} for a list of available Adapters
         */
        var FunnelTick = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FunnelTick, _super);
            /**
             * Constructor
             */
            function FunnelTick() {
                var _this = _super.call(this) || this;
                /**
                 * A label element this tick is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._label = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                /**
                 * A slice element this tick is attached to.
                 *
                 * @type {MutableValueDisposer}
                 */
                _this._slice = new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MutableValueDisposer"]();
                _this.className = "FunnelTick";
                _this.element = _this.paper.add("path");
                _this._disposers.push(_this._label);
                _this._disposers.push(_this._slice);
                _this.setPropertyValue("locationX", 0);
                _this.setPropertyValue("locationY", 0);
                _this.applyTheme();
                return _this;
            }
            /**
             * Draws the tick element.
             *
             * @ignore Exclude from docs
             */
            FunnelTick.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var slice = this.slice;
                var point = slice.getPoint(this.locationX, this.locationY);
                if (point) {
                    var label = this.label;
                    var series = slice.dataItem.component;
                    if (series.orientation == "vertical") {
                        var x1 = label.pixelX;
                        var y1 = label.pixelY;
                        var p0 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["spritePointToSprite"](point, slice, this.parent);
                        var p1 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["spritePointToSprite"]({ x: x1, y: y1 }, label.parent, this.parent);
                        this.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](p0) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](p1);
                    }
                    else {
                        var x1 = label.pixelX;
                        var y1 = label.pixelY - label.measuredHeight;
                        var p0 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["spritePointToSprite"](point, slice, this.parent);
                        var p1 = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["spritePointToSprite"]({ x: x1, y: y1 }, label.parent, this.parent);
                        this.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["moveTo"](p0) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_5__["lineTo"](p1);
                    }
                }
            };
            Object.defineProperty(FunnelTick.prototype, "slice", {
                /**
                 * @return {FunnelSlice} FunnelSlice
                 */
                get: function () {
                    return this._slice.get();
                },
                /**
                 * [[FunnelSlice]] element tick is attached to.
                 *
                 * @param {FunnelSlice}  slice  Slice
                 */
                set: function (slice) {
                    this._slice.set(slice, new _core_utils_Disposer__WEBPACK_IMPORTED_MODULE_2__["MultiDisposer"]([
                        slice.events.on("transformed", this.invalidate, this, false),
                        slice.events.on("validated", this.invalidate, this, false)
                    ]));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelTick.prototype, "label", {
                /**
                 * @return {AxisLabelCircular} Label
                 */
                get: function () {
                    return this._label.get();
                },
                /**
                 * [[Label]] element tick is attached to.
                 *
                 * @param {Label}  label  Label
                 */
                set: function (label) {
                    this._label.set(label, label.events.on("transformed", this.invalidate, this, false));
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelTick.prototype, "locationX", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("locationX");
                },
                /**
                 * A relative horizontal position within target element a tick is pointing
                 * to.
                 *
                 * A scale is from 0 to 1, where 0 means left edge, and 1 right edge.
                 *
                 * You can also set any value in-between (e.g. 0.5 will point to the middle
                 * of the slice), or outside 0-1 range, which will put tick anchor position
                 * outside target element.
                 *
                 * @param {number}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("locationX", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(FunnelTick.prototype, "locationY", {
                /**
                 * @return {number} Location (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("locationY");
                },
                /**
                 * A relative vertical position within target element a tick is pointing
                 * to.
                 *
                 * A scale is from 0 to 1, where 0 means top edge, and 1 bottom edge.
                 *
                 * You can also set any value in-between (e.g. 0.5 will point to the middle
                 * of the slice), or outside 0-1 range, which will put tick anchor position
                 * outside target element.
                 *
                 * @param {number}  value  Location (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("locationY", value, false, true);
                },
                enumerable: true,
                configurable: true
            });
            return FunnelTick;
        }(_elements_Tick__WEBPACK_IMPORTED_MODULE_1__["Tick"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["FunnelTick"] = FunnelTick;
        //# sourceMappingURL=FunnelTick.js.map
        /***/ 
    }),
    /* 971 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PyramidSeriesDataItem", function () { return PyramidSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PyramidSeries", function () { return PyramidSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _FunnelSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(968);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(795);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(758);
        /**
         * Defines Pyramid Series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo: sequenced?
        /**
         * Defines a [[DataItem]] for [[PyramidSeries]].
         *
         * @see {@link DataItem}
         */
        var PyramidSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PyramidSeriesDataItem, _super);
            /**
             * Constructor
             */
            function PyramidSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PyramidSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return PyramidSeriesDataItem;
        }(_FunnelSeries__WEBPACK_IMPORTED_MODULE_1__["FunnelSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a FunnelSlice series on a [[SlicedChart]].
         *
         * @see {@link IPyramidSeriesEvents} for a list of available Events
         * @see {@link IPyramidSeriesAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for documentation
         * @important
         */
        var PyramidSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PyramidSeries, _super);
            /**
             * Constructor
             */
            function PyramidSeries() {
                var _this = _super.call(this) || this;
                _this.className = "PyramidSeries";
                _this.topWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(0);
                _this.bottomWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.pyramidHeight = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_5__["percent"])(100);
                _this.valueIs = "area";
                _this.sliceLinks.template.width = 0;
                _this.sliceLinks.template.height = 0;
                _this.applyTheme();
                return _this;
            }
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            PyramidSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_3__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Pyramid Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {PyramidSeriesDataItem} Data Item
             */
            PyramidSeries.prototype.createDataItem = function () {
                return new PyramidSeriesDataItem();
            };
            /**
             * (Re)validates the whole series, effectively causing it to redraw.
             *
             * @ignore Exclude from docs
             */
            PyramidSeries.prototype.validate = function () {
                _super.prototype.validate.call(this);
                this._nextWidth = undefined;
            };
            /**
             * [getNextValue description]
             *
             * @todo Description
             * @param  {FunnelSeriesDataItem} dataItem [description]
             * @return {number}                        [description]
             */
            PyramidSeries.prototype.getNextValue = function (dataItem) {
                var index = dataItem.index;
                var nextValue = dataItem.getWorkingValue("value");
                if (index < this.dataItems.length - 1) {
                    var nextItem = this.dataItems.getIndex(index + 1);
                    nextValue = nextItem.getWorkingValue("value");
                }
                if (nextValue == 0) {
                    nextValue = 0.000001;
                }
                return nextValue;
            };
            /**
             * [validateDataElements description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            PyramidSeries.prototype.validateDataElements = function () {
                var _this = this;
                var maxWidth = this.slicesContainer.innerWidth;
                var maxHeight = this.slicesContainer.innerHeight;
                this.dataItems.each(function (dataItem) {
                    var relValue = dataItem.getWorkingValue("value") / dataItem.value;
                    var sliceLink = dataItem.sliceLink;
                    if (_this.orientation == "vertical") {
                        maxHeight -= (sliceLink.pixelHeight * relValue);
                    }
                    else {
                        maxWidth -= (sliceLink.pixelWidth * relValue);
                    }
                });
                this._pyramidHeight = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.pyramidHeight, maxHeight);
                this._pyramidWidth = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.pyramidHeight, maxWidth);
                if (this.orientation == "vertical") {
                    var y = (maxHeight - this._pyramidHeight) / 2;
                    this.slicesContainer.y = y;
                    this.labelsContainer.y = y;
                    this.ticksContainer.y = y;
                }
                else {
                    var x = (maxWidth - this._pyramidWidth) / 2;
                    this.slicesContainer.x = x;
                    this.labelsContainer.x = x;
                    this.ticksContainer.x = x;
                }
                _super.prototype.validateDataElements.call(this);
            };
            /**
             * [decorateSlice description]
             *
             * @todo Description
             * @param {this["_dataItem"]} dataItem [description]
             */
            PyramidSeries.prototype.decorateSlice = function (dataItem) {
                var sum = this.dataItem.values.value.sum;
                if (sum == 0) {
                    return;
                }
                var slice = dataItem.slice;
                var sliceLink = dataItem.sliceLink;
                var label = dataItem.label;
                var tick = dataItem.tick;
                var nextValue = this.getNextValue(dataItem);
                var workingValue = dataItem.getWorkingValue("value");
                if (workingValue == 0) {
                    workingValue = 0.000001;
                }
                var pyramidWidth = this._pyramidWidth;
                var pyramidHeight = this._pyramidHeight;
                var maxWidth = this.slicesContainer.innerWidth;
                var maxHeight = this.slicesContainer.innerHeight;
                var linkWidth = sliceLink.pixelWidth;
                var linkHeight = sliceLink.pixelHeight;
                if (this.orientation == "vertical") {
                    var topWidth = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.topWidth, maxWidth);
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_3__["isNumber"](this._nextWidth)) {
                        this._nextWidth = topWidth;
                    }
                    var bottomWidth = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.bottomWidth, maxWidth);
                    var sliceTopWidth = this._nextWidth;
                    var angle = Math.atan2(pyramidHeight, topWidth - bottomWidth);
                    var c = Math.tan(Math.PI / 2 - angle);
                    if (c == 0) {
                        c = 0.00000001;
                    }
                    var sliceHeight = void 0;
                    var sliceBottomWidth = void 0;
                    if (this.valueIs == "area") {
                        var totalSquare = (topWidth + bottomWidth) / 2 * pyramidHeight;
                        var square = totalSquare * workingValue / sum;
                        var s = Math.abs(sliceTopWidth * sliceTopWidth - 2 * square * c);
                        sliceHeight = (sliceTopWidth - Math.sqrt(s)) / c;
                        sliceBottomWidth = (2 * square - sliceHeight * sliceTopWidth) / sliceHeight;
                    }
                    else {
                        var sum_1 = this.dataItem.values.value.sum;
                        sliceHeight = pyramidHeight * workingValue / sum_1;
                        sliceBottomWidth = sliceTopWidth - sliceHeight * c;
                    }
                    slice.height = sliceHeight;
                    slice.width = maxWidth;
                    slice.bottomWidth = sliceBottomWidth;
                    slice.topWidth = sliceTopWidth;
                    sliceLink.topWidth = slice.bottomWidth;
                    sliceLink.bottomWidth = slice.bottomWidth;
                    slice.y = this._nextY;
                    //slice.x = maxWidth / 2;			
                    if (!this.alignLabels) {
                        label.x = maxWidth / 2;
                    }
                    else {
                        label.x = 0;
                    }
                    label.y = slice.pixelY + slice.pixelHeight * tick.locationY;
                    this._nextY += slice.pixelHeight + linkHeight * workingValue / dataItem.value;
                    sliceLink.y = this._nextY - linkHeight;
                    sliceLink.x = maxWidth / 2;
                }
                else {
                    var topWidth = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.topWidth, maxHeight);
                    if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_3__["isNumber"](this._nextWidth)) {
                        this._nextWidth = topWidth;
                    }
                    var bottomWidth = _core_utils_Utils__WEBPACK_IMPORTED_MODULE_4__["relativeToValue"](this.bottomWidth, maxHeight);
                    var sliceTopWidth = this._nextWidth;
                    var angle = Math.atan2(pyramidWidth, topWidth - bottomWidth);
                    var c = Math.tan(Math.PI / 2 - angle);
                    if (c == 0) {
                        c = 0.00000001;
                    }
                    var sliceWidth = void 0;
                    var sliceBottomWidth = void 0;
                    if (this.valueIs == "area") {
                        var totalSquare = (topWidth + bottomWidth) / 2 * pyramidWidth;
                        var square = totalSquare * workingValue / this.dataItem.values.value.sum;
                        sliceWidth = (sliceTopWidth - Math.sqrt(sliceTopWidth * sliceTopWidth - 2 * square * c)) / c;
                        sliceBottomWidth = (2 * square - sliceWidth * sliceTopWidth) / sliceWidth;
                    }
                    else {
                        sliceWidth = pyramidWidth * workingValue / this.dataItem.values.value.sum;
                        sliceBottomWidth = sliceTopWidth - sliceWidth * c;
                    }
                    slice.width = sliceWidth;
                    slice.height = maxHeight;
                    slice.bottomWidth = sliceBottomWidth;
                    slice.topWidth = sliceTopWidth;
                    sliceLink.topWidth = slice.bottomWidth;
                    sliceLink.bottomWidth = slice.bottomWidth;
                    slice.x = this._nextY;
                    if (!this.alignLabels) {
                        label.y = maxHeight / 2;
                    }
                    else {
                        label.y = this.labelsContainer.measuredHeight;
                    }
                    label.x = slice.pixelX + slice.pixelWidth * tick.locationX;
                    this._nextY += slice.pixelWidth + linkWidth * workingValue / dataItem.value;
                    sliceLink.x = this._nextY - linkWidth;
                    sliceLink.y = maxHeight / 2;
                }
                this._nextWidth = slice.bottomWidth;
            };
            Object.defineProperty(PyramidSeries.prototype, "topWidth", {
                /**
                 * @return {number | Percent}
                 */
                get: function () {
                    return this.getPropertyValue("topWidth");
                },
                /**
                 * Width of the pyramid's tip in pixels or relative (`Percent`).
                 *
                 * `0%` (default) means the pyramid will be perfectly pointy.
                 * `50%` will have a cut off / blunt top that is half the width of the chart.
                 * `100%` will take the whole width of the chart.
                 *
                 * If you need the downward-pointing pyramid, you might want to `topWidth` to
                 * `100%` and `bottomWidth` to `0%`.
                 *
                 * @default 0%
                 * @param {number | Percent}
                 */
                set: function (value) {
                    if (this.setPercentProperty("topWidth", value, false, false, 10, false)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PyramidSeries.prototype, "pyramidHeight", {
                /**
                 * @return {number | Percent}
                 */
                get: function () {
                    return this.getPropertyValue("pyramidHeight");
                },
                /**
                 * Height of pyramid
                 *
                 *
                 * @default 100%
                 * @param {number | Percent}
                 */
                set: function (value) {
                    if (this.setPercentProperty("pyramidHeight", value, false, false, 10, false)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PyramidSeries.prototype, "bottomWidth", {
                /**
                 * @return {number | Percent}
                 */
                get: function () {
                    return this.getPropertyValue("bottomWidth");
                },
                /**
                 * Width of the pyramid's bottom (bsae) in pixels or relative (`Percent`).
                 *
                 * `0%` means the pyramid's botto will be pointy.
                 * `50%` will have a cut off / blunt bottom that is half the width of the chart.
                 * `100%` (default) will take the whole width of the chart.
                 *
                 * If you need the downward-pointing pyramid, you might want to `topWidth` to
                 * `100%` and `bottomWidth` to `0%`.
                 *
                 * @param {number | Percent}
                 */
                set: function (value) {
                    if (this.setPercentProperty("bottomWidth", value, false, false, 10, false)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(PyramidSeries.prototype, "valueIs", {
                /**
                 * @return {"area" | "height"}
                 */
                get: function () {
                    return this.getPropertyValue("valueIs");
                },
                /**
                 * Indicates how slice's value will influence its size.
                 *
                 * `"area"` (default) means that the whole area of the pyramid (counting in
                 * modifications by `topWidth` and `bottomWidth`) will be divvied up between
                 * slices based on their value.
                 *
                 * With this setting at `"area"` the area of the trapezoids of each slice
                 * will represent their value relatively to values of the other slices.
                 *
                 * This is a correct way to depict "weight" of each slice based on their
                 * values.
                 *
                 * `"height"` means whole height (as opposed to area) of the pyramid will be
                 * divvied up between slices. Actual slice width or area is not counted in.
                 *
                 * From the data-viz standpoint this does not make a lot of sense, since
                 * slices with lesser values might appear more prominent if they are placed
                 * towards thick end of the pyramid since their areas will be bigger.
                 *
                 * @default "area"
                 * @param {"area" | "height"}
                 */
                set: function (value) {
                    if (this.setPropertyValue("valueIs", value)) {
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            return PyramidSeries;
        }(_FunnelSeries__WEBPACK_IMPORTED_MODULE_1__["FunnelSeries"]));
        /**
         * bboxter class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["PyramidSeries"] = PyramidSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["PyramidSeriesDataItem"] = PyramidSeriesDataItem;
        //# sourceMappingURL=PyramidSeries.js.map
        /***/ 
    }),
    /* 972 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PictorialStackedSeriesDataItem", function () { return PictorialStackedSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PictorialStackedSeries", function () { return PictorialStackedSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _PyramidSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(971);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(756);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(757);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /**
         * Defines Pictorial Stacked Series.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        //@todo: sequenced?
        /**
         * Defines a [[DataItem]] for [[PictorialStackedSeries]].
         *
         * @see {@link DataItem}
         */
        var PictorialStackedSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PictorialStackedSeriesDataItem, _super);
            /**
             * Constructor
             */
            function PictorialStackedSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "PictorialStackedSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return PictorialStackedSeriesDataItem;
        }(_PyramidSeries__WEBPACK_IMPORTED_MODULE_1__["PyramidSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a PictorialStacked series on a [[SlicedChart]].
         *
         * @see {@link IPictorialStackedSeriesEvents} for a list of available Events
         * @see {@link IPictorialStackedSeriesAdapters} for a list of available Adapters
         * @see {@link https://www.amcharts.com/docs/v4/chart-types/sliced-chart/} for documentation
         * @important
         */
        var PictorialStackedSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PictorialStackedSeries, _super);
            /**
             * Constructor
             */
            function PictorialStackedSeries() {
                var _this = _super.call(this) || this;
                _this.className = "PictorialStackedSeries";
                _this.topWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                _this.bottomWidth = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(100);
                _this.valueIs = "height";
                _this.applyTheme();
                _this._maskSprite = _this.slicesContainer.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this._maskSprite.visible = false;
                _this._maskSprite.zIndex = 100;
                return _this;
            }
            /**
             * Sizes the mask to fit the series.
             *
             * @ignore
             */
            PictorialStackedSeries.prototype.validateDataElements = function () {
                var maxWidth = this.slicesContainer.maxWidth;
                var maxHeight = this.slicesContainer.maxHeight;
                var maskSprite = this._maskSprite;
                //maskSprite.validatePosition(); // for some reason size of the maskSprite is 0x0 after we removed validatePosition in afterdraw
                var pictureWidth = maskSprite.measuredWidth / maskSprite.scale;
                var pictureHeight = maskSprite.measuredHeight / maskSprite.scale;
                var scale = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["min"](maxHeight / pictureHeight, maxWidth / pictureWidth);
                if (scale == Infinity) {
                    scale = 1; // can't return here, won't draw legend properly
                }
                scale = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["max"](0.001, scale);
                var newWidth = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["min"](maxWidth, pictureWidth * scale);
                var newHeight = _core_utils_Math__WEBPACK_IMPORTED_MODULE_4__["min"](maxHeight, pictureHeight * scale);
                maskSprite.scale = scale;
                if (this.orientation == "vertical") {
                    this.topWidth = newWidth + 4;
                    this.bottomWidth = newWidth + 4;
                    this.pyramidHeight = newHeight;
                    maskSprite.x = maxWidth / 2;
                    maskSprite.y = newHeight / 2;
                }
                else {
                    this.topWidth = newHeight + 4;
                    this.bottomWidth = newHeight + 4;
                    this.pyramidHeight = newWidth;
                    maskSprite.valign = "middle";
                    maskSprite.x = newWidth / 2;
                    maskSprite.y = maxHeight / 2;
                }
                maskSprite.verticalCenter = "middle";
                maskSprite.horizontalCenter = "middle";
                this.slicesContainer.mask = this._maskSprite;
                _super.prototype.validateDataElements.call(this);
            };
            /**
             * Sets defaults that instantiate some objects that rely on parent, so they
             * cannot be set in constructor.
             */
            PictorialStackedSeries.prototype.applyInternalDefaults = function () {
                _super.prototype.applyInternalDefaults.call(this);
                if (!_core_utils_Type__WEBPACK_IMPORTED_MODULE_5__["hasValue"](this.readerTitle)) {
                    this.readerTitle = this.language.translate("Pyramid Series");
                }
            };
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {PictorialStackedSeriesDataItem} Data Item
             */
            PictorialStackedSeries.prototype.createDataItem = function () {
                return new PictorialStackedSeriesDataItem();
            };
            Object.defineProperty(PictorialStackedSeries.prototype, "maskSprite", {
                /**
                 * A [[Sprite]] element that is used as a series mask.
                 *
                 * If set, this element's shape will be used to apply shape to the whole
                 * stacked pictorial series.
                 *
                 * You can use this element's `path` property to set an SVG path for the
                 * shape:
                 *
                 * ```TypeScript
                 * let iconPath = "M511.82,329.991c-0.256-1.212-1.064-2.244-2.192-2.784l-24.396-11.684c17.688-29.776,11.804-68.912-15.58-91.88 c-53.756-45.084-131.696-70.936-213.828-70.936c-82.128,0-160.068,25.856-213.82,70.936c-27.416,22.992-33.28,62.18-15.524,91.972 L2.276,327.203c-1.128,0.54-1.936,1.572-2.192,2.792c-0.256,1.22,0.08,2.496,0.896,3.436l21.204,24.388 c0.764,0.88,1.868,1.376,3.02,1.376c0.084,0,0.172,0,0.26-0.008c1.244-0.084,2.384-0.74,3.072-1.776l14.852-22.376 c12.648,10.112,28.392,15.776,44.916,15.776c16.872,0,33.284-5.98,46.232-16.836c27.828-23.34,73.172-37.272,121.288-37.272 c48.12,0,93.464,13.932,121.296,37.272c12.944,10.856,29.36,16.836,46.228,16.836c16.596,0,32.4-5.724,45.08-15.916l14.94,22.512 c0.692,1.04,1.824,1.696,3.076,1.776c0.084,0.008,0.172,0.008,0.256,0.008c1.156,0,2.256-0.496,3.02-1.376l21.2-24.388C511.74,332.487,512.068,331.211,511.82,329.991z";
                 * // ...
                 * series.maskSprite.path = iconPath;
                 * ```
                 * ```JavaScript
                 * let iconPath = "M511.82,329.991c-0.256-1.212-1.064-2.244-2.192-2.784l-24.396-11.684c17.688-29.776,11.804-68.912-15.58-91.88 c-53.756-45.084-131.696-70.936-213.828-70.936c-82.128,0-160.068,25.856-213.82,70.936c-27.416,22.992-33.28,62.18-15.524,91.972 L2.276,327.203c-1.128,0.54-1.936,1.572-2.192,2.792c-0.256,1.22,0.08,2.496,0.896,3.436l21.204,24.388 c0.764,0.88,1.868,1.376,3.02,1.376c0.084,0,0.172,0,0.26-0.008c1.244-0.084,2.384-0.74,3.072-1.776l14.852-22.376 c12.648,10.112,28.392,15.776,44.916,15.776c16.872,0,33.284-5.98,46.232-16.836c27.828-23.34,73.172-37.272,121.288-37.272 c48.12,0,93.464,13.932,121.296,37.272c12.944,10.856,29.36,16.836,46.228,16.836c16.596,0,32.4-5.724,45.08-15.916l14.94,22.512 c0.692,1.04,1.824,1.696,3.076,1.776c0.084,0.008,0.172,0.008,0.256,0.008c1.156,0,2.256-0.496,3.02-1.376l21.2-24.388C511.74,332.487,512.068,331.211,511.82,329.991z";
                 * // ...
                 * series.maskSprite.path = iconPath;
                 * ```
                 * ```JSON
                 * let iconPath = "M511.82,329.991c-0.256-1.212-1.064-2.244-2.192-2.784l-24.396-11.684c17.688-29.776,11.804-68.912-15.58-91.88 c-53.756-45.084-131.696-70.936-213.828-70.936c-82.128,0-160.068,25.856-213.82,70.936c-27.416,22.992-33.28,62.18-15.524,91.972 L2.276,327.203c-1.128,0.54-1.936,1.572-2.192,2.792c-0.256,1.22,0.08,2.496,0.896,3.436l21.204,24.388 c0.764,0.88,1.868,1.376,3.02,1.376c0.084,0,0.172,0,0.26-0.008c1.244-0.084,2.384-0.74,3.072-1.776l14.852-22.376 c12.648,10.112,28.392,15.776,44.916,15.776c16.872,0,33.284-5.98,46.232-16.836c27.828-23.34,73.172-37.272,121.288-37.272 c48.12,0,93.464,13.932,121.296,37.272c12.944,10.856,29.36,16.836,46.228,16.836c16.596,0,32.4-5.724,45.08-15.916l14.94,22.512 c0.692,1.04,1.824,1.696,3.076,1.776c0.084,0.008,0.172,0.008,0.256,0.008c1.156,0,2.256-0.496,3.02-1.376l21.2-24.388C511.74,332.487,512.068,331.211,511.82,329.991z";
                 * // ...
                 * {
                 *   // ...
                 *   "series": [{
                 *     "type": "PictorialStackedSeries",
                 *     // ...
                 *     "maskSprite": {
                 *       "path": iconPath
                 *     }
                 *   }]
                 * }
                 * ```
                 *
                 * @return {Sprite} Mask sprite
                 */
                get: function () {
                    return this._maskSprite;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Inits FunnelSlice.
             *
             * @param  {FunnelSlice} slice to init
             */
            PictorialStackedSeries.prototype.initSlice = function (slice) {
                _super.prototype.initSlice.call(this, slice);
                var hs = slice.states.getKey("hover");
                if (hs) {
                    hs.properties.expandDistance = 0;
                }
            };
            return PictorialStackedSeries;
        }(_PyramidSeries__WEBPACK_IMPORTED_MODULE_1__["PyramidSeries"]));
        /**
         * bboxter class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PictorialStackedSeries"] = PictorialStackedSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["PictorialStackedSeriesDataItem"] = PictorialStackedSeriesDataItem;
        //# sourceMappingURL=PictorialStackedSeries.js.map
        /***/ 
    }),
    /* 973 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConeSeriesDataItem", function () { return ConeSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConeSeries", function () { return ConeSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _elements_ConeColumn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(974);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * ConeSeries module
         * Not recommended using if you use scrollbars or your chart is zoomable in some other way.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[ConeSeries]].
         *
         * @see {@link DataItem}
         */
        var ConeSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ConeSeriesDataItem, _super);
            /**
             * Constructor
             */
            function ConeSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "ConeSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return ConeSeriesDataItem;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a cone graph.
         *
         * @see {@link IConeSeriesEvents} for a list of available Events
         * @see {@link IConeSeriesAdapters} for a list of available Adapters
         * @todo Example
         * @important
         */
        var ConeSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ConeSeries, _super);
            /**
             * Constructor
             */
            function ConeSeries() {
                var _this = _super.call(this) || this;
                _this.className = "ConeSeries";
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns an element to use for Candlestick
             * @ignore
             * @return {this["_column"]} Element.
             */
            ConeSeries.prototype.createColumnTemplate = function () {
                return new _elements_ConeColumn__WEBPACK_IMPORTED_MODULE_2__["ConeColumn"]();
            };
            /**
             * Returns an SVG path to use as series mask.
             *
             * @return {string} SVG path
             */
            ConeSeries.prototype.getMaskPath = function () {
                var dx = 0;
                var dy = 0;
                var column = this.columns.getIndex(0);
                if (column) {
                    if (this.baseAxis == this.xAxis) {
                        dy = column.coneColumn.bottom.radiusY + 1;
                    }
                    else {
                        dx = column.coneColumn.bottom.radiusY + 1;
                    }
                    return _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["rectToPath"]({
                        x: -dx,
                        y: 0,
                        width: this.xAxis.axisLength + dx,
                        height: this.yAxis.axisLength + dy
                    });
                }
            };
            /**
             * Validates data item's elements.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            ConeSeries.prototype.validateDataElementReal = function (dataItem) {
                _super.prototype.validateDataElementReal.call(this, dataItem);
                var column = dataItem.column;
                if (column) {
                    var coneColumn = dataItem.column.coneColumn;
                    coneColumn.fill = dataItem.column.fill;
                    if (this.baseAxis == this.yAxis) {
                        coneColumn.orientation = "horizontal";
                    }
                    else {
                        coneColumn.orientation = "vertical";
                    }
                }
            };
            return ConeSeries;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ConeSeries"] = ConeSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ConeSeriesDataItem"] = ConeSeriesDataItem;
        //# sourceMappingURL=ConeSeries.js.map
        /***/ 
    }),
    /* 974 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConeColumn", function () { return ConeColumn; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
        /* harmony import */ var _core_elements_3d_Cone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(889);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Module that defines everything related to building Cone Columns.
         * It is a container which has coneColumn element which is a Cone.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates ConeColumns.
         *
         * @see {@link IConeColumnEvents} for a list of available events
         * @see {@link IConeColumnAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var ConeColumn = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ConeColumn, _super);
            /**
             * Constructor
             */
            function ConeColumn() {
                var _this = _super.call(this) || this;
                _this.className = "ConeColumn";
                return _this;
            }
            ConeColumn.prototype.createAssets = function () {
                this.coneColumn = this.createChild(_core_elements_3d_Cone__WEBPACK_IMPORTED_MODULE_2__["Cone"]);
                this.coneColumn.shouldClone = false;
                // some dirty hack so that if user access column, it won't get error
                this.column = this.coneColumn;
            };
            ConeColumn.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.coneColumn) {
                    this.coneColumn.copyFrom(source.coneColumn);
                }
            };
            return ConeColumn;
        }(_Column__WEBPACK_IMPORTED_MODULE_1__["Column"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ConeColumn"] = ConeColumn;
        //# sourceMappingURL=ConeColumn.js.map
        /***/ 
    }),
    /* 975 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CurvedColumnSeriesDataItem", function () { return CurvedColumnSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CurvedColumnSeries", function () { return CurvedColumnSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ColumnSeries__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
        /* harmony import */ var _elements_CurvedColumn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(976);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * CurvedColumnSeries module.
         *
         * Not recommended using if you use scrollbars or your chart is zoomable in some other way.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[CurvedColumnSeries]].
         *
         * @see {@link DataItem}
         */
        var CurvedColumnSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CurvedColumnSeriesDataItem, _super);
            /**
             * Constructor
             */
            function CurvedColumnSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "CurvedColumnSeriesDataItem";
                _this.applyTheme();
                return _this;
            }
            return CurvedColumnSeriesDataItem;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Defines [[Series]] for a curved columns graph.
         *
         * @see {@link ICurvedColumnSeriesEvents} for a list of available Events
         * @see {@link ICurvedColumnSeriesAdapters} for a list of available Adapters
         * @important
         */
        var CurvedColumnSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CurvedColumnSeries, _super);
            /**
             * Constructor
             */
            function CurvedColumnSeries() {
                var _this = _super.call(this) || this;
                _this.className = "CurvedColumnSeries";
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns an element to use for the curved column.
             *
             * @ignore Exclude from docs
             * @return {this["_column"]} Element.
             */
            CurvedColumnSeries.prototype.createColumnTemplate = function () {
                return new _elements_CurvedColumn__WEBPACK_IMPORTED_MODULE_2__["CurvedColumn"]();
            };
            /**
             * Validates data item's elements.
             *
             * @ignore Exclude from docs
             * @param {this["_dataItem"]}  dataItem  Data item
             */
            CurvedColumnSeries.prototype.validateDataElementReal = function (dataItem) {
                var column = dataItem.column;
                if (column) {
                    var curvedColumn = dataItem.column.curvedColumn;
                    curvedColumn.fill = dataItem.column.fill;
                    if (this.baseAxis == this.yAxis) {
                        column.orientation = "horizontal";
                    }
                    else {
                        column.orientation = "vertical";
                    }
                }
                _super.prototype.validateDataElementReal.call(this, dataItem);
            };
            return CurvedColumnSeries;
        }(_ColumnSeries__WEBPACK_IMPORTED_MODULE_1__["ColumnSeries"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["CurvedColumnSeries"] = CurvedColumnSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["CurvedColumnSeriesDataItem"] = CurvedColumnSeriesDataItem;
        //# sourceMappingURL=CurvedColumnSeries.js.map
        /***/ 
    }),
    /* 976 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CurvedColumn", function () { return CurvedColumn; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(852);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(851);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(758);
        /**
         * Module that defines everything related to building Curved Columns.
         * It is a container which has CurvedColumn element which is a Sprite.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Class used to creates CurvedColumns.
         *
         * @see {@link ICurvedColumnEvents} for a list of available events
         * @see {@link ICurvedColumnAdapters} for a list of available Adapters
         * @important
         */
        var CurvedColumn = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CurvedColumn, _super);
            /**
             * Constructor
             */
            function CurvedColumn() {
                var _this = _super.call(this) || this;
                _this.className = "CurvedColumn";
                return _this;
            }
            /**
             * [createAssets description]
             *
             * @todo Description
             * @ignore Exclude from docs
             */
            CurvedColumn.prototype.createAssets = function () {
                this.curvedColumn = this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                this.curvedColumn.shouldClone = false;
                this.setPropertyValue("tension", 0.7);
                this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(120);
                this.height = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_6__["percent"])(120);
                // some dirty hack so that if user access column, it won't get error
                this.column = this.curvedColumn;
            };
            /**
             * Draws the element.
             *
             * @ignore Exclude from docs
             */
            CurvedColumn.prototype.draw = function () {
                _super.prototype.draw.call(this);
                var w = this.realWidth;
                var h = this.realHeight;
                var x = this.realX - this.pixelX;
                var y = this.realY - this.pixelY;
                var points;
                var ww = this.width;
                var pw = 0.8;
                var tensionX = 1;
                var tensionY = 1;
                if (this.orientation == "vertical") {
                    tensionX = this.tension;
                    points = [{ x: 0, y: h + y }, { x: w / 2, y: y }, { x: w, y: h + y }];
                }
                else {
                    tensionY = this.tension;
                    points = [{ x: x, y: 0 }, { x: x + w, y: h / 2 }, { x: x, y: h }];
                }
                var path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_3__["moveTo"](points[0]) + new _core_rendering_Smoothing__WEBPACK_IMPORTED_MODULE_5__["Tension"](tensionX, tensionY).smooth(points);
                this.column.path = path;
            };
            /**
             * Copies all properties from other element of the same type.
             *
             * @param {this}  source  Source element
             */
            CurvedColumn.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                if (this.curvedColumn) {
                    this.curvedColumn.copyFrom(source.curvedColumn);
                }
            };
            Object.defineProperty(CurvedColumn.prototype, "tension", {
                /**
                 * @return {number} Tension (0-1)
                 */
                get: function () {
                    return this.getPropertyValue("tension");
                },
                /**
                 * Horizontal tension of the curve.
                 *
                 * Tension defines how "lose" the line will be.
                 *
                 * 1 is the maximum tension which would result in pointy columns with
                 * straight edges.
                 *
                 * The smaller the tension th wider the column will be.
                 *
                 * @default 0.7
                 * @param {number}  value tension (0-1)
                 */
                set: function (value) {
                    this.setPropertyValue("tension", value, true);
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(CurvedColumn.prototype, "orientation", {
                /**
                 * @type {Orientation} Orientation
                 */
                get: function () {
                    return this.getPropertyValue("orientation");
                },
                /**
                 * Orientation of the column.
                 *
                 * Available options: "vertical" (default) and "horizontal".
                 *
                 * @default "vertical"
                 * @param {Orientation}  value  Orientation
                 */
                set: function (value) {
                    this.setPropertyValue("orientation", value, true);
                },
                enumerable: true,
                configurable: true
            });
            return CurvedColumn;
        }(_Column__WEBPACK_IMPORTED_MODULE_1__["Column"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_4__["registry"].registeredClasses["CurvedColumn"] = CurvedColumn;
        //# sourceMappingURL=CurvedColumn.js.map
        /***/ 
    }),
    /* 977 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DurationAxisDataItem", function () { return DurationAxisDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DurationAxis", function () { return DurationAxis; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _ValueAxis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(918);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(756);
        /**
         * DurationAxis module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines data item for [[DurationAxis]].
         *
         * @see {@link DataItem}
         */
        var DurationAxisDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DurationAxisDataItem, _super);
            /**
             * Constructor
             */
            function DurationAxisDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "DurationAxisDataItem";
                _this.applyTheme();
                return _this;
            }
            return DurationAxisDataItem;
        }(_ValueAxis__WEBPACK_IMPORTED_MODULE_1__["ValueAxisDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Used to create an axis that shows time durations.
         *
         * ```TypeScript
         * // Create the axis
         * let xAxis = chart.xAxes.push(new am4charts.DurationAxis());
         *
         * // Set settings
         * xAxis.title.text = "Time";
         * ```
         * ```JavaScript
         * // Create the axis
         * var valueAxis = chart.xAxes.push(new am4charts.DurationAxis());
         *
         * // Set settings
         * valueAxis.title.text = "Time";
         * ```
         * ```JSON
         * "xAxes": [{
         *   "type": "DurationAxis",
         *   "title": {
         *     "text": "Time"
         *   }
         * }]
         * ```
         *
         * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/} for mor information about duration formatters.
         * @see {@link IDurationAxisEvents} for a list of available Events
         * @see {@link IDurationAxisAdapters} for a list of available Adapters
         * @important
         */
        var DurationAxis = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DurationAxis, _super);
            /**
             * Constructor
             */
            function DurationAxis() {
                var _this = 
                // Init
                _super.call(this) || this;
                /**
                 * A base unit (granularity) of data.
                 *
                 * Used to indicate what are the base units of your data.
                 */
                _this._baseUnit = "second";
                _this.className = "DurationAxis";
                _this.setPropertyValue("maxZoomFactor", 1000000);
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Formats the value according to axis' own [[DurationFormatter]].
             *
             * @param  {number}  value  Source value
             * @return {string}         Formatted value
             */
            DurationAxis.prototype.formatLabel = function (value, format) {
                return this.durationFormatter.format(value, format || this.axisDurationFormat);
            };
            /**
             * Adjusts actual min and max scale values so that the axis starts and ends
             * at "nice" values, unless `strictMinMax` is set.
             *
             * The `difference` can be something else than `max - min`, because of the
             * axis breaks.
             *
             * @ignore Exclude from docs
             * @todo Description
             * @param  {number}      min        [description]
             * @param  {number}      max        [description]
             * @param  {number}      difference [description]
             * @param  {number}      gridCount  [description]
             * @param  {boolean}     strictMode [description]
             * @return {IMinMaxStep}            [description]
             */
            DurationAxis.prototype.adjustMinMax = function (min, max, difference, gridCount, strictMode) {
                var minMaxStep;
                var timeUnit = this.baseUnit;
                // we don't allow to go to smaller units, setting so to avoid invalidation
                this.setPropertyValue("maxPrecision", 0);
                if (timeUnit == "millisecond" || timeUnit == "second" || timeUnit == "minute" || timeUnit == "hour") {
                    // will fail if 0
                    if (gridCount <= 1) {
                        gridCount = 1;
                    }
                    gridCount = Math.round(gridCount);
                    var initialMin = min;
                    var initialMax = max;
                    // in case min and max is the same, use max
                    if (difference === 0) {
                        difference = Math.abs(max);
                    }
                    var step = difference / gridCount;
                    var divisors = [60, 30, 20, 15, 10, 2, 1];
                    var realDivisor = 1;
                    if (timeUnit == "hour") {
                        divisors = [24, 12, 6, 4, 2, 1];
                    }
                    try {
                        for (var divisors_1 = tslib__WEBPACK_IMPORTED_MODULE_0__["__values"](divisors), divisors_1_1 = divisors_1.next(); !divisors_1_1.done; divisors_1_1 = divisors_1.next()) {
                            var divisor = divisors_1_1.value;
                            if (difference / divisor > gridCount) {
                                realDivisor = divisor;
                                break;
                            }
                        }
                    }
                    catch (e_1_1) {
                        e_1 = { error: e_1_1 };
                    }
                    finally {
                        try {
                            if (divisors_1_1 && !divisors_1_1.done && (_a = divisors_1.return))
                                _a.call(divisors_1);
                        }
                        finally {
                            if (e_1)
                                throw e_1.error;
                        }
                    }
                    var count = Math.ceil(((max - min) / realDivisor) / gridCount);
                    var exponent = Math.log(Math.abs(count)) * Math.LOG10E;
                    var power = Math.pow(10, Math.floor(exponent)) / 10;
                    var reducedCount = count / power;
                    // find closest to divisor
                    var closest = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["closest"](divisors, reducedCount);
                    count = closest * power;
                    step = realDivisor * count;
                    var unit = this.durationFormatter.getValueUnit(step, this.baseUnit);
                    min = Math.floor(min / step) * step;
                    max = Math.ceil(max / step) * step;
                    if (strictMode) {
                        min -= step;
                        if (min < 0 && initialMin >= 0) {
                            min = 0;
                        }
                        max += step;
                        if (max > 0 && initialMax <= 0) {
                            max = 0;
                        }
                    }
                    minMaxStep = { min: min, max: max, step: step };
                }
                else {
                    minMaxStep = _super.prototype.adjustMinMax.call(this, min, max, difference, gridCount, strictMode);
                }
                // choose duration formatter based on step
                this.axisDurationFormat = this.durationFormatter.getFormat(minMaxStep.step, minMaxStep.max, this.baseUnit);
                return minMaxStep;
                var e_1, _a;
            };
            Object.defineProperty(DurationAxis.prototype, "tooltipDurationFormat", {
                /**
                 * @return {string} Duration format for axis labels
                 */
                get: function () {
                    return this._tooltipDurationFormat;
                },
                /**
                 * A special duration format to apply axis tooltips.
                 *
                 * Will use same format as for labels, if not set.
                 *
                 * @see {@link https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/} for mor information.
                 * @param {string}  value  Duration format for axis labels
                 */
                set: function (value) {
                    this._tooltipDurationFormat = value;
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Returns text to show in a axis tooltip, based on specific position within
             * axis.
             *
             * The label will be formatted as per [[NumberFormatter]] set for the whole
             * chart, or explicitly for this Axis.
             *
             * @ignore Exclude from docs
             * @param  {number}  position  Position (px)
             * @return {string}            Label (numeric value)
             */
            DurationAxis.prototype.getTooltipText = function (position) {
                var value = _core_utils_Math__WEBPACK_IMPORTED_MODULE_3__["round"](this.positionToValue(position), this._stepDecimalPlaces);
                return this.adapter.apply("getTooltipText", this.formatLabel(value, this.tooltipDurationFormat));
            };
            Object.defineProperty(DurationAxis.prototype, "baseUnit", {
                /**
                 * @return {TimeUnit} Base unit
                 */
                get: function () {
                    return this._baseUnit;
                },
                /**
                 * A base unit (granularity) of data.
                 *
                 * Used to indicate what are the base units of your data.
                 *
                 * Available options: "millisecond", "second" (default), "minute", "hour",
                 * "day", "week", "month", "year".
                 *
                 * @default "second"
                 * @param {TimeUnit} timeUnit
                 */
                set: function (timeUnit) {
                    if (this._baseUnit != timeUnit) {
                        this._baseUnit = timeUnit;
                        this.durationFormatter.baseUnit = timeUnit;
                        this.invalidateDataRange();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Copies all properties and related data from a different instance of Axis.
             *
             * @param {this} source Source Axis
             */
            DurationAxis.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.baseUnit = source.baseUnit;
            };
            return DurationAxis;
        }(_ValueAxis__WEBPACK_IMPORTED_MODULE_1__["ValueAxis"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["DurationAxis"] = DurationAxis;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["DurationAxisDataItem"] = DurationAxisDataItem;
        //# sourceMappingURL=DurationAxis.js.map
        /***/ 
    }),
    /* 978 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CircleBullet", function () { return CircleBullet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Bullet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(912);
        /* harmony import */ var _core_elements_Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(866);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /**
         * Bullet module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a bullet with a textual label.
         *
         * Uses [[Label]] instance to draw the label, so the label itself is
         * configurable.
         *
         * @see {@link IBulletEvents} for a list of available events
         * @see {@link IBulletAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var CircleBullet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CircleBullet, _super);
            /**
             * Constructor
             */
            function CircleBullet() {
                var _this = _super.call(this) || this;
                _this.className = "CircleBullet";
                var circle = _this.createChild(_core_elements_Circle__WEBPACK_IMPORTED_MODULE_2__["Circle"]);
                circle.shouldClone = false;
                circle.radius = 5;
                circle.isMeasured = false;
                _this.circle = circle;
                return _this;
            }
            /**
             * Copies all proprities and related stuff from another instance of
             * [[CircleBullet]].
             *
             * @param {this}  source  Source element
             */
            CircleBullet.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.circle.copyFrom(source.circle);
            };
            return CircleBullet;
        }(_Bullet__WEBPACK_IMPORTED_MODULE_1__["Bullet"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["CircleBullet"] = CircleBullet;
        //# sourceMappingURL=CircleBullet.js.map
        /***/ 
    }),
    /* 979 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorBullet", function () { return ErrorBullet; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _Bullet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(912);
        /* harmony import */ var _core_Sprite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(751);
        /* harmony import */ var _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(852);
        /**
         * Bullet module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * Creates a bullet with a textual label.
         *
         * Uses [[Label]] instance to draw the label, so the label itself is
         * configurable.
         *
         * @see {@link IBulletEvents} for a list of available events
         * @see {@link IBulletAdapters} for a list of available Adapters
         * @todo Usage example
         * @important
         */
        var ErrorBullet = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ErrorBullet, _super);
            /**
             * Constructor
             */
            function ErrorBullet() {
                var _this = _super.call(this) || this;
                _this.className = "ErrorBullet";
                _this.errorLine = _this.createChild(_core_Sprite__WEBPACK_IMPORTED_MODULE_2__["Sprite"]);
                _this.errorLine.shouldClone = false;
                _this.width = 20;
                _this.height = 20;
                _this.strokeOpacity = 1;
                _this.isDynamic = true;
                return _this;
            }
            ErrorBullet.prototype.validatePosition = function () {
                _super.prototype.validatePosition.call(this);
                var w = this.pixelWidth / 2;
                var h = this.pixelHeight / 2;
                this.errorLine.path = _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: -w, y: -h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: w, y: -h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: 0, y: -h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: 0, y: h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["moveTo"]({ x: -w, y: h }) + _core_rendering_Path__WEBPACK_IMPORTED_MODULE_4__["lineTo"]({ x: w, y: h });
            };
            /**
             * Copies all proprities and related stuff from another instance of
             * [[ErrorBullet]].
             *
             * @param {this}  source  Source element
             */
            ErrorBullet.prototype.copyFrom = function (source) {
                _super.prototype.copyFrom.call(this, source);
                this.errorLine.copyFrom(source.errorLine);
            };
            return ErrorBullet;
        }(_Bullet__WEBPACK_IMPORTED_MODULE_1__["Bullet"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_3__["registry"].registeredClasses["ErrorBullet"] = ErrorBullet;
        //# sourceMappingURL=ErrorBullet.js.map
        /***/ 
    }),
    /* 980 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationBarDataItem", function () { return NavigationBarDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationBar", function () { return NavigationBar; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_DataItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(860);
        /* harmony import */ var _core_utils_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(769);
        /* harmony import */ var _core_elements_TextLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(881);
        /* harmony import */ var _core_elements_Triangle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(885);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(800);
        /* harmony import */ var _core_utils_Percent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(758);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(762);
        /**
         * Functionality for drawing simple NavigationBar.
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[NavigationBar]].
         *
         * @see {@link DataItem}
         */
        var NavigationBarDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NavigationBarDataItem, _super);
            /**
             * Constructor
             */
            function NavigationBarDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "NavigationBarDataItem";
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(NavigationBarDataItem.prototype, "name", {
                /**
                 * @return {string} Name
                 */
                get: function () {
                    return this.properties["name"];
                },
                /**
                 * Name of the navigation bar item.
                 *
                 * @param {string}  value  Name
                 */
                set: function (value) {
                    this.setProperty("name", value);
                },
                enumerable: true,
                configurable: true
            });
            return NavigationBarDataItem;
        }(_core_DataItem__WEBPACK_IMPORTED_MODULE_2__["DataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * NavigationBar class can be used to create a multi-level breadcrumb-style
         * navigation control.
         *
         * @see {@link INavigationBarEvents} for a list of available events
         * @see {@link INavigationBarAdapters} for a list of available Adapters
         * @todo Implement better
         * @important
         */
        var NavigationBar = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NavigationBar, _super);
            /**
             * Constructor
             */
            function NavigationBar() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "NavigationBar";
                var interfaceColors = new _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_7__["InterfaceColorSet"]();
                var textLink = new _core_elements_TextLink__WEBPACK_IMPORTED_MODULE_4__["TextLink"]();
                textLink.valign = "middle";
                textLink.paddingTop = 8;
                textLink.paddingBottom = 8;
                _this.paddingBottom = 2;
                _this.links = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](textLink);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.links));
                _this._disposers.push(textLink);
                _this._linksIterator = new _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_9__["ListIterator"](_this.links, function () { return _this.links.create(); });
                _this._linksIterator.createNewItems = true;
                var triangle = new _core_elements_Triangle__WEBPACK_IMPORTED_MODULE_5__["Triangle"]();
                triangle.direction = "right";
                triangle.width = 8;
                triangle.height = 12;
                triangle.fill = interfaceColors.getFor("alternativeBackground");
                triangle.fillOpacity = 0.5;
                triangle.valign = "middle";
                triangle.marginLeft = 10;
                triangle.marginRight = 10;
                _this.separators = new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListTemplate"](triangle);
                _this._disposers.push(new _core_utils_List__WEBPACK_IMPORTED_MODULE_3__["ListDisposer"](_this.separators));
                _this._disposers.push(triangle);
                var activeLink = new _core_elements_TextLink__WEBPACK_IMPORTED_MODULE_4__["TextLink"]();
                _this.activeLink = activeLink;
                activeLink.copyFrom(textLink);
                activeLink.valign = "middle";
                activeLink.fontWeight = "bold";
                _this.width = Object(_core_utils_Percent__WEBPACK_IMPORTED_MODULE_8__["percent"])(100);
                _this.layout = "grid";
                _this.dataFields.name = "name";
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Completely redraws the navigation bar.
             *
             * @ignore Exclude from docs
             */
            NavigationBar.prototype.validateDataElements = function () {
                this.removeChildren();
                this._linksIterator.reset();
                _super.prototype.validateDataElements.call(this);
                //@todo: dispose
            };
            /**
             * Creates a visual element for a data item (nav item).
             *
             * @ignore Exclude from docs
             * @param {NavigationBarDataItem}  dataItem  Data item
             */
            NavigationBar.prototype.validateDataElement = function (dataItem) {
                _super.prototype.validateDataElement.call(this, dataItem);
                var textLink;
                if (dataItem.index < this.dataItems.length - 1) {
                    textLink = this._linksIterator.getLast();
                    textLink.parent = this;
                    var separator = this.separators.create();
                    separator.parent = this;
                    separator.valign = "middle";
                }
                else {
                    textLink = this.activeLink;
                    textLink.events.copyFrom(this.links.template.events);
                    textLink.hide(0);
                    textLink.show();
                    textLink.parent = this;
                }
                textLink.dataItem = dataItem;
                textLink.text = dataItem.name;
                textLink.validate();
            };
            return NavigationBar;
        }(_core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["NavigationBar"] = NavigationBar;
        _core_Registry__WEBPACK_IMPORTED_MODULE_6__["registry"].registeredClasses["NavigationBarDataItem"] = NavigationBarDataItem;
        //# sourceMappingURL=NavigationBar.js.map
        /***/ 
    }),
    /* 981 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _internal_themes_animated__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(982);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _internal_themes_animated__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        //# sourceMappingURL=animated.js.map
        /***/ 
    }),
    /* 982 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _core_SpriteState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(767);
        /* harmony import */ var _core_Component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
        /* harmony import */ var _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(879);
        /* harmony import */ var _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(882);
        /* harmony import */ var _charts_series_Series__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(911);
        /* harmony import */ var _charts_series_PercentSeries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(934);
        /* harmony import */ var _charts_types_SankeyDiagram__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(942);
        /* harmony import */ var _charts_series_FunnelSeries__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(968);
        /* harmony import */ var _charts_map_MapSeries__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(983);
        /* harmony import */ var _charts_elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(969);
        /* harmony import */ var _charts_elements_Column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(953);
        /* harmony import */ var _charts_elements_Column3D__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(958);
        /* harmony import */ var _core_elements_Slice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(877);
        /* harmony import */ var _core_elements_Preloader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(876);
        /* harmony import */ var _charts_Chart__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(859);
        var theme = function (object) {
            if (object instanceof _core_SpriteState__WEBPACK_IMPORTED_MODULE_0__["SpriteState"]) {
                object.transitionDuration = 400;
            }
            if (object instanceof _core_Component__WEBPACK_IMPORTED_MODULE_1__["Component"]) {
                object.rangeChangeDuration = 700;
                object.interpolationDuration = 700;
                object.sequencedInterpolation = false;
                if (object instanceof _charts_types_SankeyDiagram__WEBPACK_IMPORTED_MODULE_6__["SankeyDiagram"]) {
                    object.sequencedInterpolation = true;
                }
                if (object instanceof _charts_series_FunnelSeries__WEBPACK_IMPORTED_MODULE_7__["FunnelSeries"]) {
                    object.sequencedInterpolation = true;
                }
            }
            if (object instanceof _charts_Chart__WEBPACK_IMPORTED_MODULE_14__["Chart"]) {
                object.defaultState.transitionDuration = 2000;
                object.hiddenState.transitionDuration = 1000;
            }
            if (object instanceof _core_elements_Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"]) {
                object.animationDuration = 400;
                object.defaultState.transitionDuration = 400;
                object.hiddenState.transitionDuration = 400;
            }
            if (object instanceof _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_2__["Scrollbar"]) {
                object.animationDuration = 700;
            }
            if (object instanceof _charts_series_Series__WEBPACK_IMPORTED_MODULE_4__["Series"]) {
                object.defaultState.transitionDuration = 1000;
                object.hiddenState.transitionDuration = 700;
                object.hiddenState.properties.opacity = 1;
            }
            if (object instanceof _charts_map_MapSeries__WEBPACK_IMPORTED_MODULE_8__["MapSeries"]) {
                object.hiddenState.properties.opacity = 0;
            }
            if (object instanceof _charts_series_PercentSeries__WEBPACK_IMPORTED_MODULE_5__["PercentSeries"]) {
                object.hiddenState.properties.opacity = 0;
            }
            if (object instanceof _charts_elements_FunnelSlice__WEBPACK_IMPORTED_MODULE_9__["FunnelSlice"]) {
                object.defaultState.transitionDuration = 800;
                object.hiddenState.transitionDuration = 1000;
                object.hiddenState.properties.opacity = 1;
            }
            if (object instanceof _core_elements_Slice__WEBPACK_IMPORTED_MODULE_12__["Slice"]) {
                object.defaultState.transitionDuration = 700;
                object.hiddenState.transitionDuration = 1000;
                object.hiddenState.properties.opacity = 1;
            }
            if (object instanceof _core_elements_Preloader__WEBPACK_IMPORTED_MODULE_13__["Preloader"]) {
                object.hiddenState.transitionDuration = 2000;
            }
            if (object instanceof _charts_elements_Column__WEBPACK_IMPORTED_MODULE_10__["Column"]) {
                object.defaultState.transitionDuration = 700;
                object.hiddenState.transitionDuration = 1000;
                object.hiddenState.properties.opacity = 1;
            }
            if (object instanceof _charts_elements_Column3D__WEBPACK_IMPORTED_MODULE_11__["Column3D"]) {
                object.hiddenState.properties.opacity = 0;
            }
        };
        /* harmony default export */ __webpack_exports__["default"] = (theme);
        //# sourceMappingURL=animated.js.map
        /***/ 
    }),
    /* 983 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapSeriesDataItem", function () { return MapSeriesDataItem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapSeries", function () { return MapSeries; });
        /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(753);
        /* harmony import */ var _series_Series__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(911);
        /* harmony import */ var _core_Registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(751);
        /* harmony import */ var _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(762);
        /* harmony import */ var _core_utils_Type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(757);
        /**
         * Map series module
         */
        /**
         * ============================================================================
         * IMPORTS
         * ============================================================================
         * @hidden
         */
        /**
         * ============================================================================
         * DATA ITEM
         * ============================================================================
         * @hidden
         */
        /**
         * Defines a [[DataItem]] for [[MapSeries]].
         *
         * @see {@link DataItem}
         */
        var MapSeriesDataItem = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MapSeriesDataItem, _super);
            /**
             * Constructor
             */
            function MapSeriesDataItem() {
                var _this = _super.call(this) || this;
                _this.className = "MapSeriesDataItem";
                _this.values.value = {};
                _this.applyTheme();
                return _this;
            }
            Object.defineProperty(MapSeriesDataItem.prototype, "value", {
                /**
                 * @return {number} Value
                 */
                get: function () {
                    return this.values.value.value;
                },
                /**
                 * Numeric value of the data item.
                 *
                 * Value may be used in heat-map calculations.
                 *
                 * @param {number}  value  Value
                 */
                set: function (value) {
                    this.setValue("value", value);
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Updates the item's bounding coordinates: coordinates of the East, West,
             * North, and South-most points.
             *
             * @ignore Exclude from docs
             * @param {IGeoPoint[]}  geoPoints  Points of the element
             */
            MapSeriesDataItem.prototype.updateExtremes = function (geoPoints) {
                for (var s = 0; s < geoPoints.length; s++) {
                    var longitude = geoPoints[s].longitude;
                    var latitude = geoPoints[s].latitude;
                    if ((this.west > longitude) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.west)) {
                        this.west = longitude;
                    }
                    if ((this.east < longitude) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.east)) {
                        this.east = longitude;
                    }
                    if ((this.north < latitude) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.north)) {
                        this.north = latitude;
                    }
                    if ((this.south > latitude) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](this.south)) {
                        this.south = latitude;
                    }
                }
            };
            return MapSeriesDataItem;
        }(_series_Series__WEBPACK_IMPORTED_MODULE_1__["SeriesDataItem"]));
        /**
         * ============================================================================
         * MAIN CLASS
         * ============================================================================
         * @hidden
         */
        /**
         * A base class for series of map objects.
         *
         * @see {@link IMapSeriesEvents} for a list of available Events
         * @see {@link IMapSeriesAdapters} for a list of available Adapters
         * @important
         */
        var MapSeries = /** @class */ (function (_super) {
            tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MapSeries, _super);
            /**
             * Constructor
             */
            function MapSeries() {
                var _this = 
                // Init
                _super.call(this) || this;
                _this.className = "MapSeries";
                // Set defaults
                _this.isMeasured = false;
                _this.nonScalingStroke = true;
                // Set data fields
                _this.dataFields.value = "value";
                // Apply theme
                _this.applyTheme();
                return _this;
            }
            /**
             * Returns a new/empty DataItem of the type appropriate for this object.
             *
             * @see {@link DataItem}
             * @return {MapSeriesDataItem} Data Item
             */
            MapSeries.prototype.createDataItem = function () {
                return new MapSeriesDataItem();
            };
            /**
             * (Re)validates series data, effectively causing the whole series to be
             * redrawn.
             *
             * @ignore Exclude from docs
             */
            MapSeries.prototype.validateData = function () {
                var _this = this;
                _super.prototype.validateData.call(this);
                _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["each"](this.dataItems.iterator(), function (dataItem) {
                    if ((_this.west > dataItem.west) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](_this.west)) {
                        _this.west = dataItem.west;
                    }
                    if ((_this.east < dataItem.east) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](_this.east)) {
                        _this.east = dataItem.east;
                    }
                    if ((_this.north < dataItem.north) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](_this.north)) {
                        _this.north = dataItem.north;
                    }
                    if ((_this.south > dataItem.south) || !_core_utils_Type__WEBPACK_IMPORTED_MODULE_4__["isNumber"](_this.south)) {
                        _this.south = dataItem.south;
                    }
                });
                if (this.chart) {
                    this.chart.updateExtremes();
                }
            };
            /**
             * Checks whether object should be included in series.
             *
             * @param  {string[]}  includes  A list of explicitly included ids
             * @param  {string[]}  excludes  A list of explicitly excluded ids
             * @param  {string}    id        Id of the object
             * @return {boolean}             Include?
             */
            MapSeries.prototype.checkInclude = function (includes, excludes, id) {
                if (includes) {
                    if (includes.length == 0) {
                        return false;
                    }
                    else {
                        if (includes.indexOf(id) == -1) {
                            return false;
                        }
                    }
                }
                if (excludes && excludes.length > 0) {
                    if (excludes.indexOf(id) != -1) {
                        return false;
                    }
                }
                return true;
            };
            Object.defineProperty(MapSeries.prototype, "useGeodata", {
                /**
                 * @return {boolean} Use GeoJSON data?
                 */
                get: function () {
                    return this.getPropertyValue("useGeodata");
                },
                /**
                 * Should the map extract all the data about element from the GeoJSON?
                 *
                 * This is especially relevant for [[MapPolygonSeries]]. If not set to `true`
                 * polygon series will need to contain geographical data in itself in order
                 * to be drawn.
                 *
                 * If this is set to `true`, series will try to extract data for its objects
                 * from either chart-level `geodata` or from series' `geodata` which holds
                 * map infor in GeoJSON format.
                 *
                 * @default false
                 * @param {boolean}  value  Use GeoJSON data?
                 */
                set: function (value) {
                    if (this.setPropertyValue("useGeodata", value)) {
                        this.invalidateData();
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(MapSeries.prototype, "include", {
                /**
                 * @return {string[]} Included objects
                 */
                get: function () {
                    return this.getPropertyValue("include");
                },
                /**
                 * A list of object ids that should be explictly included in the series.
                 *
                 * If this is not set, the series will automatically include all of the
                 * objects, available in the GeoJSON map. (minus the ones listed in
                 * `exclude`)
                 *
                 * If you need to display only specific objects, use `include`. E.g.:
                 *
                 * `include = ["FR", "ES", "DE"];`
                 *
                 * The above will show only France, Spain, and Germany out of the whole map.
                 *
                 * @param {string[]}  value  Included objects
                 */
                set: function (value) {
                    if (this.setPropertyValue("include", value)) {
                        this.processIncExc();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * @ignore
             */
            MapSeries.prototype.processIncExc = function () {
                //this.data = [];
                this.invalidateData();
            };
            Object.defineProperty(MapSeries.prototype, "exclude", {
                /**
                 * @return {string[]} Excluded ids
                 */
                get: function () {
                    return this.getPropertyValue("exclude");
                },
                /**
                 * A list of object ids that should be excluded from the series.
                 *
                 * E.g. you want to include all of the areas from a GeoJSON map, except
                 * Antarctica.
                 *
                 * You'd leave `include` empty, and set `exclude = ["AQ"]`.
                 *
                 * @param {string[]}  value  Excluded ids
                 */
                set: function (value) {
                    if (this.setPropertyValue("exclude", value)) {
                        this.processIncExc();
                    }
                },
                enumerable: true,
                configurable: true
            });
            /**
             * Decorates a newly added object.
             *
             * @param {IListEvents<MapObject>["inserted"]} event [description]
             */
            MapSeries.prototype.handleObjectAdded = function (event) {
                var mapObject = event.newValue;
                mapObject.parent = this;
                mapObject.series = this;
            };
            Object.defineProperty(MapSeries.prototype, "geodata", {
                /**
                 * @return {Object} GeoJSON data
                 */
                get: function () {
                    return this._geodata;
                },
                /**
                 * Map data in GeoJSON format.
                 *
                 * The series supports the following GeoJSON objects: `Point`, `LineString`,
                 * `Polygon`, `MultiPoint`, `MultiLineString`, and `MultiPolygon`.
                 *
                 * @see {@link http://geojson.org/} Official GeoJSON format specification
                 * @param {Object} geoJSON GeoJSON data
                 */
                set: function (geodata) {
                    if (geodata != this._geodata) {
                        this._geodata = geodata;
                        this.invalidateData();
                        _core_utils_Iterator__WEBPACK_IMPORTED_MODULE_3__["each"](this._dataUsers.iterator(), function (x) {
                            x.invalidateData();
                        });
                    }
                },
                enumerable: true,
                configurable: true
            });
            Object.defineProperty(MapSeries.prototype, "geodataSource", {
                /**
                 * Returns a [[DataSource]] specifically for loading Component's data.
                 *
                 * @return {DataSource} Data source
                 */
                get: function () {
                    if (!this._dataSources["geodata"]) {
                        this.getDataSource("geodata");
                    }
                    return this._dataSources["geodata"];
                },
                /**
                 * Sets a [[DataSource]] to be used for loading Component's data.
                 *
                 * @param {DataSource} value Data source
                 */
                set: function (value) {
                    var _this = this;
                    if (this._dataSources["geodata"]) {
                        this.removeDispose(this._dataSources["geodata"]);
                    }
                    this._dataSources["geodata"] = value;
                    this._dataSources["geodata"].component = this;
                    this.events.on("inited", function () {
                        _this.loadData("geodata");
                    }, undefined, false);
                    this.setDataSourceEvents(value, "geodata");
                },
                enumerable: true,
                configurable: true
            });
            return MapSeries;
        }(_series_Series__WEBPACK_IMPORTED_MODULE_1__["Series"]));
        /**
         * Register class in system, so that it can be instantiated using its name from
         * anywhere.
         *
         * @ignore
         */
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["MapSeries"] = MapSeries;
        _core_Registry__WEBPACK_IMPORTED_MODULE_2__["registry"].registeredClasses["MapSeriesDataItem"] = MapSeriesDataItem;
        //# sourceMappingURL=MapSeries.js.map
        /***/ 
    }),
    /* 984 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _internal_themes_dark__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(985);
        /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function () { return _internal_themes_dark__WEBPACK_IMPORTED_MODULE_0__["default"]; });
        //# sourceMappingURL=dark.js.map
        /***/ 
    }),
    /* 985 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var _core_utils_Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(774);
        /* harmony import */ var _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(800);
        /* harmony import */ var _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(879);
        var theme = function (object) {
            if (object instanceof _core_utils_InterfaceColorSet__WEBPACK_IMPORTED_MODULE_1__["InterfaceColorSet"]) {
                object.setFor("stroke", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#000000"));
                object.setFor("fill", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#2b2b2b"));
                object.setFor("primaryButton", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#6794dc").lighten(-0.2));
                object.setFor("primaryButtonHover", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#6771dc").lighten(-0.2));
                object.setFor("primaryButtonDown", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#68dc75").lighten(-0.2));
                object.setFor("primaryButtonActive", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#68dc75").lighten(-0.2));
                object.setFor("primaryButtonText", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#FFFFFF"));
                object.setFor("primaryButtonStroke", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#6794dc"));
                object.setFor("secondaryButton", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#3b3b3b"));
                object.setFor("secondaryButtonHover", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#3b3b3b").lighten(0.1));
                object.setFor("secondaryButtonDown", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#3b3b3b").lighten(0.15));
                object.setFor("secondaryButtonActive", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#3b3b3b").lighten(0.15));
                object.setFor("secondaryButtonText", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#bbbbbb"));
                object.setFor("secondaryButtonStroke", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#3b3b3b").lighten(-0.2));
                object.setFor("grid", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#bbbbbb"));
                object.setFor("background", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#000000"));
                object.setFor("alternativeBackground", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#ffffff"));
                object.setFor("text", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#ffffff"));
                object.setFor("alternativeText", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#000000"));
                object.setFor("disabledBackground", Object(_core_utils_Color__WEBPACK_IMPORTED_MODULE_0__["color"])("#bbbbbb"));
            }
            if (object instanceof _core_elements_Scrollbar__WEBPACK_IMPORTED_MODULE_2__["Scrollbar"]) {
                object.background.fillOpacity = 0.4;
                object.thumb.background.fillOpacity = 0.5;
            }
        };
        /* harmony default export */ __webpack_exports__["default"] = (theme);
        //# sourceMappingURL=dark.js.map
        /***/ 
    }),
    /* 986 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
        /* harmony import */ var _config_Resource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66);
        /* harmony import */ var _styles_radialgradients__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(743);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(704);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(material_icons_react__WEBPACK_IMPORTED_MODULE_4__);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var PlanetInfo = /** @class */ (function (_super) {
            __extends(PlanetInfo, _super);
            function PlanetInfo() {
                return _super !== null && _super.apply(this, arguments) || this;
            }
            PlanetInfo.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        return [2 /*return*/];
                    });
                });
            };
            PlanetInfo.prototype.render = function () {
                var planet = this.props.location.state.planet;
                var size = window.innerWidth / 5 > 200 ? window.innerWidth / 5 : 200;
                size = size > 400 ? 400 : size;
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], { className: 'post-preview' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"], { columns: 2, stackable: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], { text: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5___default.a, { height: size, width: size, x: size / 2 }, ' ', Object(_styles_radialgradients__WEBPACK_IMPORTED_MODULE_3__["Gradient"])(), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["G"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Defs"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["ClipPath"], { id: "clip" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Circle"], { cx: size / 2, cy: size / 2, r: size / 2 }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Image"], { width: 800, height: 800, x: 0, y: 0, href: "../img/" + planet.img.uri + ".jpg", clipPath: "url(#clip)" }, ' '), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Circle"], { cx: size / 2, cy: size / 2, r: size / 2, fillOpacity: 0.3, fill: "url(#" + planet.img.uri + ")" }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].esiratings), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Rating"], { icon: "star", defaultRating: Math.round(planet.esi * 10), maxRating: 10, size: "massive", disabled: true }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].sphratings), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Rating"], { icon: "star", defaultRating: Math.round(planet.sph * 10), maxRating: 10, size: "massive", disabled: true }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Header"], { className: 'post-preview' }, planet.name), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"], { celled: true }, ' ', react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, null, planet.mass && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[0]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.mass + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))), planet.radiusEu && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[1]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.radiusEu + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))), planet.density && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[2]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.density + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))), planet.gravity && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[3]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.gravity + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))), planet.surfacePressure && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[4]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.surfacePressure + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))), planet.escapeVelocity && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetinfo[5]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, planet.escapeVelocity + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].earth))))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_6__["Link"], { to: {
                        pathname: "../star/" + planet.star.name,
                        state: { star: planet.star }
                    } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Button"], { icon: true, inverted: true, basic: true, color: 'grey', height: "40" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_4___default.a, { icon: "wb_sunny", color: "#c6d4ff", size: 40 }), "Visit Star", " ")), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_6__["Link"], { to: {
                        pathname: "../system/" + planet.star.name,
                        state: { star: planet.star }
                    } }, " ", react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Button"], { icon: true, inverted: true, basic: true, color: 'grey', height: "40" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_4___default.a, { icon: "3d_rotation", color: "#c6d4ff", size: 40 }), "Visit Solar System"))))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", null), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetname[0] + " " + planet.name + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetname[1] + "  " + planet.star.name + "  " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].planetname[2] + " " + (_config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].const[planet.star.constellation] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].const[planet.star.constellation]), ' ', "" + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].decFormatdist[0] + (planet.distance !== 0 ? Math.round(planet.distance) : '') + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].decFormatdist[1] + " ", react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].massInfo[planet.massType] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].massInfo[planet.massType], ' ', _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].compInfo[planet.comp] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].compInfo[planet.comp], ' ', planet.temp != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].meantemp[0] + " " + planet.temp + ". "
                    : '', planet.tempMax != null && planet.tempMin != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].meantemp[1] + " " + planet.name + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].meantemp[2] + " " + planet.tempMax + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].meantemp[3] + " " + planet.tempMin
                    : ''), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, planet.period != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].orbit[0] + " " + planet.period + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].orbit[1] + " "
                    : '', planet.meanDistance != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].decMean[0] + " " + planet.meanDistance + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].decMean[1]
                    : ''), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "" + (_config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].hzd[planet.hzd] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].hzd[planet.hzd] + ' ') + (_config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].hza[planet.hza] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].hza[planet.hza] + ' ') + (_config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].atmosinfo[planet.atmosphere] === undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].atmosinfo[planet.atmosphere] + ' ') + (planet.moons ? _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].moon : '')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, (planet.discYear === undefined ? '' : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].disc) + " " + (planet.discYear === undefined ? '' : planet.discYear) + "."), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "" + (_config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].discinfo[planet.discMethod] == undefined
                    ? ''
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_2__["resource"].discinfo[planet.discMethod])))));
            };
            return PlanetInfo;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (PlanetInfo);
        /***/ 
    }),
    /* 987 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var react_svg_pan_zoom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(988);
        /* harmony import */ var react_svg_pan_zoom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(react_svg_pan_zoom__WEBPACK_IMPORTED_MODULE_1__);
        /* harmony import */ var _service_getPlanets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
        /* harmony import */ var _service_getSolarSystem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(989);
        /* harmony import */ var _styles_radialgradients__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(743);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var Simulator = /** @class */ (function (_super) {
            __extends(Simulator, _super);
            function Simulator() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                _this.state = {
                    x: 0,
                    y: 0,
                    alpha: 0,
                    star: {},
                    loading: true,
                };
                _this.updateHandler = function () { return _this.setState({ alpha: _this.state.alpha + 1 / 50 }); };
                _this.RotateX = function (cx, rx) {
                    return cx + rx * Math.cos(_this.state.alpha + rx);
                };
                _this.RotateY = function (cy, ry) {
                    return cy + ry * Math.sin(_this.state.alpha + ry / 0.3);
                };
                _this.navigateToPlanet = function (planet) {
                    return __awaiter(_this, void 0, void 0, function () {
                        var planetinfo;
                        return __generator(this, function (_a) {
                            switch (_a.label) {
                                case 0:
                                    if (!(planet.id !== undefined))
                                        return [3 /*break*/, 2];
                                    return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_2__["GetPlanetAsync"])(planet.id)];
                                case 1:
                                    planetinfo = _a.sent();
                                    planetinfo &&
                                        this.props.history.push({
                                            pathname: "/planet/" + planetinfo.name,
                                            state: { planet: planetinfo }
                                        });
                                    _a.label = 2;
                                case 2: return [2 /*return*/];
                            }
                        });
                    });
                };
                return _this;
            }
            Simulator.prototype.componentWillMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    var location, star;
                    var _this = this;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                location = this.props.location;
                                return [4 /*yield*/, Object(_service_getSolarSystem__WEBPACK_IMPORTED_MODULE_3__["getSolarSystem"])(location.state.star)];
                            case 1:
                                star = _a.sent();
                                star.radius = Object(_service_getSolarSystem__WEBPACK_IMPORTED_MODULE_3__["getStarSize"])(star);
                                setInterval(function () { return _this.updateHandler(); }, 1000);
                                this.setState({ star: star, loading: false });
                                return [2 /*return*/];
                        }
                    });
                });
            };
            Simulator.prototype.render = function () {
                var _this = this;
                var _a = this.state, star = _a.star, loading = _a.loading;
                var width = window.innerWidth - 20;
                var height = window.innerHeight - 120;
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: 'space' }, loading ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null)) : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_svg_pan_zoom__WEBPACK_IMPORTED_MODULE_1__["ReactSVGPanZoom"], { width: width, height: height, SVGBackground: 'transparent', background: 'transparent', onClick: function (event) { return _this.navigateToPlanet(event.originalEvent.target); } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5___default.a, { x: 0, y: 0, height: height, width: width }, Object(_styles_radialgradients__WEBPACK_IMPORTED_MODULE_4__["Gradient"])(), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Rect"], { x: width / 2 - (3 * star.radius) / 2, y: height / 2, width: star.radius * 3, height: star.radius * 3, fill: "url(#Star" + (star.color != null ? star.color.toString() : 2) + ")" }), star.habZoneMax != null ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Ellipse"], { cx: width / 2, cy: height / 2, rx: star.habZoneMax, ry: star.habZoneMax * 0.3, stroke: "blue", strokeWidth: "1", fillOpacity: "0" })) : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null)), star.habZoneMax != null ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Ellipse"], { cx: width / 2, cy: height / 2, rx: star.habZoneMin, ry: star.habZoneMin * 0.3, stroke: "red", strokeWidth: "1", fillOpacity: "0" })) : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null)), star.planets.map(function (p, index) {
                    return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["G"], { key: index.toString() }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Defs"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["ClipPath"], { id: index.toString() }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Circle"], { cx: _this.RotateX(width / 2, p.starDistance), cy: _this.RotateY(height / 2, p.starDistance * 0.3), r: p.radius }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Image"], { width: "180", height: "190", x: _this.RotateX(width / 2 - 2 * p.radius, p.starDistance), y: _this.RotateY(height / 2 - 2 * p.radius, p.starDistance * 0.3), href: "../img/" + p.img.uri + ".jpg", clipPath: "url(#" + index.toString() }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Circle"], { id: p.name, cx: _this.RotateX(width / 2, p.starDistance), cy: _this.RotateY(height / 2, p.starDistance * 0.3), r: p.radius, fillOpacity: 0.4, fill: "url(#" + p.img.uri + ")", style: { cursor: 'pointer' } }), "/>", react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Text"], { key: "text- " + index, x: p.radius + _this.RotateX(width / 2, p.starDistance), y: p.radius +
                            _this.RotateY(height / 2, p.starDistance * 0.3), textAnchor: "end", id: p.name, fontWeight: "bold", fontSize: "18", fill: "white", style: { cursor: 'pointer' } }, p.name)));
                }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_5__["Rect"], { x: width / 2 - (3 * star.radius) / 2, y: height / 2 - 3 * star.radius, width: star.radius * 3, height: star.radius * 3, fill: "url(#StarTop" + (star.color != null ? star.color.toString() : 2) + ")" }))))));
            };
            return Simulator;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Simulator);
        /***/ 
    }),
    /* 988 */
    /***/ (function (module, exports, __webpack_require__) {
        !function (e, t) { true ? module.exports = t(__webpack_require__(24), __webpack_require__(9)) : undefined; }(window, function (e, t) { return function (e) { var t = {}; function n(r) { if (t[r])
            return t[r].exports; var o = t[r] = { i: r, l: !1, exports: {} }; return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports; } return n.m = e, n.c = t, n.d = function (e, t, r) { n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r }); }, n.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }, n.t = function (e, t) { if (1 & t && (e = n(e)), 8 & t)
            return e; if (4 & t && "object" == typeof e && e && e.__esModule)
            return e; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e)
            for (var o in e)
                n.d(r, o, function (t) { return e[t]; }.bind(null, o)); return r; }, n.n = function (e) { var t = e && e.__esModule ? function () { return e.default; } : function () { return e; }; return n.d(t, "a", t), t; }, n.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t); }, n.p = "", n(n.s = 3); }([function (t, n) { t.exports = e; }, function (e, n) { e.exports = t; }, function (e, t, n) { window, e.exports = function (e) { var t = {}; function n(r) { if (t[r])
                return t[r].exports; var o = t[r] = { i: r, l: !1, exports: {} }; return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports; } return n.m = e, n.c = t, n.d = function (e, t, r) { n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r }); }, n.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }, n.t = function (e, t) { if (1 & t && (e = n(e)), 8 & t)
                return e; if (4 & t && "object" == typeof e && e && e.__esModule)
                return e; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e)
                for (var o in e)
                    n.d(r, o, function (t) { return e[t]; }.bind(null, o)); return r; }, n.n = function (e) { var t = e && e.__esModule ? function () { return e.default; } : function () { return e; }; return n.d(t, "a", t), t; }, n.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t); }, n.p = "", n(n.s = 0); }([function (e, t, n) {
                    "use strict";
                    function r(e, t) { return { x: e.a * t.x + e.c * t.y + e.e, y: e.b * t.x + e.d * t.y + e.f }; }
                    function o(e, t) { return t.map(function (t) { return r(e, t); }); }
                    function i(e) { return { a: parseFloat(e.a), b: parseFloat(e.b), c: parseFloat(e.c), d: parseFloat(e.d), e: parseFloat(e.e), f: parseFloat(e.f) }; }
                    n.r(t);
                    var a = /^matrix\(\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*\)$/i;
                    function u(e) { var t = e.match(a); if (null === t || t.length < 7)
                        throw new Error("'" + e + "' is not a matrix"); return { a: parseFloat(t[1]), b: parseFloat(t[2]), c: parseFloat(t[3]), d: parseFloat(t[4]), e: parseFloat(t[5]), f: parseFloat(t[6]) }; }
                    function c() { return { a: 1, c: 0, e: 0, b: 0, d: 1, f: 0 }; }
                    function l(e) { var t = e.a, n = e.b, r = e.c, o = e.d, i = e.e, a = e.f, u = t * o - n * r; return { a: o / u, b: n / -u, c: r / -u, d: t / u, e: (o * i - r * a) / -u, f: (n * i - t * a) / u }; }
                    var s = "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; }, f = function (e) { return "number" == typeof e && !isNaN(e) && isFinite(e); }, h = function (e) { return null != e && "object" === (void 0 === e ? "undefined" : s(e)); };
                    function d(e) { return h(e) && e.hasOwnProperty("a") && f(e.a) && e.hasOwnProperty("b") && f(e.b) && e.hasOwnProperty("c") && f(e.c) && e.hasOwnProperty("d") && f(e.d) && e.hasOwnProperty("e") && f(e.e) && e.hasOwnProperty("f") && f(e.f); }
                    function p(e) { return void 0 === e; }
                    function v(e) { return { a: 1, c: 0, e: e, b: 0, d: 1, f: arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 }; }
                    function g() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
                        t[n] = arguments[n]; var r = function (e, t) { return { a: e.a * t.a + e.c * t.b, c: e.a * t.c + e.c * t.d, e: e.a * t.e + e.c * t.f + e.e, b: e.b * t.a + e.d * t.b, d: e.b * t.c + e.d * t.d, f: e.b * t.e + e.d * t.f + e.f }; }; switch ((t = Array.isArray(t[0]) ? t[0] : t).length) {
                        case 0: throw new Error("no matrices provided");
                        case 1: return t[0];
                        case 2: return r(t[0], t[1]);
                        default:
                            var o = function (e) { return Array.isArray(e) ? e : Array.from(e); }(t), i = o[0], a = o[1], u = o.slice(2), c = r(i, a);
                            return g.apply(void 0, [c].concat(function (e) { if (Array.isArray(e)) {
                                for (var t = 0, n = Array(e.length); t < e.length; t++)
                                    n[t] = e[t];
                                return n;
                            } return Array.from(e); }(u)));
                    } }
                    var m = Math.cos, b = Math.sin, y = Math.PI;
                    function O(e, t, n) { var r = m(e), o = b(e), i = { a: r, c: -o, e: 0, b: o, d: r, f: 0 }; return p(t) || p(n) ? i : g([v(t, n), i, v(-t, -n)]); }
                    function w(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0; return O(e * y / 180, t, n); }
                    function V(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0; return p(t) && (t = e), { a: e, c: 0, e: 0, b: 0, d: t, f: 0 }; }
                    function x(e, t) { return { a: 1, c: e, e: 0, b: t, d: 1, f: 0 }; }
                    function P(e) { return E(e); }
                    function M(e) { return E(e); }
                    function E(e) { return "matrix(" + e.a + "," + e.b + "," + e.c + "," + e.d + "," + e.e + "," + e.f + ")"; }
                    n.d(t, "applyToPoint", function () { return r; }), n.d(t, "applyToPoints", function () { return o; }), n.d(t, "fromObject", function () { return i; }), n.d(t, "fromString", function () { return u; }), n.d(t, "identity", function () { return c; }), n.d(t, "inverse", function () { return l; }), n.d(t, "isAffineMatrix", function () { return d; }), n.d(t, "rotate", function () { return O; }), n.d(t, "rotateDEG", function () { return w; }), n.d(t, "scale", function () { return V; }), n.d(t, "shear", function () { return x; }), n.d(t, "toCSS", function () { return P; }), n.d(t, "toSVG", function () { return M; }), n.d(t, "toString", function () { return E; }), n.d(t, "transform", function () { return g; }), n.d(t, "translate", function () { return v; });
                }]); }, function (e, t, n) {
                "use strict";
                n.r(t);
                var r = n(1), o = n.n(r), i = n(0), a = n.n(i), u = n(2), c = "idle", l = "panning", s = "zooming", f = "auto", h = "none", d = "pan", p = "zoom-in", v = "zoom-out", g = "top", m = "right", b = "bottom", y = "left", O = "zoom", w = "pan", V = "center", x = "left", P = "right", M = "top", E = "bottom", j = ("function" == typeof Symbol && Symbol.iterator, Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; });
                function k(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null; return e = Object.assign({}, e, t, { lastAction: n }), Object.freeze(e); }
                function S(e, t, n) { var r = Object(u.fromObject)(e), o = Object(u.inverse)(r); return Object(u.applyToPoint)(o, { x: t, y: n }); }
                function T(e) { var t = Object(u.fromObject)(e); return { scaleFactor: t.a, translationX: t.e, translationY: t.f }; }
                function _(e, t, n, r) { var o = e.viewerWidth, i = e.viewerHeight, a = Object(u.transform)(Object(u.translate)(o / 2 - t, i / 2 - n), Object(u.translate)(t, n), Object(u.scale)(r, r), Object(u.translate)(-t, -n)); return k(e, j({ mode: c }, a)); }
                function C(e) { return k(e, j({ mode: c }, Object(u.identity)())); }
                function R(e) { return k(e, { mode: c, startX: null, startY: null, endX: null, endY: null }); }
                var F = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var G = function () { function e(t, n, r) { !function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, e), this.originalEvent = t, this.value = n, this.SVGViewer = r; } return F(e, [{ key: "preventDefault", value: function () { this.originalEvent.preventDefault(); } }, { key: "stopPropagation", value: function () { this.originalEvent.stopPropagation(); } }, { key: "scaleFactor", get: function () { return this._cacheDecomposedValue = this._cacheDecomposedValue || T(this.value), this._cacheDecomposedValue.scaleFactor; } }, { key: "translationX", get: function () { return this._cacheDecomposedValue = this._cacheDecomposedValue || T(this.value), this._cacheDecomposedValue.translationX; } }, { key: "translationY", get: function () { return this._cacheDecomposedValue = this._cacheDecomposedValue || T(this.value), this._cacheDecomposedValue.translationY; } }]), e; }(), Y = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var D = function (e) { function t() { return function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, t), function (e, t) { if (!e)
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || "object" != typeof t && "function" != typeof t ? e : t; }(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)); } return function (e, t) { if ("function" != typeof t && null !== t)
                    throw new TypeError("Super expression must either be null or a function, not " + typeof t); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t); }(t, G), Y(t, [{ key: "point", get: function () { if (!this._cachePoint) {
                            var e = this.originalEvent, t = this.value, n = this.SVGViewer.getBoundingClientRect(), r = e.clientX - Math.round(n.left), o = e.clientY - Math.round(n.top);
                            this._cachePoint = S(t, r, o);
                        } return this._cachePoint; } }, { key: "x", get: function () { return this.point.x; } }, { key: "y", get: function () { return this.point.y; } }]), t; }(), X = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; }, q = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var L = function (e) { function t() { return function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, t), function (e, t) { if (!e)
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || "object" != typeof t && "function" != typeof t ? e : t; }(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)); } return function (e, t) { if ("function" != typeof t && null !== t)
                    throw new TypeError("Super expression must either be null or a function, not " + typeof t); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t); }(t, G), q(t, [{ key: "points", get: function () { return this._cachePoints || (this._cachePoints = t.touchesToPoints(this.originalEvent.touches, this.SVGViewer, this.value)), this._cachePoints; } }, { key: "changedPoints", get: function () { return this._cacheChangedPoints || (this._cacheChangedPoints = t.touchesToPoints(this.originalEvent.changedTouches, this.SVGViewer, this.value)), this._cacheChangedPoints; } }], [{ key: "touchesToPoints", value: function (e, t, n) { for (var r = [], o = 0; o < e.length; o++) {
                            var i = e[o], a = t.getBoundingClientRect(), u = S(n, i.clientX - Math.round(a.left), i.clientY - Math.round(a.top));
                            r.push(X({}, u, { identifier: i.identifier }));
                        } return r; } }]), t; }(), A = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; }, H = function () { return function (e, t) { if (Array.isArray(e))
                    return e; if (Symbol.iterator in Object(e))
                    return function (e, t) { var n = [], r = !0, o = !1, i = void 0; try {
                        for (var a, u = e[Symbol.iterator](); !(r = (a = u.next()).done) && (n.push(a.value), !t || n.length !== t); r = !0)
                            ;
                    }
                    catch (e) {
                        o = !0, i = e;
                    }
                    finally {
                        try {
                            !r && u.return && u.return();
                        }
                        finally {
                            if (o)
                                throw i;
                        }
                    } return n; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }; }();
                function W(e, t, n) { var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : void 0, o = Object(u.transform)(Object(u.fromObject)(e), Object(u.translate)(t, n)); if (r) {
                    var i = Object(u.applyToPoints)(o, [{ x: r, y: r }, { x: e.SVGWidth - r, y: e.SVGHeight - r }]), a = H(i, 2), l = a[0], s = l.x, f = l.y, h = a[1], d = h.x, p = h.y, v = 0;
                    e.viewerWidth - s < 0 ? v = e.viewerWidth - s : d < 0 && (v = -d);
                    var g = 0;
                    e.viewerHeight - f < 0 ? g = e.viewerHeight - f : p < 0 && (g = -p), o = Object(u.transform)(Object(u.translate)(v, g), o);
                } return k(e, A({ mode: c }, o), w); }
                function z(e) { return k(e, { mode: c, startX: null, startY: null, endX: null, endY: null }, w); }
                function N(e, t) { return e.x <= t.x && e.y <= t.y ? { x: e.x, y: e.y, width: t.x - e.x, height: t.y - e.y } : e.x >= t.x && e.y <= t.y ? { x: t.x, y: e.y, width: e.x - t.x, height: t.y - e.y } : e.x >= t.x && e.y >= t.y ? { x: t.x, y: t.y, width: e.x - t.x, height: e.y - t.y } : e.x <= t.x && e.y >= t.y ? { x: e.x, y: t.y, width: t.x - e.x, height: e.y - t.y } : void 0; }
                var I = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; };
                function B(e, t) { return function (e, t) { return e.scaleFactorMin && e.d * t <= e.scaleFactorMin; }(e, t) && t < 1 || function (e, t) { return e.scaleFactorMax && e.d * t >= e.scaleFactorMax; }(e, t) && t > 1; }
                function Z(e, t) { var n = t.a; return null != e.scaleFactorMin && (n = Math.max(n, e.scaleFactorMin)), null != e.scaleFactorMax && (n = Math.min(n, e.scaleFactorMax)), k(t, { a: n, d: n }); }
                function U(e, t, n, r) { if (B(e, r))
                    return e; var o = Object(u.transform)(Object(u.fromObject)(e), Object(u.translate)(t, n), Object(u.scale)(r, r), Object(u.translate)(-t, -n)); return k(e, I({ mode: c }, Z(e, o), { startX: null, startY: null, endX: null, endY: null }), O); }
                function K(e, t, n, r, o) { var i = e.viewerWidth / r, a = e.viewerHeight / o, l = Math.min(i, a), s = Object(u.transform)(Object(u.scale)(l, l), Object(u.translate)(-t, -n)); return B(e, l / e.d) ? k(e, { mode: c, startX: null, startY: null, endX: null, endY: null }) : k(e, I({ mode: c }, Z(e, s), { startX: null, startY: null, endX: null, endY: null }), O); }
                function $(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : x, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : M, r = e.viewerWidth, o = e.viewerHeight, i = e.SVGWidth, a = e.SVGHeight, l = r / i, s = o / a, f = Math.min(l, s), h = Object(u.scale)(f, f), d = Object(u.translate)(0, 0); if (l < s) {
                    var p = o - l * a;
                    n === V && (d = Object(u.translate)(0, Math.round(p / 2))), n === E && (d = Object(u.translate)(0, p));
                }
                else {
                    var v = r - s * i;
                    t === V && (d = Object(u.translate)(Math.round(v / 2), 0)), t === P && (d = Object(u.translate)(v, 0));
                } var g = Object(u.transform)(d, h); return B(e, f / e.d) ? k(e, { mode: c, startX: null, startY: null, endX: null, endY: null }) : k(e, I({ mode: c }, Z(e, g), { startX: null, startY: null, endX: null, endY: null }), O); }
                function J(e, t) { var n = S(e, e.viewerWidth / 2, e.viewerHeight / 2); return U(e, n.x, n.y, t); }
                function Q(e, t, n, r, o) { var i = e.startX, a = e.startY, u = e.endX, c = e.endY, l = S(e, i, a), s = S(e, u, c); if (Math.abs(i - u) > 7 && Math.abs(a - c) > 7) {
                    var f = N(l, s);
                    return K(e, f.x, f.y, f.width, f.height);
                } var h = S(e, t, n); return U(e, h.x, h.y, r); }
                function ee(e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = void 0, u = void 0; if (i)
                    a = i.x, u = i.y;
                else {
                    var c = t.getBoundingClientRect(), h = c.left, g = c.top;
                    a = e.clientX - Math.round(h), u = e.clientY - Math.round(g);
                } var m = r; switch (n) {
                    case v:
                        var b = S(r, a, u);
                        m = U(r, b.x, b.y, 1 / o.scaleFactor);
                        break;
                    case p:
                        m = function (e, t, n) { return k(e, { mode: s, startX: t, startY: n, endX: t, endY: n }); }(r, a, u);
                        break;
                    case f:
                    case d:
                        m = function (e, t, n) { return k(e, { mode: l, startX: t, startY: n, endX: t, endY: n }, w); }(r, a, u);
                        break;
                    default: return r;
                } return e.preventDefault(), m; }
                function te(e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = void 0, u = void 0; if (i)
                    a = i.x, u = i.y;
                else {
                    var c = t.getBoundingClientRect(), h = c.left, v = c.top;
                    a = e.clientX - Math.round(h), u = e.clientY - Math.round(v);
                } var g = 0 === e.buttons, m = r; switch (n) {
                    case p:
                        r.mode === s && (m = g ? Q(r, a, u, o.scaleFactor) : function (e, t, n) { if (e.mode !== s)
                            throw new Error("update selection not allowed in this mode " + e.mode); return k(e, { endX: t, endY: n }); }(r, a, u));
                        break;
                    case f:
                    case d:
                        r.mode === l && (m = g ? z(r) : function (e, t, n, r) { if (e.mode !== l)
                            throw new Error("update pan not allowed in this mode " + e.mode); var o = S(e, e.endX, e.endY), i = S(e, t, n); return k(W(e, i.x - o.x, i.y - o.y, r), { mode: l, endX: t, endY: n }, w); }(r, a, u, o.preventPanOutside ? 20 : void 0));
                        break;
                    default: return r;
                } return e.preventDefault(), m; }
                function ne(e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = void 0, u = void 0; if (i)
                    a = i.x, u = i.y;
                else {
                    var c = t.getBoundingClientRect(), h = c.left, g = c.top;
                    a = e.clientX - Math.round(h), u = e.clientY - Math.round(g);
                } var m = r; switch (n) {
                    case v:
                        r.mode === s && (m = Q(r, a, u, 1 / o.scaleFactor));
                        break;
                    case p:
                        r.mode === s && (m = Q(r, a, u, o.scaleFactor));
                        break;
                    case f:
                    case d:
                        r.mode === l && (m = z(r));
                        break;
                    default: return r;
                } return e.preventDefault(), m; }
                function re(e, t, n, r, o) { arguments.length > 5 && void 0 !== arguments[5] && arguments[5]; var i = function (e, t) { return k(e, { focus: t }); }(r, "mouseenter" === e.type); return e.preventDefault(), i; }
                function oe(e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = i.x, u = i.y; return [h, f].indexOf(n) >= 0 && o.detectAutoPan && r.focus ? function (e, t, n) { var r = 0, o = 0; return n <= 20 && (o = 2), e.viewerWidth - t <= 20 && (r = -2), e.viewerHeight - n <= 20 && (o = -2), t <= 20 && (r = 2), r /= e.d, o /= e.d, 0 === r && 0 === o ? e : W(e, r, o); }(r, a, u) : r; }
                var ie = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; };
                function ae(e) { return "number" == typeof e.pinchPointDistance; }
                function ue(e, t, n, r, o) { var i = t.getBoundingClientRect(), a = i.left, c = i.top, l = e.touches[0].clientX - Math.round(a), f = e.touches[0].clientY - Math.round(c), h = e.touches[1].clientX - Math.round(a), d = e.touches[1].clientY - Math.round(c), p = Math.sqrt(Math.pow(h - l, 2) + Math.pow(d - f, 2)), v = ae(r) ? r.pinchPointDistance : p, g = S(r, (l + h) / 2, (f + d) / 2), m = p / v; if (B(r, m))
                    return r; e.cancelable && e.preventDefault(); var b = Object(u.transform)(Object(u.fromObject)(r), Object(u.translate)(g.x, g.y), Object(u.scale)(m, m), Object(u.translate)(-g.x, -g.y)); return k(r, k(ie({ mode: s }, Z(r, b), { startX: null, startY: null, endX: null, endY: null, prePinchMode: r.prePinchMode ? r.prePinchMode : r.mode, pinchPointDistance: p }))); }
                function ce(e, t) { return t.detectPinchGesture && e.touches.length > 1; }
                function le(e, t, n, r, o, i) { var a = 0 === e.touches.length ? k(r, { mode: r.prePinchMode ? c : r.mode, prePinchMode: null }) : r, u = function (e, t) { var n = t.getBoundingClientRect(), r = n.left, o = n.top; return { x: e.clientX - Math.round(r), y: e.clientY - Math.round(o) }; }(e.touches.length > 0 ? e.touches[0] : e.changedTouches[0], t); switch (n) {
                    case v:
                    case p:
                    case f:
                    case d: return e.stopPropagation(), e.preventDefault(), i(e, t, n, a, o, u);
                    default: return a;
                } }
                function se(e, t, n, r, o) { if (!([l, s].indexOf(r.mode) >= 0))
                    return r; var i = function (e, t, n) { return n.detectPinchGesture && ae(t) && e.touches.length < 2; }(e, r, o) ? k(r, { pinchPointDistance: null }) : r; return e.touches.length > 0 ? i : le(e, t, n, i, o, ne); }
                function fe(e) { return k(e, { miniatureOpen: !0 }); }
                function he(e) { return k(e, { miniatureOpen: !1 }); }
                var de = function () { return navigator.userAgent.toLowerCase(); }, pe = function (e) { return function (e) { return ["zoom-in", "zoom-out", "grab", "grabbing"].indexOf(e) > -1; }(e) ? de().indexOf("firefox") > -1 ? "-moz-" + e : de().indexOf("webkit") > -1 ? "-webkit-" + e : void 0 : e; };
                var ve = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; }, ge = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var me = 1, be = function () { return "uid" + me++; };
                function ye(e) { var t = function (t) { function n(e) { !function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, n); var t = function (e, t) { if (!e)
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || "object" != typeof t && "function" != typeof t ? e : t; }(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e)); return t.state = { uid: be() }, t; } return function (e, t) { if ("function" != typeof t && null !== t)
                    throw new TypeError("Super expression must either be null or a function, not " + typeof t); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t); }(n, o.a.Component), ge(n, [{ key: "render", value: function () { return o.a.createElement(e, ve({ _uid: this.state.uid }, this.props)); } }]), n; }(); return t.displayName = "RandomUID(" + function (e) { return e.displayName || e.name || "Component"; }(e) + ")", t; }
                var Oe = "react-svg-pan-zoom_border_gradient";
                function we(e) { var t = e.direction, n = e.width, r = e.height, i = e._uid, a = void 0; switch (t) {
                    case g:
                        a = "translate(" + n + ", 0) rotate(90)";
                        break;
                    case m:
                        a = "translate(" + n + ", " + r + ") rotate(180)";
                        break;
                    case b:
                        a = "translate(0, " + r + ") rotate(270)";
                        break;
                    case y: a = " ";
                } var u = Oe + "_gradient_" + i, c = Oe + "_mask_" + i; return o.a.createElement("g", null, o.a.createElement("defs", null, o.a.createElement("linearGradient", { id: u, x1: "0%", y1: "0%", x2: "100%", y2: "0%", spreadMethod: "pad" }, o.a.createElement("stop", { offset: "0%", stopColor: "#fff", stopOpacity: "0.8" }), o.a.createElement("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.5" })), o.a.createElement("mask", { id: c, x: "0", y: "0", width: "20", height: Math.max(n, r) }, o.a.createElement("rect", { x: "0", y: "0", width: "20", height: Math.max(n, r), style: { stroke: "none", fill: "url(#" + u + ")" } }))), o.a.createElement("rect", { x: "0", y: "0", width: "20", height: Math.max(n, r), style: { stroke: "none", fill: "#000", mask: "url(#" + c + ")" }, transform: a })); }
                we.propTypes = { direction: a.a.oneOf([g, m, b, y]).isRequired, width: a.a.number.isRequired, height: a.a.number.isRequired };
                var Ve = ye(we);
                function xe(e) { var t = e.startX, n = e.startY, r = e.endX, i = e.endY; if (!(t && n && r && i))
                    return null; var a = N({ x: t, y: n }, { x: r, y: i }); return o.a.createElement("rect", { stroke: "#969FFF", strokeOpacity: .7, fill: "#F3F4FF", fillOpacity: .7, x: a.x, y: a.y, width: a.width, height: a.height, style: { pointerEvents: "none" } }); }
                function Pe() { return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("path", { d: "M10.07,14.27C10.57,14.03 11.16,14.25 11.4,14.75L13.7,19.74L15.5,18.89L13.19,13.91C12.95,13.41 13.17,12.81 13.67,12.58L13.95,12.5L16.25,12.05L8,5.12V15.9L9.82,14.43L10.07,14.27M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V3A1,1 0 0,1 7,2C7.24,2 7.47,2.09 7.64,2.23L7.65,2.22L19.14,11.86C19.57,12.22 19.62,12.85 19.27,13.27C19.12,13.45 18.91,13.57 18.7,13.61L15.54,14.23L17.74,18.96C18,19.46 17.76,20.05 17.26,20.28L13.64,21.97Z" })); }
                function Me() { return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("path", { d: "M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z" })); }
                function Ee() { return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("g", null, o.a.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }), o.a.createElement("path", { d: "M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z" }))); }
                function je() { return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z" })); }
                function ke() { return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("path", { d: "M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6z" })); }
                xe.propTypes = { startX: a.a.number.isRequired, startY: a.a.number.isRequired, endX: a.a.number.isRequired, endY: a.a.number.isRequired };
                var Se = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var Te = function (e) { function t(e) { !function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, t); var n = function (e, t) { if (!e)
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || "object" != typeof t && "function" != typeof t ? e : t; }(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); return n.state = { hover: !1 }, n; } return function (e, t) { if ("function" != typeof t && null !== t)
                    throw new TypeError("Super expression must either be null or a function, not " + typeof t); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t); }(t, o.a.Component), Se(t, [{ key: "change", value: function (e) { switch (e.preventDefault(), e.stopPropagation(), e.type) {
                            case "mouseenter":
                            case "touchstart":
                                this.setState({ hover: !0 });
                                break;
                            case "mouseleave":
                            case "touchend":
                            case "touchcancel": this.setState({ hover: !1 });
                        } } }, { key: "render", value: function () { var e = this, t = { display: "block", width: "24px", height: "24px", margin: [g, b].indexOf(this.props.toolbarPosition) >= 0 ? "2px 1px" : "1px 2px", color: this.props.active || this.state.hover ? "#1CA6FC" : "#FFF", transition: "color 200ms ease", background: "none", padding: "0px", border: "0px", outline: "0px", cursor: "pointer" }; return o.a.createElement("button", { onMouseEnter: function (t) { return e.change(t); }, onMouseLeave: function (t) { return e.change(t); }, onTouchStart: function (t) { e.change(t), e.props.onClick(t); }, onTouchEnd: function (t) { return e.change(t); }, onTouchCancel: function (t) { return e.change(t); }, onClick: this.props.onClick, style: t, title: this.props.title, name: this.props.name, role: "button", type: "button" }, this.props.children); } }]), t; }(), _e = Te;
                function Ce(e) { var t = e.tool, n = e.value, r = e.onChangeValue, i = e.onChangeTool, a = e.position, u = e.SVGAlignX, c = e.SVGAlignY, l = function (e, t) { i(t), e.stopPropagation(), e.preventDefault(); }, s = [g, b].indexOf(a) >= 0, f = { position: "absolute", transform: [g, b].indexOf(a) >= 0 ? "translate(-50%, 0px)" : "none", top: [y, m, g].indexOf(a) >= 0 ? "5px" : "unset", left: [g, b].indexOf(a) >= 0 ? "50%" : y === a ? "5px" : "unset", right: [m].indexOf(a) >= 0 ? "5px" : "unset", bottom: [b].indexOf(a) >= 0 ? "5px" : "unset", backgroundColor: "rgba(19, 20, 22, 0.90)", borderRadius: "2px", display: "flex", flexDirection: s ? "row" : "column", padding: s ? "1px 2px" : "2px 1px" }; return o.a.createElement("div", { style: f, role: "toolbar" }, o.a.createElement(_e, { toolbarPosition: a, active: t === h, name: "unselect-tools", title: "Selection", onClick: function (e) { return l(e, h); } }, o.a.createElement(Pe, null)), o.a.createElement(_e, { toolbarPosition: a, active: t === d, name: "select-tool-pan", title: "Pan", onClick: function (e) { return l(e, d); } }, o.a.createElement(Me, null)), o.a.createElement(_e, { toolbarPosition: a, active: t === p, name: "select-tool-zoom-in", title: "Zoom in", onClick: function (e) { return l(e, p); } }, o.a.createElement(Ee, null)), o.a.createElement(_e, { toolbarPosition: a, active: t === v, name: "select-tool-zoom-out", title: "Zoom out", onClick: function (e) { return l(e, v); } }, o.a.createElement(je, null)), o.a.createElement(_e, { toolbarPosition: a, active: !1, name: "fit-to-viewer", title: "Fit to viewer", onClick: function (e) { return function (e) { r($(n, u, c)), e.stopPropagation(), e.preventDefault(); }(e); } }, o.a.createElement(ke, null))); }
                function Re(e) { var t = e.open, n = 0; switch (e.position) {
                    case y:
                        n = t ? "rotate(225, 12, 13)" : "rotate(45, 12, 13)";
                        break;
                    case m: n = n = t ? "rotate(135, 12, 13)" : "rotate(-45, 12, 13)";
                } return o.a.createElement("svg", { width: 24, height: 24, stroke: "currentColor" }, o.a.createElement("g", { transform: n }, o.a.createElement("path", { fill: "#000000", d: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z" }))); }
                function Fe(e, t, n) { return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; }
                function Ge(e) { var t, n = e.value, r = e.onChangeValue, i = e.position, a = (Fe(t = { width: "24px", height: "24px", display: "block", position: "absolute", bottom: 0 }, i === y ? "left" : "right", "0px"), Fe(t, "background", "rgba(19, 20, 22, 0.901961)"), Fe(t, "border", 0), Fe(t, "padding", 0), Fe(t, "outline", 0), Fe(t, "color", "#fff"), t), u = n.miniatureOpen ? he : fe; return o.a.createElement("button", { role: "button", type: "button", style: a, onClick: function (e) { return r(u(n)); } }, o.a.createElement(Re, { open: n.miniatureOpen, position: i })); }
                Te.propTypes = { title: a.a.string.isRequired, name: a.a.string.isRequired, toolbarPosition: a.a.string.isRequired, onClick: a.a.func.isRequired, active: a.a.bool.isRequired }, Ce.propTypes = { position: a.a.oneOf([g, m, b, y]).isRequired, tool: a.a.string.isRequired, value: a.a.object.isRequired, onChangeValue: a.a.func.isRequired, onChangeTool: a.a.func.isRequired, SVGAlignX: a.a.oneOf([V, x, P]), SVGAlignY: a.a.oneOf([V, M, E]) }, Ce.defaultProps = { SVGAlignX: x, SVGAlignY: M }, Re.propTypes = { open: a.a.bool.isRequired, position: a.a.oneOf([m, y]).isRequired }, Ge.propTypes = { value: a.a.object.isRequired, onChangeValue: a.a.func.isRequired, position: a.a.oneOf([m, y]).isRequired };
                var Ye = "react-svg-pan-zoom_miniature";
                function De(e) { var t = e.SVGWidth, n = e.SVGHeight, r = e.x1, i = e.y1, a = e.x2, u = e.y2, c = (e.zoomToFit, e._uid), l = Ye + "_mask_" + c; return o.a.createElement("g", null, o.a.createElement("defs", null, o.a.createElement("mask", { id: l }, o.a.createElement("rect", { x: "0", y: "0", width: t, height: n, fill: "#ffffff" }), o.a.createElement("rect", { x: r, y: i, width: a - r, height: u - i }))), o.a.createElement("rect", { x: "0", y: "0", width: t, height: n, style: { stroke: "none", fill: "#000", mask: "url(#" + l + ")", opacity: .4 } })); }
                De.propTypes = { SVGWidth: a.a.number.isRequired, SVGHeight: a.a.number.isRequired, x1: a.a.number.isRequired, y1: a.a.number.isRequired, x2: a.a.number.isRequired, y2: a.a.number.isRequired, zoomToFit: a.a.number.isRequired };
                var Xe = ye(De), qe = function () { return function (e, t) { if (Array.isArray(e))
                    return e; if (Symbol.iterator in Object(e))
                    return function (e, t) { var n = [], r = !0, o = !1, i = void 0; try {
                        for (var a, u = e[Symbol.iterator](); !(r = (a = u.next()).done) && (n.push(a.value), !t || n.length !== t); r = !0)
                            ;
                    }
                    catch (e) {
                        o = !0, i = e;
                    }
                    finally {
                        try {
                            !r && u.return && u.return();
                        }
                        finally {
                            if (o)
                                throw i;
                        }
                    } return n; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }; }();
                function Le(e, t, n) { return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; }
                Math.min, Math.max;
                function Ae(e) { var t, n = e.value, r = e.onChangeValue, i = e.position, a = e.children, c = e.background, l = e.SVGBackground, s = e.width, f = e.height, h = n.SVGWidth, d = n.SVGHeight, p = n.viewerWidth, v = n.viewerHeight, g = d / h, m = g >= 1 ? f / d : s / h, b = Object(u.applyToPoints)(Object(u.inverse)(n), [{ x: 0, y: 0 }, { x: p, y: v }]), O = qe(b, 2), w = O[0], V = w.x, x = w.y, P = O[1], M = P.x, E = P.y, j = void 0, k = void 0; n.miniatureOpen ? (j = s, k = f) : (j = 24, k = 24); var S = (Le(t = { position: "absolute", overflow: "hidden", outline: "1px solid rgba(19, 20, 22, 0.90)", transition: "width 200ms ease, height 200ms ease, bottom 200ms ease", width: j + "px", height: k + "px", bottom: "6px" }, i === y ? "left" : "right", "6px"), Le(t, "background", c), t), T = g >= 1 ? "translate(" + (s - h * m) / 2 + ", 0)" : "translate(0, " + (f - d * m) / 2 + ")"; return o.a.createElement("div", { role: "navigation", style: S }, o.a.createElement("svg", { width: s, height: f, style: { pointerEvents: "none" } }, o.a.createElement("g", { transform: T }, o.a.createElement("g", { transform: "scale(" + m + ", " + m + ")" }, o.a.createElement("rect", { fill: l, x: 0, y: 0, width: n.SVGWidth, height: n.SVGHeight }), a, o.a.createElement(Xe, { SVGWidth: h, SVGHeight: d, x1: V, y1: x, x2: M, y2: E, zoomToFit: m })))), o.a.createElement(Ge, { value: n, onChangeValue: r, position: i })); }
                Ae.propTypes = { position: a.a.oneOf([m, y]).isRequired, value: a.a.object.isRequired, onChangeValue: a.a.func.isRequired, background: a.a.string.isRequired, SVGBackground: a.a.string.isRequired, width: a.a.number.isRequired };
                var He = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) {
                    var n = arguments[t];
                    for (var r in n)
                        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
                } return e; }, We = function () { function e(e, t) { for (var n = 0; n < t.length; n++) {
                    var r = t[n];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
                } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; }();
                var ze = function (e) { function t(e, n) { !function (e, t) { if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function"); }(this, t); var r = function (e, t) { if (!e)
                    throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || "object" != typeof t && "function" != typeof t ? e : t; }(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), o = r.props, i = o.tool, a = o.value, l = o.width, s = o.height, f = o.scaleFactorMin, d = o.scaleFactorMax, p = o.children.props, v = p.width, g = p.height; return r.state = { value: a || function (e, t, n, r, o, i) { return k({}, j({}, Object(u.identity)(), { version: 2, mode: c, focus: !1, pinchPointDistance: null, prePinchMode: null, viewerWidth: e, viewerHeight: t, SVGWidth: n, SVGHeight: r, scaleFactorMin: o, scaleFactorMax: i, startX: null, startY: null, endX: null, endY: null, miniatureOpen: !0, lastAction: null })); }(l, s, v, g, f, d), tool: i || h }, r.ViewerDOM = null, r.autoPanLoop = r.autoPanLoop.bind(r), r; } return function (e, t) { if ("function" != typeof t && null !== t)
                    throw new TypeError("Super expression must either be null or a function, not " + typeof t); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t); }(t, o.a.Component), We(t, [{ key: "componentWillReceiveProps", value: function (e) { var t = this.getValue(), n = !1, r = t; t.viewerWidth === e.width && t.viewerHeight === e.height || (r = function (e, t, n) { return k(e, { viewerWidth: t, viewerHeight: n }); }(r, e.width, e.height), n = !0); var o = e.children.props, i = o.width, a = o.height; t.SVGWidth === i && t.SVGHeight === a || (r = function (e, t, n) { return k(e, { SVGWidth: t, SVGHeight: n }); }(r, i, a), n = !0), t.scaleFactorMin === e.scaleFactorMin && t.scaleFactorMax === e.scaleFactorMax || (r = function (e, t, n) { return k(e, { scaleFactorMin: t, scaleFactorMax: n }); }(r, e.scaleFactorMin, e.scaleFactorMax), n = !0), n && this.setValue(r); } }, { key: "getValue", value: function () { return this.props.value ? this.props.value : this.state.value; } }, { key: "getTool", value: function () { return this.props.tool ? this.props.tool : this.state.tool; } }, { key: "getSvgStyle", value: function (e) { var t = { display: "block" }; return e && (t.cursor = e), (this.props.detectPinchGesture || -1 !== [d, f].indexOf(this.getTool())) && (t.touchAction = "none"), t; } }, { key: "setValue", value: function (e) { var t = this.props, n = t.onChangeValue, r = t.onZoom, o = t.onPan; this.setState({ value: e }), n && n(e), e.lastAction && (r && e.lastAction === O && r(e), o && e.lastAction === w && o(e)); } }, { key: "pan", value: function (e, t) { var n = W(this.getValue(), e, t); this.setValue(n); } }, { key: "zoom", value: function (e, t, n) { var r = U(this.getValue(), e, t, n); this.setValue(r); } }, { key: "fitSelection", value: function (e, t, n, r) { var o = K(this.getValue(), e, t, n, r); this.setValue(o); } }, { key: "fitToViewer", value: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : x, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : M, n = $(this.getValue(), e, t); this.setValue(n); } }, { key: "zoomOnViewerCenter", value: function (e) { var t = J(this.getValue(), e); this.setValue(t); } }, { key: "setPointOnViewerCenter", value: function (e, t, n) { var r = _(this.getValue(), e, t, n); this.setValue(r); } }, { key: "reset", value: function () { var e = C(this.getValue()); this.setValue(e); } }, { key: "changeTool", value: function (e) { this.setState({ tool: e }), this.props.onChangeTool && this.props.onChangeTool(e); } }, { key: "openMiniature", value: function () { var e = fe(this.getValue()); this.setValue(e); } }, { key: "closeMiniature", value: function () { var e = he(this.getValue()); this.setValue(e); } }, { key: "handleViewerEvent", value: function (e) { var t = this.props, n = this.state.value, r = this.ViewerDOM; if ([h, f].indexOf(this.getTool()) >= 0 && e.target !== r) {
                            var o = { click: t.onClick, dblclick: t.onDoubleClick, mousemove: t.onMouseMove, mouseup: t.onMouseUp, mousedown: t.onMouseDown, touchstart: t.onTouchStart, touchmove: t.onTouchMove, touchend: t.onTouchEnd, touchcancel: t.onTouchCancel }[e.type];
                            o && o(function (e, t, n) { var r = e.type; switch (r) {
                                case "mousemove":
                                case "mouseup":
                                case "mousedown":
                                case "click":
                                case "dblclick": return new D(e, t, n);
                                case "touchstart":
                                case "touchmove":
                                case "touchend":
                                case "touchcancel": return new L(e, t, n);
                                default: throw new Error(r + " not supported");
                            } }(e, n, r));
                        } } }, { key: "autoPanLoop", value: function () { var e = { x: this.state.viewerX, y: this.state.viewerY }, t = oe(null, this.ViewerDOM, this.getTool(), this.getValue(), this.props, e); this.getValue() !== t && this.setValue(t), this.autoPanIsRunning && requestAnimationFrame(this.autoPanLoop); } }, { key: "componentDidMount", value: function () { var e = this.props, t = this.state; e.onChangeValue && e.onChangeValue(t.value), this.autoPanIsRunning = !0, requestAnimationFrame(this.autoPanLoop); } }, { key: "componentWillUnmount", value: function () { this.autoPanIsRunning = !1; } }, { key: "render", value: function () { var e = this, t = this.props, n = this.state, r = n.viewerX, i = n.viewerY, a = this.getTool(), O = this.getValue(), w = t.customToolbar, V = t.customMiniature, x = a === f && O.mode === l && O.startX !== O.endX && O.startY !== O.endY, P = void 0; a === d && (P = pe(O.mode === l ? "grabbing" : "grab")), a === p && (P = pe("zoom-in")), a === v && (P = pe("zoom-out")), x && (P = pe("grabbing")); var M = [d, p, v].indexOf(a) >= 0; return M = M || x, o.a.createElement("div", { style: He({ position: "relative", width: O.viewerWidth, height: O.viewerHeight }, t.style), className: this.props.className }, o.a.createElement("svg", { ref: function (t) { return e.ViewerDOM = t; }, width: O.viewerWidth, height: O.viewerHeight, style: this.getSvgStyle(P), onMouseDown: function (t) { var n = ee(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onMouseMove: function (t) { var n = e.ViewerDOM.getBoundingClientRect(), r = n.left, o = n.top, i = t.clientX - Math.round(r), a = t.clientY - Math.round(o), u = te(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props, { x: i, y: a }); e.getValue() !== u && e.setValue(u), e.setState({ viewerX: i, viewerY: a }), e.handleViewerEvent(t); }, onMouseUp: function (t) { var n = ne(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onClick: function (t) { e.handleViewerEvent(t); }, onDoubleClick: function (t) { var n = function (e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = void 0, u = void 0; if (i)
                                a = i.x, u = i.y;
                            else {
                                var c = t.getBoundingClientRect(), l = c.left, s = c.top;
                                a = e.clientX - Math.round(l), u = e.clientY - Math.round(s);
                            } var h = r; switch (n) {
                                case f:
                                    if (!o.disableDoubleClickZoomWithToolAuto) {
                                        var d = S(r, a, u), p = o.modifierKeys.reduce(function (t, n) { return t || e.getModifierState(n); }, !1) ? 1 / o.scaleFactor : o.scaleFactor;
                                        h = U(r, d.x, d.y, p);
                                    }
                                    break;
                                default: return r;
                            } return e.preventDefault(), h; }(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onWheel: function (t) { var n = function (e, t, n, r, o) { var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null, a = void 0, u = void 0; if (i)
                                a = i.x, u = i.y;
                            else {
                                var c = t.getBoundingClientRect(), l = c.left, s = c.top;
                                a = e.clientX - Math.round(l), u = e.clientY - Math.round(s);
                            } if (!o.detectWheel)
                                return r; var f = function (e, t, n, r, o) { return r + (o - r) * (e - t) / (n - t); }(Math.max(-1, Math.min(1, e.deltaY)), -1, 1, o.scaleFactorOnWheel, 1 / o.scaleFactorOnWheel), h = S(r, a, u), d = U(r, h.x, h.y, f); return e.preventDefault(), d; }(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n); }, onMouseEnter: function (t) { if (!("ontouchstart" in window || navigator.maxTouchPoints)) {
                                var n = re(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props);
                                e.getValue() !== n && e.setValue(n);
                            } }, onMouseLeave: function (t) { var n = re(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n); }, onTouchStart: function (t) { var n = function (e, t, n, r, o) { if (ce(e, o))
                                return ue(e, t, 0, r); if (1 !== e.touches.length) {
                                if ([l, s].indexOf(r.mode) >= 0)
                                    return R(r);
                                if ([c].indexOf(r.mode) >= 0)
                                    return r;
                            } return le(e, t, n, r, o, ee); }(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onTouchMove: function (t) { var n = function (e, t, n, r, o) { return ce(e, o) ? ue(e, t, 0, r) : [l, s].indexOf(r.mode) >= 0 ? le(e, t, n, r, o, te) : r; }(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onTouchEnd: function (t) { var n = se(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); }, onTouchCancel: function (t) { var n = function (e, t, n, r, o) { return e.stopPropagation(), e.preventDefault(), R(r); }(t, e.ViewerDOM, e.getTool(), e.getValue(), e.props); e.getValue() !== n && e.setValue(n), e.handleViewerEvent(t); } }, o.a.createElement("rect", { fill: t.background, x: 0, y: 0, width: O.viewerWidth, height: O.viewerHeight, style: { pointerEvents: "none" } }), o.a.createElement("g", { transform: Object(u.toSVG)(O), style: M ? { pointerEvents: "none" } : {} }, o.a.createElement("rect", { fill: this.props.SVGBackground, style: this.props.SVGStyle, x: 0, y: 0, width: O.SVGWidth, height: O.SVGHeight }), o.a.createElement("g", null, t.children.props.children)), [h, f].indexOf(a) >= 0 && t.detectAutoPan && O.focus ? o.a.createElement("g", { style: { pointerEvents: "none" } }, i <= 20 ? o.a.createElement(Ve, { direction: g, width: O.viewerWidth, height: O.viewerHeight }) : null, O.viewerWidth - r <= 20 ? o.a.createElement(Ve, { direction: m, width: O.viewerWidth, height: O.viewerHeight }) : null, O.viewerHeight - i <= 20 ? o.a.createElement(Ve, { direction: b, width: O.viewerWidth, height: O.viewerHeight }) : null, O.focus && r <= 20 ? o.a.createElement(Ve, { direction: y, width: O.viewerWidth, height: O.viewerHeight }) : null) : null, O.mode !== s ? null : o.a.createElement(xe, { startX: O.startX, startY: O.startY, endX: O.endX, endY: O.endY })), "none" === t.toolbarPosition ? null : o.a.createElement(w, He({ position: t.toolbarPosition, value: O, onChangeValue: function (t) { return e.setValue(t); }, tool: a, onChangeTool: function (t) { return e.changeTool(t); } }, this.props.toolbarProps)), "none" === t.miniaturePosition ? null : o.a.createElement(V, { position: t.miniaturePosition, value: O, onChangeValue: function (t) { return e.setValue(t); }, SVGBackground: this.props.SVGBackground, background: this.props.miniatureBackground, width: this.props.miniatureWidth, height: this.props.miniatureHeight }, t.children.props.children)); } }]), t; }(), Ne = ze;
                ze.propTypes = { width: a.a.number.isRequired, height: a.a.number.isRequired, background: a.a.string, SVGBackground: a.a.string, SVGStyle: a.a.object, value: a.a.shape({ version: a.a.oneOf([2]).isRequired, mode: a.a.oneOf([c, l, s]).isRequired, focus: a.a.bool.isRequired, a: a.a.number.isRequired, b: a.a.number.isRequired, c: a.a.number.isRequired, d: a.a.number.isRequired, e: a.a.number.isRequired, f: a.a.number.isRequired, viewerWidth: a.a.number.isRequired, viewerHeight: a.a.number.isRequired, SVGWidth: a.a.number.isRequired, SVGHeight: a.a.number.isRequired, startX: a.a.number, startY: a.a.number, endX: a.a.number, endY: a.a.number, miniatureOpen: a.a.bool.isRequired }), style: a.a.object, className: a.a.string, detectWheel: a.a.bool, detectAutoPan: a.a.bool, detectPinchGesture: a.a.bool, toolbarPosition: a.a.oneOf(["none", g, m, b, y]), onChangeValue: a.a.func, onChangeTool: a.a.func, onZoom: a.a.func, onPan: a.a.func, onClick: a.a.func, onDoubleClick: a.a.func, onMouseUp: a.a.func, onMouseMove: a.a.func, onMouseDown: a.a.func, preventPanOutside: a.a.bool, scaleFactor: a.a.number, scaleFactorOnWheel: a.a.number, scaleFactorMax: a.a.number, scaleFactorMin: a.a.number, tool: a.a.oneOf([f, h, d, p, v]), modifierKeys: a.a.array, customToolbar: a.a.oneOfType([a.a.element, a.a.func]), miniaturePosition: a.a.oneOf(["none", m, y]), miniatureBackground: a.a.string, miniatureWidth: a.a.number, miniatureHeight: a.a.number, customMiniature: a.a.oneOfType([a.a.element, a.a.func]), disableDoubleClickZoomWithToolAuto: a.a.bool, toolbarProps: a.a.shape({ SVGAlignX: a.a.oneOf([V, x, P]), SVGAlignY: a.a.oneOf([V, M, E]) }), children: function (e, t, n) { var r = e[t], i = ["svg"]; return 1 !== o.a.Children.count(r) || -1 === i.indexOf(r.type) ? new Error("`" + n + "` should have a single child of the following types:  `" + i.join("`, `") + "`.") : r.props.hasOwnProperty("width") && r.props.hasOwnProperty("height") ? void 0 : new Error("SVG should have props `width` and `height`"); } }, ze.defaultProps = { value: null, tool: null, style: {}, background: "#616264", SVGBackground: "#fff", SVGStyle: {}, detectWheel: !0, detectAutoPan: !0, detectPinchGesture: !0, toolbarPosition: m, modifierKeys: ["Alt", "Shift", "Control"], customToolbar: Ce, preventPanOutside: !0, scaleFactor: 1.1, scaleFactorOnWheel: 1.06, miniaturePosition: y, miniatureWidth: 100, miniatureHeight: 80, miniatureBackground: "#616264", customMiniature: Ae, disableZoomWithToolAuto: !1, onZoom: null, onPan: null, toolbarProps: {} }, n.d(t, "Viewer", function () { return Ie; }), n.d(t, "ReactSVGPanZoom", function () { return Ne; }), n.d(t, "Toolbar", function () { return Ce; }), n.d(t, "Miniature", function () { return Ae; }), n.d(t, "setPointOnViewerCenter", function () { return _; }), n.d(t, "reset", function () { return C; }), n.d(t, "pan", function () { return W; }), n.d(t, "zoom", function () { return U; }), n.d(t, "fitSelection", function () { return K; }), n.d(t, "fitToViewer", function () { return $; }), n.d(t, "zoomOnViewerCenter", function () { return J; }), n.d(t, "openMiniature", function () { return fe; }), n.d(t, "closeMiniature", function () { return he; }), n.d(t, "MODE_IDLE", function () { return c; }), n.d(t, "MODE_PANNING", function () { return l; }), n.d(t, "MODE_ZOOMING", function () { return s; }), n.d(t, "TOOL_AUTO", function () { return f; }), n.d(t, "TOOL_NONE", function () { return h; }), n.d(t, "TOOL_PAN", function () { return d; }), n.d(t, "TOOL_ZOOM_IN", function () { return p; }), n.d(t, "TOOL_ZOOM_OUT", function () { return v; }), n.d(t, "POSITION_NONE", function () { return "none"; }), n.d(t, "POSITION_TOP", function () { return g; }), n.d(t, "POSITION_RIGHT", function () { return m; }), n.d(t, "POSITION_BOTTOM", function () { return b; }), n.d(t, "POSITION_LEFT", function () { return y; }), n.d(t, "ACTION_ZOOM", function () { return O; }), n.d(t, "ACTION_PAN", function () { return w; }), n.d(t, "ALIGN_CENTER", function () { return V; }), n.d(t, "ALIGN_LEFT", function () { return x; }), n.d(t, "ALIGN_RIGHT", function () { return P; }), n.d(t, "ALIGN_TOP", function () { return M; }), n.d(t, "ALIGN_BOTTOM", function () { return E; });
                var Ie = function () { return console.error("HEY! You are trying to use an older version of ReactSVGPanZoom. Read here https://github.com/chrvadala/react-svg-pan-zoom/blob/master/docs/migrate-from-v1-to-v2.md"), null; };
            }]); });
        //# sourceMappingURL=react-svg-pan-zoom.min.js.map
        /***/ 
    }),
    /* 989 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStarSize", function () { return getStarSize; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSolarSystem", function () { return getSolarSystem; });
        /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConstellationSolarSystems", function () { return ConstellationSolarSystems; });
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var _this = undefined;
        var getData = function (uri) {
            return __awaiter(_this, void 0, Promise, function () {
                var SolarSystems;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, fetch(uri)
                                .then(function (response) {
                                return response.json();
                            })
                                .then(function (myJson) {
                                return myJson;
                            })];
                        case 1:
                            SolarSystems = _a.sent();
                            return [2 /*return*/, SolarSystems];
                    }
                });
            });
        };
        var getStarSize = function (star) {
            if (star.luminosity < 3) {
                return 150;
            }
            if (star.luminosity < 6) {
                return 100;
            }
            return 75;
        };
        var getSolarSystem = function (star) {
            return __awaiter(_this, void 0, Promise, function () {
                var SolarSystems;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, getData("../api/ExoSolarSystems/GetExoSolarSystemByName?name=" + encodeURIComponent(star.name))];
                        case 1:
                            SolarSystems = _a.sent();
                            return [2 /*return*/, SolarSystems];
                    }
                });
            });
        };
        var ConstellationSolarSystems = function (constellation) {
            return __awaiter(_this, void 0, Promise, function () {
                var SolarSystems;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, getData("../api/ExoSolarSystems/GetSolarSystemPerConstellation?constellation=" + constellation)];
                        case 1:
                            SolarSystems = _a.sent();
                            return [2 /*return*/, SolarSystems];
                    }
                });
            });
        };
        /***/ 
    }),
    /* 990 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var _service_getSolarSystem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(989);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__);
        /* harmony import */ var _Catalog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(704);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(material_icons_react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21);
        /* harmony import */ var _styles_radialgradients__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(743);
        /* harmony import */ var _config_Resource__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(66);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var Constellations = /** @class */ (function (_super) {
            __extends(Constellations, _super);
            function Constellations(props) {
                var _this = _super.call(this, props) || this;
                _this.mainPost = function () {
                    var stars = _this.state.stars;
                    var posts = [];
                    for (var _i = 0, _a = stars; _i < _a.length; _i++) {
                        var item = _a[_i];
                        posts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"], { className: 'post-preview' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_6__["Link"], { to: {
                                pathname: "../star/" + item.name,
                                state: { star: item }
                            } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3___default.a, { height: "200", width: "250" }, ' ', Object(_styles_radialgradients__WEBPACK_IMPORTED_MODULE_7__["Gradient"])(), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Rect"], { x: 50, y: -50, width: 150, height: 150, fill: "url(#StarTop" + (item.color != null ? item.color.toString() : 2) + ")" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_3__["Rect"], { x: 50, y: 100, width: 150, height: 150, fill: "url(#Star" + (item.color != null ? item.color.toString() : 2) + ")" })), " "), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Content, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Header, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_6__["Link"], { to: {
                                pathname: "../star/" + item.name,
                                state: { star: item }
                            } }, item.name))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Card"].Content, { extra: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_6__["Link"], { to: {
                                pathname: "../system/" + item.name,
                                state: { star: item }
                            } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Button"], { icon: true, inverted: true, basic: true, color: 'grey', height: "25" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_5___default.a, { icon: "3d_rotation", color: "#c6d4ff", size: 25 }), "Visit Solarsystem"))))));
                    }
                    return Object(_Catalog__WEBPACK_IMPORTED_MODULE_4__["getGroupedItems"])(posts);
                };
                _this.state = {
                    loading: true,
                    stars: []
                };
                return _this;
            }
            Constellations.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    var constellation, stars;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                constellation = this.props.location.state.constellation;
                                return [4 /*yield*/, Object(_service_getSolarSystem__WEBPACK_IMPORTED_MODULE_1__["ConstellationSolarSystems"])(constellation)];
                            case 1:
                                stars = _a.sent();
                                this.setState({ stars: stars, loading: false });
                                return [2 /*return*/];
                        }
                    });
                });
            };
            Constellations.prototype.render = function () {
                var _a = this.state, loading = _a.loading, stars = _a.stars;
                var main = this.mainPost();
                return loading ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null)) : (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, " ", react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Header"], { textAlign: 'center' }, " ", _config_Resource__WEBPACK_IMPORTED_MODULE_8__["resource"].const[this.props.location.state.constellation]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_2__["Grid"], { stackable: true, centered: true, columns: 2 }, main), " "));
            };
            return Constellations;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (Constellations);
        /***/ 
    }),
    /* 991 */
    /***/ (function (module, __webpack_exports__, __webpack_require__) {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
        /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
        /* harmony import */ var semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
        /* harmony import */ var _service_getPlanets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
        /* harmony import */ var _config_Resource__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66);
        /* harmony import */ var _styles_radialgradients__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(743);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(704);
        /* harmony import */ var material_icons_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(material_icons_react__WEBPACK_IMPORTED_MODULE_5__);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(703);
        /* harmony import */ var react_native_svg_web__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(react_native_svg_web__WEBPACK_IMPORTED_MODULE_6__);
        /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21);
        /* harmony import */ var _service_getSolarSystem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(989);
        var __extends = (undefined && undefined.__extends) || (function () {
            var extendStatics = function (d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b)
                        if (b.hasOwnProperty(p))
                            d[p] = b[p]; };
                return extendStatics(d, b);
            };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();
        var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try {
                    step(generator.next(value));
                }
                catch (e) {
                    reject(e);
                } }
                function rejected(value) { try {
                    step(generator["throw"](value));
                }
                catch (e) {
                    reject(e);
                } }
                function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
        };
        var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
            var _ = { label: 0, sent: function () { if (t[0] & 1)
                    throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
            return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f)
                    throw new TypeError("Generator is already executing.");
                while (_)
                    try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
                            return t;
                        if (y = 0, t)
                            op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0:
                            case 1:
                                t = op;
                                break;
                            case 4:
                                _.label++;
                                return { value: op[1], done: false };
                            case 5:
                                _.label++;
                                y = op[1];
                                op = [0];
                                continue;
                            case 7:
                                op = _.ops.pop();
                                _.trys.pop();
                                continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                                    _ = 0;
                                    continue;
                                }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
                                    _.label = op[1];
                                    break;
                                }
                                if (op[0] === 6 && _.label < t[1]) {
                                    _.label = t[1];
                                    t = op;
                                    break;
                                }
                                if (t && _.label < t[2]) {
                                    _.label = t[2];
                                    _.ops.push(op);
                                    break;
                                }
                                if (t[2])
                                    _.ops.pop();
                                _.trys.pop();
                                continue;
                        }
                        op = body.call(thisArg, _);
                    }
                    catch (e) {
                        op = [6, e];
                        y = 0;
                    }
                    finally {
                        f = t = 0;
                    }
                if (op[0] & 5)
                    throw op[1];
                return { value: op[0] ? op[1] : void 0, done: true };
            }
        };
        var StarInfo = /** @class */ (function (_super) {
            __extends(StarInfo, _super);
            function StarInfo() {
                var _this = _super !== null && _super.apply(this, arguments) || this;
                _this.state = {
                    star: {}
                };
                _this.getPlanetText = function (star) {
                    var knownhabplanets = star.noHabPlanets;
                    var knownplanets = star.noPlanets;
                    if (knownhabplanets >= 1 && knownplanets > 1) {
                        if (knownhabplanets === 1) {
                            return _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[1] + " " + knownplanets + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[2] + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[0];
                        }
                        return _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[1] + " " + knownplanets + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[2] + " " + knownhabplanets + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[3];
                    }
                    if (knownhabplanets == 0 && knownplanets > 1) {
                        return _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[1] + " " + knownplanets + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[4];
                    }
                    if (knownhabplanets == 0 && knownplanets == 1) {
                        return "" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].numberplanet[5];
                    }
                };
                return _this;
            }
            StarInfo.prototype.componentDidMount = function () {
                return __awaiter(this, void 0, void 0, function () {
                    var star, starobj, planet;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                star = this.props.location.state.star;
                                if (!(star.planets === null))
                                    return [3 /*break*/, 3];
                                return [4 /*yield*/, Object(_service_getSolarSystem__WEBPACK_IMPORTED_MODULE_8__["getSolarSystem"])(star)];
                            case 1:
                                starobj = _a.sent();
                                return [4 /*yield*/, Object(_service_getPlanets__WEBPACK_IMPORTED_MODULE_2__["GetPlanetAsync"])(starobj.planets[0].name)];
                            case 2:
                                planet = _a.sent();
                                star = planet.star;
                                _a.label = 3;
                            case 3:
                                this.setState({ star: star });
                                return [2 /*return*/];
                        }
                    });
                });
            };
            StarInfo.prototype.render = function () {
                var star = this.state.star;
                var planetext = this.getPlanetText(star);
                var size = window.innerWidth / 5 > 200 ? window.innerWidth / 5 : 200;
                size = size > 400 ? 400 : size;
                return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], { className: 'post-preview' }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"], { columns: 2, stackable: true }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], { text: true }, star.radius && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_6___default.a, { height: Math.round(star.radius) * 4, width: Math.round(star.radius) * 3, x: 0 }, Object(_styles_radialgradients__WEBPACK_IMPORTED_MODULE_4__["Gradient"])(), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_6__["Rect"], { x: 0, y: -Math.round(star.radius), width: Math.round(star.radius) * 3, height: Math.round(star.radius) * 3, fill: "url(#StarTop" + (star.color != null ? star.color.toString() : 2) + ")" }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_native_svg_web__WEBPACK_IMPORTED_MODULE_6__["Rect"], { x: 0, y: 2 * Math.round(star.radius), width: Math.round(star.radius) * 3, height: Math.round(star.radius) * 3, fill: "url(#Star" + (star.color != null ? star.color.toString() : 2) + ")" }))))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Grid"].Column, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Header"], { className: 'post-preview' }, star.name), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"], { celled: true }, ' ', react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, null, star.mass && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, "" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starinfo[0]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, star.mass + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].oursun))), star.radiusSu !== 0 && star.radiusSu && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, "" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starinfo[1]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, star.radiusSu + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].oursun))), star.age && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, "" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starinfo[2]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, star.age + "*" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].oursun))), star.temp && (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, "" + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starinfo[3]), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Cell, null, star.temp + " C")))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Row, null))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_7__["Link"], { to: {
                        pathname: "../system/" + star.name,
                        state: { star: star }
                    } }, ' ', react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Button"], { icon: true, inverted: true, basic: true, color: "grey", height: "40" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_5___default.a, { icon: "3d_rotation", color: "#c6d4ff", size: 40 }), 'Visit Solar System')), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_router_dom__WEBPACK_IMPORTED_MODULE_7__["Link"], { to: {
                        pathname: "../constellation/" + star.constellation,
                        state: { constellation: star.constellation }
                    } }, ' ', react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Button"], { icon: true, inverted: true, basic: true, color: "grey", height: "40" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](material_icons_react__WEBPACK_IMPORTED_MODULE_5___default.a, { icon: "scatter_plot", color: "#c6d4ff", size: 40 }), 'Visit Constellation'))))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", null), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](semantic_ui_react__WEBPACK_IMPORTED_MODULE_1__["Container"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starname[0] + " " + star.name + " " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].starname[1] + " " + (_config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].const[star.constellation] &&
                    _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].const[star.constellation]) + ".", ' ', "" + (star.luminosity === 9
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].startype[0]
                    : _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].startype[1] +
                        ' ' +
                        _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].color[star.color] +
                        ' ' +
                        _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].typecolor) + (star.luminosity < 9
                    ? ' ' +
                        _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].startype[2] +
                        ' ' +
                        _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].lum[star.luminosity] +
                        '.'
                    : '.') + " " + (_config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].mag[star.magnitude] != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].mag[star.magnitude]
                    : '')), star.habZoneMin != null && star.habZoneMax != null
                    ? _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].habzone[0] + " " + star.habZoneMin + " AU " + _config_Resource__WEBPACK_IMPORTED_MODULE_3__["resource"].habzone[1] + " " + star.habZoneMax + " AU. "
                    : '', planetext == null ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null) : planetext)));
            };
            return StarInfo;
        }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
        /* harmony default export */ __webpack_exports__["default"] = (StarInfo);
        /***/ 
    })
    /******/ 
]);
